030ad41d6e969713d255040be20448d1e9e568f3
[gnulib.git] / ChangeLog
1 2011-09-18  Bruno Haible  <bruno@clisp.org>
2
3         Tests for module 'accept4'.
4         * modules/accept4-tests: New file.
5         * tests/test-accept4.c: New file.
6
7 2011-09-18  Bruno Haible  <bruno@clisp.org>
8
9         Tests for module 'accept'.
10         * modules/accept-tests: New file.
11         * tests/test-accept.c: New file.
12
13 2011-09-18  Bruno Haible  <bruno@clisp.org>
14
15         dup2: Support for MSVC.
16         * lib/dup2.c: Include msvc-inval.h.
17         (rpl_dup2): Handle invalid parameter notifications during dup2 and
18         _get_osfhandle calls.
19         * modules/dup2 (Depends-on): Add msvc-inval.
20         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
21
22         New module 'msvc-inval'.
23         * lib/msvc-inval.h: New file.
24         * lib/msvc-inval.c: New file.
25         * m4/msvc-inval.m4: New file.
26         * modules/msvc-inval: New file.
27
28 2011-09-17  Bruno Haible  <bruno@clisp.org>
29
30         Tests for module 'pclose'.
31         * modules/pclose-tests: New file.
32
33         New module 'pclose'.
34         * lib/stdio.in.h (pclose): New declaration.
35         * lib/pclose.c: New file.
36         * m4/pclose.m4: New file.
37         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
38         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
39         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
40         * modules/pclose: New file.
41         * modules/popen-tests (Depends-on): Add pclose.
42         * modules/popen-safer-tests (Depends-on): Likewise.
43         * doc/posix-functions/pclose.texi: Mention the new module.
44
45 2011-09-17  Bruno Haible  <bruno@clisp.org>
46
47         popen: Support for MSVC.
48         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
49         * lib/popen.c (popen): Provide alternate definition for native Windows.
50         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
51         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
52         * modules/popen (Depends-on, configure.ac): Update condition.
53         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
54         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
55         fixed.
56
57 2011-09-17  Bruno Haible  <bruno@clisp.org>
58
59         isnanl, isnand, isnanf: Work around MSVC bug.
60         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
61
62 2011-09-17  Bruno Haible  <bruno@clisp.org>
63
64         sys_socket tests: Fix recent mistake.
65         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
66
67 2011-09-17  Bruno Haible  <bruno@clisp.org>
68
69         putenv: Support for MSVC.
70         * modules/putenv (Depends-on): Add environ.
71         * lib/putenv.c (environ): Disable declaration.
72         * lib/unistd.in.h: Update comment.
73
74 2011-09-17  Bruno Haible  <bruno@clisp.org>
75
76         math: Avoid macro redefinition warnings on MSVC.
77         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
78         Undefine before redefining.
79
80 2011-09-17  Bruno Haible  <bruno@clisp.org>
81
82         doc: Mention functions which are declared as macros.
83         * doc/posix-functions/*[fl].texi: Mention that some functions are
84         defined as macros with arguments only.
85
86 2011-09-17  Bruno Haible  <bruno@clisp.org>
87
88         Add dependencies to new dirent related modules.
89         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
90         * modules/fts (Depends-on): Likewise.
91         * modules/glob (Depends-on): Likewise.
92         * modules/savedir (Depends-on): Likewise.
93         * modules/scandir (Depends-on): Likewise.
94         * modules/dirent-safer (Depends-on): Add opendir, closedir.
95         * modules/fdopendir (Depends-on): Add opendir.
96
97 2011-09-17  Bruno Haible  <bruno@clisp.org>
98
99         inet_pton: Support for MSVC on Windows Vista or newer.
100         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
101         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
102         HAVE_DECL_INET_PTON is defined.
103         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
104         On platforms with <winsock2.h>, test whether inet_pton is declared in
105         <ws2tcpip.h>. If so, arrange to replace it.
106         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
107         REPLACE_INET_PTON.
108         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
109         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
110         (Depends-on, configure.ac): Update condition.
111         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
112
113 2011-09-17  Bruno Haible  <bruno@clisp.org>
114
115         inet_ntop: Support for MSVC on Windows Vista or newer.
116         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
117         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
118         HAVE_DECL_INET_NTOP is defined.
119         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
120         On platforms with <winsock2.h>, test whether inet_ntop is declared in
121         <ws2tcpip.h>. If so, arrange to replace it.
122         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
123         REPLACE_INET_NTOP.
124         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
125         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
126         (Depends-on, configure.ac): Update condition.
127         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
128
129 2011-09-16  Eric Blake  <eblake@redhat.com>
130
131         test-fsync: yet another enhancement
132         * tests/test-fsync.c (main): Also test behavior on read-only text
133         file.
134
135 2011-09-16  Bruno Haible  <bruno@clisp.org>
136
137         Enhance fsync, fdatasync tests.
138         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
139         * tests/test-fdatasync.c (main): Likewise.
140
141 2011-09-16  Bruno Haible  <bruno@clisp.org>
142
143         Support for MSVC compiler: Ensure mode_t gets defined.
144         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
145         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
146         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
147         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
148         * tests/test-fcntl-h.c: Check that mode_t is defined.
149         * tests/test-sys_stat.c: Likewise.
150         * tests/test-sys_types.c: Likewise.
151         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
152         * doc/posix-headers/sys_stat.texi: Likewise.
153         * doc/posix-headers/sys_types.texi: Likewise.
154
155 2011-09-16  Bruno Haible  <bruno@clisp.org>
156
157         sys_stat: Support for MSVC.
158         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
159         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
160         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
161         MSVC.
162
163 2011-09-16  Bruno Haible  <bruno@clisp.org>
164
165         Support for MSVC compiler: Ensure off_t gets defined.
166         * lib/unistd.in.h: Include <sys/types.h>.
167         * tests/test-fcntl-h.c: Check that off_t is defined.
168         * tests/test-sys_stat.c: Likewise.
169         * tests/test-sys_types.c: Likewise.
170
171 2011-09-16  Eric Blake  <eblake@redhat.com>
172
173         fdatasync: port to Solaris
174         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
175         * modules/fdatasync (Link): Document it.
176         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
177
178         fdatasync: port to MacOS X 10.7
179         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
180         declared.
181         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
182         * modules/unistd (Makefile.am): Substitute it.
183         * lib/unistd.in.h (fdatasync): Declare on MacOS.
184         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
185
186         fdatasync: minor improvements
187         * modules/fdatasync (Depends-on): Add condition for fsync.
188         * lib/fdatasync.c (fdatasync): Add comment.
189         * tests/test-unistd-c++.cc: Test fdatasync.
190
191         unistd: update refs to newer POSIX
192         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
193         Suggested by Bruno Haible.
194
195         fdatasync: new module
196         * modules/fsync (Description): Document difference to fdatasync.
197         * modules/fdatasync: New module.
198         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
199         * lib/fdatasync.c (fdatasync): Likewise.
200         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
201         defaults.
202         * modules/unistd (Makefile.am): Set witnesses.
203         * lib/unistd.in.h (fdatasync): Declare.
204         * MODULES.html.sh: Document it.
205         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
206         * modules/fdatasync-tests: New test.
207         * tests/test-fdatasync.c: Likewise.
208
209 2011-09-16  Eric Blake  <eblake@redhat.com>
210
211         test-fsync: enhance tests
212         * modules/fsync-tests (Depends-on): Add errno, for mingw.
213         * tests/test-fsync.c (main): Enhance test.
214
215 2011-09-15  Bruno Haible  <bruno@clisp.org>
216
217         Support for MSVC compiler: Ensure ssize_t gets defined.
218         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
219         * doc/posix-headers/stdio.texi: Likewise.
220         * modules/stdio (Depends-on): Add ssize_t.
221         * modules/sys_socket (Depends-on): Likewise.
222         * modules/sys_types (Depends-on): Likewise.
223         * modules/sys_uio (Depends-on): Likewise.
224         * modules/unistd (Depends-on): Likewise.
225         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
226         * tests/test-sys_types.c: Check that ssize_t is defined.
227
228 2011-09-14  Bruno Haible  <bruno@clisp.org>
229
230         Avoid using #, the m4 comment starter character, near brackets.
231         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
232         delimiter character in sed expressions.
233         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
234         Suggested by Eric Blake.
235
236         Properly quote AC_CHECK_DECLS' 4th argument.
237         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
238         argument.
239         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
240         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
241         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
242         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
243         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
244         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
245         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
246         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
247         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
248         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
249         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
250         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
251         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
252         * m4/isinf.m4 (gl_ISINF): Likewise.
253         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
254         * m4/readutmp.m4 (gl_READUTMP): Likewise.
255         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
256         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
257         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
258         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
259         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
260         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
261         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
262         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
263         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
264         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
265         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
266         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
267         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
268         Reported by Eric Blake.
269
270         Properly quote AC_CHECK_DECL's 4th argument.
271         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
272         argument.
273         * m4/argp.m4 (gl_ARGP): Likewise.
274         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
275         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
276         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
277         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
278         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
279         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
280         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
281         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
282         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
283         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
284         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
285         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
286         Reported by Eric Blake.
287
288 2011-09-14  Eric Blake  <eblake@redhat.com>
289
290         opendir: avoid compile warning
291         * lib/opendir.c (includes): Always include errno.h.
292         Reported by Tatsuro MATSUOKA.
293
294 2011-09-14  Jim Meyering  <meyering@redhat.com>
295
296         maint.mk: sc_tight_scope: propagate failure from sub-make
297         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
298         Reported by Martin von Gagern.
299
300 2011-09-13  Bruno Haible  <bruno@clisp.org>
301
302         tempname: Support for MSVC.
303         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
304         MSVC.
305         * modules/tempname (Depends-on): Add fcntl-h.
306
307 2011-09-13  Bruno Haible  <bruno@clisp.org>
308
309         sys_time: Support for MSVC.
310         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
311         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
312         include <winsock2.h>.
313         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
314         function declarations that collide with POSIX.
315         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
316         (Makefile.am): Substitute HAVE_WINSOCK2_H.
317
318 2011-09-13  Bruno Haible  <bruno@clisp.org>
319
320         stat: Support for MSVC.
321         * lib/stat.c: Include pathmax.h.
322         * modules/stat (Depends-on): Add pathmax.
323
324         pathmax: Support for native Windows.
325         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
326
327 2011-09-12  Bruno Haible  <bruno@clisp.org>
328
329         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
330         * lib/dirent.in.h (struct dirent): New type.
331         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
332         DT_WHT): New macros.
333         (DIR): New type.
334         (opendir, closedir): Declare only if the module 'opendir' is enabled.
335         (readdir, rewinddir): New declarations.
336         * lib/dirent-private.h: New file.
337         * lib/opendir.c: New file.
338         * lib/readdir.c: New file.
339         * lib/rewinddir.c: New file.
340         * lib/closedir.c: New file.
341         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
342         * m4/opendir.m4: New file.
343         * m4/readdir.m4: New file.
344         * m4/rewinddir.m4: New file.
345         * m4/closedir.m4: New file.
346         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
347         REPLACE_CLOSEDIR here.
348         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
349         readdir, rewinddir are declared.
350         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
351         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
352         HAVE_REWINDDIR, HAVE_CLOSEDIR.
353         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
354         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
355         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
356         * modules/opendir: New file.
357         * modules/readdir: New file.
358         * modules/rewinddir: New file.
359         * modules/closedir: New file.
360         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
361         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
362         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
363         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
364         * NEWS: Mention the 'fchdir' change.
365
366 2011-09-11  Bruno Haible  <bruno@clisp.org>
367
368         asm-underscore.m4: Support for MSVC.
369         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
370         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
371
372 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
373
374         Doc about crypt functions.
375         * doc/posix-functions/crypt.texi: Expand range of glibc versions
376         needing for _GNU_SOURCE to get crypt.
377         * doc/posix-functions/encrypt.texi: Likewise.
378         * doc/posix-functions/setkey.texi: Likewise.
379
380 2011-09-11  Bruno Haible  <bruno@clisp.org>
381
382         doc: Update regarding MSVC 9.
383         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
384         tested".
385         * doc/posix-functions/*.texi: Update with info about MSVC 9.
386         * doc/posix-headers/*.texi: Likewise.
387         * doc/pastposix-functions/*.texi: Likewise.
388         * doc/glibc-functions/*.texi: Likewise.
389         * doc/glibc-headers/*.texi: Likewise.
390
391 2011-09-11  Bruno Haible  <bruno@clisp.org>
392
393         unistd et al.: Don't assume <unistd.h> exists.
394         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
395         does not exist.
396         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
397         exist. But include <stdlib.h>.
398         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
399         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
400         symlink() does not exist.
401         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
402         include <io.h> instead.
403         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
404         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
405         include <direct.h> instead.
406         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
407         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
408         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
409         <io.h> instead.
410         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
411         correctly if the system does not have hard links.
412         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
413         <direct.h> instead.
414         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
415         it when looking for function declarations.
416         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
417         <direct.h> and <io.h> instead.
418         * doc/posix-headers/unistd.texi: More details about MSVC problem.
419
420 2011-09-11  Bruno Haible  <bruno@clisp.org>
421
422         strcase: Support for MSVC.
423         * modules/strcase (Status, Notice): Remove obsoletion mark.
424         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
425         * doc/posix-functions/strncasecmp.texi: Likewise.
426
427         strings: Don't assume <strings.h> exists.
428         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
429         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
430         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
431         * doc/posix-headers/strings.texi: Mention the MSVC problem.
432
433 2011-09-11  Bruno Haible  <bruno@clisp.org>
434
435         dirent: Don't assume <dirent.h> exists.
436         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
437         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
438         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
439         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
440
441 2011-09-11  Bruno Haible  <bruno@clisp.org>
442
443         Fix wint_t on MSVC.
444         * lib/wchar.in.h (wint_t): On MSVC, override it.
445         * lib/wctype.in.h (wint_t): Likewise.
446         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
447         MSVC.
448         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
449         * doc/posix-headers/wctype.texi: Likewise.
450
451 2011-09-11  Bruno Haible  <bruno@clisp.org>
452
453         sys_types: Fix typo.
454         * lib/sys_types.in.h: Fix typo in comment.
455         Reported by Paul Eggert.
456
457         Support for MSVC compiler: Ensure size_t gets defined.
458         * modules/strings (Depends-on): Add 'sys_types'.
459         * modules/sys_uio (Depends-on): Likewise.
460         * lib/sys_uio.in.h: Update comment.
461
462         C++ tests for module 'sys_types'.
463         * modules/sys_types-c++-tests: New file.
464         * tests/test-sys_types-c++.cc: New file.
465
466         Tests for module 'sys_types'.
467         * modules/sys_types-tests: New file.
468         * tests/test-sys_types.c: New file.
469
470         New module 'sys_types'.
471         * lib/sys_types.in.h: New file.
472         * m4/sys_types_h.m4: New file.
473         * modules/sys_types: New file.
474         * doc/posix-headers/sys_types.texi: Mention the new module and the
475         size_t problem on MSVC 9.
476
477 2011-09-11  Bruno Haible  <bruno@clisp.org>
478
479         Support for MSVC compiler: Avoid division by a literal 0.
480         * lib/math.in.h (NAN): Define through a function call also on MSVC.
481         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
482         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
483         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
484         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
485         * tests/infinity.h: New file.
486         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
487         on MSVC.
488         * tests/test-ceilf1.c: Include infinity.h.
489         (main): Use Infinityf.
490         * tests/test-ceil1.c: Include infinity.h.
491         (main): Use Infinityd.
492         * tests/test-ceill.c: Include infinity.h.
493         (main): Use Infinityl.
494         * tests/test-dprintf-posix.c: Include infinity.h.
495         (test_function): Use Infinityd.
496         * tests/test-floorf1.c: Include infinity.h.
497         (main): Use Infinityf.
498         * tests/test-floor1.c: Include infinity.h.
499         (main): Use Infinityd.
500         * tests/test-floorl.c: Include infinity.h.
501         (main): Use Infinityl.
502         * tests/test-fprintf-posix.c: Include infinity.h.
503         (test_function): Use Infinityd.
504         * tests/test-frexp.c: Include infinity.h.
505         (main): Use Infinityd.
506         * tests/test-frexpl.c: Include infinity.h.
507         (main): Use Infinityl.
508         * tests/test-isfinite.c: Include infinity.h.
509         (test_isfinitef): Use Infinityf.
510         (test_isfinited): Use Infinityd.
511         (test_isfinitel): Use Infinityl.
512         * tests/test-isinf.c: Include infinity.h.
513         (test_isinff): Use Infinityf.
514         (test_isinfd): Use Infinityd.
515         (test_isinfl): Use Infinityl.
516         * tests/test-isnan.c: Include infinity.h.
517         (test_float): Use Infinityf.
518         (test_double): Use Infinityd.
519         (test_long_double): Use Infinityl.
520         * tests/test-isnanf.h: Include infinity.h.
521         (main): Use Infinityf.
522         * tests/test-isnand.h: Include infinity.h.
523         (main): Use Infinityd.
524         * tests/test-isnanl.h: Include infinity.h.
525         (main): Use Infinityl.
526         * tests/test-ldexpl.c: Include infinity.h.
527         (main): Use Infinityl.
528         * tests/test-printf-posix.h: Include infinity.h.
529         (test_function): Use Infinityd.
530         * tests/test-roundf1.c: Include infinity.h.
531         (main): Use Infinityf.
532         * tests/test-round1.c: Include infinity.h.
533         (main): Use Infinityd.
534         * tests/test-roundl.c: Include infinity.h.
535         (main): Use Infinityl.
536         * tests/test-signbit.c: Include infinity.h.
537         (test_signbitf): Use Infinityf.
538         (test_signbitd): Use Infinityd.
539         (test_signbitl): Use Infinityl.
540         * tests/test-snprintf-posix.h: Include infinity.h.
541         (test_function): Use Infinityd, Infinityl.
542         * tests/test-sprintf-posix.h: Include infinity.h.
543         (test_function): Use Infinityd, Infinityl.
544         * tests/test-truncf1.c: Include infinity.h.
545         (main): Use Infinityf.
546         * tests/test-trunc1.c: Include infinity.h.
547         (main): Use Infinityd.
548         * tests/test-truncl.c: Include infinity.h.
549         (main): Use Infinityl.
550         * tests/test-vasnprintf-posix.c: Include infinity.h.
551         (test_function): Use Infinityd, Infinityl.
552         * tests/test-vasprintf-posix.c: Include infinity.h.
553         (test_function): Use Infinityd, Infinityl.
554         * modules/ceilf-tests (Files): Add tests/infinity.h.
555         * modules/ceil-tests (Files): Likewise.
556         * modules/ceill-tests (Files): Likewise.
557         * modules/dprintf-posix-tests (Files): Likewise.
558         * modules/floorf-tests (Files): Likewise.
559         * modules/floor-tests (Files): Likewise.
560         * modules/floorl-tests (Files): Likewise.
561         * modules/fprintf-posix-tests (Files): Likewise.
562         * modules/frexp-tests (Files): Likewise.
563         * modules/frexp-nolibm-tests (Files): Likewise.
564         * modules/frexpl-tests (Files): Likewise.
565         * modules/frexpl-nolibm-tests (Files): Likewise.
566         * modules/isfinite-tests (Files): Likewise.
567         * modules/isinf-tests (Files): Likewise.
568         * modules/isnan-tests (Files): Likewise.
569         * modules/isnanf-tests (Files): Likewise.
570         * modules/isnanf-nolibm-tests (Files): Likewise.
571         * modules/isnand-tests (Files): Likewise.
572         * modules/isnand-nolibm-tests (Files): Likewise.
573         * modules/isnanl-tests (Files): Likewise.
574         * modules/isnanl-nolibm-tests (Files): Likewise.
575         * modules/ldexpl-tests (Files): Likewise.
576         * modules/printf-posix-tests (Files): Likewise.
577         * modules/roundf-tests (Files): Likewise.
578         * modules/round-tests (Files): Likewise.
579         * modules/roundl-tests (Files): Likewise.
580         * modules/signbit-tests (Files): Likewise.
581         * modules/snprintf-posix-tests (Files): Likewise.
582         * modules/sprintf-posix-tests (Files): Likewise.
583         * modules/truncf-tests (Files): Likewise.
584         * modules/trunc-tests (Files): Likewise.
585         * modules/truncl-tests (Files): Likewise.
586         * modules/vasnprintf-posix-tests (Files): Likewise.
587         * modules/vasprintf-posix-tests (Files): Likewise.
588         * modules/vdprintf-posix-tests (Files): Likewise.
589         * modules/vfprintf-posix-tests (Files): Likewise.
590         * modules/vprintf-posix-tests (Files): Likewise.
591         * modules/vsnprintf-posix-tests (Files): Likewise.
592         * modules/vsprintf-posix-tests (Files): Likewise.
593         * modules/xprintf-posix-tests (Files): Likewise.
594
595 2011-09-11  Bruno Haible  <bruno@clisp.org>
596
597         Ensure pid_t gets defined.
598         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
599         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
600         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
601         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
602         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
603         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
604         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
605         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
606         * tests/test-fcntl-h.c: Check that pid_t is defined.
607         * tests/test-sched.c: Likewise.
608         * tests/test-termios.c: Likewise.
609         * tests/test-time.c: Likewise.
610         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
611         * doc/posix-headers/signal.texi: Likewise.
612         * doc/posix-headers/sys_types.texi: Likewise.
613         * doc/posix-headers/time.texi: Likewise.
614
615 2011-09-11  Bruno Haible  <bruno@clisp.org>
616
617         acl: Fix compilation on Solaris 10 (older version).
618         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
619         of ACE_EVERYONE.
620         * lib/set-mode-acl.c (qset_acl): Likewise.
621         Reported by Christian Jullien <eligis@orange.fr>.
622
623 2011-09-10  Bruno Haible  <bruno@clisp.org>
624
625         iconv, unsetenv: Add support for MSVC compiler.
626         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
627         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
628
629 2011-09-10  Bruno Haible  <bruno@clisp.org>
630
631         *printf: Add support for MSVC compiler.
632         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
633         handles the exception caused by the %n directive. When cross-compiling,
634         guess no on native Windows.
635         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
636         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
637         emulate it through vsnprintf.
638         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
639         * doc/posix-functions/dprintf.texi: Update documentation regarding
640         MSVC 9.
641         * doc/posix-functions/fprintf.texi: Likewise.
642         * doc/posix-functions/printf.texi: Likewise.
643         * doc/posix-functions/snprintf.texi: Likewise.
644         * doc/posix-functions/sprintf.texi: Likewise.
645         * doc/posix-functions/swprintf.texi: Likewise.
646         * doc/posix-functions/vdprintf.texi: Likewise.
647         * doc/posix-functions/vfprintf.texi: Likewise.
648         * doc/posix-functions/vprintf.texi: Likewise.
649         * doc/posix-functions/vsnprintf.texi: Likewise.
650         * doc/posix-functions/vsprintf.texi: Likewise.
651         * doc/glibc-functions/asprintf.texi: Likewise.
652         * doc/glibc-functions/obstack_printf.texi: Likewise.
653         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
654         * doc/glibc-functions/vasprintf.texi: Likewise.
655
656 2011-09-10  Bruno Haible  <bruno@clisp.org>
657
658         nocrash: Add support for native Windows.
659         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
660
661 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
662             Bruno Haible  <bruno@clisp.org>
663
664         absolute-header, include-next: Add support for MSVC compiler.
665         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
666         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
667         directory separator in #line directives.
668         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
669         recognize also backslash as directory separator in #line directives.
670
671 2011-09-08  Jim Meyering  <meyering@redhat.com>
672
673         maint.mk: mark the post-release commit log with "maint: " prefix
674         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
675         one-line commit-log summary.
676
677 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
678             Bruno Haible  <bruno@clisp.org>
679
680         Doc about crypt functions.
681         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
682         systems.
683         * doc/posix-functions/encrypt.texi: Likewise.
684         * doc/posix-functions/setkey.texi: Likewise.
685
686 2011-09-08  Simon Josefsson  <simon@josefsson.org>
687
688         * lib/gc.h: Fix copyright header.
689
690 2011-09-07  Bruno Haible  <bruno@clisp.org>
691
692         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
693         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
694         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
695
696 2011-09-07  Bruno Haible  <bruno@clisp.org>
697
698         openat: Work around compilation error with OSF/1 5.1 DTK cc.
699         * lib/fopen.c: Use different syntax for include of <stdio.h>.
700         * lib/freopen.c: Likewise.
701         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
702         * lib/lstat.c: Likewise.
703         * lib/stat.c: Likewise.
704         * lib/open.c: Use different syntax for include of <fcntl.h>.
705         * lib/openat.c: Include fcntl.h again, explicitly.
706
707 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
708
709         parse-datetime: document the newly accepted format
710         * doc/parse-datetime.texi (Combined date and time of day items):
711         New section.
712
713 2011-09-06  Bruno Haible  <bruno@clisp.org>
714
715         acl: Fix a test failure on newer Solaris 10 with ZFS.
716         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
717         ENOSYS as no ACL.
718         Reported by Jim Meyering.
719
720 2011-09-06  Bruno Haible  <bruno@clisp.org>
721
722         acl: Update for AIX >= 5.3 with NFS.
723         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
724         ENOSYS as no ACL.
725
726         acl: Fix a test failure on AIX >= 5.3 with NFS.
727         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
728         as no ACL.
729
730 2011-09-06  Bruno Haible  <bruno@clisp.org>
731
732         acl: Fix a test failure on IRIX 6.5 with NFS.
733         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
734         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
735         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
736         * lib/copy-acl.c (qcopy_acl): Likewise.
737
738 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
739
740         openat: port to AIX 7.1 with large files
741         AIX 7.1 does a "#define openat open64at" if large files are in use,
742         so we can't simply #undef openat.  Use the orig_openat trick (similar
743         to orig_open in lib/open.c) to work around the problem.  Problem
744         reported by Kevin Brott for GNU tar, in the thread containing
745         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
746         * lib/openat.c (__need_system_fcntl_h): Define first.
747         Include <fcntl.h> and <sys/types.h> before undefining.
748         (orig_openat) [HAVE_OPENAT]: New inline function.
749         (openat) [HAVE_OPENAT]: Do not undef.
750         (rpl_openat): Use orig_openat, not openat.
751
752 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
753             Bruno Haible  <bruno@clisp.org>
754
755         acl: Avoid errors on NonStop Kernel.
756         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
757         ENOTSUP errors.
758
759 2011-09-05  Bruno Haible  <bruno@clisp.org>
760
761         acl: Clean up Solaris code.
762         * lib/acl-internal.h: Remove no-op #if.
763         * lib/file-has-acl.c: Likewise.
764         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
765         * lib/copy-acl.c (qcopy_acl): Likewise.
766
767 2011-09-05  Bruno Haible  <bruno@clisp.org>
768
769         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
770         binaries built on the original Solaris 10.
771         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
772         trivial.
773
774 2011-09-05  Bruno Haible  <bruno@clisp.org>
775
776         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
777         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
778         10.
779         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
780         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
781         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
782         instead of acl_get, facl_get, acl_set, facl_set.
783
784 2011-09-05  Bruno Haible  <bruno@clisp.org>
785
786         copy-file: Try unit tests on more file systems.
787         * tests/test-copy-file-1.sh: New file.
788         * tests/test-copy-file-2.sh: New file.
789         * modules/copy-file-tests (Files): Add them.
790         (Makefile.am): Add them to TESTS.
791
792         acl: Try unit tests on more file systems.
793         * tests/test-file-has-acl-1.sh: New file.
794         * tests/test-file-has-acl-2.sh: New file.
795         * tests/test-set-mode-acl-1.sh: New file.
796         * tests/test-set-mode-acl-2.sh: New file.
797         * tests/test-copy-acl-1.sh: New file.
798         * tests/test-copy-acl-2.sh: New file.
799         * modules/acl-tests (Files): Add them.
800         (Makefile.am): Add them to TESTS.
801
802 2011-09-04  Bruno Haible  <bruno@clisp.org>
803
804         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
805         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
806         10.
807         (OLD_ALLOW, OLD_DENY): New macros.
808         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
809         ACE_ACCESS_ALLOWED_ACE_TYPE.
810         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
811         ACE_ACCESS_DENIED_ACE_TYPE.
812         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
813         (NEW_ACE_EXECUTE): Fix value.
814         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
815         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
816         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
817         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
818         NEW_ACE_SYNCHRONIZE): New macros.
819         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
820         instead of acl_fromtext, acl_set, facl_set.
821         Fixes a coreutils/tests/cp/perm failure.
822
823 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
824
825         openat: test for fstatat (..., 0) bug
826         Further testing with tar suggests that fstatat (..., 0)
827         does not work in general, on AIX 7.1; see
828         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
829         So, give up entirely on AIX 7.1's fstatat, and fall back on our
830         replacement fstatat (which is what older AIX releases were using
831         anyway).
832         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
833         use is now changed to orig_fstatat.  This was probably the right
834         thing to do anyway.
835         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
836         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
837         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
838         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
839         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
840         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
841         if the bug is found.
842
843         openat: test for fstatat (AT_FDCWD, ..., 0) bug
844         This tests for another fstatat bug on AIX 7.1:
845         fstatat (AT_FDCWD, ..., 0) does not work.  See
846         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
847         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
848         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
849         (rpl_fstatat): Adjust so that it works around either (or both)
850         bugs if present.
851         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
852
853 2011-09-03  Karl Berry  <karl@gnu.org>
854
855         * doc/regex.texi (Character Class Operators): Avoid literal ":"
856         in index entries.
857
858 2011-09-02  Bruno Haible  <bruno@clisp.org>
859
860         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
861         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
862         values of AR, ARFLAGS, RANLIB.
863         Reported by John W. Eaton <jwe@gnu.org> for Octave.
864
865 2011-09-02  Bruno Haible  <bruno@clisp.org>
866
867         Find 'ar' program that fits with --host argument.
868         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
869
870 2011-09-02  Bruno Haible  <bruno@clisp.org>
871
872         tests: init.sh: Support any non-GNU diff.
873         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
874         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
875         Solaris 8.
876
877 2011-09-02  Bruno Haible  <bruno@clisp.org>
878
879         tests: init.sh: work also with any non-GNU diff that supports -u
880         * tests/init.sh: Relax check for diff -u support.
881         Rather than checking for GNU diff via --version, simply check
882         for support for -u itself.  Useful at least on OpenBSD 4.9,
883         AIX 7.1, IRIX 6.5, and Solaris 10.
884
885 2011-09-01  Bruno Haible  <bruno@clisp.org>
886
887         strtoimax, strtoumax: Document problem on HP-UX 11.
888         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
889         * doc/posix-functions/strtoumax.texi: Likewise.
890
891 2011-09-01  Bruno Haible  <bruno@clisp.org>
892
893         strtoumax: Avoid link error on OSF/1 with DTK cc.
894         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
895         defined as a function.
896         * modules/strtoumax (Depends-on, configure.ac): Test only whether
897         strtoumax is defined, not whether it is declared.
898
899 2011-09-01  Bruno Haible  <bruno@clisp.org>
900
901         strtoimax: Avoid link error on OSF/1 with DTK cc.
902         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
903         defined as a function.
904         * modules/strtoimax (Depends-on, configure.ac): Test only whether
905         strtoimax is defined, not whether it is declared.
906
907 2011-09-01  Bruno Haible  <bruno@clisp.org>
908
909         imaxdiv: Avoid link error on OSF/1 with DTK cc.
910         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
911         as a function.
912         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
913         whether it is declared.
914
915 2011-09-01  Bruno Haible  <bruno@clisp.org>
916
917         imaxabs: Avoid link error on OSF/1 with DTK cc.
918         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
919         as a function.
920         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
921         whether it is declared.
922
923 2011-09-01  Bruno Haible  <bruno@clisp.org>
924
925         Tests for module 'strtoumax'.
926         * modules/strtoumax-tests: New file.
927         * tests/test-strtoumax.c: New file.
928
929         Tests for module 'strtoimax'.
930         * modules/strtoimax-tests: New file.
931         * tests/test-strtoimax.c: New file.
932
933         Tests for module 'imaxdiv'.
934         * modules/imaxdiv-tests: New file.
935         * tests/test-imaxdiv.c: New file.
936
937         Tests for module 'imaxabs'.
938         * modules/imaxabs-tests: New file.
939         * tests/test-imaxabs.c: New file.
940
941 2011-09-01  Bruno Haible  <bruno@clisp.org>
942
943         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
944         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
945         pthread_create.
946
947 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
948
949         openat: work around AIX 7.1 fstatat issue
950         This should fix the problem that was not properly fixed
951         in the previous change, dated 2011-08-30.
952         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
953         __need_system_stat_h defined.
954         (orig_fstatat) [HAVE_FSTATAT]: New function.
955         (rpl_fstatat): Go back to the old way of doing things,
956         except call orig_fstatat instead of fstatat.
957         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
958         Remove unnecessary check whether fstatat fills in st_size etc.
959
960 2011-09-01  Bruno Haible  <bruno@clisp.org>
961
962         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
963         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
964         just include the system's header.
965
966 2011-08-31  Jim Meyering  <meyering@redhat.com>
967
968         tests: avoid spurious assertion failure in test-float.c on ppc64
969         * tests/test-float.c (test_long_double): Comment out an assertion,
970         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
971         with gcc-4.4.4.
972
973         maint: indent with spaces, not TABs
974         I need to get in the habit of running gnulib's "make check".
975         Both of these would have been caught.
976         * m4/largefile.m4: Indent with spaces, not TABs.
977         * lib/parse-datetime.y (iso_8601_time): Likewise.
978         Spotted by Pádraig Brady.
979
980         test-parse-datetime.c: accommodate a relatively strict gcc warning
981         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
982         to avoid a warning from gcc's -Werror=missing-declarations.
983         Insert a few spaces-before-funcall-parenthesis.
984
985 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
986
987         parse-datetime: accept ISO 8601 date and time rep with "T" separator
988         The parser now accepts ISO 8601 date-time strings with "T" as the
989         separator.  It has long parsed dates like "2004-02-29 16:21:42"
990         with a space between the date and time strings.  Now it also parses
991         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
992         variants like "2004-02-29T16:21:42.333-07:00"
993         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
994         of day representation using the 'T' separator character.
995         * doc/parse-datetime.texi (General date syntax): replace use of
996         deprecated --iso-8601 option with --rfc-3339 in example of date
997         command output formats that can be parsed.
998         * tests/test-parse-datetime.c (tm_diff): New function, taken from
999         lib/parse-datetime.y.
1000         (gmt_offset): New function.
1001         (main): Add additional test cases to validate ISO8601 extended
1002         date and time of day parsing.
1003
1004 2011-08-31  Bruno Haible  <bruno@clisp.org>
1005
1006         freopen: Documentation.
1007         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
1008         name.
1009         Reported by Claudio Bley <claudio.bley@gmail.com>.
1010
1011 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
1012
1013         freopen: Don't crash if the filename argument is NULL.
1014         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
1015         NULL.
1016
1017 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
1018
1019         openat: work around AIX 7.1 fstatat bug
1020         Problem reported by Kevin Brott for GNU tar, in the thread containing
1021         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
1022         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
1023         FSTATAT_ST_SIZE_ETC_BROKEN.
1024         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
1025         rpl_fstatat.
1026         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
1027         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
1028         AC_CHECK_FUNCS_ONCE for fstatat.
1029         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
1030         fchmodat, mkdirat, openat and unlinkat.
1031
1032 2011-08-30  Bruno Haible  <bruno@clisp.org>
1033
1034         Avoid endless recursions if config.h includes some header files.
1035         * lib/fopen.c (__need_FILE): Define already before including config.h.
1036         * lib/freopen.c (__need_FILE): Likewise.
1037         * lib/open.c (__need_system_fcntl_h): Likewise.
1038         * lib/stat.c (__need_system_sys_stat_h): Likewise.
1039         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
1040         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1041
1042 2011-08-25  Karl Berry  <karl@gnu.org>
1043
1044         * config/srclist.txt (ylwrap): new try.
1045         * build-aux/ylwrap: new file.
1046
1047 2011-08-23  Bruno Haible  <bruno@clisp.org>
1048
1049         tmpdir: Use a good default directory on native Windows.
1050         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
1051         (P_tmpdir): Default to _P_tmpdir on native Windows.
1052         (path_search): On native Windows, try the value returned by GetTempPath
1053         before trying P_tmpdir.
1054         * modules/tmpdir (Depends-on): Add pathmax.
1055         Suggested by John Darrington <john@darrington.wattle.id.au>.
1056
1057 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
1058
1059         doc: fix typo in README-release
1060         * top/README-release: Capitalize first word of a sentence.
1061
1062 2011-08-19  Jim Meyering  <meyering@redhat.com>
1063
1064         fts: do not exhaust memory when processing million-entry directories
1065         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
1066         directory would require about 256*N bytes of memory.  Thus, it was
1067         easy to construct a directory too large to be processed by any of
1068         those tools.  With this change, fts' maximum memory utilization is
1069         now limited to around 30MB.
1070         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
1071         (fts_read): When we've processed the final entry (i.e., when
1072         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
1073         using the parent entry to read any remaining entries.  Dispatch
1074         depending on what fts_build returns:
1075         - NULL+stop, aka failure: stop
1076         - NULL otherwise: move up in the dir hierarchy
1077         - non-NULL: handle this new entry
1078         (fts_build): Declare and use new local, continue_readdir.
1079         Prepare to be called from fts_read, when the entries
1080         from a partially-read directory have just been exhausted.
1081         In that case, we'll skip the opendir and instead use the parent's
1082         fts_dirp and derive dir_fd from that.
1083         Finally, in the readdir loop, if we read max_entries entries,
1084         exit the loop ensuring *not* to call closedir.  This is required
1085         so that fts_dirp can be reused on a subsequent call.
1086         Prompted by Ben England's report of memory exhaustion in find
1087         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
1088
1089         maint: fts: move decl of `dp' down into while loop; split a long line
1090         * lib/fts.c (fts_build): No semantic change.
1091
1092         fts: add/use new struct member, fts_dirp
1093         We are about to use this to manage any directory with
1094         too many entries to read all of them into memory at once.
1095         To do that, we'll need to save the DIR* pointer in each
1096         affected FTSENT struct.
1097         * lib/fts_.h: Include <dirent.h>.
1098         (struct FTSENT) [fts_dirp]: New member.
1099         * lib/fts.c (closedir_and_clear): Define.
1100         Use it in place of closedir so that we are sure to
1101         clear the new fts_dirp member when done with it.
1102         (fts_alloc): Initialize the new member.
1103         (fts_lfree): Free, if needed.
1104
1105         maint: fts: give __opendir2 a new parameter and rename
1106         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
1107         than surreptitiously using sole caller's "dir_fd".
1108         (fts_opendir): Rename from __opendir2.
1109
1110         maint: fts.c: remove __opendir2's now-unused parameter, oflag
1111         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
1112
1113         maint: fts.c: correct off-by-one indentation
1114         * lib/fts.c (fts_build): Correct indentation, change style
1115         of a couple of block comments, and bracing style.
1116
1117         maint: fts.c: move __opendir2 #define "up" out of function body
1118         * lib/fts.c (__opendir2): Move "up".  No semantic change.
1119
1120         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
1121         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
1122         out for a long time and besides was useful only on BSD systems.
1123
1124 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
1125
1126         regex: port to Stratus OpenVOS
1127         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
1128         define to empty, rather than attempting nonportable optimizations.
1129         Problem reported by Paul Green in:
1130         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
1131         and fix suggested by Eric Blake in:
1132         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
1133
1134 2011-08-17  Eric Blake  <eblake@redhat.com>
1135
1136         getcwd: fix test failures on mingw
1137         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
1138         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
1139         test if long directory cannot be created, and allow mingw errno.
1140
1141         getcwd-lgpl: fix m4 to match relaxed test for BSD
1142         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
1143         (gl_FUNC_GETCWD_SIGNATURE): New macro.
1144         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
1145         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
1146         signature problem.
1147
1148         getcwd: fix compilation on mingw64
1149         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
1150         getcwd.
1151         Reported by Marc-André Lureau.
1152
1153         pipe2: silence compiler warning
1154         * lib/pipe2.c (pipe2): Hide label if it is not used.
1155
1156 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
1157
1158         relocatable-prog: fix link error
1159         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
1160         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
1161         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
1162         into modules/relocatable-lib without noticing that
1163         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
1164         also needs to build relocatable.c.
1165
1166 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
1167
1168         getaddrinfo: fix sh typo in gai_strerrorA decl checking
1169         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
1170         shell code: it contained a 'break' that was not in a loop.
1171         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
1172         via a shell-language loop; this may have been true in old Autoconf
1173         versions, but it's not true in Autoconf 2.68.  I found this bug
1174         when testing coreutils git on Solaris 8, whose shell complains
1175         about the syntax error.
1176
1177 2011-08-12  Simon Josefsson  <simon@josefsson.org>
1178
1179         * lib/base64.c: Fix comment to reference RFC 4648.
1180         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
1181         <gvtulder@gmail.com>.
1182
1183 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
1184
1185         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
1186
1187         po/Makefile.in.in: fix make -q problem
1188         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
1189         rule, since there's no file named 'check-macro-version' and its
1190         use as a file breaks make -q.
1191         (all): Don't depend on check-macro-version.
1192         (CHECK_MACRO_VERSION): New macro.
1193         (stamp-po): Use it.
1194
1195         configmake: fix make -q problem
1196         * modules/configmake (configmake.h): Update configmake.h's time stamp
1197         even if the file does not change.  Otherwise, 'make -q' fails.
1198         Problem reported by Simon Josefsson in
1199         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
1200
1201 2011-08-11  Jim Meyering  <meyering@redhat.com>
1202
1203         git-version-gen: correct the advice in a comment
1204         * build-aux/git-version-gen: Correct comment.
1205         Don't recommend to list .tarball-version in .gitignore.
1206
1207 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
1208
1209         base64: fix off-by-one buffer size bug
1210         Problem and (trivial) fix reported by Gijs van Tulder in
1211         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
1212         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
1213         * tests/test-base64.c (main): Catch the bug.
1214
1215 2011-08-10  Eric Blake  <eblake@redhat.com>
1216
1217         closein: correct comments
1218         * lib/closein.c (close_stdin): Improve comments.
1219
1220 2011-08-09  Bruno Haible  <bruno@clisp.org>
1221
1222         More tests for 'fseeko'.
1223         * tests/test-fseeko3.c: New file, from Eric Blake.
1224         * tests/test-fseeko3.sh: New file.
1225         * modules/fseeko-tests (Files): Add them.
1226         (TESTS): Add test-fseeko3.sh.
1227         (check_PROGRAMS): Add test-fseeko3.
1228
1229 2011-08-09  Eric Blake  <eblake@redhat.com>
1230
1231         fseeko: remove unneeded hack
1232         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
1233
1234         fseeko: fix bug on glibc
1235         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
1236         Reported by John W. Eaton.
1237
1238 2011-08-08  Bruno Haible  <bruno@clisp.org>
1239
1240         unictype/base: Fix interoperability with preinstalled libunistring.
1241         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
1242         Reported by Simon Josefsson.
1243
1244 2011-08-08  Bruno Haible  <bruno@clisp.org>
1245
1246         iswblank: Detect declaration correctly.
1247         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
1248         AC_CHECK_DECLS invocation.
1249
1250 2011-08-08  Bruno Haible  <bruno@clisp.org>
1251
1252         tcgetsid: Detect declaration correctly.
1253         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
1254         AC_CHECK_DECLS invocation.
1255         Reported by Simon Josefsson.
1256
1257 2011-08-08  Eric Blake  <eblake@redhat.com>
1258
1259         largefile: fix typo that regressed large file support
1260         * modules/largefile (configure.ac-early): Fix section name.
1261
1262 2011-08-06  Karl Berry  <karl@gnu.org>
1263
1264         * MODULES.html.sh (func_all_files): _Noreturn is no longer
1265         a separate module.
1266
1267 2011-08-05  Simon Josefsson  <simon@josefsson.org>
1268
1269         openat: Fix warnings and commens when building unlinkat.c on Hurd.
1270         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
1271         get prototype for free.
1272
1273 2011-08-04  Bruno Haible  <bruno@clisp.org>
1274
1275         Tests for module 'pathmax'.
1276         * modules/pathmax-tests: New file.
1277         * tests/test-pathmax.c: New file.
1278
1279         canonicalize-lgpl: Support larger filenames on the Hurd.
1280         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
1281         Reported by Paul Eggert.
1282
1283         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
1284         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
1285         * lib/chdir-long.h: Include pathmax.h.
1286         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
1287         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
1288         (PATH_MAX): Remove code that is done by pathmax.h.
1289         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
1290         * lib/tmpfile.c: Add a comment.
1291         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
1292         * modules/chdir-long (Depends-on): Add pathmax.
1293         * modules/getcwd (Depends-on): Add pathmax.
1294         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
1295         is not defined.
1296         * doc/posix-headers/limits.texi: Mention the pathmax module.
1297         * NEWS: Mention the change.
1298
1299 2011-08-02  Bruno Haible  <bruno@clisp.org>
1300
1301         pthread_sigmask: Actually use results of gl_THREADLIB.
1302         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
1303         gl_THREADLIB, not gl_[]THREADLIB.
1304         Reported by Eric Blake.
1305
1306 2011-08-02  Jim Meyering  <meyering@redhat.com>
1307
1308         maint.mk: relax the default _gl_TS_function_match regexp
1309         * top/maint.mk (_gl_TS_function_match): Don't require at least one
1310         space between function name and "(" in an "extern" declaration.
1311         That would fail to match a decl with no space there: extern void foo();
1312
1313 2011-07-31  Iain Nicol  <iain@thenicols.net>
1314
1315         git-version-gen: document that EXTRA_DIST must include .version
1316         * build-aux/git-version-gen: In the how-to-use comment, document
1317         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
1318         will fail when run from an unpacked distribution tarball.
1319
1320 2011-08-01  Bruno Haible  <bruno@clisp.org>
1321
1322         wctype-h: Fix last change.
1323         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
1324         REPLACE_TOWLOWER to 0.
1325         Reported by Sam Steingold <sds@gnu.org>.
1326
1327 2011-07-31  Bruno Haible  <bruno@clisp.org>
1328
1329         frexpl: Update autoconf test.
1330         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
1331         according to changes of 2011-06-20.
1332
1333 2011-07-31  Bruno Haible  <bruno@clisp.org>
1334
1335         sys_utsname: Add support for Minix.
1336         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
1337         <sys/utsname.h>.
1338         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1339         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
1340
1341 2011-07-31  Bruno Haible  <bruno@clisp.org>
1342
1343         strings: Add support for Minix.
1344         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
1345         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
1346         * doc/posix-headers/strings.texi: Document the Minix problem.
1347
1348 2011-07-31  Bruno Haible  <bruno@clisp.org>
1349
1350         wctype-h: Add support for Minix.
1351         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
1352         REPLACE_TOWLOWER.
1353         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
1354         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
1355         REPLACE_ISWCNTRL.
1356
1357 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
1358
1359         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
1360         This is a performance improvement for 64-bit hosts: it causes the
1361         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
1362
1363 2011-07-31  Bruno Haible  <bruno@clisp.org>
1364
1365         stdioext: Add support for Minix.
1366         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
1367         * lib/fpurge.c (fpurge): Likewise.
1368         * lib/freadahead.c (freadahead): Likewise.
1369         * lib/freadable.c (freadable): Likewise.
1370         * lib/freading.c (freading): Likewise.
1371         * lib/freadptr.c (freadptr): Likewise.
1372         * lib/freadseek.c (freadptrinc): Likewise.
1373         * lib/fseeko.c (rpl_fseeko): Likewise.
1374         * lib/fseterr.c (fseterr): Likewise.
1375         * lib/fwritable.c (fwritable): Likewise.
1376         * lib/fwriting.c (fwriting): Likewise.
1377         * lib/fflush.c (clear_ungetc_buffer): Update comment.
1378         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
1379
1380 2011-07-31  Bruno Haible  <bruno@clisp.org>
1381
1382         errno: Port to Minix.
1383         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
1384         ECONNABORTED are defined.
1385         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
1386         GNULIB_defined_ECONNABORTED): New macros.
1387         * lib/strerror-override.h (strerror_override): Test also
1388         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
1389         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
1390         ECONNABORTED.
1391         * doc/posix-headers/errno.texi: Mention the Minix problem.
1392
1393 2011-07-31  Bruno Haible  <bruno@clisp.org>
1394
1395         Work around declaration collisions on Minix.
1396         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
1397         defined, set REPLACE_MBSINIT.
1398         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
1399         defined, set REPLACE_MBRTOWC.
1400         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
1401         set REPLACE_MBRLEN.
1402         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
1403         defined, set REPLACE_MBSRTOWCS.
1404         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
1405         defined, set REPLACE_WCRTOMB.
1406         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
1407         defined, set REPLACE_WCSRTOMBS.
1408
1409 2011-07-31  Bruno Haible  <bruno@clisp.org>
1410
1411         Add support for Minix with ACK compiler.
1412         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
1413         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
1414         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
1415
1416 2011-07-31  Bruno Haible  <bruno@clisp.org>
1417
1418         Documentation about Minix.
1419         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
1420         * doc/glibc-headers/*.texi: Likewise.
1421         * doc/posix-functions/*.texi: Likewise.
1422         * doc/glibc-functions/*.texi: Likewise.
1423
1424 2011-07-31  Bruno Haible  <bruno@clisp.org>
1425
1426         snippet/warn-on-use: Fix indentation.
1427         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
1428
1429 2011-07-25  Jim Meyering  <meyering@redhat.com>
1430
1431         tests: test-update-copyright.sh: remove unnecessary "rm" commands
1432         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
1433         commands.
1434
1435 2011-07-27  Jim Meyering  <meyering@redhat.com>
1436
1437         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
1438         * top/maint.mk (gl_extract_significant_defines_): Now that
1439         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
1440         gnulib/lib/signal.in.h, and now that we recommend to
1441         define-if-undefined those two symbols in application code,
1442         we must filter them out of the "significant" list.
1443         This avoids a "make syntax-check" failure in coreutils.
1444
1445 2011-07-26  Eric Blake  <eblake@redhat.com>
1446
1447         warnings: add comments about previous patch
1448         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
1449         * m4/include_next.m4: Likewise.
1450         * m4/warn-on-use.m4: Likewise.
1451         * m4/warnings.m4: Likewise, and simplify use.
1452         Suggested by Stefano Lattarini.
1453
1454         include-next, warnings: support older autoconf
1455         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
1456         AS_VAR_PUSHDEF in a way that works with older autoconf.
1457         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
1458         Reported by Daniel P. Berrange.
1459
1460 2011-07-25  Bruno Haible  <bruno@clisp.org>
1461
1462         fseek, ftell: Fix doc.
1463         * doc/posix-functions/fseek.texi: Reword statement about
1464         AC_SYS_LARGEFILE.
1465         * doc/posix-functions/ftell.texi: Likewise.
1466
1467 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1468             Bruno Haible  <bruno@clisp.org>
1469
1470         Add dependencies to the 'largefile' module.
1471         * modules/fopen (Depends-on): Add 'largefile'.
1472         * modules/freopen (Depends-on): Likewise.
1473         * modules/fseeko (Depends-on): Likewise.
1474         * modules/ftello (Depends-on): Likewise.
1475         * modules/glob (Depends-on): Likewise.
1476         * modules/lseek (Depends-on): Likewise.
1477         * modules/lstat (Depends-on): Likewise.
1478         * modules/mkostemp (Depends-on): Likewise.
1479         * modules/mkostemps (Depends-on): Likewise.
1480         * modules/mkstemp (Depends-on): Likewise.
1481         * modules/mkstemps (Depends-on): Likewise.
1482         * modules/open (Depends-on): Likewise.
1483         * modules/openat (Depends-on): Likewise.
1484         * modules/pread (Depends-on): Likewise.
1485         * modules/pwrite (Depends-on): Likewise.
1486         * modules/scandir (Depends-on): Likewise.
1487         * modules/stat (Depends-on): Likewise.
1488         * modules/tmpfile (Depends-on): Likewise.
1489         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
1490         since the containing module now depends on the largefile module.
1491         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
1492         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
1493         off_t is fixed by gnulib.
1494         * doc/posix-functions/freopen.texi: Likewise.
1495         * doc/posix-functions/fseeko.texi: Likewise.
1496         * doc/posix-functions/fstatat.texi: Likewise.
1497         * doc/posix-functions/ftello.texi: Likewise.
1498         * doc/posix-functions/glob.texi: Likewise.
1499         * doc/posix-functions/lseek.texi: Likewise.
1500         * doc/posix-functions/lstat.texi: Likewise.
1501         * doc/posix-functions/mkstemp.texi: Likewise.
1502         * doc/posix-functions/open.texi: Likewise.
1503         * doc/posix-functions/openat.texi: Likewise.
1504         * doc/posix-functions/pread.texi: Likewise.
1505         * doc/posix-functions/pwrite.texi: Likewise.
1506         * doc/posix-functions/scandir.texi: Likewise.
1507         * doc/posix-functions/stat.texi: Likewise.
1508         * doc/posix-functions/tmpfile.texi: Likewise.
1509         * doc/glibc-functions/mkostemp.texi: Likewise.
1510         * doc/glibc-functions/mkostemps.texi: Likewise.
1511         * doc/glibc-functions/mkstemps.texi: Likewise.
1512
1513 2011-07-25  Bruno Haible  <bruno@clisp.org>
1514
1515         fcntl: Move AC_LIBOBJ invocation to module description.
1516         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
1517         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
1518
1519         fcntl: Remove call-in from fchdir.m4.
1520         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
1521         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
1522
1523         dup3: Remove potential call-in from fchdir.m4.
1524         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
1525         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
1526
1527         dup2: Move AC_LIBOBJ invocation to module description.
1528         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
1529         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
1530         Don't invoke AC_LIBOBJ.
1531         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
1532
1533         dup2: Remove call-in from fchdir.m4.
1534         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
1535         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
1536
1537         fclose: Move AC_LIBOBJ invocation to module description.
1538         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
1539         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
1540         to 1.
1541         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
1542
1543         fclose: Remove call-in from close.m4.
1544         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
1545         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
1546
1547         close: Move AC_LIBOBJ invocation to module description.
1548         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
1549         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
1550         1.
1551         * modules/close (configure.ac): Invoke AC_LIBOBJ.
1552
1553         close: Remove call-in from fchdir.m4.
1554         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
1555         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
1556
1557         open: Move AC_LIBOBJ invocation to module description.
1558         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
1559         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
1560         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
1561
1562         open: Remove call-in from fchdir.m4.
1563         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
1564         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
1565
1566         fchdir: Start to remove gl_REPLACE_* idiom.
1567         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
1568         (gl_FUNC_FCHDIR): Invoke it.
1569
1570 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1571
1572         * lib/ftell.c (ftell): Comment out cast.
1573
1574         close: use gl_REPLACE_FCLOSE only if defined
1575         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
1576         is defined.  The close module doesn't depend on the fclose module
1577         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
1578         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
1579         I reproduced the problem with "./gnulib-tool --test close sys_socket".
1580
1581 2011-07-24  Jim Meyering  <meyering@redhat.com>
1582
1583         test-select.h: avoid warning when using gcc's -Wmissing-declarations
1584         * tests/test-select.h (test_function): Declare as "static".
1585
1586 2011-07-24  Bruno Haible  <bruno@clisp.org>
1587
1588         doc: Mention the effects of AC_SYS_LARGEFILE.
1589         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
1590         on this function.
1591         * doc/posix-functions/aio_error.texi: Likewise.
1592         * doc/posix-functions/aio_fsync.texi: Likewise.
1593         * doc/posix-functions/aio_read.texi: Likewise.
1594         * doc/posix-functions/aio_return.texi: Likewise.
1595         * doc/posix-functions/aio_suspend.texi: Likewise.
1596         * doc/posix-functions/aio_write.texi: Likewise.
1597         * doc/posix-functions/fgetpos.texi: Likewise.
1598         * doc/posix-functions/fopen.texi: Likewise.
1599         * doc/posix-functions/freopen.texi: Likewise.
1600         * doc/posix-functions/fsetpos.texi: Likewise.
1601         * doc/posix-functions/fstatvfs.texi: Likewise.
1602         * doc/posix-functions/ftruncate.texi: Likewise.
1603         * doc/posix-functions/ftw.texi: Likewise.
1604         * doc/posix-functions/getrlimit.texi: Likewise.
1605         * doc/posix-functions/glob.texi: Likewise.
1606         * doc/posix-functions/lio_listio.texi: Likewise.
1607         * doc/posix-functions/lockf.texi: Likewise.
1608         * doc/posix-functions/mkstemp.texi: Likewise.
1609         * doc/posix-functions/mmap.texi: Likewise.
1610         * doc/posix-functions/nftw.texi: Likewise.
1611         * doc/posix-functions/openat.texi: Likewise.
1612         * doc/posix-functions/opendir.texi: Likewise.
1613         * doc/posix-functions/posix_fadvise.texi: Likewise.
1614         * doc/posix-functions/posix_fallocate.texi: Likewise.
1615         * doc/posix-functions/pread.texi: Likewise.
1616         * doc/posix-functions/pwrite.texi: Likewise.
1617         * doc/posix-functions/readdir.texi: Likewise.
1618         * doc/posix-functions/readdir_r.texi: Likewise.
1619         * doc/posix-functions/rewinddir.texi: Likewise.
1620         * doc/posix-functions/scandir.texi: Likewise.
1621         * doc/posix-functions/seekdir.texi: Likewise.
1622         * doc/posix-functions/setrlimit.texi: Likewise.
1623         * doc/posix-functions/statvfs.texi: Likewise.
1624         * doc/posix-functions/telldir.texi: Likewise.
1625         * doc/posix-functions/tmpfile.texi: Likewise.
1626         * doc/posix-functions/truncate.texi: Likewise.
1627         * doc/glibc-functions/fallocate.texi: Likewise.
1628         * doc/glibc-functions/fstatfs.texi: Likewise.
1629         * doc/glibc-functions/fts_children.texi: Likewise.
1630         * doc/glibc-functions/fts_read.texi: Likewise.
1631         * doc/glibc-functions/getdirentries.texi: Likewise.
1632         * doc/glibc-functions/mkostemp.texi: Likewise.
1633         * doc/glibc-functions/mkostemps.texi: Likewise.
1634         * doc/glibc-functions/mkstemps.texi: Likewise.
1635         * doc/glibc-functions/preadv.texi: Likewise.
1636         * doc/glibc-functions/pwritev.texi: Likewise.
1637         * doc/glibc-functions/sendfile.texi: Likewise.
1638         * doc/glibc-functions/statfs.texi: Likewise.
1639
1640 2011-07-24  Bruno Haible  <bruno@clisp.org>
1641
1642         doc: Fix typo.
1643         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
1644
1645 2011-07-24  Bruno Haible  <bruno@clisp.org>
1646
1647         doc: Mention fsusage.
1648         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
1649
1650 2011-07-24  Bruno Haible  <bruno@clisp.org>
1651
1652         doc: Mention new glibc headers and functions.
1653         * doc/glibc-headers/gshadow.texi: New file.
1654         * doc/glibc-functions/endsgent.texi: New file.
1655         * doc/glibc-functions/fgetsgent.texi: New file.
1656         * doc/glibc-functions/fgetsgent_r.texi: New file.
1657         * doc/glibc-functions/getsgent.texi: New file.
1658         * doc/glibc-functions/getsgent_r.texi: New file.
1659         * doc/glibc-functions/getsgnam.texi: New file.
1660         * doc/glibc-functions/getsgnam_r.texi: New file.
1661         * doc/glibc-functions/putsgent.texi: New file.
1662         * doc/glibc-functions/setsgent.texi: New file.
1663         * doc/glibc-functions/sgetsgent.texi: New file.
1664         * doc/glibc-functions/sgetsgent_r.texi: New file.
1665         * doc/glibc-functions/malloc_info.texi: New file.
1666         * doc/glibc-functions/preadv.texi: New file.
1667         * doc/glibc-functions/pwritev.texi: New file.
1668         * doc/glibc-functions/register_printf_modifier.texi: New file.
1669         * doc/glibc-functions/register_printf_specifier.texi: New file.
1670         * doc/glibc-functions/register_printf_type.texi: New file.
1671         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
1672         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
1673         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
1674         * doc/glibc-functions/pthread_getname_np.texi: New file.
1675         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
1676         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
1677         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
1678         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
1679         * doc/glibc-functions/pthread_setname_np.texi: New file.
1680         * doc/glibc-functions/pthread_sigqueue.texi: New file.
1681         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
1682         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
1683         * doc/glibc-functions/qsort_r.texi: New file.
1684         * doc/glibc-functions/quick_exit.texi: New file.
1685         * doc/glibc-functions/syncfs.texi: New file.
1686         * doc/gnulib.texi: Include them.
1687         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
1688         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
1689         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
1690         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
1691         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
1692         * doc/glibc-functions/execvpe.texi: Likewise.
1693
1694 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1695
1696         ftell: don't include <unistd.h>
1697         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
1698         guaranteed to define off_t, and the ftell module depends on the
1699         stdio module.
1700
1701         ftell: do not assume wraparound signed arithmetic
1702         * lib/ftell.c: Include <limits.h>.
1703         (ftell): Don't assume wraparound signed arithmetic.
1704
1705 2011-07-24  Bruno Haible  <bruno@clisp.org>
1706
1707         close: No longer depend on module 'fclose'.
1708         * modules/close (Depends-on): Remove fclose.
1709         * NEWS: Mention the change.
1710         Suggested by Sam Steingold <sds@gnu.org>.
1711
1712 2011-07-24  Bruno Haible  <bruno@clisp.org>
1713
1714         fsusage: Enable large volume support on AIX >= 5.2.
1715         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
1716         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
1717         instead of STAT_STATVFS.
1718         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
1719
1720         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
1721         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
1722         f_blocks field only on MacOS X.
1723
1724         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
1725         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
1726         * modules/fsusage (Depends-on): Add largefile.
1727
1728 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1729
1730         * README: Modernize discussion of signed integers.
1731         Assuming overflow wraparound is no longer safe.
1732         Mention ones' complement and signed magnitude.
1733
1734 2011-07-22  Bruno Haible  <bruno@clisp.org>
1735
1736         select tests, pselect tests: Refactor.
1737         * tests/test-select.h: New file, extracted from tests/test-select.c.
1738         (select_fn): New type.
1739         (test, do_select, do_select_nowait, do_select_wait, test_tty,
1740         test_connect_first, test_accept_first, test_pair, test_socket_pair,
1741         test_pipe): Add my_select argument.
1742         (test_function): Renamed from main. Add my_select argument.
1743         * tests/test-select.c: Move most code to tests/test-select.h. Include
1744         test-select.h.
1745         * modules/select-tests (Files): Add tests/test-select.h.
1746         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
1747         (my_select, main): New functions.
1748         * modules/pselect-tests (Files): Add tests/test-select.h,
1749         tests/macros.h, tests/signature.h.
1750         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
1751         (configure.ac): Check for <sys/wait.h>.
1752
1753 2011-07-22  Bruno Haible  <bruno@clisp.org>
1754
1755         sys_select tests: Check the signature of FD_*.
1756         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
1757         signature tests from here...
1758         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
1759         here.
1760         * modules/sys_select-tests (Files): Add tests/signature.h.
1761
1762 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
1763
1764         largefile: new module, replacing large-inode
1765         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
1766         * MODULES.html.sh: Add largefile, remove large-inode.
1767         * modules/largefile, m4/largefile.m4: New files.
1768         * modules/large-inode, m4/large-inode.m4: Remove.
1769
1770         fsusage: port to MacOS X 10.7 with 4 TiB file systems
1771         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
1772         implementations that use only 32 bits to count blocks.
1773         On typical hosts with 1024-byte blocks, this fails with file
1774         systems as small as 4 TiB.  Problem reported by Herb Wartens
1775         <http://debbugs.gnu.org/9140> and this should also fix a similar
1776         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
1777
1778         large-inode: New module
1779         * MODULES.html.sh: Add it.
1780         * modules/large-inode, m4/large-inode.m4: New files.
1781
1782         extensions: Enable extensions on MacOS X 10.5 and later.
1783         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
1784
1785 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
1786
1787         file-has-acl: use acl_extended_file_nofollow if available
1788         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
1789         (acl_extended_file): New macro.
1790         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
1791         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
1792
1793 2011-07-21  Bruno Haible  <bruno@clisp.org>
1794
1795         Declare system functions in a way that works with C++.
1796         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
1797         declare fdopendir as extern "C".
1798         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
1799         declare frexpl as extern "C".
1800         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
1801         declare gai_strerror as extern "C".
1802         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
1803         programs, declare gai_strerror as extern "C".
1804         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
1805         declare getlogin_r as extern "C".
1806         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
1807         as extern "C".
1808         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
1809         declare ldexpl as extern "C".
1810         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
1811         as extern "C".
1812         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
1813         program, declare getmntinfo as extern "C".
1814         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
1815         stpncpy as extern "C".
1816         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
1817         program, declare __xpg_strerror_r as extern "C".
1818         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
1819         strndup as extern "C".
1820         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
1821         declare memset and bzero as extern "C".
1822         Reported by Sam Steingold <sds@gnu.org>.
1823
1824 2011-07-12  Jim Meyering  <meyering@redhat.com>
1825
1826         maint.mk: prohibit inclusion of "verify.h" without use
1827         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
1828
1829 2011-07-19  Pádraig Brady  <P@draigBrady.com>
1830
1831         timer-time: A new module to check for timer_settime()
1832         * m4/timer_time.m4: Check for the posix function.
1833         * modules/timer-time: Add the new module.
1834         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
1835         Mention it.
1836
1837 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
1838             Bruno Haible  <bruno@clisp.org>
1839
1840         pthread_sigmask: assume POSIX threads if --avoid=threadlib
1841         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
1842         not defined, assume POSIX threads and look for pthread_sigmask in
1843         $LIBS, without changing $CPPFLAGS.
1844
1845 2011-07-19  Bruno Haible  <bruno@clisp.org>
1846
1847         strstr: Update cross-compilation guess.
1848         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
1849         CPUs, guess no, in view of glibc
1850         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
1851         Suggested by Eric Blake. Reported by Reuben Thomas.
1852
1853 2011-07-19  Pádraig Brady  <P@draigBrady.com>
1854
1855         getopt-gnu: suppress core dumps from detection code
1856         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
1857         to suppress core dumps that may well occur on glibc systems.
1858         * modules/getopt-gnu: Depend on nocrash.
1859
1860 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
1861
1862         pthread_sigmask: ensure usleep is declared
1863         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
1864         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
1865
1866 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1867
1868         doc: Document NonStop portability issues.
1869         * doc/posix-functions/sigaction.texi (sigaction):
1870         * doc/posix-headers/signal.texi (signal.h):
1871         Document NonStop.  See Joachim Schmitz in
1872         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
1873
1874 2011-07-15  Bruno Haible  <bruno@clisp.org>
1875
1876         ffsl, ffsll: Avoid unportable behaviour.
1877         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
1878
1879 2011-07-15  Bruno Haible  <bruno@clisp.org>
1880
1881         ffs: More tests.
1882         * tests/test-ffs.c (NBITS): New macro.
1883         (main): Add more tests.
1884         * tests/test-ffsl.c (NBITS): New macro.
1885         (main): Add more tests.
1886         * tests/test-ffsll.c (NBITS): New macro.
1887         (main): Add more tests.
1888
1889 2011-07-15  Eric Blake  <eblake@redhat.com>
1890
1891         ffsl, ffsll: new modules
1892         * modules/ffsl: New file.
1893         * modules/ffsll: Likewise.
1894         * m4/ffsl.m4: Likewise.
1895         * m4/ffsll.m4: Likewise.
1896         * lib/ffsl.c: Likewise.
1897         * lib/ffsl.h: Likewise.
1898         * lib/ffsll.c: Likewise.
1899         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
1900         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
1901         * modules/string (Makefile.am): Substitute witnesses.
1902         * lib/strings.in.h (ffsl, ffsll): Declare.
1903         * modules/ffsl-tests: New test file.
1904         * modules/ffsll-tests: Likewise.
1905         * tests/test-ffsl.c: Likewise.
1906         * tests/test-ffsll.c: Likewise.
1907         * MODULES.html.sh (Integer arithmetic functions): Mention it.
1908         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
1909         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
1910
1911         ffs: fix m4 prerequisite
1912         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
1913
1914         ffs: avoid undefined behavior
1915         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
1916         * tests/test-ffs.c (naive, main): Avoid signed shifts.
1917         Reported by Bruno Haible.
1918
1919 2011-07-12  Bruno Haible  <bruno@clisp.org>
1920
1921         pthread_sigmask: Rely on module 'threadlib'.
1922         * modules/pthread_sigmask (Depends-on): Add threadlib.
1923         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
1924         is defined.
1925
1926 2011-07-12  Bruno Haible  <bruno@clisp.org>
1927
1928         regex: Depend on module 'strcase'.
1929         * modules/regex (Depends-on): Add strcase, for strcasecmp().
1930
1931 2011-07-12  Jim Meyering  <meyering@redhat.com>
1932
1933         warn-on-use: fix typo in file name
1934         * modules/snippet/warn-on-use (Files): Correct file name:
1935         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
1936
1937 2011-07-12  Bruno Haible  <bruno@clisp.org>
1938
1939         strings: Document module.
1940         * doc/posix-headers/strings.texi: Mention module 'strings'.
1941
1942 2011-07-12  Bruno Haible  <bruno@clisp.org>
1943
1944         Rename module '_Noreturn' to 'snippet/_Noreturn'.
1945         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
1946         (Files, Makefile.am): Update.
1947         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
1948         * modules/stdlib (Depends-on): Update.
1949
1950 2011-07-12  Bruno Haible  <bruno@clisp.org>
1951
1952         * NEWS: Mention the changes.
1953
1954         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
1955         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
1956         (Files, Makefile.am): Update.
1957         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
1958         * modules/arpa_inet (Depends-on): Update.
1959         * modules/ctype (Depends-on): Update.
1960         * modules/dirent (Depends-on): Update.
1961         * modules/fcntl-h (Depends-on): Update.
1962         * modules/glob (Depends-on): Update.
1963         * modules/iconv-h (Depends-on): Update.
1964         * modules/inttypes-incomplete (Depends-on): Update.
1965         * modules/langinfo (Depends-on): Update.
1966         * modules/locale (Depends-on): Update.
1967         * modules/math (Depends-on): Update.
1968         * modules/netdb (Depends-on): Update.
1969         * modules/poll-h (Depends-on): Update.
1970         * modules/pty (Depends-on): Update.
1971         * modules/search (Depends-on): Update.
1972         * modules/signal (Depends-on): Update.
1973         * modules/spawn (Depends-on): Update.
1974         * modules/stdio (Depends-on): Update.
1975         * modules/stdlib (Depends-on): Update.
1976         * modules/string (Depends-on): Update.
1977         * modules/strings (Depends-on): Update.
1978         * modules/sys_file (Depends-on): Update.
1979         * modules/sys_ioctl (Depends-on): Update.
1980         * modules/sys_select (Depends-on): Update.
1981         * modules/sys_socket (Depends-on): Update.
1982         * modules/sys_stat (Depends-on): Update.
1983         * modules/sys_time (Depends-on): Update.
1984         * modules/sys_times (Depends-on): Update.
1985         * modules/sys_utsname (Depends-on): Update.
1986         * modules/sys_wait (Depends-on): Update.
1987         * modules/termios (Depends-on): Update.
1988         * modules/time (Depends-on): Update.
1989         * modules/unistd (Depends-on): Update.
1990         * modules/wchar (Depends-on): Update.
1991         * modules/wctype-h (Depends-on): Update.
1992         * MODULES.html.sh (Support for building libraries and executables):
1993         Update.
1994
1995         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
1996         * modules/snippet/unused-parameter: Renamed from
1997         modules/unused-parameter.
1998         (Files, Makefile.am): Update.
1999         * build-aux/snippet/unused-parameter.h: Renamed from
2000         build-aux/unused-parameter.h.
2001         * modules/selinux-h (Depends-on): Update.
2002         * modules/unistr/base (Depends-on): Update.
2003         * MODULES.html.sh (Core language properties): Update.
2004
2005         Rename module 'link-warning' to 'snippet/link-warning'.
2006         * modules/snippet/link-warning: Renamed from modules/link-warning.
2007         (Files, Makefile.am): Update.
2008         * build-aux/snippet/link-warning.h: Renamed from
2009         build-aux/link-warning.h.
2010         * MODULES.html.sh (Support for building libraries and executables):
2011         Update.
2012
2013         Rename module 'c++defs' to 'snippet/c++defs'.
2014         * modules/snippet/c++defs: Renamed from modules/c++defs.
2015         (Files, Makefile.am): Update.
2016         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
2017         * modules/arpa_inet (Depends-on): Update.
2018         * modules/ctype (Depends-on): Update.
2019         * modules/dirent (Depends-on): Update.
2020         * modules/fcntl-h (Depends-on): Update.
2021         * modules/glob (Depends-on): Update.
2022         * modules/iconv-h (Depends-on): Update.
2023         * modules/langinfo (Depends-on): Update.
2024         * modules/locale (Depends-on): Update.
2025         * modules/math (Depends-on): Update.
2026         * modules/netdb (Depends-on): Update.
2027         * modules/poll-h (Depends-on): Update.
2028         * modules/pty (Depends-on): Update.
2029         * modules/search (Depends-on): Update.
2030         * modules/signal (Depends-on): Update.
2031         * modules/spawn (Depends-on): Update.
2032         * modules/stdio (Depends-on): Update.
2033         * modules/stdlib (Depends-on): Update.
2034         * modules/string (Depends-on): Update.
2035         * modules/strings (Depends-on): Update.
2036         * modules/sys_ioctl (Depends-on): Update.
2037         * modules/sys_select (Depends-on): Update.
2038         * modules/sys_socket (Depends-on): Update.
2039         * modules/sys_stat (Depends-on): Update.
2040         * modules/sys_time (Depends-on): Update.
2041         * modules/sys_wait (Depends-on): Update.
2042         * modules/termios (Depends-on): Update.
2043         * modules/time (Depends-on): Update.
2044         * modules/unistd (Depends-on): Update.
2045         * modules/wchar (Depends-on): Update.
2046         * modules/wctype-h (Depends-on): Update.
2047
2048         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
2049         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
2050         (Files, Makefile.am): Update.
2051         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
2052         * modules/argv-iter (Depends-on): Update.
2053         * modules/arpa_inet (Depends-on): Update.
2054         * modules/dirent (Depends-on): Update.
2055         * modules/fcntl-h (Depends-on): Update.
2056         * modules/fnmatch (Depends-on): Update.
2057         * modules/getopt-posix (Depends-on): Update.
2058         * modules/glob (Depends-on): Update.
2059         * modules/iconv-h (Depends-on): Update.
2060         * modules/inttypes-incomplete (Depends-on): Update.
2061         * modules/locale (Depends-on): Update.
2062         * modules/math (Depends-on): Update.
2063         * modules/netdb (Depends-on): Update.
2064         * modules/search (Depends-on): Update.
2065         * modules/signal (Depends-on): Update.
2066         * modules/spawn (Depends-on): Update.
2067         * modules/stdio (Depends-on): Update.
2068         * modules/stdlib (Depends-on): Update.
2069         * modules/string (Depends-on): Update.
2070         * modules/strings (Depends-on): Update.
2071         * modules/sys_socket (Depends-on): Update.
2072         * modules/sys_stat (Depends-on): Update.
2073         * modules/sys_time (Depends-on): Update.
2074         * modules/sys_times (Depends-on): Update.
2075         * modules/sys_utsname (Depends-on): Update.
2076         * modules/time (Depends-on): Update.
2077         * modules/unistd (Depends-on): Update.
2078         * modules/wchar (Depends-on): Update.
2079         * MODULES.html.sh (Support for building libraries and executables):
2080         Update.
2081
2082 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
2083
2084         Improvements on _Noreturn and related modules.
2085
2086         modules/_Exit-tests: test _Noreturn too
2087         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
2088         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
2089         (main): Use them.
2090
2091         stdnoreturn, stdnoreturn-tests: remove modules
2092         They're not needed here and a bit premature for use elsewhere.  See
2093         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
2094         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
2095         * tests/test-stdnoreturn.c: Remove files.
2096         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
2097         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
2098         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
2099         and using noreturn.
2100         * modules/openat, modules/sigpipe-die, modules/xalloc:
2101         * modules/xmemdup0, modules/xstrtol:
2102         Remove dependency on stdnoreturn.
2103
2104         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
2105         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
2106         Reparenthesize to avoid GCC warning.
2107         Support Microsoft's syntax.
2108         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
2109
2110         _Noreturn-tests: remove module
2111         * modules/_Noreturn-tests: Remove.
2112         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
2113         * tests/test-_Noreturn.c: Remove.
2114         * tests/test-stdnoreturn.c: Merge from the old
2115         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
2116
2117 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
2118
2119         _Noreturn, stdnoreturn, and related modules.
2120
2121         * top/maint.mk: Adjust to new noreturn support.
2122         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
2123         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
2124
2125         xalloc: use stdnoreturn.h
2126         * lib/xalloc.h: Include <stdnoreturn.h>.
2127         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2128         * modules/xalloc (Depends-on): Add stdnoreturn.
2129
2130         xstrtol: use stdnoreturn.h
2131         * lib/xstrtol.h: Include <stdnoreturn.h>.
2132         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2133         * modules/xstrtol (Depends-on): Add stdnoreturn.
2134
2135         xmemdup0: use stdnoreturn.h
2136         * lib/xmemdup0.h: Include <stdnoreturn.h>.
2137         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2138         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
2139
2140         sigpipe-die: use stdnoreturn.h
2141         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
2142         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2143         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
2144
2145         openat: use stdnoreturn.h
2146         * lib/openat.h: Include <stdnoreturn.h>.
2147         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2148         * modules/openat (Depends-on): Add stdnoreturn.
2149
2150         * lib/openat-die.c (openat_save_fail): Modernize comment.
2151
2152         * lib/xalloc-die.c (xalloc_die): Modernize comment.
2153
2154         * lib/glthread/thread.h: Modernize comment.
2155
2156         obstack: use _Noreturn
2157         * lib/obstack.c (__attribute__): Remove macro.
2158         (print_and_abort): Use _Noreturn.
2159
2160         c-stack: use _Noreturn
2161         * lib/c-stack.c (die, overflow_handler, segv_handler):
2162         Use _Noreturn rather than __attribute__((noreturn)).
2163
2164         argmatch-tests, exclude_tests: use _Noreturn
2165         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
2166         Remove.
2167         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
2168
2169         stdlib: use _Noreturn
2170         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
2171         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
2172         * modules/stdlib (Depends-on): Add _Noreturn.
2173         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
2174
2175         stdnoreturn-tests: new module
2176         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
2177
2178         stdnoreturn: new module
2179         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
2180         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
2181
2182         _Noreturn-tests: new module
2183         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
2184
2185         _Noreturn: new module
2186         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
2187         New section, mentioning it.
2188         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
2189
2190         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
2191
2192 2011-07-11  Eric Blake  <eblake@redhat.com>
2193
2194         ffs: new module
2195         * modules/ffs: New file.
2196         * m4/ffs.m4: Likewise.
2197         * lib/ffs.c: Likewise.
2198         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
2199         * modules/strings (Makefile.am): Substitute witness.
2200         (Depends-on): Add c++defs.
2201         * lib/strings.in.h (ffs): Declare.
2202         * modules/ffs-tests: New test file.
2203         * tests/test-ffs.c: Test new module.
2204         * MODULES.html.sh (Integer arithmetic functions): Mention it.
2205         * doc/posix-functions/ffs.texi (ffs): Likewise.
2206
2207         regex: avoid compiler warning
2208         * lib/regex.c (includes): Include <strings.h>, for use of
2209         strcasecmp in regcomp.c.
2210         Reported by Joachim Schmitz.
2211
2212 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
2213
2214         stdint: respect system's intmax_t if INTMAX_MAX
2215         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
2216         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
2217         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
2218         long but int64_t is long long, and where we will clash with the
2219         system intmax_t if we override it.  See
2220         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
2221         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
2222         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
2223         similarly for UINTMAX_C.
2224
2225 2011-07-08  Bruno Haible  <bruno@clisp.org>
2226
2227         pthread_sigmask tests: Avoid a compiler warning.
2228         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
2229         non-zero.
2230
2231         sigprocmask tests: A better way to avoid a compiler warning.
2232         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
2233         (main): Complain if system() returns non-zero.
2234         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
2235
2236 2011-07-08  Bruno Haible  <bruno@clisp.org>
2237
2238         pthread_sigmask: Work around IRIX bug.
2239         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
2240         bug.
2241         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
2242         there may be unblocked pending signals.
2243         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
2244
2245 2011-07-08  Bruno Haible  <bruno@clisp.org>
2246
2247         pthread_sigmask: Work around Cygwin bug.
2248         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
2249         bug.
2250         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
2251         the system's pthread_sigmask function.
2252         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
2253
2254 2011-07-08  Bruno Haible  <bruno@clisp.org>
2255
2256         pthread_sigmask: Work around bug in single-threaded implementation.
2257         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
2258         FreeBSD, HP-UX, Solaris bug.
2259         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
2260         * lib/pthread_sigmask.c: Include <stddef.h>.
2261         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
2262         the system's pthread_sigmask function.
2263         * modules/pthread_sigmask (configure.ac): Invoke
2264         gl_PREREQ_PTHREAD_SIGMASK.
2265         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
2266         HP-UX, Solaris.
2267
2268 2011-07-08  Eric Blake  <eblake@redhat.com>
2269
2270         test-sigprocmask: avoid compiler warning
2271         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
2272         * tests/test-sigprocmask.c (main): Use it to silence warning.
2273         Reported by Jim Meyering.
2274
2275         test-snprintf: avoid compiler warning
2276         * tests/test-snprintf.c (main): Avoid shadowed declaration.
2277         * tests/test-vsnprintf.c (main): Likewise.
2278         Reported by Jim Meyering.
2279
2280 2011-07-08  Bruno Haible  <bruno@clisp.org>
2281
2282         Tests for module 'pthread_sigmask'.
2283         * modules/pthread_sigmask-tests: New file.
2284         * tests/test-pthread_sigmask1.c: New file, based on
2285         tests/test-sigprocmask.c.
2286         * tests/test-pthread_sigmask2.c: New file.
2287
2288 2011-07-08  Jim Meyering  <meyering@redhat.com>
2289
2290         test-getopt.h: avoid warning about an unused variable
2291         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
2292
2293 2011-07-07  Jim Meyering  <meyering@redhat.com>
2294
2295         maint: reduce list of files exempt from sc_prohibit_leading_TABs
2296         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
2297         now that it no longer contains leading TABs.
2298         Remove unused "url=FIXME" statement.
2299
2300 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
2301
2302         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
2303         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
2304         When gl_THREADLIB is not in use, assume that the POSIX sematics
2305         are desired.  This is better for Emacs, which uses POSIX semantics
2306         on GNUish and/or POSIXish platforms, and does not use threads at
2307         all otherwise.
2308
2309         pthread_sigmask: fix typo when testing for libraries
2310         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
2311         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
2312
2313 2011-07-08  Eric Blake  <eblake@redhat.com>
2314
2315         fts: introduce FTS_NOATIME
2316         * lib/fts_.h (FTS_NOATIME): New bit flag.
2317         (FTS_OPTIONMASK): Adjust.
2318         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
2319         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
2320
2321 2011-07-08  Bruno Haible  <bruno@clisp.org>
2322
2323         Tests for module 'thread'.
2324         * modules/thread-tests: New file.
2325         * tests/test-thread_self.c: New file.
2326         * tests/test-thread_create.cc: New file.
2327
2328 2011-07-08  Bruno Haible  <bruno@clisp.org>
2329
2330         thread: Avoid gcc warnings when using gl_thread_self().
2331         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
2332         'void *'.
2333         (gl_thread_self_pointer): Update.
2334
2335 2011-07-07  Bruno Haible  <bruno@clisp.org>
2336
2337         signal-c++-tests: Check declaration of pthread_sigmask.
2338         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
2339         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
2340         $(LIB_PTHREAD_SIGMASK).
2341
2342 2011-07-07  Bruno Haible  <bruno@clisp.org>
2343
2344         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
2345         * lib/signal.in.h (pthread_sigmask): Override if
2346         REPLACE_PTHREAD_SIGMASK is 1.
2347         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2348         REPLACE_PTHREAD_SIGMASK.
2349         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
2350         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
2351         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
2352         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
2353         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
2354
2355 2011-07-07  Bruno Haible  <bruno@clisp.org>
2356
2357         pthread_sigmask: Ensure declaration in <signal.h>.
2358         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
2359         include <pthread.h>.
2360         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
2361         problem.
2362
2363 2011-07-07  Bruno Haible  <bruno@clisp.org>
2364
2365         pthread_sigmask: Document the module.
2366         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
2367
2368 2011-07-07  Bruno Haible  <bruno@clisp.org>
2369
2370         pthread_sigmask: Follow gnulib conventions.
2371         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
2372         gl_PTHREAD_SIGMASK.
2373         * modules/pthread_sigmask (configure.ac): Update.
2374
2375 2011-07-07  Bruno Haible  <bruno@clisp.org>
2376
2377         pthread_sigmask: Make declaration C++ safe.
2378         * lib/signal.in.h: In two special conditions, just do an #include_next.
2379         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
2380         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
2381         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2382         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
2383         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
2384         not REPLACE_PTHREAD_MASK.
2385         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
2386         not REPLACE_PTHREAD_MASK.
2387         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
2388
2389 2011-07-07  Bruno Haible  <bruno@clisp.org>
2390
2391         pthread_sigmask: Fix return value.
2392         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
2393         * lib/pthread_sigmask.c: New file.
2394         * modules/pthread_sigmask (Files): Add it.
2395         (configure.ac): Invoke AC_LIBOBJ.
2396
2397 2011-07-07  Eric Blake  <eblake@redhat.com>
2398
2399         getopt: more portable argv creation
2400         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
2401         const, use char arrays rather than strings.
2402         Suggested by Paul Eggert.
2403
2404 2011-07-07  Bruno Haible  <bruno@clisp.org>
2405
2406         Tests for module 'sigprocmask'.
2407         * modules/sigprocmask-tests: New file.
2408         * tests/test-sigprocmask.c: New file.
2409
2410 2011-07-07  Bruno Haible  <bruno@clisp.org>
2411
2412         float tests: Tweak.
2413         * tests/test-float.c (main): Tweak skip message.
2414
2415 2011-07-07  Eric Blake  <eblake@redhat.com>
2416
2417         getopt: avoid compiler warning during configure
2418         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
2419         assigning string literals to non-const pointer.
2420
2421         getopt-gnu: avoid crash in glibc getopt
2422         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
2423         * tests/test-getopt.h (test_getopt): Enhance test.
2424         * tests/test-getopt_long.h (test_getopt_long): Likewise.
2425         * doc/posix-functions/getopt.texi (getopt): Document it.
2426         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
2427         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2428         Likewise.
2429
2430 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
2431
2432         getopt: handle W; without long options in getopt [BZ #12922]
2433         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
2434         but no long options are defined, just return 'W'.
2435
2436 2011-07-07  Bruno Haible  <bruno@clisp.org>
2437
2438         Avoid literal tabs.
2439         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
2440         variable containing a tab instead of a literal tab.
2441         Reported by Jim Meyering.
2442
2443 2011-07-07  Bruno Haible  <bruno@clisp.org>
2444
2445         Comments.
2446         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
2447
2448 2011-07-06  Bruno Haible  <bruno@clisp.org>
2449
2450         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
2451         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
2452         <winsock2.h>.
2453         (rpl_fd_isset, FD_ISSET): New definitions, copied from
2454         lib/sys_socket.in.h.
2455         (close, gethostname): Hide declarations from <winsock2.h>.
2456         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
2457         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
2458         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
2459         (select): Don't override if gnulib's <sys/select.h> was already
2460         included.
2461         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
2462         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
2463         setsockopt, shutdown, select): Tweak indentation.
2464
2465 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2466
2467         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
2468         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
2469         in an application that does not use the sys_select module.
2470
2471 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
2472
2473         poll: do not return 0 on timeout=-1
2474         * lib/poll.c: Loop with yield if no events occured
2475
2476 2011-07-06  Eric Blake  <eblake@redhat.com>
2477
2478         pthread_sigmask: always replace when not using pthread
2479         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
2480         replacement when using some threading other than pthread.  Fix
2481         logic bug.
2482
2483 2011-07-06  Bruno Haible  <bruno@clisp.org>
2484
2485         Comments.
2486         * m4/printf.m4: Update comments about mingw.
2487
2488 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2489
2490         sys_select: define sigset_t more portably
2491         * lib/sys_select.in.h: Always include <sys/types.h>, since
2492         we now need sigset_t and mingw defines it there.
2493         Include <signal.h> before split inclusion guard, to avoid
2494         mishaps on Solaris, whose <signal.h> eventually includes us.
2495         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
2496         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
2497         which come from ...
2498         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
2499         gl_CHECK_TYPE_SIGSET_T.
2500         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
2501         does the real work.
2502         * modules/sys_select (Depends-on): Add 'signal'.
2503
2504         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
2505         Suggested by Bruno Haible.
2506
2507         pselect: Use pthread_sigmask, not sigprocmask.
2508         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
2509         multithreaded apps better than sigprocmask does.
2510         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
2511         sigprocmask directly.
2512
2513 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2514
2515         * lib/pselect.c (pselect): Use plain name, without "rpl_".
2516         Don't #undef,  since we don't need any underlying pselect.
2517         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
2518         (Depends-on): Add select.
2519         (Link): Add $(LIBSOCKET).
2520         These changes suggested by Bruno Haible.
2521
2522         pselect: document better
2523         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2524         * doc/posix-functions/pselect.texi (pselect): Document new module.
2525
2526         pthread_sigmask: new module
2527         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2528         * doc/posix-functions/pthread_sigmask.texi: Document new module.
2529         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
2530         This is done only as a macro; I don't know how well that'll
2531         work for C++.  Move <sys/types.h> include before the include_next,
2532         to avoid mishap on Solaris.
2533         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
2534         * modules/signal (Makefile.am): Substitute the check's results.
2535         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
2536
2537         test-pselect: new module
2538         * modules/pselect-tests, tests/test-pselect.c: New files.
2539         * tests/test-select.c, tests/test-sys_select-c++.cc:
2540         If TEST_PSELECT is defined, test pselect instead of testing select.
2541
2542         * tests/test-sys_select.c (sigset_t): Test for it, too.
2543         Suggested by Bruno Haible.
2544
2545 2011-07-05  Eric Blake  <eblake@redhat.com>
2546
2547         snprintf: guarantee %1$d, for libintl
2548         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
2549         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
2550         * doc/posix-functions/snprintf.texi (snprintf): Update.
2551         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
2552         * tests/test-snprintf.c (main): Enhance test.
2553         * tests/test-vsnprintf.c (main): Likewise.
2554
2555 2011-07-05  Jim Meyering  <meyering@redhat.com>
2556
2557         maint: exempt stdio-read.c and stdio-write.c from the cppi check
2558         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
2559         per Bruno's request, to accommodate this idiom (no space after "#")
2560         even when the function is inside an #if block:
2561         char *
2562         gets (char *s)
2563         #undef gets
2564         {
2565           ...
2566         }
2567
2568 2011-07-04  Jim Meyering  <meyering@redhat.com>
2569
2570         maint: indent with spaces, not TABs, and add a rule to check this
2571         * tests/test-userspec.c: Indent with spaces, not TABs.
2572         * tests/test-argp.c: Likewise.
2573         * tests/test-c-stack2.sh: Likewise.
2574         * tests/test-parse-duration.sh: Likewise
2575         * m4/strtod.m4: Likewise.
2576         * m4/alloca.m4: Likewise.
2577         * m4/pselect.m4: Likewise.
2578         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
2579
2580 2011-07-03  Jim Meyering  <meyering@redhat.com>
2581
2582         maint.mk: correct omissions in prohibit_argmatch_without_use check
2583         This rule would mistakenly report that argmatch.h is included without
2584         use even when both the argmatch and invalid_arg macro were used.
2585         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
2586         of argmatch and invalid_arg.
2587
2588 2011-07-03  Bruno Haible  <bruno@clisp.org>
2589
2590         Comments about EINTR.
2591         * lib/safe-read.h: Explain the purpose of this module.
2592         * lib/safe-write.h: Likewise.
2593         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
2594         module.
2595         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
2596         module.
2597         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2598
2599 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
2600
2601         xnanosleep: Rewrite to use new dtotimespec module.
2602         It has the conversion code that used to be in xnanosleep.
2603         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
2604         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
2605         (TIME_T_MAX): Remove.
2606         (xnanosleep): Rewrite in terms of dtotimespec.
2607         * modules/xnanosleep (Depends-on): Add dtotimespec.
2608         Remove intprops, stdbool.
2609
2610         timespec-add, timespec-sub: new modules
2611         * lib/timespec.h (timespec_add, timespec_sub): New decls.
2612         * lib/timespec-add.c, lib/timespec-sub.c:
2613         * modules/timespec-add, modules/timespec-sub: New files.
2614
2615         dtotimespec: new module
2616         * lib/timespec.h (dtotimespec): New decl.
2617         * lib/dtotimespec.c, modules/dtotimespec: New files.
2618
2619         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
2620
2621         pselect: new module
2622         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
2623         (pselect): New decls.
2624         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
2625         since the standard pselect decl uses 'restrict'.
2626         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
2627         HAVE_PSELECT, REPLACE_PSELECT.
2628         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
2629         HAVE_PSELECT, REPLACE_PSELECT.
2630         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
2631
2632         sys_select: don't depend on sys_socket
2633         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
2634         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
2635         This fix works on GNU and GNU-like platforms, but has not been tested
2636         on native Windows.
2637         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
2638         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
2639         gl_HEADER_SYS_SOCKET.
2640         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
2641         gl_PREREQ_SYS_H_WINSOCK2.
2642
2643 2011-06-29  Eric Blake  <eblake@redhat.com>
2644
2645         pipe2: fix C89 compile problem
2646         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
2647         Reported by Bruno Haible.
2648
2649         pipe, pipe2: don't corrupt fd on error
2650         * lib/pipe.c (pipe): Leave fd unchanged on error.
2651         * lib/pipe2.c (pipe2): Likewise.
2652         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
2653         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
2654
2655 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
2656
2657         mmap-anon: do not use regular expressions inadvertently
2658         * m4/mmap-anon.m4: Remove trailing period from strings sought
2659         in the output.
2660
2661 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
2662
2663         nanosleep: fix integer overflow problem
2664         * lib/nanosleep.c (my_usleep): Don't assume signed integer
2665         arithmetic wraps around on overflow.
2666
2667         nanosleep: simplify carrying
2668         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
2669         first call to the underyling nanosleep, not for the last one.
2670         This doesn't fix any bugs, but it simplifies the computation of
2671         the remaining delay.  Found while auditing integer overflow issues.
2672
2673         dup2: remove test for existence of fcntl
2674         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
2675         "#if HAVE_FCNTL", in the configure-time test program.
2676         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
2677         and therefore speeds up "configure" a bit.  Found while
2678         adding the dup2 module to Emacs.
2679
2680 2011-06-24  Eric Blake  <eblake@redhat.com>
2681
2682         maint.mk: enhance useless header checks
2683         * top/maint.mk (_sc_header_without_use): Check both include
2684         styles.
2685         (sc_prohibit_assert_without_use)
2686         (sc_prohibit_close_stream_without_use)
2687         (sc_prohibit_getopt_without_use)
2688         (sc_prohibit_quotearg_without_use)
2689         (sc_prohibit_quote_without_use)
2690         (sc_prohibit_long_options_without_use)
2691         (sc_prohibit_inttostr_without_use)
2692         (sc_prohibit_ignore_value_without_use)
2693         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
2694         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
2695         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
2696         (sc_prohibit_hash_pjw_without_use)
2697         (sc_prohibit_safe_read_without_use)
2698         (sc_prohibit_argmatch_without_use)
2699         (sc_prohibit_canonicalize_without_use)
2700         (sc_prohibit_root_dev_ino_without_use)
2701         (sc_prohibit_openat_without_use)
2702         (sc_prohibit_c_ctype_without_use)
2703         (sc_prohibit_signal_without_use)
2704         (sc_prohibit_stdio--_without_use)
2705         (sc_prohibit_stdio-safer_without_use)
2706         (sc_prohibit_strings_without_use)
2707         (sc_prohibit_intprops_without_use)
2708         (sc_prohibit_stddef_without_use)
2709         (sc_prohibit_xfreopen_without_use): Update clients.
2710
2711 2011-06-24  Jim Meyering  <meyering@redhat.com>
2712
2713         syntax-check: keep one maint.mk rule in sync with its header
2714         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
2715         of the bug Eric has just fixed, with today's commit 25e4c2ec.
2716         I prefer to avoid temporary files here, so use <(...), but that
2717         is not supported by /bin/sh, so...
2718         (SHELL): Define to /bin/bash.
2719
2720 2011-06-24  Eric Blake  <eblake@redhat.com>
2721
2722         maint.mk: update sc_prohibit_intprops_without_use
2723         * top/maint.mk (_intprops_names): Match recent changes.
2724
2725 2011-06-24  Bruno Haible  <bruno@clisp.org>
2726
2727         strerror-override: No-op tweak.
2728         * lib/strerror-override.h (strerror_override): Reorder conditions,
2729         for consistency with lib/strerror-override.c.
2730
2731 2011-06-23  Eric Blake  <eblake@redhat.com>
2732
2733         maint.mk: test further PATH_MAX issues
2734         * top/maint.mk (sc_prohibit_path_max_array): Rename...
2735         (sc_prohibit_path_max_allocation): ...and also test alloca.
2736         Suggested by Jim Meyering.
2737
2738 2011-06-22  Eric Blake  <eblake@redhat.com>
2739
2740         maint.mk: add syntax-check to avoid char[PATH_MAX]
2741         * top/maint.mk (sc_prohibit_path_max_array): New rule.
2742
2743         stat: be robust to PATH_MAX definition
2744         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
2745         * modules/stat (Depends-on): Add verify.
2746
2747         link: work around IRIX bug
2748         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
2749         * lib/link.c (rpl_link): Work around it.
2750         * tests/test-link.h (test_link): Enhance test.
2751         * doc/posix-functions/link.texi (link): Document the bug.
2752
2753         getopt: silence clang warning
2754         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
2755         dereference.
2756         Reported by Gustavo Martin Domato.
2757
2758 2011-06-22  Jim Meyering  <meyering@redhat.com>
2759
2760         bootstrap: do not insert a blank line into each .gitignore file
2761         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
2762
2763 2011-06-21  Eric Blake  <eblake@redhat.com>
2764
2765         perror: test for output mismatch
2766         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
2767         perror on IRIX.
2768
2769         strerror_r: fix OpenBSD behavior on out-of-range
2770         * lib/strerror_r.c (strerror_r): Always use maximal string.
2771         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
2772
2773         strerror_r: fix OpenBSD behavior on 0
2774         * lib/strerror-override.c (strerror_override): Also override 0
2775         when needed.
2776         * lib/strerror-override.h (strerror_override): Likewise.
2777         * lib/strerror.c (strerror): Simplify, now that 0 override is done
2778         earlier.
2779         * lib/strerror_r.c (strerror_r): Likewise.
2780         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
2781         behavior...
2782         (gl_FUNC_STRERROR_0): ...into new macro.
2783         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
2784         is overridden.
2785         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
2786         * modules/strerror-override (Files): Add strerror.m4.
2787         (configure.ac): Also provide override for 0 when needed.
2788         * doc/posix-functions/strerror.texi (strerror): Document this.
2789         * doc/posix-functions/perror.texi (perror): Likewise.
2790
2791         perror: adjust array size
2792         * modules/perror (Depends-on): Add strerror-override.
2793         * lib/perror.c (perror): Use it to avoid magic number.
2794
2795         strerror-override: reduce size
2796         * lib/strerror-override.c (strerror_override): Use fewer lines.
2797
2798 2011-06-20  Bruno Haible  <bruno@clisp.org>
2799
2800         pathmax: Ensure correct value for PATH_MAX on HP-UX.
2801         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
2802
2803 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
2804
2805         alloca: port to compilers that can optimize like GCC 4.6.0
2806         * lib/alloca.c (find_stack_direction): New signature, taken from
2807         Autoconf git.  This works with GCC 4.6.0.  This code should never
2808         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
2809         be used with other compilers that optimize as well as GCC 4.6.0 does.
2810         (alloca): Adjust to new signature.
2811         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
2812         New macro, which patches Autoconf in a similar way.
2813
2814         c-stack: stop worrying about stack direction
2815         * lib/c-stack.c (find_stack_direction): Remove.
2816         (segv_handler): Don't worry about stack direction growth, as it's
2817         too much of a pain to configure this correctly, given how compilers
2818         are optimizing-away our stack-growth detection code.  Instead, assume
2819         that any access to just before or just after the stack is OK.
2820         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
2821         Don't require AC_FUNC_ALLOCA; no longer needed.
2822
2823 2011-06-20  Eric Blake  <eblake@redhat.com>
2824
2825         test-stat: don't allocate PATH_MAX bytes
2826         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
2827         PATH_MAX-sized buffer.
2828         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
2829         * modules/stat-tests (Depends-on): Likewise.
2830         * tests/test-fstatat.c (includes): Drop pathmax.h.
2831         * tests/test-stat.c (includes): Likewise.
2832         Reported by Bruno Haible.
2833
2834 2011-06-20  Bruno Haible  <bruno@clisp.org>
2835
2836         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
2837         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
2838         * lib/float.c: New file.
2839         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
2840         REPLACE_FLOAT_LDBL.
2841         * modules/float (Files): Add lib/float.c.
2842         (configure.ac): Invoke AC_LIBOBJ.
2843         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
2844
2845 2011-06-20  Bruno Haible  <bruno@clisp.org>
2846
2847         Tests for module 'float'.
2848         * modules/float-tests: New file.
2849         * tests/test-float.c: New file.
2850
2851 2011-06-19  Bruno Haible  <bruno@clisp.org>
2852
2853         isinf: Coding style.
2854         * lib/isinf.c: Use GNU coding style.
2855
2856 2011-06-19  Bruno Haible  <bruno@clisp.org>
2857
2858         linkat test: Avoid test failure on AIX 7.1.
2859         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
2860         * tests/test-link.h (test_link): Likewise.
2861
2862 2011-06-19  Bruno Haible  <bruno@clisp.org>
2863
2864         pread test: Avoid test failure on OpenBSD 4.9.
2865         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
2866
2867 2011-06-19  Bruno Haible  <bruno@clisp.org>
2868
2869         sprintf-posix: Fix test failure on AIX 7.1.
2870         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
2871         * doc/posix-functions/dprintf.texi: Mention limited precision problem
2872         on AIX.
2873         * doc/posix-functions/fprintf.texi: Likewise.
2874         * doc/posix-functions/printf.texi: Likewise.
2875         * doc/posix-functions/snprintf.texi: Likewise.
2876         * doc/posix-functions/sprintf.texi: Likewise.
2877         * doc/posix-functions/vdprintf.texi: Likewise.
2878         * doc/posix-functions/vfprintf.texi: Likewise.
2879         * doc/posix-functions/vprintf.texi: Likewise.
2880         * doc/posix-functions/vsnprintf.texi: Likewise.
2881         * doc/posix-functions/vsprintf.texi: Likewise.
2882
2883 2011-06-19  Bruno Haible  <bruno@clisp.org>
2884
2885         roundl-ieee: Fix test failure on AIX 7.1.
2886         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
2887         * doc/posix-functions/roundl.texi: Mention problem with negative
2888         arguments.
2889
2890 2011-06-19  Bruno Haible  <bruno@clisp.org>
2891
2892         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
2893         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
2894         * doc/posix-functions/round.texi: Mention problem with negative
2895         arguments.
2896         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
2897
2898 2011-06-19  Bruno Haible  <bruno@clisp.org>
2899
2900         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
2901         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
2902         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
2903         * doc/posix-functions/roundf.texi: Mention problem with negative
2904         arguments.
2905         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
2906
2907 2011-06-19  Bruno Haible  <bruno@clisp.org>
2908
2909         ceilf-ieee: Work around bug on MacOS X 10.5.
2910         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
2911
2912         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
2913         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
2914         IEEE compliant, avoid compiler optimizations.
2915         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
2916         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
2917         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
2918         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
2919         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2920         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2921         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2922         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2923         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2924         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
2925
2926 2011-06-19  Bruno Haible  <bruno@clisp.org>
2927
2928         ceilf-ieee: Work around bug on AIX 7.1.
2929         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
2930         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
2931
2932 2011-06-19  Bruno Haible  <bruno@clisp.org>
2933
2934         ceil-ieee: Work around bug on AIX 7.1.
2935         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
2936         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
2937
2938 2011-06-18  Bruno Haible  <bruno@clisp.org>
2939
2940         fsync test: Avoid test failure on MacOS X and AIX.
2941         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
2942         EINVAL.
2943
2944 2011-06-18  Bruno Haible  <bruno@clisp.org>
2945
2946         openat, fdopendir tests: Fix link errors.
2947         * modules/openat-tests (Depends-on): Add progname.
2948         * modules/fdopendir-tests (Depends-on): Likewise.
2949         * tests/test-fchownat.c: Include progname.h.
2950         (main): Call set_program_name.
2951         * tests/test-fstatat.c: Include progname.h.
2952         (main): Call set_program_name.
2953         * tests/test-mkdirat.c: Include progname.h.
2954         (main): Call set_program_name.
2955         * tests/test-openat.c: Include progname.h.
2956         (main): Call set_program_name.
2957         * tests/test-unlinkat.c: Include progname.h.
2958         (main): Call set_program_name.
2959         * tests/test-fdopendir.c: Include progname.h.
2960         (main): Call set_program_name.
2961
2962 2011-06-18  Bruno Haible  <bruno@clisp.org>
2963
2964         Doc update.
2965         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
2966         HP-UX.
2967         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
2968
2969 2011-06-18  Bruno Haible  <bruno@clisp.org>
2970
2971         getcwd tests: Avoid compilation error on HP-UX 11.31.
2972         * modules/getcwd-tests (Depends-on): Add pathmax.
2973         * tests/test-getcwd.c: Include pathmax.h.
2974
2975 2011-06-18  Bruno Haible  <bruno@clisp.org>
2976
2977         isfinite, isinf: Fix link error on AIX 6 and 7.
2978         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
2979         needed, also test the macro with a 'float' argument.
2980         * m4/isinf.m4 (gl_ISINF): Likewise.
2981
2982 2011-06-18  Bruno Haible  <bruno@clisp.org>
2983
2984         getloadavg: Don't clobber LIBS. Regression from previous commit.
2985         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
2986         AC_CHECK_LIB from here...
2987         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
2988         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
2989         gl_func_getloadavg_done.
2990         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2991
2992 2011-06-18  Bruno Haible  <bruno@clisp.org>
2993
2994         clean-temp: Improve documentation.
2995         * lib/clean-temp.h: Explain better how to use this module.
2996         Reported by John Darrington <john@darrington.wattle.id.au>.
2997
2998 2011-06-17  Bruno Haible  <bruno@clisp.org>
2999
3000         pread, pwrite: Avoid cc warning on AIX.
3001         * lib/unistd.in.h (pread): Undefine before defining as a macro.
3002         (pwrite): Likewise.
3003
3004 2011-06-17  Bruno Haible  <bruno@clisp.org>
3005
3006         spawn-pipe tests: Fix link error.
3007         * tests/test-spawn-pipe-child.c: Undefine fprintf.
3008         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3009
3010 2011-06-17  Bruno Haible  <bruno@clisp.org>
3011
3012         Tests: Remove unnecessary dependency.
3013         * modules/canonicalize-tests (Depends-on): Remove progname.
3014         * modules/chown-tests (Depends-on): Likewise.
3015         * modules/dirname-tests (Depends-on): Likewise.
3016         * modules/fdopendir-tests (Depends-on): Likewise.
3017         * modules/fdutimensat-tests (Depends-on): Likewise.
3018         * modules/hash-tests (Depends-on): Likewise.
3019         * modules/lchown-tests (Depends-on): Likewise.
3020         * modules/linkat-tests (Depends-on): Likewise.
3021         * modules/renameat-tests (Depends-on): Likewise.
3022         * modules/spawn-pipe-tests (Depends-on): Likewise.
3023         * modules/utimensat-tests (Depends-on): Likewise.
3024
3025 2011-06-17  Bruno Haible  <bruno@clisp.org>
3026
3027         spawn-pipe tests: Fix link error.
3028         * tests/test-spawn-pipe-child.c: Undefine fflush.
3029
3030 2011-06-17  Bruno Haible  <bruno@clisp.org>
3031
3032         Fix tests link errors.
3033         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
3034         * modules/chown-tests (Makefile.am): Don't link test-chown with
3035         LIBINTL.
3036         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
3037         LIBINTL.
3038         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
3039         LIBINTL.
3040         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
3041         LIBINTL.
3042
3043 2011-06-16  Bruno Haible  <bruno@clisp.org>
3044
3045         crypto/gc-sha1: Fix recent regression.
3046         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
3047         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
3048
3049         crypto/gc-md5: Fix recent regression.
3050         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
3051
3052         crypto/gc-md4: Fix recent regression.
3053         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
3054         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
3055
3056         crypto/gc-arctwo: Fix recent regression.
3057         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
3058         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
3059
3060         crypto/gc-rijndael: Fix recent regression.
3061         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
3062         (configure.ac): Invoke AC_LIBOBJ here.
3063         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
3064         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3065
3066         crypto/gc-hmac-sha1: Fix recent regression.
3067         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
3068         (configure.ac): Invoke AC_LIBOBJ here.
3069         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
3070         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3071
3072         crypto/gc-hmac-md5: Fix recent regression.
3073         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
3074         (configure.ac): Invoke AC_LIBOBJ here.
3075         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
3076         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3077
3078         crypto/gc-des: Fix recent regression.
3079         * modules/crypto/gc-des (Files): Remove m4/des.m4.
3080         (configure.ac): Invoke AC_LIBOBJ here.
3081         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
3082         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3083
3084         crypto/gc-arcfour: Fix recent regression.
3085         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
3086         (configure.ac): Invoke AC_LIBOBJ here.
3087         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
3088         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3089
3090 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
3091
3092         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
3093         After the 2011-05-21 change, this macro requires
3094         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
3095         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
3096
3097 2011-06-16  Bruno Haible  <bruno@clisp.org>
3098
3099         fprintftime: Move AC_LIBOBJ invocations to module description.
3100         * m4/fprintftime.m4: Remove file.
3101         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
3102         (configure.ac): Remove gl_FPRINTFTIME call.
3103         (Makefile.am): Augment lib_SOURCES.
3104         Reported by Jim Meyering.
3105
3106 2011-06-16  Bruno Haible  <bruno@clisp.org>
3107
3108         tmpfile-safer: Finish 2011-05-23 commit.
3109         * m4/stdio-safer.m4: Really remove file.
3110         Reported by Jim Meyering.
3111
3112 2011-06-16  Bruno Haible  <bruno@clisp.org>
3113
3114         syntax-check: Fix typo.
3115         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
3116         printf-posix.m4.
3117         Reported by Jim Meyering.
3118
3119 2011-06-13  Jim Meyering  <meyering@redhat.com>
3120
3121         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
3122         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
3123
3124 2011-05-23  Bruno Haible  <bruno@clisp.org>
3125
3126         yesno: Move AC_LIBOBJ invocations to module description.
3127         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
3128         * modules/yesno (Makefile.am): Augment lib_SOURCES.
3129
3130 2011-05-23  Bruno Haible  <bruno@clisp.org>
3131
3132         xstrtol: Move AC_LIBOBJ invocations to module description.
3133         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
3134         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
3135
3136 2011-05-23  Bruno Haible  <bruno@clisp.org>
3137
3138         xstrtold: Move AC_LIBOBJ invocations to module description.
3139         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
3140         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
3141
3142 2011-05-23  Bruno Haible  <bruno@clisp.org>
3143
3144         xstrtod: Move AC_LIBOBJ invocations to module description.
3145         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
3146         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
3147
3148 2011-05-23  Bruno Haible  <bruno@clisp.org>
3149
3150         xnanosleep: Move AC_LIBOBJ invocations to module description.
3151         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
3152         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
3153
3154 2011-05-23  Bruno Haible  <bruno@clisp.org>
3155
3156         xgetcwd: Move AC_LIBOBJ invocations to module description.
3157         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
3158         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
3159
3160 2011-05-23  Bruno Haible  <bruno@clisp.org>
3161
3162         xalloc: Move AC_LIBOBJ invocations to module description.
3163         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
3164         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
3165
3166 2011-05-23  Bruno Haible  <bruno@clisp.org>
3167
3168         write-any-file: Move AC_LIBOBJ invocations to module description.
3169         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
3170         invocation.
3171         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
3172
3173 2011-05-23  Bruno Haible  <bruno@clisp.org>
3174
3175         utimens: Move AC_LIBOBJ invocations to module description.
3176         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
3177         * modules/utimens (Makefile.am): Augment lib_SOURCES.
3178
3179 2011-05-23  Bruno Haible  <bruno@clisp.org>
3180
3181         utimecmp: Move AC_LIBOBJ invocations to module description.
3182         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
3183         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
3184
3185 2011-05-23  Bruno Haible  <bruno@clisp.org>
3186
3187         userspec: Move AC_LIBOBJ invocations to module description.
3188         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
3189         * modules/userspec (Makefile.am): Augment lib_SOURCES.
3190
3191 2011-05-23  Bruno Haible  <bruno@clisp.org>
3192
3193         unlinkdir: Move AC_LIBOBJ invocations to module description.
3194         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
3195         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
3196
3197 2011-05-23  Bruno Haible  <bruno@clisp.org>
3198
3199         unistd-safer: Move AC_LIBOBJ invocations to module description.
3200         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
3201         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
3202
3203 2011-05-23  Bruno Haible  <bruno@clisp.org>
3204
3205         tempname: Move AC_LIBOBJ invocations to module description.
3206         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
3207         * modules/tempname (Makefile.am): Augment lib_SOURCES.
3208
3209 2011-05-23  Bruno Haible  <bruno@clisp.org>
3210
3211         strftime: Move AC_LIBOBJ invocations to module description.
3212         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
3213         * modules/strftime (Makefile.am): Augment lib_SOURCES.
3214
3215 2011-05-23  Bruno Haible  <bruno@clisp.org>
3216
3217         stdlib-safer: Move AC_LIBOBJ invocations to module description.
3218         * m4/stdlib-safer.m4: Remove file.
3219         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
3220         (configure.ac): Remove gl_STDLIB_SAFER call.
3221         (Makefile.am): Augment lib_SOURCES.
3222
3223 2011-05-23  Bruno Haible  <bruno@clisp.org>
3224
3225         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
3226         * m4/stdio-safer.m4: Remove file.
3227         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
3228         (configure.ac): Remove gl_TMPFILE_SAFER call.
3229         (Makefile.am): Augment lib_SOURCES.
3230
3231 2011-05-23  Bruno Haible  <bruno@clisp.org>
3232
3233         popen-safer: Move AC_LIBOBJ invocations to module description.
3234         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
3235         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
3236         (configure.ac): Remove gl_POPEN_SAFER call.
3237         (Makefile.am): Augment lib_SOURCES.
3238
3239 2011-05-23  Bruno Haible  <bruno@clisp.org>
3240
3241         freopen-safer: Move AC_LIBOBJ invocations to module description.
3242         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
3243         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
3244         (configure.ac): Remove gl_FREOPEN_SAFER call.
3245         (Makefile.am): Augment lib_SOURCES.
3246
3247 2011-05-23  Bruno Haible  <bruno@clisp.org>
3248
3249         fopen-safer: Move AC_LIBOBJ invocations to module description.
3250         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
3251         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
3252         (configure.ac): Remove gl_FOPEN_SAFER call.
3253         (Makefile.am): Augment lib_SOURCES.
3254
3255 2011-05-23  Bruno Haible  <bruno@clisp.org>
3256
3257         crypto/sha512: Move AC_LIBOBJ invocations to module description.
3258         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
3259         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
3260
3261 2011-05-23  Bruno Haible  <bruno@clisp.org>
3262
3263         crypto/sha256: Move AC_LIBOBJ invocations to module description.
3264         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
3265         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
3266
3267 2011-05-23  Bruno Haible  <bruno@clisp.org>
3268
3269         crypto/sha1: Move AC_LIBOBJ invocations to module description.
3270         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
3271         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
3272
3273 2011-05-23  Bruno Haible  <bruno@clisp.org>
3274
3275         settime: Move AC_LIBOBJ invocations to module description.
3276         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
3277         * modules/settime (Makefile.am): Augment lib_SOURCES.
3278
3279 2011-05-23  Bruno Haible  <bruno@clisp.org>
3280
3281         savedir: Move AC_LIBOBJ invocations to module description.
3282         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
3283         * modules/savedir (Makefile.am): Augment lib_SOURCES.
3284
3285 2011-05-23  Bruno Haible  <bruno@clisp.org>
3286
3287         save-cwd: Move AC_LIBOBJ invocations to module description.
3288         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
3289         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
3290
3291 2011-05-23  Bruno Haible  <bruno@clisp.org>
3292
3293         same: Move AC_LIBOBJ invocations to module description.
3294         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
3295         * modules/same (Makefile.am): Augment lib_SOURCES.
3296
3297 2011-05-23  Bruno Haible  <bruno@clisp.org>
3298
3299         safe-write: Move AC_LIBOBJ invocations to module description.
3300         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
3301         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
3302         instead of gl_SAFE_WRITE.
3303         (Makefile.am): Augment lib_SOURCES.
3304
3305 2011-05-23  Bruno Haible  <bruno@clisp.org>
3306
3307         safe-read: Move AC_LIBOBJ invocations to module description.
3308         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
3309         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
3310         of gl_SAFE_READ.
3311         (Makefile.am): Augment lib_SOURCES.
3312
3313 2011-05-23  Bruno Haible  <bruno@clisp.org>
3314
3315         safe-alloc: Move AC_LIBOBJ invocations to module description.
3316         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
3317         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
3318
3319 2011-05-23  Bruno Haible  <bruno@clisp.org>
3320
3321         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
3322         * m4/rijndael.m4: Remove file.
3323         * modules/crypto/rijndael (Files): Remove it.
3324         (configure.ac): Remove gl_RIJNDAEL call.
3325         (Makefile.am): Augment lib_SOURCES.
3326
3327 2011-05-23  Bruno Haible  <bruno@clisp.org>
3328
3329         readtokens: Move AC_LIBOBJ invocations to module description.
3330         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
3331         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
3332
3333 2011-05-23  Bruno Haible  <bruno@clisp.org>
3334
3335         read-file: Move AC_LIBOBJ invocations to module description.
3336         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
3337         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
3338         of gl_FUNC_READ_FILE.
3339         (Makefile.am): Augment lib_SOURCES.
3340
3341 2011-05-23  Bruno Haible  <bruno@clisp.org>
3342
3343         quotearg: Move AC_LIBOBJ invocations to module description.
3344         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
3345         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
3346
3347 2011-05-23  Bruno Haible  <bruno@clisp.org>
3348
3349         quote: Move AC_LIBOBJ invocations to module description.
3350         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
3351         * modules/quote (Makefile.am): Augment lib_SOURCES.
3352
3353 2011-05-23  Bruno Haible  <bruno@clisp.org>
3354
3355         posixver: Move AC_LIBOBJ invocations to module description.
3356         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
3357         * modules/posixver (Makefile.am): Augment lib_SOURCES.
3358
3359 2011-05-23  Bruno Haible  <bruno@clisp.org>
3360
3361         posixtm: Move AC_LIBOBJ invocations to module description.
3362         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
3363         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
3364
3365 2011-05-23  Bruno Haible  <bruno@clisp.org>
3366
3367         physmem: Move AC_LIBOBJ invocations to module description.
3368         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
3369         * modules/physmem (Makefile.am): Augment lib_SOURCES.
3370
3371 2011-05-23  Bruno Haible  <bruno@clisp.org>
3372
3373         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
3374         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
3375         invocation.
3376         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
3377
3378 2011-05-23  Bruno Haible  <bruno@clisp.org>
3379
3380         mpsort: Move AC_LIBOBJ invocations to module description.
3381         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
3382         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
3383
3384 2011-05-23  Bruno Haible  <bruno@clisp.org>
3385
3386         modechange: Move AC_LIBOBJ invocations to module description.
3387         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
3388         * modules/modechange (Makefile.am): Augment lib_SOURCES.
3389
3390 2011-05-23  Bruno Haible  <bruno@clisp.org>
3391
3392         mkdir-p: Move AC_LIBOBJ invocations to module description.
3393         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
3394         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
3395
3396 2011-05-23  Bruno Haible  <bruno@clisp.org>
3397
3398         mkancesdirs: Move AC_LIBOBJ invocations to module description.
3399         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
3400         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
3401
3402 2011-05-23  Bruno Haible  <bruno@clisp.org>
3403
3404         mgetgroups: Move AC_LIBOBJ invocations to module description.
3405         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
3406         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
3407
3408 2011-05-23  Bruno Haible  <bruno@clisp.org>
3409
3410         memxor: Move AC_LIBOBJ invocations to module description.
3411         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
3412         * modules/memxor (Makefile.am): Augment lib_SOURCES.
3413
3414 2011-05-23  Bruno Haible  <bruno@clisp.org>
3415
3416         memcoll: Move AC_LIBOBJ invocations to module description.
3417         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
3418         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
3419
3420 2011-05-23  Bruno Haible  <bruno@clisp.org>
3421
3422         memcasecmp: Move AC_LIBOBJ invocations to module description.
3423         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
3424         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
3425
3426 2011-05-23  Bruno Haible  <bruno@clisp.org>
3427
3428         crypto/md5: Move AC_LIBOBJ invocations to module description.
3429         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
3430         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
3431
3432 2011-05-23  Bruno Haible  <bruno@clisp.org>
3433
3434         crypto/md4: Move AC_LIBOBJ invocations to module description.
3435         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
3436         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
3437
3438 2011-05-23  Bruno Haible  <bruno@clisp.org>
3439
3440         crypto/md2: Move AC_LIBOBJ invocations to module description.
3441         * m4/md2.m4: Remove file.
3442         * modules/crypto/md2 (Files): Remove it.
3443         (configure.ac): Remove gl_MD2 call.
3444         (Makefile.am): Augment lib_SOURCES.
3445
3446 2011-05-23  Bruno Haible  <bruno@clisp.org>
3447
3448         long-options: Move AC_LIBOBJ invocations to module description.
3449         * m4/long-options.m4: Remove file.
3450         * modules/long-options (Files): Remove it.
3451         (configure.ac): Remove gl_LONG_OPTIONS call.
3452         (Makefile.am): Augment lib_SOURCES.
3453
3454 2011-05-23  Bruno Haible  <bruno@clisp.org>
3455
3456         i-ring: Move AC_LIBOBJ invocations to module description.
3457         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
3458         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
3459
3460 2011-05-23  Bruno Haible  <bruno@clisp.org>
3461
3462         idcache: Move AC_LIBOBJ invocations to module description.
3463         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
3464         * modules/idcache (Makefile.am): Augment lib_SOURCES.
3465
3466 2011-05-23  Bruno Haible  <bruno@clisp.org>
3467
3468         human: Move AC_LIBOBJ invocations to module description.
3469         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
3470         * modules/human (Makefile.am): Augment lib_SOURCES.
3471
3472 2011-05-23  Bruno Haible  <bruno@clisp.org>
3473
3474         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
3475         * m4/hmac-sha1.m4: Remove file.
3476         * modules/crypto/hmac-sha1 (Files): Remove it.
3477         (configure.ac): Remove gl_HMAC_SHA1 call.
3478         (Makefile.am): Augment lib_SOURCES.
3479
3480 2011-05-23  Bruno Haible  <bruno@clisp.org>
3481
3482         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
3483         * m4/hmac-md5.m4: Remove file.
3484         * modules/crypto/hmac-md5 (Files): Remove it.
3485         (configure.ac): Remove gl_HMAC_MD5 call.
3486         (Makefile.am): Augment lib_SOURCES.
3487
3488 2011-05-23  Bruno Haible  <bruno@clisp.org>
3489
3490         hash: Move AC_LIBOBJ invocations to module description.
3491         * m4/hash.m4: Remove file.
3492         * modules/hash (Files): Remove it.
3493         (configure.ac): Remove gl_HASH call.
3494         (Makefile.am): Augment lib_SOURCES.
3495
3496 2011-05-23  Bruno Haible  <bruno@clisp.org>
3497
3498         hard-locale: Move AC_LIBOBJ invocations to module description.
3499         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
3500         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
3501
3502 2011-05-23  Bruno Haible  <bruno@clisp.org>
3503
3504         getugroups: Move AC_LIBOBJ invocations to module description.
3505         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
3506         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
3507
3508 2011-05-23  Bruno Haible  <bruno@clisp.org>
3509
3510         gettime: Move AC_LIBOBJ invocations to module description.
3511         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
3512         * modules/gettime (Makefile.am): Augment lib_SOURCES.
3513
3514 2011-05-23  Bruno Haible  <bruno@clisp.org>
3515
3516         getndelim2: Move AC_LIBOBJ invocations to module description.
3517         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
3518         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
3519
3520 2011-05-23  Bruno Haible  <bruno@clisp.org>
3521
3522         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
3523         * m4/gc-pbkdf2-sha1.m4: Remove file.
3524         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
3525         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
3526         (Makefile.am): Augment lib_SOURCES.
3527
3528 2011-05-23  Bruno Haible  <bruno@clisp.org>
3529
3530         fts: Move AC_LIBOBJ invocations to module description.
3531         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
3532         * modules/fts (configure.ac): ... to here.
3533
3534 2011-05-23  Bruno Haible  <bruno@clisp.org>
3535
3536         file-type: Move AC_LIBOBJ invocations to module description.
3537         * m4/file-type.m4: Remove file.
3538         * modules/file-type (Files): Remove it.
3539         (configure.ac): Remove gl_FILE_TYPE call.
3540         (Makefile.am): Augment lib_SOURCES.
3541
3542 2011-05-23  Bruno Haible  <bruno@clisp.org>
3543
3544         filenamecat*: Respect rules for use of AC_LIBOBJ.
3545         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
3546         Remove AC_LIBOBJ invocation.
3547         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
3548         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
3549
3550 2011-05-23  Bruno Haible  <bruno@clisp.org>
3551
3552         filemode: Move AC_LIBOBJ invocations to module description.
3553         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
3554         * modules/filemode (Makefile.am): Augment lib_SOURCES.
3555
3556 2011-05-23  Bruno Haible  <bruno@clisp.org>
3557
3558         openat-safer: Move AC_LIBOBJ invocations to module description.
3559         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
3560         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
3561
3562 2011-05-23  Bruno Haible  <bruno@clisp.org>
3563
3564         fcntl-safer: Move AC_LIBOBJ invocations to module description.
3565         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
3566         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
3567
3568 2011-05-23  Bruno Haible  <bruno@clisp.org>
3569
3570         exclude: Move AC_LIBOBJ invocations to module description.
3571         * m4/exclude.m4: Remove file.
3572         * modules/exclude (Files): Remove it.
3573         (configure.ac): Remove gl_EXCLUDE call.
3574         (Makefile.am): Augment lib_SOURCES.
3575
3576 2011-05-23  Bruno Haible  <bruno@clisp.org>
3577
3578         dirname*: Respect rules for use of AC_LIBOBJ.
3579         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
3580         invocations.
3581         * modules/dirname (Makefile.am): Augment lib_SOURCES.
3582         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
3583
3584 2011-05-23  Bruno Haible  <bruno@clisp.org>
3585
3586         dirent-safer: Move AC_LIBOBJ invocations to module description.
3587         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
3588         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
3589
3590 2011-05-23  Bruno Haible  <bruno@clisp.org>
3591
3592         crypto/des: Move AC_LIBOBJ invocations to module description.
3593         * m4/des.m4: Remove file.
3594         * modules/crypto/des (Files): Remove it.
3595         (configure.ac): Remove gl_DES call.
3596         (Makefile.am): Augment lib_SOURCES.
3597
3598 2011-05-23  Bruno Haible  <bruno@clisp.org>
3599
3600         cycle-check: Move AC_LIBOBJ invocations to module description.
3601         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
3602         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
3603
3604 2011-05-23  Bruno Haible  <bruno@clisp.org>
3605
3606         c-strtold: Move AC_LIBOBJ invocations to module description.
3607         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
3608         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
3609
3610 2011-05-23  Bruno Haible  <bruno@clisp.org>
3611
3612         c-strtod: Move AC_LIBOBJ invocations to module description.
3613         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
3614         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
3615
3616 2011-05-23  Bruno Haible  <bruno@clisp.org>
3617
3618         crc: Move AC_LIBOBJ invocations to module description.
3619         * m4/crc.m4: Remove file.
3620         * modules/crc (Files): Remove it.
3621         (configure.ac): Remove gl_CRC call.
3622         (Makefile.am): Augment lib_SOURCES.
3623
3624 2011-05-23  Bruno Haible  <bruno@clisp.org>
3625
3626         close-stream: Move AC_LIBOBJ invocations to module description.
3627         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
3628         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
3629
3630 2011-05-23  Bruno Haible  <bruno@clisp.org>
3631
3632         closeout: Move AC_LIBOBJ invocations to module description.
3633         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
3634         * modules/closeout (Makefile.am): Augment lib_SOURCES.
3635
3636 2011-05-23  Bruno Haible  <bruno@clisp.org>
3637
3638         closein: Move AC_LIBOBJ invocations to module description.
3639         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
3640         * modules/closein (Makefile.am): Augment lib_SOURCES.
3641
3642 2011-05-23  Bruno Haible  <bruno@clisp.org>
3643
3644         cloexec: Move AC_LIBOBJ invocations to module description.
3645         * m4/cloexec.m4: Remove file.
3646         * modules/cloexec (Files): Remove it.
3647         (configure.ac): Remove gl_CLOEXEC call.
3648         (Makefile.am): Augment lib_SOURCES.
3649
3650 2011-05-23  Bruno Haible  <bruno@clisp.org>
3651
3652         check-version: Move AC_LIBOBJ invocations to module description.
3653         * m4/check-version.m4: Remove file.
3654         * modules/check-version (Files): Remove it.
3655         (configure.ac): Remove gl_CHECK_VERSION call.
3656         (Makefile.am): Augment lib_SOURCES.
3657
3658 2011-05-23  Bruno Haible  <bruno@clisp.org>
3659
3660         chdir-safer: Move AC_LIBOBJ invocations to module description.
3661         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
3662         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
3663
3664 2011-05-23  Bruno Haible  <bruno@clisp.org>
3665
3666         canonicalize: Move AC_LIBOBJ invocations to module description.
3667         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
3668         AC_LIBOBJ invocation.
3669         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
3670
3671 2011-05-23  Bruno Haible  <bruno@clisp.org>
3672
3673         canon-host: Move AC_LIBOBJ invocations to module description.
3674         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
3675         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
3676         instead of gl_CANON_HOST.
3677         (Makefile.am): Augment lib_SOURCES.
3678
3679 2011-05-23  Bruno Haible  <bruno@clisp.org>
3680
3681         backupfile: Move AC_LIBOBJ invocations to module description.
3682         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
3683         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
3684
3685 2011-05-23  Bruno Haible  <bruno@clisp.org>
3686
3687         argmatch: Move AC_LIBOBJ invocations to module description.
3688         * m4/argmatch.m4: Remove file.
3689         * modules/argmatch (Files): Remove it.
3690         (configure.ac): Remove gl_ARGMATCH call.
3691         (Makefile.am): Augment lib_SOURCES.
3692
3693 2011-05-23  Bruno Haible  <bruno@clisp.org>
3694
3695         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
3696         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
3697         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
3698
3699 2011-05-23  Bruno Haible  <bruno@clisp.org>
3700
3701         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
3702         * m4/arcfour.m4: Remove file.
3703         * modules/crypto/arcfour (Files): Remove it.
3704         (configure.ac): Remove gl_ARCFOUR call.
3705         (Makefile.am): Augment lib_SOURCES.
3706
3707 2011-05-22  Bruno Haible  <bruno@clisp.org>
3708
3709         write: Move AC_LIBOBJ invocations to module description.
3710         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
3711         * modules/write (configure.ac): ... to here.
3712
3713 2011-05-22  Bruno Haible  <bruno@clisp.org>
3714
3715         wmemset: Move AC_LIBOBJ invocations to module description.
3716         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
3717         here...
3718         * modules/wmemset (configure.ac): ... to here.
3719
3720 2011-05-22  Bruno Haible  <bruno@clisp.org>
3721
3722         wmemmove: Move AC_LIBOBJ invocations to module description.
3723         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
3724         here...
3725         * modules/wmemmove (configure.ac): ... to here.
3726
3727 2011-05-22  Bruno Haible  <bruno@clisp.org>
3728
3729         wmemcpy: Move AC_LIBOBJ invocations to module description.
3730         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
3731         here...
3732         * modules/wmemcpy (configure.ac): ... to here.
3733
3734 2011-05-22  Bruno Haible  <bruno@clisp.org>
3735
3736         wmemcmp: Move AC_LIBOBJ invocations to module description.
3737         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
3738         here...
3739         * modules/wmemcmp (configure.ac): ... to here.
3740
3741 2011-05-22  Bruno Haible  <bruno@clisp.org>
3742
3743         wmemchr: Move AC_LIBOBJ invocations to module description.
3744         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
3745         here...
3746         * modules/wmemchr (configure.ac): ... to here.
3747
3748 2011-05-22  Bruno Haible  <bruno@clisp.org>
3749
3750         wcswidth: Move AC_LIBOBJ invocations to module description.
3751         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
3752         here...
3753         * modules/wcswidth (configure.ac): ... to here.
3754
3755 2011-05-22  Bruno Haible  <bruno@clisp.org>
3756
3757         wcwidth: Respect rules for use of AC_LIBOBJ.
3758         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
3759         invocation from here...
3760         * modules/wcwidth (configure.ac): ... to here.
3761         (Depends-on): Update conditions.
3762
3763 2011-05-22  Bruno Haible  <bruno@clisp.org>
3764
3765         wctype: Move AC_LIBOBJ invocations to module description.
3766         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
3767         invocation from here...
3768         * modules/wctype (configure.ac): ... to here.
3769         (Depends-on): Update conditions.
3770
3771 2011-05-22  Bruno Haible  <bruno@clisp.org>
3772
3773         wctrans: Move AC_LIBOBJ invocations to module description.
3774         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
3775         invocation from here...
3776         * modules/wctrans (configure.ac): ... to here.
3777
3778 2011-05-22  Bruno Haible  <bruno@clisp.org>
3779
3780         wctomb: Move AC_LIBOBJ invocations to module description.
3781         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
3782         invocations from here...
3783         * modules/wctomb (configure.ac): ... to here.
3784
3785 2011-05-22  Bruno Haible  <bruno@clisp.org>
3786
3787         wctob: Move AC_LIBOBJ invocations to module description.
3788         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
3789         gl_PREREQ_WCTOB invocations from here...
3790         * modules/wctob (configure.ac): ... to here.
3791         (Depends-on): Update conditions.
3792
3793 2011-05-22  Bruno Haible  <bruno@clisp.org>
3794
3795         wcsxfrm: Move AC_LIBOBJ invocations to module description.
3796         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
3797         here...
3798         * modules/wcsxfrm (configure.ac): ... to here.
3799
3800 2011-05-22  Bruno Haible  <bruno@clisp.org>
3801
3802         wcstok: Move AC_LIBOBJ invocations to module description.
3803         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
3804         * modules/wcstok (configure.ac): ... to here.
3805
3806 2011-05-22  Bruno Haible  <bruno@clisp.org>
3807
3808         wcsstr: Move AC_LIBOBJ invocations to module description.
3809         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
3810         * modules/wcsstr (configure.ac): ... to here.
3811
3812 2011-05-22  Bruno Haible  <bruno@clisp.org>
3813
3814         wcsspn: Move AC_LIBOBJ invocations to module description.
3815         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
3816         * modules/wcsspn (configure.ac): ... to here.
3817
3818 2011-05-22  Bruno Haible  <bruno@clisp.org>
3819
3820         wcsrtombs: Move AC_LIBOBJ invocations to module description.
3821         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
3822         gl_PREREQ_WCSRTOMBS invocations from here...
3823         * modules/wcsrtombs (configure.ac): ... to here.
3824
3825 2011-05-22  Bruno Haible  <bruno@clisp.org>
3826
3827         wcsrchr: Move AC_LIBOBJ invocations to module description.
3828         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
3829         here...
3830         * modules/wcsrchr (configure.ac): ... to here.
3831
3832 2011-05-22  Bruno Haible  <bruno@clisp.org>
3833
3834         wcspbrk: Move AC_LIBOBJ invocations to module description.
3835         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
3836         here...
3837         * modules/wcspbrk (configure.ac): ... to here.
3838
3839 2011-05-22  Bruno Haible  <bruno@clisp.org>
3840
3841         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
3842         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
3843         gl_PREREQ_WCSNRTOMBS invocations from here...
3844         * modules/wcsnrtombs (configure.ac): ... to here.
3845
3846 2011-05-22  Bruno Haible  <bruno@clisp.org>
3847
3848         wcsnlen: Move AC_LIBOBJ invocations to module description.
3849         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
3850         here...
3851         * modules/wcsnlen (configure.ac): ... to here.
3852
3853 2011-05-22  Bruno Haible  <bruno@clisp.org>
3854
3855         wcsncpy: Move AC_LIBOBJ invocations to module description.
3856         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
3857         here...
3858         * modules/wcsncpy (configure.ac): ... to here.
3859
3860 2011-05-22  Bruno Haible  <bruno@clisp.org>
3861
3862         wcsncmp: Move AC_LIBOBJ invocations to module description.
3863         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
3864         here...
3865         * modules/wcsncmp (configure.ac): ... to here.
3866
3867 2011-05-22  Bruno Haible  <bruno@clisp.org>
3868
3869         wcsncat: Move AC_LIBOBJ invocations to module description.
3870         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
3871         here...
3872         * modules/wcsncat (configure.ac): ... to here.
3873
3874 2011-05-22  Bruno Haible  <bruno@clisp.org>
3875
3876         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
3877         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
3878         from here...
3879         * modules/wcsncasecmp (configure.ac): ... to here.
3880
3881 2011-05-22  Bruno Haible  <bruno@clisp.org>
3882
3883         wcslen: Move AC_LIBOBJ invocations to module description.
3884         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
3885         * modules/wcslen (configure.ac): ... to here.
3886
3887 2011-05-22  Bruno Haible  <bruno@clisp.org>
3888
3889         wcsdup: Move AC_LIBOBJ invocations to module description.
3890         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
3891         * modules/wcsdup (configure.ac): ... to here.
3892
3893 2011-05-22  Bruno Haible  <bruno@clisp.org>
3894
3895         wcscspn: Move AC_LIBOBJ invocations to module description.
3896         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
3897         here...
3898         * modules/wcscspn (configure.ac): ... to here.
3899
3900 2011-05-22  Bruno Haible  <bruno@clisp.org>
3901
3902         wcscpy: Move AC_LIBOBJ invocations to module description.
3903         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
3904         * modules/wcscpy (configure.ac): ... to here.
3905
3906 2011-05-22  Bruno Haible  <bruno@clisp.org>
3907
3908         wcscoll: Move AC_LIBOBJ invocations to module description.
3909         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
3910         here...
3911         * modules/wcscoll (configure.ac): ... to here.
3912
3913 2011-05-22  Bruno Haible  <bruno@clisp.org>
3914
3915         wcscmp: Move AC_LIBOBJ invocations to module description.
3916         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
3917         * modules/wcscmp (configure.ac): ... to here.
3918
3919 2011-05-22  Bruno Haible  <bruno@clisp.org>
3920
3921         wcschr: Move AC_LIBOBJ invocations to module description.
3922         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
3923         * modules/wcschr (configure.ac): ... to here.
3924
3925 2011-05-22  Bruno Haible  <bruno@clisp.org>
3926
3927         wcscat: Move AC_LIBOBJ invocations to module description.
3928         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
3929         * modules/wcscat (configure.ac): ... to here.
3930
3931 2011-05-22  Bruno Haible  <bruno@clisp.org>
3932
3933         wcscasecmp: Move AC_LIBOBJ invocations to module description.
3934         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
3935         here...
3936         * modules/wcscasecmp (configure.ac): ... to here.
3937
3938 2011-05-22  Bruno Haible  <bruno@clisp.org>
3939
3940         wcrtomb: Move AC_LIBOBJ invocations to module description.
3941         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
3942         invocations from here...
3943         * modules/wcrtomb (configure.ac): ... to here.
3944
3945 2011-05-22  Bruno Haible  <bruno@clisp.org>
3946
3947         wcpncpy: Move AC_LIBOBJ invocations to module description.
3948         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
3949         here...
3950         * modules/wcpncpy (configure.ac): ... to here.
3951
3952 2011-05-22  Bruno Haible  <bruno@clisp.org>
3953
3954         wcpcpy: Move AC_LIBOBJ invocations to module description.
3955         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
3956         * modules/wcpcpy (configure.ac): ... to here.
3957
3958 2011-05-22  Bruno Haible  <bruno@clisp.org>
3959
3960         waitpid: Move AC_LIBOBJ invocations to module description.
3961         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
3962         invocation from here...
3963         * modules/waitpid (configure.ac): ... to here.
3964
3965 2011-05-22  Bruno Haible  <bruno@clisp.org>
3966
3967         utimensat: Move AC_LIBOBJ invocations to module description.
3968         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
3969         here...
3970         * modules/utimensat (configure.ac): ... to here.
3971
3972 2011-05-22  Bruno Haible  <bruno@clisp.org>
3973
3974         usleep: Move AC_LIBOBJ invocations to module description.
3975         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
3976         here...
3977         * modules/usleep (configure.ac): ... to here.
3978
3979 2011-05-22  Bruno Haible  <bruno@clisp.org>
3980
3981         unlockpt: Move AC_LIBOBJ invocations to module description.
3982         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
3983         gl_PREREQ_UNLOCKPT invocations from here...
3984         * modules/unlockpt (configure.ac): ... to here.
3985
3986 2011-05-22  Bruno Haible  <bruno@clisp.org>
3987
3988         unlink: Respect rules for use of AC_LIBOBJ.
3989         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
3990         * modules/unlink (configure.ac): ... to here.
3991
3992 2011-05-22  Bruno Haible  <bruno@clisp.org>
3993
3994         uname: Move AC_LIBOBJ invocations to module description.
3995         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
3996         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
3997         here...
3998         * modules/uname (configure.ac): ... to here.
3999
4000 2011-05-22  Bruno Haible  <bruno@clisp.org>
4001
4002         ttyname_r: Move AC_LIBOBJ invocations to module description.
4003         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
4004         gl_PREREQ_TTYNAME_R invocations from here...
4005         * modules/ttyname_r (configure.ac): ... to here.
4006
4007 2011-05-22  Bruno Haible  <bruno@clisp.org>
4008
4009         tsearch: Move AC_LIBOBJ invocations to module description.
4010         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
4011         invocations from here...
4012         * modules/tsearch (configure.ac): ... to here.
4013
4014 2011-05-22  Bruno Haible  <bruno@clisp.org>
4015
4016         towctrans: Move AC_LIBOBJ invocations to module description.
4017         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
4018         AC_LIBOBJ invocation from here...
4019         * modules/towctrans (configure.ac): ... to here.
4020
4021 2011-05-22  Bruno Haible  <bruno@clisp.org>
4022
4023         tmpfile: Move AC_LIBOBJ invocations to module description.
4024         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
4025         invocations from here...
4026         * modules/tmpfile (configure.ac): ... to here.
4027
4028 2011-05-22  Bruno Haible  <bruno@clisp.org>
4029
4030         times: Move AC_LIBOBJ invocations to module description.
4031         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
4032         * modules/times (configure.ac): ... to here.
4033
4034 2011-05-22  Bruno Haible  <bruno@clisp.org>
4035
4036         time_r: Move AC_LIBOBJ invocations to module description.
4037         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
4038         invocations from here...
4039         * modules/time_r (configure.ac): ... to here.
4040
4041 2011-05-22  Bruno Haible  <bruno@clisp.org>
4042
4043         timegm: Move AC_LIBOBJ invocations to module description.
4044         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
4045         invocations from here...
4046         * modules/timegm (configure.ac): ... to here.
4047
4048 2011-05-22  Bruno Haible  <bruno@clisp.org>
4049
4050         tcgetsid: Move AC_LIBOBJ invocations to module description.
4051         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
4052         and gl_PREREQ_TCGETSID invocations from here...
4053         * modules/tcgetsid (configure.ac): ... to here.
4054         (Depends-on): Update conditions.
4055
4056 2011-05-22  Bruno Haible  <bruno@clisp.org>
4057
4058         symlinkat: Move AC_LIBOBJ invocations to module description.
4059         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
4060         here...
4061         * modules/symlinkat (configure.ac): ... to here.
4062
4063 2011-05-22  Bruno Haible  <bruno@clisp.org>
4064
4065         symlink: Move AC_LIBOBJ invocations to module description.
4066         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
4067         here...
4068         * modules/symlink (configure.ac): ... to here.
4069
4070 2011-05-22  Bruno Haible  <bruno@clisp.org>
4071
4072         strverscmp: Move AC_LIBOBJ invocations to module description.
4073         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
4074         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
4075         from here...
4076         * modules/strverscmp (configure.ac): ... to here.
4077
4078 2011-05-22  Bruno Haible  <bruno@clisp.org>
4079
4080         strtok_r: Move AC_LIBOBJ invocations to module description.
4081         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
4082         and gl_PREREQ_STRTOK_R invocations from here...
4083         * modules/strtok_r (configure.ac): ... to here.
4084         (Depends-on): Update conditions.
4085
4086 2011-05-22  Bruno Haible  <bruno@clisp.org>
4087
4088         strtoumax: Move AC_LIBOBJ invocations to module description.
4089         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
4090         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
4091         from here...
4092         * modules/strtoumax (configure.ac): ... to here.
4093
4094 2011-05-22  Bruno Haible  <bruno@clisp.org>
4095
4096         strtoimax: Move AC_LIBOBJ invocations to module description.
4097         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
4098         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
4099         from here...
4100         * modules/strtoimax (configure.ac): ... to here.
4101
4102 2011-05-22  Bruno Haible  <bruno@clisp.org>
4103
4104         strtoull: Move AC_LIBOBJ invocations to module description.
4105         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
4106         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
4107         from here...
4108         * modules/strtoull (configure.ac): ... to here.
4109
4110 2011-05-22  Bruno Haible  <bruno@clisp.org>
4111
4112         strtoll: Move AC_LIBOBJ invocations to module description.
4113         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
4114         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
4115         here...
4116         * modules/strtoll (configure.ac): ... to here.
4117
4118 2011-05-22  Bruno Haible  <bruno@clisp.org>
4119
4120         strtoul: Move AC_LIBOBJ invocations to module description.
4121         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
4122         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
4123         * modules/strtoul (configure.ac): ... to here.
4124
4125 2011-05-22  Bruno Haible  <bruno@clisp.org>
4126
4127         strtol: Move AC_LIBOBJ invocations to module description.
4128         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
4129         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
4130         * modules/strtol (configure.ac): ... to here.
4131
4132 2011-05-22  Bruno Haible  <bruno@clisp.org>
4133
4134         strtod: Move AC_LIBOBJ invocations to module description.
4135         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
4136         invocations from here...
4137         * modules/strtod (configure.ac): ... to here.
4138
4139 2011-05-22  Bruno Haible  <bruno@clisp.org>
4140
4141         strstr*: Move AC_LIBOBJ invocations to module description.
4142         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
4143         invocations from here...
4144         * modules/strstr-simple (configure.ac): ... to here.
4145         * modules/strstr (configure.ac): ... and here.
4146
4147 2011-05-22  Bruno Haible  <bruno@clisp.org>
4148
4149         strsignal: Move AC_LIBOBJ invocations to module description.
4150         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
4151         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
4152         * modules/strsignal (configure.ac): ... to here.
4153         (Depends-on): Update conditions.
4154
4155 2011-05-22  Bruno Haible  <bruno@clisp.org>
4156
4157         strsep: Move AC_LIBOBJ invocations to module description.
4158         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
4159         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
4160         here...
4161         * modules/strsep (configure.ac): ... to here.
4162
4163 2011-05-22  Bruno Haible  <bruno@clisp.org>
4164
4165         strptime: Move AC_LIBOBJ invocations to module description.
4166         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
4167         gl_PREREQ_STRPTIME invocations from here...
4168         * modules/strptime (configure.ac): ... to here.
4169
4170 2011-05-22  Bruno Haible  <bruno@clisp.org>
4171
4172         strpbrk: Move AC_LIBOBJ invocations to module description.
4173         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
4174         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
4175         here...
4176         * modules/strpbrk (configure.ac): ... to here.
4177
4178 2011-05-22  Bruno Haible  <bruno@clisp.org>
4179
4180         strnlen: Move AC_LIBOBJ invocations to module description.
4181         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
4182         invocations from here...
4183         * modules/strnlen (configure.ac): ... to here.
4184
4185 2011-05-22  Bruno Haible  <bruno@clisp.org>
4186
4187         strndup: Move AC_LIBOBJ invocations to module description.
4188         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
4189         invocations from here...
4190         * modules/strndup (configure.ac): ... to here.
4191         (Depends-on): Update conditions.
4192
4193 2011-05-22  Bruno Haible  <bruno@clisp.org>
4194
4195         strncat: Move AC_LIBOBJ invocations to module description.
4196         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
4197         invocations from here...
4198         * modules/strncat (configure.ac): ... to here.
4199
4200 2011-05-22  Bruno Haible  <bruno@clisp.org>
4201
4202         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
4203         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
4204         invocations from here...
4205         * modules/strdup (configure.ac): ... to here.
4206         * modules/strdup-posix (configure.ac): ... and here.
4207
4208 2011-05-22  Bruno Haible  <bruno@clisp.org>
4209
4210         strcspn: Move AC_LIBOBJ invocations to module description.
4211         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
4212         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
4213         here...
4214         * modules/strcspn (configure.ac): ... to here.
4215
4216 2011-05-22  Bruno Haible  <bruno@clisp.org>
4217
4218         strchrnul: Move AC_LIBOBJ invocations to module description.
4219         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
4220         gl_PREREQ_STRCHRNUL invocations from here...
4221         * modules/strchrnul (configure.ac): ... to here.
4222
4223 2011-05-22  Bruno Haible  <bruno@clisp.org>
4224
4225         strcasestr*: Move AC_LIBOBJ invocations to module description.
4226         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
4227         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
4228         * modules/strcasestr-simple (configure.ac): ... to here.
4229         * modules/strcasestr (configure.ac): ... and here.
4230
4231 2011-05-22  Bruno Haible  <bruno@clisp.org>
4232
4233         strcase: Move AC_LIBOBJ invocations to module description.
4234         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
4235         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
4236         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
4237         gl_PREREQ_STRNCASECMP invocations from here...
4238         * modules/strcase (configure.ac): ... to here.
4239
4240 2011-05-22  Bruno Haible  <bruno@clisp.org>
4241
4242         stpncpy: Move AC_LIBOBJ invocations to module description.
4243         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
4244         here...
4245         * modules/stpncpy (configure.ac): ... to here.
4246
4247 2011-05-22  Bruno Haible  <bruno@clisp.org>
4248
4249         stpcpy: Move AC_LIBOBJ invocations to module description.
4250         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
4251         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
4252         here...
4253         * modules/stpcpy (configure.ac): ... to here.
4254
4255 2011-05-21  Bruno Haible  <bruno@clisp.org>
4256
4257         stat: Move AC_LIBOBJ invocations to module description.
4258         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
4259         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
4260         here...
4261         * modules/stat (configure.ac): ... to here.
4262
4263 2011-05-21  Bruno Haible  <bruno@clisp.org>
4264
4265         sleep: Move AC_LIBOBJ invocations to module description.
4266         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
4267         * modules/sleep (configure.ac): ... to here.
4268
4269 2011-05-21  Bruno Haible  <bruno@clisp.org>
4270
4271         signbit: Move AC_LIBOBJ invocations to module description.
4272         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
4273         * modules/signbit (configure.ac): ... to here.
4274
4275 2011-05-21  Bruno Haible  <bruno@clisp.org>
4276
4277         sigprocmask: Move AC_LIBOBJ invocations to module description.
4278         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
4279         gl_PREREQ_SIGPROMASK invocations from here...
4280         * modules/sigprocmask (configure.ac): ... to here.
4281
4282 2011-05-21  Bruno Haible  <bruno@clisp.org>
4283
4284         sigaction: Move AC_LIBOBJ invocations to module description.
4285         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
4286         gl_PREREQ_SIGACTION invocations from here...
4287         * modules/sigaction (configure.ac): ... to here.
4288
4289 2011-05-21  Bruno Haible  <bruno@clisp.org>
4290
4291         sig2str: Move AC_LIBOBJ invocations to module description.
4292         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
4293         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
4294         here...
4295         * modules/sig2str (configure.ac): ... to here.
4296
4297 2011-05-21  Bruno Haible  <bruno@clisp.org>
4298
4299         setlocale: Move AC_LIBOBJ invocations to module description.
4300         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
4301         gl_PREREQ_SETLOCALE invocations from here...
4302         * modules/setlocale (configure.ac): ... to here.
4303
4304 2011-05-21  Bruno Haible  <bruno@clisp.org>
4305
4306         unsetenv: Move AC_LIBOBJ invocations to module description.
4307         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
4308         and gl_PREREQ_UNSETENV invocations from here...
4309         * modules/unsetenv (configure.ac): ... to here.
4310         (Depends-on): Update.
4311
4312 2011-05-21  Bruno Haible  <bruno@clisp.org>
4313
4314         setenv: Move AC_LIBOBJ invocations to module description.
4315         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
4316         here...
4317         * modules/setenv (configure.ac): ... to here.
4318
4319 2011-05-21  Bruno Haible  <bruno@clisp.org>
4320
4321         selinux-h: Move AC_LIBOBJ invocations to module description.
4322         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
4323         AC_LIBOBJ invocation from here...
4324         * modules/selinux-h (configure.ac): ... to here.
4325
4326 2011-05-21  Bruno Haible  <bruno@clisp.org>
4327
4328         select: Respect rules for use of AC_LIBOBJ.
4329         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
4330         here...
4331         * modules/select (configure.ac): ... to here.
4332
4333 2011-05-21  Bruno Haible  <bruno@clisp.org>
4334
4335         scandir: Move AC_LIBOBJ invocations to module description.
4336         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
4337         invocations from here...
4338         * modules/scandir (configure.ac): ... to here.
4339
4340 2011-05-21  Bruno Haible  <bruno@clisp.org>
4341
4342         rpmatch: Move AC_LIBOBJ invocations to module description.
4343         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
4344         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
4345         here...
4346         * modules/rpmatch (configure.ac): ... to here.
4347
4348 2011-05-21  Bruno Haible  <bruno@clisp.org>
4349
4350         rmdir: Respect rules for use of AC_LIBOBJ.
4351         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
4352         * modules/rmdir (configure.ac): ... to here.
4353
4354 2011-05-21  Bruno Haible  <bruno@clisp.org>
4355
4356         renameat: Move AC_LIBOBJ invocations to module description.
4357         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
4358         here...
4359         * modules/renameat (configure.ac): ... to here.
4360
4361 2011-05-21  Bruno Haible  <bruno@clisp.org>
4362
4363         rename: Respect rules for use of AC_LIBOBJ.
4364         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
4365         here...
4366         * modules/rename (configure.ac): ... to here.
4367
4368 2011-05-21  Bruno Haible  <bruno@clisp.org>
4369
4370         remove: Move AC_LIBOBJ invocations to module description.
4371         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
4372         here...
4373         * modules/remove (configure.ac): ... to here.
4374
4375 2011-05-21  Bruno Haible  <bruno@clisp.org>
4376
4377         relocatable-lib: Move AC_LIBOBJ invocations to module description.
4378         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
4379         macro.
4380         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
4381         * modules/relocatable-lib (configure.ac): ... to here.
4382         * modules/relocatable-prog-wrapper (configure.ac): Invoke
4383         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
4384
4385 2011-05-21  Bruno Haible  <bruno@clisp.org>
4386
4387         relocatable-prog: Move AC_LIBOBJ invocations to module description.
4388         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
4389         here...
4390         * modules/relocatable-prog (configure.ac): ... to here.
4391
4392 2011-05-21  Bruno Haible  <bruno@clisp.org>
4393
4394         regex: Move AC_LIBOBJ invocations to module description.
4395         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
4396         invocations from here...
4397         * modules/regex (configure.ac): ... to here.
4398
4399 2011-05-21  Bruno Haible  <bruno@clisp.org>
4400
4401         realloc-*: Move AC_LIBOBJ invocations to module description.
4402         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
4403         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
4404         AC_LIBOBJ invocations from here...
4405         * modules/realloc-gnu (configure.ac): ... to here.
4406         * modules/realloc-posix (configure.ac): ... and here.
4407
4408 2011-05-21  Bruno Haible  <bruno@clisp.org>
4409
4410         readutmp: Move AC_LIBOBJ invocations to module description.
4411         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
4412         * modules/readutmp (configure.ac): ... to here.
4413
4414 2011-05-21  Bruno Haible  <bruno@clisp.org>
4415
4416         readlinkat: Move AC_LIBOBJ invocations to module description.
4417         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
4418         here...
4419         * modules/readlinkat (configure.ac): ... to here.
4420
4421 2011-05-21  Bruno Haible  <bruno@clisp.org>
4422
4423         readlink: Move AC_LIBOBJ invocations to module description.
4424         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
4425         gl_PREREQ_READLINK invocations from here...
4426         * modules/readlink (configure.ac): ... to here.
4427
4428 2011-05-21  Bruno Haible  <bruno@clisp.org>
4429
4430         readline: Move AC_LIBOBJ invocations to module description.
4431         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
4432         gl_PREREQ_READLINE invocations from here...
4433         * modules/readline (configure.ac): ... to here.
4434
4435 2011-05-21  Bruno Haible  <bruno@clisp.org>
4436
4437         read: Move AC_LIBOBJ invocations to module description.
4438         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
4439         * modules/read (configure.ac): ... to here.
4440
4441 2011-05-21  Bruno Haible  <bruno@clisp.org>
4442
4443         rawmemchr: Move AC_LIBOBJ invocations to module description.
4444         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
4445         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
4446         from here...
4447         * modules/rawmemchr (configure.ac): ... to here.
4448
4449 2011-05-21  Bruno Haible  <bruno@clisp.org>
4450
4451         random_r: Move AC_LIBOBJ invocations to module description.
4452         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
4453         gl_PREREQ_RANDOM_R invocations from here...
4454         * modules/random_r (configure.ac): ... to here.
4455
4456 2011-05-21  Bruno Haible  <bruno@clisp.org>
4457
4458         pwrite: Move AC_LIBOBJ invocations to module description.
4459         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
4460         * modules/pwrite (configure.ac): ... to here.
4461
4462 2011-05-21  Bruno Haible  <bruno@clisp.org>
4463
4464         putenv: Move AC_LIBOBJ invocations to module description.
4465         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
4466         * modules/putenv (configure.ac): ... to here.
4467
4468 2011-05-21  Bruno Haible  <bruno@clisp.org>
4469
4470         login_tty: Move AC_LIBOBJ invocations to module description.
4471         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
4472         * modules/login_tty (configure.ac): ... to here.
4473
4474 2011-05-21  Bruno Haible  <bruno@clisp.org>
4475
4476         openpty: Move AC_LIBOBJ invocations to module description.
4477         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
4478         * modules/openpty (configure.ac): ... to here.
4479
4480 2011-05-21  Bruno Haible  <bruno@clisp.org>
4481
4482         forkpty: Move AC_LIBOBJ invocations to module description.
4483         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
4484         * modules/forkpty (configure.ac): ... to here.
4485
4486 2011-05-21  Bruno Haible  <bruno@clisp.org>
4487
4488         ptsname: Move AC_LIBOBJ invocations to module description.
4489         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
4490         invocations from here...
4491         * modules/ptsname (configure.ac): ... to here.
4492
4493 2011-05-21  Bruno Haible  <bruno@clisp.org>
4494
4495         pread: Move AC_LIBOBJ invocations to module description.
4496         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
4497         * modules/pread (configure.ac): ... to here.
4498
4499 2011-05-21  Bruno Haible  <bruno@clisp.org>
4500
4501         posix_spawn*: Move AC_LIBOBJ invocations to module description.
4502         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
4503         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
4504         * modules/posix_spawn (configure.ac): ... to here.
4505         * modules/posix_spawnp (configure.ac): ... and here.
4506
4507 2011-05-21  Bruno Haible  <bruno@clisp.org>
4508
4509         popen: Move AC_LIBOBJ invocations to module description.
4510         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
4511         invocations from here...
4512         * modules/popen (configure.ac): ... to here.
4513
4514 2011-05-21  Bruno Haible  <bruno@clisp.org>
4515
4516         poll: Move AC_LIBOBJ invocations to module description.
4517         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
4518         invocations from here...
4519         * modules/poll (configure.ac): ... to here.
4520
4521 2011-05-21  Bruno Haible  <bruno@clisp.org>
4522
4523         pipe-posix: Move AC_LIBOBJ invocations to module description.
4524         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
4525         * modules/pipe-posix (configure.ac): ... to here.
4526
4527 2011-05-21  Bruno Haible  <bruno@clisp.org>
4528
4529         openat: Respect rules for use of AC_LIBOBJ.
4530         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
4531         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
4532         * modules/openat (configure.ac): ... to here.
4533
4534 2011-05-21  Bruno Haible  <bruno@clisp.org>
4535
4536         obstack-printf*: Move AC_LIBOBJ invocations to module description.
4537         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
4538         invocation from here...
4539         * modules/obstack-printf (configure.ac): ... to here.
4540         * modules/obstack-printf-posix (configure.ac): ... and here.
4541
4542 2011-05-21  Bruno Haible  <bruno@clisp.org>
4543
4544         nl_langinfo: Move AC_LIBOBJ invocations to module description.
4545         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
4546         from here...
4547         * modules/nl_langinfo (configure.ac): ... to here.
4548
4549 2011-05-21  Bruno Haible  <bruno@clisp.org>
4550
4551         nanosleep: Move AC_LIBOBJ invocations to module description.
4552         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
4553         gl_PREREQ_NANOSLEEP invocations from here...
4554         * modules/nanosleep (configure.ac): ... to here.
4555
4556 2011-05-21  Bruno Haible  <bruno@clisp.org>
4557
4558         mountlist: Move AC_LIBOBJ invocations to module description.
4559         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
4560         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
4561         * modules/mountlist (configure.ac): ... to here.
4562
4563 2011-05-21  Bruno Haible  <bruno@clisp.org>
4564
4565         mktime: Respect rules for use of AC_LIBOBJ.
4566         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
4567         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
4568         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
4569         (gl_FUNC_MKTIME_INTERNAL): ... and here...
4570         * modules/mktime (configure.ac): ... to here.
4571         * modules/mktime-internal (configure.ac): ... and here.
4572         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
4573
4574 2011-05-21  Bruno Haible  <bruno@clisp.org>
4575
4576         mkstemps: Move AC_LIBOBJ invocations to module description.
4577         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
4578         here...
4579         * modules/mkstemps (configure.ac): ... to here.
4580
4581 2011-05-21  Bruno Haible  <bruno@clisp.org>
4582
4583         mkstemp: Move AC_LIBOBJ invocations to module description.
4584         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
4585         gl_PREREQ_MKSTEMP invocations from here...
4586         * modules/mkstemp (configure.ac): ... to here.
4587
4588 2011-05-21  Bruno Haible  <bruno@clisp.org>
4589
4590         mkostemps: Move AC_LIBOBJ invocations to module description.
4591         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
4592         here...
4593         * modules/mkostemps (configure.ac): ... to here.
4594
4595 2011-05-21  Bruno Haible  <bruno@clisp.org>
4596
4597         mkostemp: Move AC_LIBOBJ invocations to module description.
4598         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
4599         gl_PREREQ_MKOSTEMP invocations from here...
4600         * modules/mkostemp (configure.ac): ... to here.
4601
4602 2011-05-21  Bruno Haible  <bruno@clisp.org>
4603
4604         mknod: Move AC_LIBOBJ invocations to module description.
4605         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
4606         * modules/mknod (configure.ac): ... to here.
4607
4608 2011-05-21  Bruno Haible  <bruno@clisp.org>
4609
4610         mkfifoat: Move AC_LIBOBJ invocations to module description.
4611         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
4612         here...
4613         * modules/mkfifoat (configure.ac): ... to here.
4614
4615 2011-05-21  Bruno Haible  <bruno@clisp.org>
4616
4617         mkfifo: Respect rules for use of AC_LIBOBJ.
4618         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
4619         here...
4620         * modules/mkfifo (configure.ac): ... to here.
4621
4622 2011-05-21  Bruno Haible  <bruno@clisp.org>
4623
4624         mkdtemp: Move AC_LIBOBJ invocations to module description.
4625         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
4626         invocations from here...
4627         * modules/mkdtemp (configure.ac): ... to here.
4628
4629 2011-05-21  Bruno Haible  <bruno@clisp.org>
4630
4631         mkdir: Move AC_LIBOBJ invocations to module description.
4632         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
4633         * modules/mkdir (configure.ac): ... to here.
4634
4635 2011-05-21  Bruno Haible  <bruno@clisp.org>
4636
4637         memset: Move AC_LIBOBJ invocations to module description.
4638         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
4639         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
4640         here...
4641         * modules/memset (configure.ac): ... to here.
4642
4643 2011-05-21  Bruno Haible  <bruno@clisp.org>
4644
4645         memrchr: Move AC_LIBOBJ invocations to module description.
4646         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
4647         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
4648         here...
4649         * modules/memrchr (configure.ac): ... to here.
4650
4651 2011-05-21  Bruno Haible  <bruno@clisp.org>
4652
4653         mempcpy: Move AC_LIBOBJ invocations to module description.
4654         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
4655         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
4656         here...
4657         * modules/mempcpy (configure.ac): ... to here.
4658
4659 2011-05-21  Bruno Haible  <bruno@clisp.org>
4660
4661         memmove: Move AC_LIBOBJ invocations to module description.
4662         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
4663         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
4664         here...
4665         * modules/memmove (configure.ac): ... to here.
4666
4667 2011-05-21  Bruno Haible  <bruno@clisp.org>
4668
4669         memmem*: Move AC_LIBOBJ invocations to module description.
4670         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
4671         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
4672         here...
4673         (gl_FUNC_MEMMEM): ... and here...
4674         * modules/memmem-simple (configure.ac): ... to here.
4675         * modules/memmem (configure.ac): ... and here.
4676
4677 2011-05-21  Bruno Haible  <bruno@clisp.org>
4678
4679         memcpy: Move AC_LIBOBJ invocations to module description.
4680         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
4681         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
4682         here...
4683         * modules/memcpy (configure.ac): ... to here.
4684
4685 2011-05-21  Bruno Haible  <bruno@clisp.org>
4686
4687         memcmp: Simplify autoconf macro.
4688         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
4689         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
4690         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
4691
4692 2011-05-21  Bruno Haible  <bruno@clisp.org>
4693
4694         memcmp: Move AC_LIBOBJ invocations to module description.
4695         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
4696         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
4697         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
4698         * modules/memcmp (configure.ac): ... to here.
4699         (Depends-on): Update conditions.
4700
4701 2011-05-21  Bruno Haible  <bruno@clisp.org>
4702
4703         memchr: Respect rules for use of AC_LIBOBJ.
4704         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
4705         invocations from here...
4706         * modules/memchr (configure.ac): ... to here.
4707
4708 2011-05-21  Bruno Haible  <bruno@clisp.org>
4709
4710         mbtowc: Move AC_LIBOBJ invocations to module description.
4711         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
4712         invocations from here...
4713         * modules/mbtowc (configure.ac): ... to here.
4714
4715 2011-05-21  Bruno Haible  <bruno@clisp.org>
4716
4717         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
4718         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
4719         gl_PREREQ_MBSRTOWCS invocations from here...
4720         * modules/mbsrtowcs (configure.ac): ... to here.
4721
4722 2011-05-21  Bruno Haible  <bruno@clisp.org>
4723
4724         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
4725         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
4726         gl_PREREQ_MBSNRTOWCS invocations from here...
4727         * modules/mbsnrtowcs (configure.ac): ... to here.
4728
4729 2011-05-21  Bruno Haible  <bruno@clisp.org>
4730
4731         mbsinit: Move AC_LIBOBJ invocations to module description.
4732         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
4733         invocations from here...
4734         * modules/mbsinit (configure.ac): ... to here.
4735
4736 2011-05-21  Bruno Haible  <bruno@clisp.org>
4737
4738         mbrlen: Move AC_LIBOBJ invocations to module description.
4739         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
4740         invocations from here...
4741         * modules/mbrlen (configure.ac): ... to here.
4742
4743 2011-05-21  Bruno Haible  <bruno@clisp.org>
4744
4745         mbrtowc: Respect rules for use of AC_LIBOBJ.
4746         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
4747         invocations from here...
4748         * modules/mbrtowc (configure.ac): ... to here.
4749
4750 2011-05-21  Bruno Haible  <bruno@clisp.org>
4751
4752         malloc-*: Move AC_LIBOBJ invocations to module description.
4753         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
4754         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
4755         AC_LIBOBJ invocations from here...
4756         * modules/malloc-gnu (configure.ac): ... to here.
4757         * modules/malloc-posix (configure.ac): ... and here.
4758
4759 2011-05-21  Bruno Haible  <bruno@clisp.org>
4760
4761         lstat, openat: Respect rules for use of AC_LIBOBJ.
4762         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
4763         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
4764         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
4765         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
4766         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
4767         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
4768         here.
4769         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
4770
4771 2011-05-21  Bruno Haible  <bruno@clisp.org>
4772
4773         lseek: Move AC_LIBOBJ invocations to module description.
4774         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
4775         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
4776         * modules/lseek (configure.ac): ... to here.
4777
4778 2011-05-21  Bruno Haible  <bruno@clisp.org>
4779
4780         linkat: Move AC_LIBOBJ invocations to module description.
4781         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
4782         here...
4783         * modules/linkat (configure.ac): ... to here.
4784
4785 2011-05-21  Bruno Haible  <bruno@clisp.org>
4786
4787         link: Respect rules for use of AC_LIBOBJ.
4788         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
4789         * modules/link (configure.ac): ... to here.
4790
4791 2011-05-21  Bruno Haible  <bruno@clisp.org>
4792
4793         lchown: Move AC_LIBOBJ invocations to module description.
4794         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
4795         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
4796         * modules/lchown (configure.ac): ... to here.
4797
4798 2011-05-21  Bruno Haible  <bruno@clisp.org>
4799
4800         iswctype: Move AC_LIBOBJ invocations to module description.
4801         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
4802         here...
4803         * modules/iswctype (configure.ac): ... to here.
4804
4805 2011-05-21  Bruno Haible  <bruno@clisp.org>
4806
4807         iswblank: Move AC_LIBOBJ invocations to module description.
4808         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
4809         here...
4810         * modules/iswblank (configure.ac): ... to here.
4811
4812 2011-05-21  Bruno Haible  <bruno@clisp.org>
4813
4814         atanl: Move AC_LIBOBJ invocations to module description.
4815         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
4816         * modules/atanl (configure.ac): ... to here.
4817
4818 2011-05-21  Bruno Haible  <bruno@clisp.org>
4819
4820         acosl: Move AC_LIBOBJ invocations to module description.
4821         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
4822         * modules/acosl (configure.ac): ... to here.
4823
4824 2011-05-21  Bruno Haible  <bruno@clisp.org>
4825
4826         asinl: Respect rules for use of AC_LIBOBJ.
4827         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
4828         * modules/asinl (configure.ac): ... to here.
4829
4830 2011-05-21  Bruno Haible  <bruno@clisp.org>
4831
4832         tanl: Move AC_LIBOBJ invocations to module description.
4833         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
4834         * modules/tanl (configure.ac): ... to here.
4835
4836 2011-05-21  Bruno Haible  <bruno@clisp.org>
4837
4838         cosl: Move AC_LIBOBJ invocations to module description.
4839         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
4840         * modules/cosl (configure.ac): ... to here.
4841
4842 2011-05-21  Bruno Haible  <bruno@clisp.org>
4843
4844         sinl: Move AC_LIBOBJ invocations to module description.
4845         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
4846         * modules/sinl (configure.ac): ... to here.
4847
4848 2011-05-21  Bruno Haible  <bruno@clisp.org>
4849
4850         logl: Move AC_LIBOBJ invocations to module description.
4851         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
4852         * modules/logl (configure.ac): ... to here.
4853
4854 2011-05-21  Bruno Haible  <bruno@clisp.org>
4855
4856         expl: Move AC_LIBOBJ invocations to module description.
4857         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
4858         * modules/expl (configure.ac): ... to here.
4859
4860 2011-05-21  Bruno Haible  <bruno@clisp.org>
4861
4862         roundl: Move AC_LIBOBJ invocations to module description.
4863         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
4864         * modules/roundl (configure.ac): ... to here.
4865
4866 2011-05-21  Bruno Haible  <bruno@clisp.org>
4867
4868         round: Move AC_LIBOBJ invocations to module description.
4869         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
4870         * modules/round (configure.ac): ... to here.
4871
4872 2011-05-21  Bruno Haible  <bruno@clisp.org>
4873
4874         roundf: Move AC_LIBOBJ invocations to module description.
4875         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
4876         * modules/roundf (configure.ac): ... to here.
4877
4878 2011-05-21  Bruno Haible  <bruno@clisp.org>
4879
4880         truncl: Move AC_LIBOBJ invocations to module description.
4881         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
4882         * modules/truncl (configure.ac): ... to here.
4883
4884 2011-05-21  Bruno Haible  <bruno@clisp.org>
4885
4886         trunc: Move AC_LIBOBJ invocations to module description.
4887         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
4888         * modules/trunc (configure.ac): ... to here.
4889
4890 2011-05-21  Bruno Haible  <bruno@clisp.org>
4891
4892         truncf: Move AC_LIBOBJ invocations to module description.
4893         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
4894         * modules/truncf (configure.ac): ... to here.
4895
4896 2011-05-21  Bruno Haible  <bruno@clisp.org>
4897
4898         ceill: Move AC_LIBOBJ invocations to module description.
4899         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
4900         * modules/ceill (configure.ac): ... to here.
4901
4902 2011-05-21  Bruno Haible  <bruno@clisp.org>
4903
4904         ceil: Move AC_LIBOBJ invocations to module description.
4905         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
4906         * modules/ceil (configure.ac): ... to here.
4907
4908 2011-05-21  Bruno Haible  <bruno@clisp.org>
4909
4910         ceilf: Move AC_LIBOBJ invocations to module description.
4911         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
4912         * modules/ceilf (configure.ac): ... to here.
4913
4914 2011-05-21  Bruno Haible  <bruno@clisp.org>
4915
4916         floorl: Respect rules for use of AC_LIBOBJ.
4917         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
4918         * modules/floorl (configure.ac): ... to here.
4919
4920 2011-05-21  Bruno Haible  <bruno@clisp.org>
4921
4922         floor: Respect rules for use of AC_LIBOBJ.
4923         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
4924         * modules/floor (configure.ac): ... to here.
4925
4926 2011-05-21  Bruno Haible  <bruno@clisp.org>
4927
4928         floorf: Move AC_LIBOBJ invocations to module description.
4929         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
4930         * modules/floorf (configure.ac): ... to here.
4931
4932 2011-05-20  Bruno Haible  <bruno@clisp.org>
4933
4934         sqrtl: Respect rules for use of AC_LIBOBJ.
4935         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
4936         * modules/sqrtl (configure.ac): ... to here.
4937
4938 2011-05-20  Bruno Haible  <bruno@clisp.org>
4939
4940         ldexpl: Respect rules for use of AC_LIBOBJ.
4941         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
4942         * modules/ldexpl (configure.ac): ... to here.
4943
4944 2011-05-20  Bruno Haible  <bruno@clisp.org>
4945
4946         frexpl*: Respect rules for use of AC_LIBOBJ.
4947         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
4948         invocation from here...
4949         * modules/frexpl (configure.ac): ... to here.
4950         * modules/frexpl-nolibm (configure.ac): ... and here.
4951
4952 2011-05-20  Bruno Haible  <bruno@clisp.org>
4953
4954         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
4955         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
4956         invocation from here...
4957         * modules/frexp (configure.ac): ... to here.
4958         * modules/frexp-nolibm (configure.ac): ... and here.
4959
4960 2011-05-20  Bruno Haible  <bruno@clisp.org>
4961
4962         isnan: Respect rules for use of AC_LIBOBJ.
4963         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
4964         invocations here.
4965         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
4966         REPLACE_ISNAN.
4967         * modules/isnand (configure.ac): Likewise.
4968         * modules/isnanl (configure.ac): Likewise.
4969
4970 2011-05-20  Bruno Haible  <bruno@clisp.org>
4971
4972         isnanl*: Respect rules for use of AC_LIBOBJ.
4973         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
4974         invocation from here...
4975         * modules/isnanl (configure.ac): ... to here.
4976         * modules/isnanl-nolibm (configure.ac): ... and here.
4977
4978 2011-05-20  Bruno Haible  <bruno@clisp.org>
4979
4980         isnand*: Move AC_LIBOBJ invocations to module description.
4981         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
4982         invocation from here...
4983         * modules/isnand (configure.ac): ... to here.
4984         * modules/isnand-nolibm (configure.ac): ... and here.
4985
4986 2011-05-20  Bruno Haible  <bruno@clisp.org>
4987
4988         isnanf*: Move AC_LIBOBJ invocations to module description.
4989         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
4990         invocation from here...
4991         * modules/isnanf (configure.ac): ... to here.
4992         * modules/isnanf-nolibm (configure.ac): ... and here.
4993
4994 2011-05-20  Bruno Haible  <bruno@clisp.org>
4995
4996         isnan*: Separate the AC_LIBOBJ invocations.
4997         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
4998         AC_LIBOBJ invocation.
4999         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
5000         here.
5001         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
5002         AC_LIBOBJ invocation.
5003         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
5004         here.
5005         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
5006         AC_LIBOBJ invocation.
5007         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
5008         here.
5009         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
5010
5011 2011-05-08  Bruno Haible  <bruno@clisp.org>
5012
5013         isinf: Move AC_LIBOBJ invocations to module description.
5014         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
5015         * modules/isinf (configure.ac): ... to here.
5016
5017 2011-05-08  Bruno Haible  <bruno@clisp.org>
5018
5019         isfinite: Move AC_LIBOBJ invocations to module description.
5020         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
5021         * modules/isfinite (configure.ac): ... to here.
5022
5023 2011-05-08  Bruno Haible  <bruno@clisp.org>
5024
5025         isblank: Move AC_LIBOBJ invocations to module description.
5026         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
5027         here...
5028         * modules/isblank (configure.ac): ... to here.
5029
5030 2011-05-08  Bruno Haible  <bruno@clisp.org>
5031
5032         isapipe: Move AC_LIBOBJ invocations to module description.
5033         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
5034         gl_PREREQ_ISAPIPE invocations from here...
5035         * modules/isapipe (configure.ac): ... to here.
5036         (Depends-on): Update condition.
5037
5038 2011-05-08  Bruno Haible  <bruno@clisp.org>
5039
5040         ioctl: Move AC_LIBOBJ invocations to module description.
5041         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
5042         invocations from here...
5043         * modules/ioctl (configure.ac): ... to here.
5044         (Depends-on): Update condition.
5045
5046 2011-05-08  Bruno Haible  <bruno@clisp.org>
5047
5048         imaxdiv: Move AC_LIBOBJ invocations to module description.
5049         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
5050         invocations from here...
5051         * modules/imaxdiv (configure.ac): ... to here.
5052
5053 2011-05-08  Bruno Haible  <bruno@clisp.org>
5054
5055         imaxabs: Move AC_LIBOBJ invocations to module description.
5056         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
5057         invocations from here...
5058         * modules/imaxabs (configure.ac): ... to here.
5059
5060 2011-05-08  Bruno Haible  <bruno@clisp.org>
5061
5062         getaddrinfo: Move AC_LIBOBJ invocations to module description.
5063         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
5064         AC_LIBOBJ invocations from here...
5065         * modules/getaddrinfo (configure.ac): ... to here.
5066         (Depends-on): Add conditions.
5067
5068 2011-05-08  Bruno Haible  <bruno@clisp.org>
5069
5070         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
5071         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
5072         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
5073         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
5074         (gl_PREREQ_INET_PTON): ... from here.
5075         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
5076         gl_PREREQ_INET_PTON here.
5077         (Depends-on): Update condition.
5078
5079 2011-05-08  Bruno Haible  <bruno@clisp.org>
5080
5081         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
5082         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
5083         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
5084         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
5085         (gl_PREREQ_INET_NTOP): ... from here.
5086         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
5087         gl_PREREQ_INET_NTOP here.
5088         (Depends-on): Update condition.
5089
5090 2011-05-08  Bruno Haible  <bruno@clisp.org>
5091
5092         iconv_open: Move AC_LIBOBJ invocations to module description.
5093         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
5094         AC_LIBOBJ invocations from here...
5095         * modules/iconv_open (configure.ac): ... to here.
5096
5097 2011-05-08  Bruno Haible  <bruno@clisp.org>
5098
5099         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
5100         If module 'iconv_open' is among the main modules and module
5101         'iconv_open-utf' is among the tests dependencies, then
5102         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
5103         return the special iconv_t values. Therefore iconv() and iconv_close()
5104         must support these special iconv_t values, already in lib, not only in
5105         tests.
5106         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
5107         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
5108         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
5109         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
5110         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
5111         (Depends-on): Add the dependencies of iconv_open-utf.
5112         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
5113         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
5114         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
5115
5116 2011-05-08  Bruno Haible  <bruno@clisp.org>
5117
5118         group-member: Move AC_LIBOBJ invocations to module description.
5119         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
5120         gl_PREREQ_GROUP_MEMBER invocations from here...
5121         * modules/group-member (configure.ac): ... to here.
5122
5123 2011-05-08  Bruno Haible  <bruno@clisp.org>
5124
5125         grantpt: Move AC_LIBOBJ invocations to module description.
5126         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
5127         invocations from here...
5128         * modules/grantpt (configure.ac): ... to here.
5129
5130 2011-05-08  Bruno Haible  <bruno@clisp.org>
5131
5132         glob: Move AC_LIBOBJ invocations to module description.
5133         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
5134         from here...
5135         * modules/glob (configure.ac): ... to here.
5136
5137 2011-05-08  Bruno Haible  <bruno@clisp.org>
5138
5139         getusershell: Move AC_LIBOBJ invocations to module description.
5140         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
5141         Move AC_LIBOBJ invocation from here...
5142         * modules/getusershell (configure.ac): ... to here.
5143         (Depends-on): Update condition.
5144
5145 2011-05-08  Bruno Haible  <bruno@clisp.org>
5146
5147         gettimeofday: Move AC_LIBOBJ invocations to module description.
5148         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
5149         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
5150         gl_PREREQ_GETTIMEOFDAY invocations from here...
5151         * modules/gettimeofday (configure.ac): ... to here.
5152
5153 2011-05-08  Bruno Haible  <bruno@clisp.org>
5154
5155         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
5156         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
5157         just gl_FUNC_TZSET.
5158         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
5159         (gl_FUNC_TZSET_CLOBBER): Remove actions.
5160         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
5161         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
5162
5163 2011-05-08  Bruno Haible  <bruno@clisp.org>
5164
5165         getsubopt: Move AC_LIBOBJ invocations to module description.
5166         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
5167         gl_PREREQ_GETSUBOPT invocations from here...
5168         * modules/getsubopt (configure.ac): ... to here.
5169
5170 2011-05-08  Bruno Haible  <bruno@clisp.org>
5171
5172         getpass-gnu: Move AC_LIBOBJ invocations to module description.
5173         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
5174         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
5175         * modules/getpass-gnu (configure.ac): ... to here.
5176
5177 2011-05-08  Bruno Haible  <bruno@clisp.org>
5178
5179         getpass: Move AC_LIBOBJ invocations to module description.
5180         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
5181         gl_PREREQ_GETPASS invocations from here...
5182         * modules/getpass (configure.ac): ... to here.
5183
5184 2011-05-08  Bruno Haible  <bruno@clisp.org>
5185
5186         getpagesize: Move AC_LIBOBJ invocations to module description.
5187         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
5188         from here...
5189         * modules/getpagesize (configure.ac): ... to here.
5190
5191 2011-05-08  Bruno Haible  <bruno@clisp.org>
5192
5193         getopt: Move AC_LIBOBJ invocations to module description.
5194         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
5195         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
5196         invocations from here...
5197         * modules/getopt-gnu (configure.ac): ... to here.
5198         * modules/getopt-posix (configure.ac): ... and here.
5199         (Depends-on): Update condition.
5200
5201 2011-05-08  Bruno Haible  <bruno@clisp.org>
5202
5203         getopt, argp: Respect rules for use of AC_LIBOBJ.
5204         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
5205         (gl_REPLACE_GETOPT_ALWAYS): New macro.
5206         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
5207         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
5208
5209 2011-05-08  Bruno Haible  <bruno@clisp.org>
5210
5211         getlogin_r: Move AC_LIBOBJ invocations to module description.
5212         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
5213         gl_PREREQ_GETLOGIN_R invocations from here...
5214         * modules/getlogin_r (configure.ac): ... to here.
5215
5216 2011-05-08  Bruno Haible  <bruno@clisp.org>
5217
5218         getlogin: Move AC_LIBOBJ invocations to module description.
5219         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
5220         here...
5221         * modules/getlogin (configure.ac): ... to here.
5222
5223 2011-05-08  Bruno Haible  <bruno@clisp.org>
5224
5225         getloadavg: Move AC_LIBOBJ invocations to module description.
5226         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
5227         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
5228         * modules/getloadavg (configure.ac): ... to here.
5229
5230 2011-05-08  Bruno Haible  <bruno@clisp.org>
5231
5232         gethrxtime: Move AC_LIBOBJ invocations to module description.
5233         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
5234         LIB_GETHRXTIME from here...
5235         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
5236         invocations from here...
5237         * modules/gethrxtime (configure.ac): ... to here.
5238
5239 2011-05-08  Bruno Haible  <bruno@clisp.org>
5240
5241         gethostname: Move AC_LIBOBJ invocations to module description.
5242         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
5243         gl_PREREQ_GETHOSTNAME invocations from here...
5244         * modules/gethostname (configure.ac): ... to here.
5245
5246 2011-05-08  Bruno Haible  <bruno@clisp.org>
5247
5248         getgroups: Move AC_LIBOBJ invocations to module description.
5249         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
5250         here...
5251         * modules/getgroups (configure.ac): ... to here.
5252
5253 2011-05-08  Bruno Haible  <bruno@clisp.org>
5254
5255         getdtablesize: Move AC_LIBOBJ invocations to module description.
5256         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
5257         invocation from here...
5258         * modules/getdtablesize (configure.ac): ... to here.
5259
5260 2011-05-08  Bruno Haible  <bruno@clisp.org>
5261
5262         getdomainname: Move AC_LIBOBJ invocations to module description.
5263         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
5264         gl_PREREQ_GETDOMAINNAME invocations from here...
5265         * modules/getdomainname (configure.ac): ... to here.
5266
5267 2011-05-08  Bruno Haible  <bruno@clisp.org>
5268
5269         getline: Move AC_LIBOBJ invocations to module description.
5270         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
5271         invocations from here...
5272         * modules/getline (configure.ac): ... to here.
5273
5274 2011-05-08  Bruno Haible  <bruno@clisp.org>
5275
5276         getline: Simplify.
5277         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
5278         It's already handled through the module dependency.
5279
5280 2011-05-08  Bruno Haible  <bruno@clisp.org>
5281
5282         getdelim: Move AC_LIBOBJ invocations to module description.
5283         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
5284         and gl_PREREQ_GETDELIM invocations from here...
5285         * modules/getdelim (configure.ac): ... to here.
5286         (Depends-on): Fix condition.
5287
5288 2011-05-08  Bruno Haible  <bruno@clisp.org>
5289
5290         getcwd: Move AC_LIBOBJ invocations to module description.
5291         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
5292         invocations from here...
5293         * modules/getcwd (configure.ac): ... to here.
5294
5295 2011-05-08  Bruno Haible  <bruno@clisp.org>
5296
5297         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
5298         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
5299         here...
5300         * modules/getcwd-lgpl (configure.ac): ... to here.
5301
5302 2011-05-07  Bruno Haible  <bruno@clisp.org>
5303
5304         crypto/gc: Move AC_LIBOBJ invocations to module description.
5305         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
5306         * modules/crypto/gc (configure.ac): ... to here.
5307
5308 2011-05-07  Bruno Haible  <bruno@clisp.org>
5309
5310         fwriting: Move AC_LIBOBJ invocations to module description.
5311         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
5312         here...
5313         * modules/fwriting (configure.ac): ... to here.
5314
5315 2011-05-07  Bruno Haible  <bruno@clisp.org>
5316
5317         fwritable: Move AC_LIBOBJ invocations to module description.
5318         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
5319         here...
5320         * modules/fwritable (configure.ac): ... to here.
5321
5322 2011-05-07  Bruno Haible  <bruno@clisp.org>
5323
5324         futimens: Move AC_LIBOBJ invocations to module description.
5325         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
5326         here...
5327         * modules/futimens (configure.ac): ... to here.
5328
5329 2011-05-07  Bruno Haible  <bruno@clisp.org>
5330
5331         ftruncate: Move AC_LIBOBJ invocations to module description.
5332         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
5333         gl_PREREQ_FTRUNCATE invocations from here...
5334         * modules/ftruncate (configure.ac): ... to here.
5335
5336 2011-05-07  Bruno Haible  <bruno@clisp.org>
5337
5338         fsync: Move AC_LIBOBJ invocations to module description.
5339         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
5340         invocations from here...
5341         * modules/fsync (configure.ac): ... to here.
5342
5343 2011-05-07  Bruno Haible  <bruno@clisp.org>
5344
5345         fsusage: Move AC_LIBOBJ invocations to module description.
5346         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
5347         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
5348         * modules/fsusage (configure.ac): ... to here.
5349
5350 2011-05-07  Bruno Haible  <bruno@clisp.org>
5351
5352         freopen: Move AC_LIBOBJ invocations to module description.
5353         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
5354         invocations from here...
5355         * modules/freopen (configure.ac): ... to here.
5356
5357 2011-05-07  Bruno Haible  <bruno@clisp.org>
5358
5359         free: Move AC_LIBOBJ invocations to module description.
5360         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
5361         invocations from here...
5362         * modules/free (configure.ac): ... to here.
5363
5364 2011-05-07  Bruno Haible  <bruno@clisp.org>
5365
5366         freadable: Move AC_LIBOBJ invocations to module description.
5367         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
5368         here...
5369         * modules/freadable (configure.ac): ... to here.
5370
5371 2011-05-07  Bruno Haible  <bruno@clisp.org>
5372
5373         fpurge: Move AC_LIBOBJ invocations to module description.
5374         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
5375         invocations from here...
5376         * modules/fpurge (configure.ac): ... to here.
5377
5378 2011-05-07  Bruno Haible  <bruno@clisp.org>
5379
5380         fpending: Move AC_LIBOBJ invocations to module description.
5381         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
5382         gl_FUNC_FPENDING.
5383         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
5384         invocations from here...
5385         * modules/fpending (configure.ac): ... to here.
5386
5387 2011-05-07  Bruno Haible  <bruno@clisp.org>
5388
5389         fopen: Move AC_LIBOBJ invocations to module description.
5390         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
5391         invocations from here...
5392         * modules/fopen (configure.ac): ... to here.
5393
5394 2011-05-07  Bruno Haible  <bruno@clisp.org>
5395
5396         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
5397         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
5398         gl_FUNC_FNMATCH_POSIX.
5399         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
5400         invocations from here...
5401         * modules/fnmatch (configure.ac): ... to here.
5402         * modules/fnmatch-gnu (configure.ac): ... and here.
5403
5404 2011-05-07  Bruno Haible  <bruno@clisp.org>
5405
5406         flock: Move AC_LIBOBJ invocations to module description.
5407         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
5408         invocations from here...
5409         * modules/flock (configure.ac): ... to here.
5410
5411 2011-05-07  Bruno Haible  <bruno@clisp.org>
5412
5413         fileblocks: Move AC_LIBOBJ invocations to module description.
5414         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
5415         gl_PREREQ_FILEBLOCKS invocations from here...
5416         * modules/fileblocks (configure.ac): ... to here.
5417
5418 2011-05-06  Bruno Haible  <bruno@clisp.org>
5419
5420         fflush: Move AC_LIBOBJ invocations to module description.
5421         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
5422         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
5423         invocations from here...
5424         * modules/fflush (configure.ac): ... to here.
5425
5426 2011-05-06  Bruno Haible  <bruno@clisp.org>
5427
5428         fdopendir: Move AC_LIBOBJ invocations to module description.
5429         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
5430         here...
5431         * modules/fdopendir (configure.ac): ... to here.
5432         (Depends-on): Improve conditions.
5433
5434 2011-05-06  Bruno Haible  <bruno@clisp.org>
5435
5436         _Exit: Move AC_LIBOBJ invocations to module description.
5437         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
5438         invocations from here...
5439         * modules/_Exit (configure.ac): ... to here.
5440
5441 2011-05-21  Bruno Haible  <bruno@clisp.org>
5442
5443         euidaccess: Respect rules for use of AC_LIBOBJ.
5444         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
5445         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
5446         from here...
5447         * modules/euidaccess (configure.ac): ... to here.
5448
5449 2011-05-06  Bruno Haible  <bruno@clisp.org>
5450
5451         error: Move AC_LIBOBJ invocations to module description.
5452         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
5453         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
5454         invocations from here...
5455         * modules/error (configure.ac): ... to here.
5456
5457 2011-05-06  Bruno Haible  <bruno@clisp.org>
5458
5459         duplocale: Move AC_LIBOBJ invocations to module description.
5460         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
5461         gl_PREREQ_DUPLOCALE invocations from here...
5462         * modules/duplocale (configure.ac): ... to here.
5463
5464 2011-05-05  Bruno Haible  <bruno@clisp.org>
5465
5466         dirfd: Move AC_LIBOBJ invocations to module description.
5467         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
5468         gl_FUNC_DIRFD.
5469         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
5470         here...
5471         * modules/dirfd (configure.ac): ... to here.
5472         (Depends-on): Fix condition.
5473
5474 2011-05-05  Bruno Haible  <bruno@clisp.org>
5475
5476         chown: Respect rules for use of AC_LIBOBJ.
5477         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
5478         * modules/chown (configure.ac): ... to here.
5479
5480 2011-05-05  Bruno Haible  <bruno@clisp.org>
5481
5482         chdir-long: Move AC_LIBOBJ invocations to module description.
5483         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
5484         gl_PREREQ_CHDIR_LONG invocations from here...
5485         * modules/chdir-long (configure.ac): ... to here.
5486
5487 2011-05-05  Bruno Haible  <bruno@clisp.org>
5488
5489         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
5490         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
5491         from here...
5492         * modules/canonicalize-lgpl (configure.ac): ... to here.
5493
5494 2011-05-05  Bruno Haible  <bruno@clisp.org>
5495
5496         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
5497         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
5498         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
5499         REPLACE_CALLOC.
5500         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
5501         * modules/calloc-gnu (configure.ac): Likewise.
5502
5503 2011-05-05  Bruno Haible  <bruno@clisp.org>
5504
5505         btowc: Move AC_LIBOBJ invocations to module description.
5506         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
5507         invocations from here...
5508         * modules/btowc (configure.ac): ... to here.
5509
5510 2011-05-21  Bruno Haible  <bruno@clisp.org>
5511
5512         atexit: Move AC_LIBOBJ invocations to module description.
5513         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
5514         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
5515         here...
5516         * modules/atexit (configure.ac): ... to here.
5517
5518 2011-05-05  Bruno Haible  <bruno@clisp.org>
5519
5520         atoll: Move AC_LIBOBJ invocations to module description.
5521         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
5522         invocations from here...
5523         * modules/atoll (configure.ac): ... to here.
5524
5525 2011-05-05  Bruno Haible  <bruno@clisp.org>
5526
5527         argz: Move AC_LIBOBJ invocations to module description.
5528         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
5529         * modules/argz (configure.ac): ... to here.
5530
5531 2011-05-05  Bruno Haible  <bruno@clisp.org>
5532
5533         alphasort: Move AC_LIBOBJ invocations to module description.
5534         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
5535         gl_PREREQ_ALPHASORT invocations from here...
5536         * modules/alphasort (configure.ac): ... to here.
5537
5538 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
5539
5540         verify: new macro verify_expr; verify_true deprecated
5541         * NEWS: Mention this.
5542         * doc/verify.texi (Compile-time Assertions): Document this.
5543         * lib/verify.h (verify_true): Deprecate.
5544         (verify_expr): New macro.
5545         * tests/test-verify.c (function): Test verify_expr.
5546
5547 2011-06-14  Jim Meyering  <meyering@redhat.com>
5548
5549         init.sh: give more portable redirection-related advice in a comment
5550         * tests/init.sh (stderr_fileno_): Update the advice in comments.
5551         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
5552         for lots of discussion.  Stefano Lattarini suggested the solution
5553         of putting "9>&2" after the command.  Reported by Bruno Haible.
5554
5555 2011-06-13  Bruno Haible  <bruno@clisp.org>
5556
5557         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
5558         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
5559         'none'.
5560
5561 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
5562
5563         ftoastr: use strtof only if HAVE_STRTOF
5564         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
5565         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
5566         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
5567         * modules/ftoastr (configure.ac): Check for strtof.
5568
5569 2011-06-13  Bruno Haible  <bruno@clisp.org>
5570
5571         gnulib-tool: Addendum to 2011-06-08 commit.
5572         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
5573         and --witness-c-macro have been given, augment AM_CPPFLAGS.
5574
5575 2011-06-13  Bruno Haible  <bruno@clisp.org>
5576
5577         fseeko: Provide a non-inline replacement of fseek().
5578         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
5579         * modules/fseeko (Depends-on): Add fseek.
5580         * modules/fseek (License): Change to LGPLv2+.
5581
5582 2011-06-13  Bruno Haible  <bruno@clisp.org>
5583
5584         ftello: Provide a non-inline replacement of ftell().
5585         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
5586         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
5587         not have ftello() (such as on mingw).
5588         * modules/ftello (Depends-on): Add ftell.
5589         * modules/ftell (License): Change to LGPLv2+.
5590
5591 2011-05-07  Bruno Haible  <bruno@clisp.org>
5592
5593         ftell: Move AC_LIBOBJ invocations to module description.
5594         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
5595         * modules/ftell (configure.ac): ... to here.
5596
5597 2011-05-07  Bruno Haible  <bruno@clisp.org>
5598
5599         ftello: Respect rules for use of AC_LIBOBJ.
5600         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
5601         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
5602         here...
5603         * modules/ftello (configure.ac): ... to here.
5604
5605 2011-05-07  Bruno Haible  <bruno@clisp.org>
5606
5607         fseeko: Simplify.
5608         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
5609         (gl_FUNC_FSEEKO): Inline it here.
5610
5611 2011-05-07  Bruno Haible  <bruno@clisp.org>
5612
5613         fseek: Move AC_LIBOBJ invocations to module description.
5614         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
5615         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
5616         * modules/fseek (configure.ac): ... to here.
5617
5618 2011-05-07  Bruno Haible  <bruno@clisp.org>
5619
5620         fseek: Respect rules for use of AC_LIBOBJ.
5621         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
5622         here...
5623         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
5624
5625 2011-05-07  Bruno Haible  <bruno@clisp.org>
5626
5627         fseeko: Respect rules for use of AC_LIBOBJ.
5628         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
5629         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
5630         here...
5631         * modules/fseeko (configure.ac): ... to here.
5632
5633 2011-06-13  Bruno Haible  <bruno@clisp.org>
5634
5635         gnulib-tool: Allow comments in the 'Depends-on' section.
5636         * doc/gnulib.texi (Module description): Mention comment syntax in the
5637         Depends-on section.
5638         * gnulib-tool (func_get_dependencies): Filter out comment lines.
5639
5640 2011-06-13  Bruno Haible  <bruno@clisp.org>
5641
5642         file-set.h: guard __attibute__ use, now that it's not always defined
5643         * lib/file-set.h (record_file): Use __attribute__ only with compiler
5644         versions that support it.  This fixes a coreutils build failure with
5645         the vendor cc on HP-UX 11.31.
5646
5647 2011-06-12  Bruno Haible  <bruno@clisp.org>
5648
5649         acl: Add support for HP-UX >= 11.11 JFS ACLs.
5650         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
5651         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
5652         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
5653         (acl, aclsort): New declarations.
5654         (aclv_nontrivial): New declaration.
5655         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
5656         (file_has_acl): Read also the second kind of HP-UX ACLs.
5657         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
5658         kind of HP-UX ACLs if the first kind fails.
5659         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
5660         second kind of HP-UX ACLs.
5661         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
5662         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
5663         agree.
5664         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
5665         hpuxjfs.
5666         Handle hpuxjfs.
5667         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
5668         hpuxjfs.
5669         Handle hpuxjfs.
5670         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
5671         (func_test_same_acls): Use both lsacl and getacl.
5672         Handle hpuxjfs.
5673         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
5674         (func_test_same_acls): Use both lsacl and getacl.
5675         Handle hpuxjfs.
5676
5677 2011-06-12  Bruno Haible  <bruno@clisp.org>
5678
5679         acl: Complete the 2010-08-10 fix.
5680         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
5681         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
5682         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
5683         explicitly.
5684         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
5685         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
5686
5687 2011-06-12  Bruno Haible  <bruno@clisp.org>
5688
5689         spawn-pipe tests: Comments.
5690         * tests/test-spawn-pipe-child.c (main): Update comment.
5691         Reported by James Youngman <jay@gnu.org>.
5692
5693 2011-06-11  James Youngman  <jay@gnu.org>
5694
5695         New module 'stat-size'.
5696         * modules/stat-size: New module.  Provides macros for accessing
5697         file size information in instances of struct stat.  Depends on the
5698         fileblocks module because it calls st_blocks.
5699         * lib/stat-size.h: New file, adapted from coreutils' system.h.
5700         * doc/gnulib.texi: Include stat-size.texi.
5701         * doc/stat-size.texi: Documentation for this module.
5702         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
5703         * m4/fileblocks.m4: Mention that stat-size depends on the call to
5704         AC_STRUCT_ST_BLOCKS.
5705
5706 2011-06-09  Bruno Haible  <bruno@clisp.org>
5707
5708         thread: Support pthreads-win32.
5709         * lib/glthread/thread.h (gl_thread_self): Define differently on
5710         pthreads-win32.
5711         (gl_null_thread): New declaration.
5712         (gl_thread_self_pointer): New macro.
5713         * lib/glthread/thread.c (gl_null_thread): New constant.
5714         * tests/test-lock.c: Use gl_thread_self_pointer instead of
5715         gl_thread_self.
5716         * tests/test-tls.c: Likewise.
5717         Suggested by Paul Eggert. Reported by Eric Blake.
5718
5719 2011-06-09  Bruno Haible  <bruno@clisp.org>
5720
5721         thread: Fix confusion between NULL and 0.
5722         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
5723         Reported by Paul Eggert.
5724
5725 2011-06-09  Bruno Haible  <bruno@clisp.org>
5726
5727         spawn-pipe tests: Avoid test failure on HP-UX 11.
5728         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
5729         is closed.
5730
5731 2011-06-09  Bruno Haible  <bruno@clisp.org>
5732
5733         acl tests: Fix compilation error on HP-UX 11.
5734         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
5735
5736 2011-06-09  Bruno Haible  <bruno@clisp.org>
5737
5738         rmdir: Avoid test failure on HP-UX 10.20.
5739         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
5740         EEXIST.
5741
5742 2011-06-08  Eric Blake  <eblake@redhat.com>
5743
5744         perror: fix test on mingw
5745         * modules/perror-tests (Depends-on): Add dup2.
5746
5747         strerror_r-posix: fix on MacOS
5748         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
5749         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
5750         logic bug.
5751         * lib/strerror_r.c (strerror_r): Fix the bug.
5752         * lib/strerror.c (strerror): Likewise.
5753         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
5754         problem.
5755         * doc/posix-functions/strerror.texi (strerror): Likewise.
5756         * doc/posix-functions/perror.texi (perror): Likewise.
5757         * tests/test-strerror.c (main): Enhance test.
5758         * tests/test-strerror_r.c (main): Likewise.
5759
5760 2011-06-08  Bruno Haible  <bruno@clisp.org>
5761
5762         gnulib-tool: Better isolation between different gnulib-tool invocations.
5763         * gnulib-tool: New option --witness-c-macro.
5764         (witness_c_macro): New variable.
5765         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
5766         AM_CPPFLAGS define it as a C macro.
5767         (func_emit_tests_Makefile_am): Likewise.
5768         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
5769         read it from there.
5770         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
5771         m4_define, not AC_DEFUN.
5772         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
5773         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
5774         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
5775         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
5776         s|...|...|, to substitute the values of the GNULIB_* module indicator
5777         variables.
5778         * modules/dirent (Makefile.am): Likewise.
5779         * modules/fcntl-h (Makefile.am): Likewise.
5780         * modules/iconv-h (Makefile.am): Likewise.
5781         * modules/langinfo (Makefile.am): Likewise.
5782         * modules/locale (Makefile.am): Likewise.
5783         * modules/math (Makefile.am): Likewise.
5784         * modules/netdb (Makefile.am): Likewise.
5785         * modules/poll-h (Makefile.am): Likewise.
5786         * modules/pty (Makefile.am): Likewise.
5787         * modules/search (Makefile.am): Likewise.
5788         * modules/signal (Makefile.am): Likewise.
5789         * modules/spawn (Makefile.am): Likewise.
5790         * modules/stdio (Makefile.am): Likewise.
5791         * modules/stdlib (Makefile.am): Likewise.
5792         * modules/string (Makefile.am): Likewise.
5793         * modules/sys_ioctl (Makefile.am): Likewise.
5794         * modules/sys_select (Makefile.am): Likewise.
5795         * modules/sys_socket (Makefile.am): Likewise.
5796         * modules/sys_stat (Makefile.am): Likewise.
5797         * modules/sys_times (Makefile.am): Likewise.
5798         * modules/sys_utsname (Makefile.am): Likewise.
5799         * modules/sys_wait (Makefile.am): Likewise.
5800         * modules/termios (Makefile.am): Likewise.
5801         * modules/time (Makefile.am): Likewise.
5802         * modules/unistd (Makefile.am): Likewise.
5803         * modules/wchar (Makefile.am): Likewise.
5804
5805 2011-06-08  Eric Blake  <eblake@redhat.com>
5806
5807         strerror: simplify replacement
5808         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
5809         * modules/strerror (configure.ac): No prereqs needed here...
5810         * modules/strerror-override (configure.ac): ...but this needs it.
5811         (Files): Add file for needed prereq macro.
5812
5813 2011-06-08  Bruno Haible  <bruno@clisp.org>
5814
5815         strerror_r-posix: Tweaks.
5816         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
5817         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
5818         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
5819         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
5820         (gl_FUNC_STRERROR_R): ... to here.
5821         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
5822
5823 2011-06-07  Eric Blake  <eblake@redhat.com>
5824
5825         perror: document fixed bugs
5826         * doc/posix-functions/perror.texi (perror): Document recent
5827         patches.
5828
5829 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
5830
5831         stat-time: get_stat_birthtime failure is better-defined
5832         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
5833         return a timestamp whose tv_sec and tv_nsec values are both -1.
5834         Previously, the spec said only that the tv_nsec value was negative.
5835         This upward-compatible change simplifies GNU tar a bit.
5836
5837 2011-06-07  Eric Blake  <eblake@redhat.com>
5838
5839         strerror_r-posix: work around cygwin 1.7.9
5840         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
5841         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
5842         bug without replacing strerror_r.
5843         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
5844         strerror_r is buggy, but without requiring strerror_r compilation.
5845         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
5846
5847         test-perror: relax test to ignore cygwin bug
5848         * tests/test-perror2.c (main): Relax test on requiring detection
5849         of stream errors, and use unbuffered stream.
5850         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
5851         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
5852         * doc/posix-functions/fputc.texi (fputc): Likewise.
5853         * doc/posix-functions/fputs.texi (fputs): Likewise.
5854         * doc/posix-functions/fputws.texi (fputws): Likewise.
5855         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
5856         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
5857         * doc/posix-functions/getopt.texi (getopt): Likewise.
5858         * doc/posix-functions/perror.texi (perror): Likewise.
5859         * doc/posix-functions/printf.texi (printf): Likewise.
5860         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
5861         * doc/posix-functions/psignal.texi (psignal): Likewise.
5862         * doc/posix-functions/putc.texi (putc): Likewise.
5863         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
5864         Likewise.
5865         * doc/posix-functions/putchar.texi (putchar): Likewise.
5866         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
5867         Likewise.
5868         * doc/posix-functions/puts.texi (puts): Likewise.
5869         * doc/posix-functions/putwc.texi (putwc): Likewise.
5870         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
5871         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
5872         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
5873         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
5874         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
5875         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
5876         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
5877         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
5878
5879 2011-05-22  Bruno Haible  <bruno@clisp.org>
5880
5881         strerror: Move AC_LIBOBJ invocations to module description.
5882         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
5883         gl_PREREQ_STRERROR invocations from here...
5884         * modules/strerror (configure.ac): ... to here.
5885
5886 2011-05-21  Bruno Haible  <bruno@clisp.org>
5887
5888         perror: Use common idiom.
5889         * modules/perror (configure.ac): Reorder statements.
5890
5891 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
5892
5893         tests: fix usage message in 'mktempd_'
5894         * tests/init.sh (mktempd_): In the usage message, use literal
5895         'mktempd_', not '$ME' (which is even undefined), as the name of
5896         the subroutine.
5897
5898 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
5899
5900         tests init: new function 'fatal_', for hard errors
5901         Before this patch, the only way offered by tests/init.sh to
5902         properly signal a hard error was the `framework_failure_'
5903         function.  But the error message issued by that function,
5904         as its name would suggest, refers to a set-up failure in the
5905         testsuite, while hard errors can obviously also be due to
5906         other reasons.  The best way to fix this inconsistency is to
5907         introduce a new function with a more general error message.
5908         * tests/init.sh (fatal_): New function.
5909
5910 2011-06-06  Eric Blake  <eblake@redhat.com>
5911
5912         canonicalize-lgpl: use common idiom
5913         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
5914         over newer POSIX -Rf.
5915         Reported by Bruno Haible.
5916
5917         canonicalize-lgpl: work around AIX realpath bug
5918         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
5919         * doc/posix-functions/realpath.texi (realpath): Document it.
5920         Reported by Bruno Haible.
5921
5922         strerror: work around FreeBSD bug
5923         * lib/strerror.c (strerror): Special case 0.
5924         Reported by Bruno Haible.
5925
5926         strerror-override: avoid bloating errno module
5927         * modules/errno (Files, configure.ac): Move replacement strings...
5928         * modules/strerror-override: ...to new module.
5929         * modules/strerror (Depends-on): Add strerror-override.
5930         * modules/strerror_r-posix (Depends-on): Likewise.
5931         * MODULES.html.sh: Document new module.
5932         Reported by Bruno Haible.
5933
5934 2011-06-06  Bruno Haible  <bruno@clisp.org>
5935
5936         spawn-pipe tests: Rename program.
5937         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
5938         * tests/test-spawn-pipe-child.c: Update comment.
5939         * tests/test-spawn-pipe.sh: Update.
5940         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
5941
5942         spawn-pipe tests: Link the child program only against libc.
5943         * tests/test-spawn-pipe-child.c: New file, extracted from
5944         tests/test-spawn-pipe.c.
5945         (main): Expect only one argument.
5946         (is_open): New function, copied from tests/test-pipe.c.
5947         * tests/test-spawn-pipe.c: Don't include <errno.h>.
5948         (child_main): Remove function.
5949         (test_pipe): Pass only one argument to the child program.
5950         (main): Remove child process code. Expect the child program's name as
5951         first argument.
5952         * tests/test-spawn-pipe.sh: Pass the child program's name as first
5953         argument.
5954         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
5955         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
5956         test-spawn-pipe-child against no libraries.
5957
5958 2011-06-06  Bruno Haible  <bruno@clisp.org>
5959
5960         careadlinkat: Avoid mismatch between ssize_t and int.
5961         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
5962         * lib/careadlinkat.c (careadlinkatcwd): Define always.
5963
5964 2011-06-06  Jim Meyering  <meyering@redhat.com>
5965
5966         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
5967         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
5968         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
5969
5970 2011-06-05  Bruno Haible  <bruno@clisp.org>
5971
5972         ansi-c++-opt: Interoperability with libtool.
5973         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
5974         set the variable to "no", not to ":".
5975         * NEWS: Mention the change.
5976
5977 2011-06-05  Bruno Haible  <bruno@clisp.org>
5978
5979         acl: Fix test failure on AIX 7.
5980         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
5981         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
5982
5983 2011-06-05  Bruno Haible  <bruno@clisp.org>
5984
5985         pipe-filter-ii: Fix test failure on AIX and IRIX.
5986         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
5987         with EAGAIN, retry with a smaller buffer size.
5988
5989 2011-06-05  Bruno Haible  <bruno@clisp.org>
5990
5991         localename: Fix link dependencies.
5992         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
5993         * modules/localename-tests (Makefile.am): Link test-localename with
5994         $(LIBTHREAD).
5995
5996 2011-06-05  Bruno Haible  <bruno@clisp.org>
5997
5998         error: Avoid gcc warning.
5999         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
6000
6001 2011-06-05  Bruno Haible  <bruno@clisp.org>
6002
6003         unsetenv: Avoid gcc warning.
6004         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
6005
6006 2011-06-05  Bruno Haible  <bruno@clisp.org>
6007
6008         setenv: Avoid gcc warning.
6009         * lib/setenv.c (setenv): Provide declaration if system lacks it.
6010
6011 2011-06-05  Bruno Haible  <bruno@clisp.org>
6012
6013         sys_select: Ensure memset is declared also on AIX 7.
6014         * lib/sys_select.in.h: Include <string.h> also on AIX.
6015         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
6016         self-contained also on AIX 7.1.
6017
6018 2011-06-04  Jim Meyering  <meyering@redhat.com>
6019
6020         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
6021         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
6022         function name, "error".
6023         (_gl_translatable_diag_func_re): New configurable variable.
6024
6025 2011-06-04  Bruno Haible  <bruno@clisp.org>
6026
6027         getopt: Avoid gcc warning.
6028         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
6029
6030 2011-06-04  Bruno Haible  <bruno@clisp.org>
6031
6032         strerror_r: Fix comments.
6033         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
6034         commit.
6035
6036 2011-06-04  Bruno Haible  <bruno@clisp.org>
6037
6038         perror: Fix compilation error.
6039         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
6040         Undefine fprintf, not sprintf.
6041         * modules/perror (Depends-on): Remove intprops, verify.
6042
6043 2011-06-04  Bruno Haible  <bruno@clisp.org>
6044
6045         setlocale: Enable replacement on Cygwin 1.5.
6046         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
6047         Cygwin 1.5.x.
6048         * doc/posix-functions/setlocale.texi: Mention that the problem with the
6049         LC_CTYPE category also exists on Cygwin 1.5.x.
6050
6051 2011-06-04  Bruno Haible  <bruno@clisp.org>
6052
6053         strerror-override: Don't disable symbol renamings.
6054         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
6055         * lib/strerror-override.c: Include config.h.
6056         (strerror_override): Don't undefine.
6057
6058 2011-06-03  Bruno Haible  <bruno@clisp.org>
6059
6060         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
6061         * lib/localename.h: Update copyright header.
6062         * lib/localename.c: Likewise.
6063         * lib/relocatable.h: Likewise.
6064         * lib/relocatable.c: Likewise.
6065
6066 2011-06-02  Bruno Haible  <bruno@clisp.org>
6067
6068         doc: Fix a module name.
6069         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
6070
6071 2011-06-02  Bruno Haible  <bruno@clisp.org>
6072
6073         pipe2: Remove dependency on 'nonblocking' module.
6074         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
6075         O_NONBLOCK is defined by gnulib.
6076         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
6077         is zero.
6078         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
6079         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
6080         defined by gnulib.
6081         (get_nonblocking_flag): New function.
6082         (main): Test O_NONBLOCK flag only if it is nonzero.
6083         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
6084
6085 2011-06-03  Jim Meyering  <meyering@redhat.com>
6086
6087         maint: three new prohibit-header-without-use rules
6088         Prohibit use of cloexec.h, posixver.h, same.h without use.
6089         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
6090         (sc_prohibit_posixver_without_use): Likewise.
6091         (sc_prohibit_same_without_use): Likewise.
6092
6093 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
6094
6095         allocator: 'die' routine is now given requested size
6096         * lib/allocator.h (struct allocator.die): New size arg.
6097         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
6098         If the actual problem is an ssize_t limitation, not a size_t or
6099         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
6100
6101 2011-06-01  Eric Blake  <eblake@redhat.com>
6102
6103         strerror: drop strerror_r dependency
6104         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
6105         * lib/strerror-override.c (strerror_override): ...to new file.
6106         * lib/strerror-override.h: Add prototype.
6107         * lib/strerror-impl.h: Delete.
6108         * lib/strerror.c (strerror): New implementation.
6109         * modules/errno (Files): Add new files.
6110         (configure.ac): Compile new file as appropriate.
6111         * modules/strerror (Files): Drop unused file.
6112         (Depends-on): Drop strerror_r-posix.
6113         * MODULES.html.sh: Document strerror_r-posix.
6114         Requested by Sam Steingold.
6115
6116         perror: call strerror_r directly
6117         * modules/perror (Files): Drop strerror-impl.h.
6118         * lib/perror.c (perror): Use our own stack buffer, rather than
6119         calling a wrapper that uses static storage.
6120         * doc/posix-functions/perror.texi (perror): Document a limitation
6121         of our replacement.
6122
6123         strerror_r: fix includes for FreeBSD
6124         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
6125         since we use abort on some platforms.
6126         Reported by Matthias Bolte.
6127
6128 2011-05-31  Bruno Haible  <bruno@clisp.org>
6129
6130         Fix link errors in tests: openat-die uses gettext-h.
6131         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
6132         against $(LIBINTL).
6133         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
6134         against $(LIBINTL).
6135         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
6136         $(LIBINTL).
6137         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
6138         against $(LIBINTL).
6139         * modules/linkat-tests (Makefile.am): Link test-linkat against
6140         $(LIBINTL).
6141         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
6142         $(LIBINTL).
6143         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
6144         against $(LIBINTL).
6145         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
6146         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
6147         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
6148         $(LIBINTL).
6149         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
6150         $(LIBINTL).
6151         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
6152         $(LIBINTL).
6153         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6154
6155 2011-05-31  Bruno Haible  <bruno@clisp.org>
6156
6157         Fix link errors in tests: wait-process uses gettext-h.
6158         * modules/nonblocking-pipe-tests (Makefile.am): Set
6159         test_nonblocking_pipe_main_LDADD.
6160         * modules/nonblocking-socket-tests (Makefile.am): Link
6161         test-nonblocking-socket-main against $(LIBINTL).
6162         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6163
6164 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
6165
6166         assert-h: work around 'verify' incompatibility
6167         * lib/verify.h: Use @...@ directives, not ifdef.
6168         * modules/assert-h (assert.h): Implement the directives.
6169         (assert.h): Substitute the symbol-prefix more consistently.
6170
6171 2011-05-29  Jim Meyering  <meyering@redhat.com>
6172
6173         trim: remove three superfluous assignments
6174         * lib/trim.c (trim2): Remove three superfluous assignments
6175         and correct brace positioning.
6176
6177 2011-05-29  Bruno Haible  <bruno@clisp.org>
6178
6179         wctype-h: Avoid namespace pollution on Solaris 2.6.
6180         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
6181         identifiers.
6182         * doc/posix-headers/wctype.texi: Mention the problem.
6183         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6184
6185 2011-05-28  Jim Meyering  <meyering@redhat.com>
6186
6187         parse-datetime.y: accommodate -Wstrict-overflow
6188         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
6189         placate -Wstrict-overflow.
6190
6191         trim: avoid a warning from -O2 -Wstrict-overflow
6192         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
6193
6194 2011-05-29  Bruno Haible  <bruno@clisp.org>
6195
6196         gnulib-tool: Fix bug in yesterday's commit.
6197         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
6198         twice.
6199
6200 2011-05-29  Bruno Haible  <bruno@clisp.org>
6201
6202         Allow multiple gnulib generated include files to be combined.
6203         * gnulib-tool (func_compute_include_guard_prefix): New function.
6204         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
6205         ${gl_include_guard_prefix} references.
6206         (func_import, func_create_testdir): Invoke
6207         func_compute_include_guard_prefix.
6208         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
6209         * lib/ctype.in.h: Likewise.
6210         * lib/dirent.in.h: Likewise.
6211         * lib/errno.in.h: Likewise.
6212         * lib/fcntl.in.h: Likewise.
6213         * lib/float.in.h: Likewise.
6214         * lib/getopt.in.h: Likewise.
6215         * lib/iconv.in.h: Likewise.
6216         * lib/langinfo.in.h: Likewise.
6217         * lib/locale.in.h: Likewise.
6218         * lib/math.in.h: Likewise.
6219         * lib/netdb.in.h: Likewise.
6220         * lib/netinet_in.in.h: Likewise.
6221         * lib/poll.in.h: Likewise.
6222         * lib/pthread.in.h: Likewise.
6223         * lib/pty.in.h: Likewise.
6224         * lib/sched.in.h: Likewise.
6225         * lib/se-selinux.in.h: Likewise.
6226         * lib/search.in.h: Likewise.
6227         * lib/signal.in.h: Likewise.
6228         * lib/spawn.in.h: Likewise.
6229         * lib/stdarg.in.h: Likewise.
6230         * lib/stddef.in.h: Likewise.
6231         * lib/stdint.in.h: Likewise.
6232         * lib/stdio.in.h: Likewise.
6233         * lib/stdlib.in.h: Likewise.
6234         * lib/string.in.h: Likewise.
6235         * lib/strings.in.h: Likewise.
6236         * lib/sys_file.in.h: Likewise.
6237         * lib/sys_ioctl.in.h: Likewise.
6238         * lib/sys_select.in.h: Likewise.
6239         * lib/sys_socket.in.h: Likewise.
6240         * lib/sys_stat.in.h: Likewise.
6241         * lib/sys_time.in.h: Likewise.
6242         * lib/sys_times.in.h: Likewise.
6243         * lib/sys_uio.in.h: Likewise.
6244         * lib/sys_utsname.in.h: Likewise.
6245         * lib/sys_wait.in.h: Likewise.
6246         * lib/sysexits.in.h: Likewise.
6247         * lib/termios.in.h: Likewise.
6248         * lib/time.in.h: Likewise.
6249         * lib/unistd.in.h: Likewise.
6250         * lib/wchar.in.h: Likewise.
6251         * lib/wctype.in.h: Likewise.
6252         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
6253         * modules/ctype (Makefile.am): Likewise.
6254         * modules/dirent (Makefile.am): Likewise.
6255         * modules/errno (Makefile.am): Likewise.
6256         * modules/fcntl-h (Makefile.am): Likewise.
6257         * modules/float (Makefile.am): Likewise.
6258         * modules/getopt-posix (Makefile.am): Likewise.
6259         * modules/iconv-h (Makefile.am): Likewise.
6260         * modules/langinfo (Makefile.am): Likewise.
6261         * modules/locale (Makefile.am): Likewise.
6262         * modules/math (Makefile.am): Likewise.
6263         * modules/netdb (Makefile.am): Likewise.
6264         * modules/netinet_in (Makefile.am): Likewise.
6265         * modules/poll-h (Makefile.am): Likewise.
6266         * modules/pthread (Makefile.am): Likewise.
6267         * modules/pty (Makefile.am): Likewise.
6268         * modules/sched (Makefile.am): Likewise.
6269         * modules/search (Makefile.am): Likewise.
6270         * modules/selinux-h (Makefile.am): Likewise.
6271         * modules/signal (Makefile.am): Likewise.
6272         * modules/spawn (Makefile.am): Likewise.
6273         * modules/stdarg (Makefile.am): Likewise.
6274         * modules/stddef (Makefile.am): Likewise.
6275         * modules/stdint (Makefile.am): Likewise.
6276         * modules/stdio (Makefile.am): Likewise.
6277         * modules/stdlib (Makefile.am): Likewise.
6278         * modules/string (Makefile.am): Likewise.
6279         * modules/strings (Makefile.am): Likewise.
6280         * modules/sys_file (Makefile.am): Likewise.
6281         * modules/sys_ioctl (Makefile.am): Likewise.
6282         * modules/sys_select (Makefile.am): Likewise.
6283         * modules/sys_socket (Makefile.am): Likewise.
6284         * modules/sys_stat (Makefile.am): Likewise.
6285         * modules/sys_time (Makefile.am): Likewise.
6286         * modules/sys_times (Makefile.am): Likewise.
6287         * modules/sys_uio (Makefile.am): Likewise.
6288         * modules/sys_utsname (Makefile.am): Likewise.
6289         * modules/sys_wait (Makefile.am): Likewise.
6290         * modules/sysexits (Makefile.am): Likewise.
6291         * modules/termios (Makefile.am): Likewise.
6292         * modules/time (Makefile.am): Likewise.
6293         * modules/unistd (Makefile.am): Likewise.
6294         * modules/wchar (Makefile.am): Likewise.
6295         * modules/wctype-h (Makefile.am): Likewise.
6296         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
6297
6298 2011-05-29  Bruno Haible  <bruno@clisp.org>
6299
6300         assert-h: Allow multiple gnulib generated replacements to coexist.
6301         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
6302
6303 2011-05-29  Bruno Haible  <bruno@clisp.org>
6304
6305         argp: Allow coexistence with strerror_r-posix module.
6306         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
6307         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
6308         by gnulib's <string.h> replacement), assume it has the POSIX signature,
6309         not the glibc signature.
6310
6311 2011-05-28  Bruno Haible  <bruno@clisp.org>
6312
6313         gnulib-tool: Alternative structure of testdirs, similar to --import.
6314         * gnulib-tool: New option --single-configure.
6315         (func_usage): Document it.
6316         (single_configure): New variable.
6317         (func_modules_transitive_closure_separately,
6318         func_modules_transitive_closure_separately,
6319         func_determine_use_libtests, func_modules_add_dummy_separately,
6320         func_modules_to_filelist_separately): New functions, extracted from
6321         func_import.
6322         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
6323         (func_import): Use the new functions.
6324         (func_create_testdir): Set final_modules. Handle $single_configure =
6325         true case.
6326
6327 2011-05-28  Bruno Haible  <bruno@clisp.org>
6328
6329         getloadavg: Remove an unreliable safety check.
6330         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
6331         getloadavg.c is in place.
6332         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
6333         Reported by Sam Steingold <sds@gnu.org>.
6334
6335 2011-05-28  Bruno Haible  <bruno@clisp.org>
6336
6337         doc: Cleanup yet another file produced by texinfo.tex.
6338         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
6339
6340 2011-05-28  Bruno Haible  <bruno@clisp.org>
6341
6342         Finish the conditional dependencies mechanism.
6343         * gnulib-tool: New option --no-conditional-dependencies.
6344         (func_usage): Document it. Don't mark --conditional-dependencies as
6345         experimental.
6346         (cond_dependencies): The possible values can now be true, false, empty.
6347         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
6348         (func_import): Store setting in gnulib-cache.m4 and read it from there.
6349         * doc/gnulib-tool.texi (Conditional dependencies): New section.
6350
6351 2011-05-28  Bruno Haible  <bruno@clisp.org>
6352
6353         doc: Use a recent texinfo.tex.
6354         * doc/Makefile (tex_opts): New variable.
6355         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
6356
6357 2011-05-28  Jim Meyering  <meyering@redhat.com>
6358
6359         intprops.h: adjust comment to match code change
6360         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
6361         only once, it *may* have side effects.  Also fix an unrelated typo.
6362         (_GL_INT_SIGNED): Likewise.
6363
6364 2011-05-26  Simon Josefsson  <simon@josefsson.org>
6365
6366         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
6367
6368 2011-05-26  Bruno Haible  <bruno@clisp.org>
6369
6370         mbsrchr: Avoid collision with system function on Interix.
6371         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
6372         Reported by Markus Duft <mduft@gentoo.org>.
6373
6374 2011-05-15  James Youngman  <jay@gnu.org>
6375
6376         getopt: for ambiguous options, enumerate the possibilities.
6377         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
6378         the ambiguous options when an ambiguous prefix is given. This was
6379         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
6380         glibc change was
6381         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
6382
6383 2011-05-25  Eric Blake  <eblake@redhat.com>
6384
6385         getcwd: work around mingw bug
6386         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
6387         * doc/posix-functions/getcwd.texi (getcwd): Document it.
6388         Reported by Matthias Bolte.
6389
6390 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
6391
6392         test-intprops: disable -Wtype-limits diagnostics
6393         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
6394         diagnostics.  Otherwise, the integer overflow macros generate many
6395         diagnostics.  Reported by Jim Meyering in
6396         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
6397
6398         intprops: shorten, to pacify gcc -Woverlength-strings
6399         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
6400         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
6401         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
6402         likely to run afoul of C compiler limits for string constant lengths.
6403         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
6404
6405 2011-05-24  Eric Blake  <eblake@redhat.com>
6406
6407         docs: document recently fixed glibc printf bug
6408         * doc/posix-functions/fprintf.texi (fprintf): Document it.
6409         * doc/posix-functions/printf.texi (printf): Likewise.
6410         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
6411         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
6412
6413         closein-tests: convert to init.sh
6414         * modules/closein-tests (Files): Add init.sh
6415         * tests/test-closein.sh Use it.
6416
6417         yesno-tests: convert to init.sh
6418         * modules/yesno-tests (Files): Add init.sh.
6419         * tests/test-yesno.sh: Use it.
6420
6421         atexit-tests: ensure reliable exit status
6422         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
6423         Reported by Bruno Haible.
6424
6425 2011-05-24  Bruno Haible  <bruno@clisp.org>
6426
6427         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
6428         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
6429         gl_PREREQ_STRERROR_R invocations from here...
6430         * modules/strerror_r-posix (configure.ac): ... to here.
6431
6432 2011-05-24  Eric Blake  <eblake@redhat.com>
6433
6434         strerror_r: fix missing header
6435         * lib/strerror_r.c: Avoid compiler warning about snprintf.
6436
6437         strerror_r: fix AIX test failures
6438         * lib/strerror_r.c (strerror_r): Convert silent truncation to
6439         ERANGE failure.
6440
6441         strerror_r: fix Solaris test failures
6442         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
6443         failures.
6444         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6445
6446         strerror_r: enforce POSIX recommendations
6447         * lib/strerror_r.c (safe_copy): New helper method.
6448         (strerror_r): Guarantee a non-empty string.
6449         * tests/test-strerror_r.c (main): Enhance tests to incorporate
6450         recent POSIX rulings and to match our strerror guarantees.
6451         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6452
6453 2011-05-24  Jim Meyering  <meyering@redhat.com>
6454
6455         test-perror2.c: avoid warning about unused variable
6456         * tests/test-perror2.c (main): Remove declaration of unused "fp".
6457
6458 2011-05-24  Eric Blake  <eblake@redhat.com>
6459
6460         perror: avoid spurious test failure on HP-UX
6461         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
6462
6463         tests: fix logic bug in init.sh
6464         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
6465         shell.
6466
6467 2011-05-24  Jim Meyering  <meyering@redhat.com>
6468
6469         utimensat: do not reference an out-of-scope buffer
6470         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
6471         declared in an inner scope, yet "times" would be dereferenced outside
6472         the scope in which "ts" was valid.
6473         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
6474         of ts[2] "out/up", so that the use of aliased "times" (via
6475         "times = ts;") does not end up referencing an out-of-scope "ts"
6476
6477         opendir-safer.c: don't clobber errno; don't close negative FD
6478         * lib/opendir-safer.c (opendir_safer):
6479         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
6480         file descriptor, and more importantly, don't clobber the
6481         offending errno value with EINVAL.  Before, upon failure
6482         of dup_safer, we would pass the negative file descriptor to
6483         fdopendir, which would clobber errno.
6484
6485 2011-05-23  Bruno Haible  <bruno@clisp.org>
6486
6487         idcache: Fix module description.
6488         * modules/idcache (Include): Set to "idcache.h".
6489
6490 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6491
6492         gnulib-tool: fix portability problem with MacOS sed
6493         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
6494         before the "}".  Problem reported by Leo in
6495         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
6496         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
6497         sed_extract_condition1, sed_extract_condition2.
6498
6499 2011-05-23  Bruno Haible  <bruno@clisp.org>
6500
6501         hash: Simplify autoconf macro.
6502         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
6503
6504 2011-05-23  Bruno Haible  <bruno@clisp.org>
6505
6506         getugroups: Fix module description.
6507         * modules/getugroups (Include): Set to "getugroups.h".
6508
6509 2011-05-23  Bruno Haible  <bruno@clisp.org>
6510
6511         linkat: Simplify autoconf macro.
6512         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
6513
6514 2011-05-23  Bruno Haible  <bruno@clisp.org>
6515             Eric Blake  <eblake@redhat.com>
6516
6517         linkat, renameat: Update dependencies.
6518         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
6519         * modules/linkat (Depends-on): Likewise. Remove also readlink,
6520         symlinkat.
6521
6522 2011-05-23  Jim Meyering  <meyering@redhat.com>
6523
6524         maint.mk: more tight_scope improvements
6525         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
6526         (_gl_TS_headers): Define only in if-0'd block.
6527         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
6528         sometimes we must *not* use it.  Adjust uses accordingly.
6529         (sc_tight_scope): Use much simpler grep-based test to determine
6530         whether we skip this rule.
6531
6532         maint.mk: generalize/improve the tight-scope rule
6533         * top/maint.mk: Emit a warning when the test is skipped.
6534         (_gl_TS_dir): Add $(srcdir)/ prefix.
6535         (_gl_TS_function_match): Simplify, rather than trying
6536         to enumerate common types.  Otherwise, it would fail to match an
6537         "extern unsigned char const *" declaration in idutils.
6538         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
6539         a way to support use of that type of macro.
6540         (_gl_TS_var_match): Simplify regexp.
6541         (_gl_TS_obj_files): New configurable variable.
6542         (_gl_TS_headers): Likewise.
6543
6544 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
6545
6546         verify: fix bug when gnulib <assert.h> is also included
6547         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
6548         is defined, not if _GL_STATIC_ASSERT_H is not defined.
6549         Perhaps there's a better way, but this fixes the immediate problem.
6550         Problem reported by Bruno Haible in
6551         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
6552
6553 2011-05-22  Bruno Haible  <bruno@clisp.org>
6554
6555         xgetcwd: Simplify autoconf macro.
6556         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
6557
6558 2011-05-22  Bruno Haible  <bruno@clisp.org>
6559
6560         New module 'mktime-internal'.
6561         * modules/mktime-internal: New file.
6562         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
6563         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
6564         mktime_internal as a C macro if libc has __mktime_internal.
6565         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
6566         conditions.
6567         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
6568
6569 2011-05-22  Bruno Haible  <bruno@clisp.org>
6570
6571         timegm: Correct mktime replacement statements.
6572         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
6573         defining mktime as a C macro. This completes a 2009-07-28 commit.
6574
6575 2011-05-22  Bruno Haible  <bruno@clisp.org>
6576
6577         timegm: Simplify autoconf macro.
6578         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
6579
6580 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
6581
6582         clock-time: change to LGPLv2+.
6583         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
6584         BSD-like but we have no mark for that; this is good enough for now.
6585
6586 2011-05-21  Bruno Haible  <bruno@clisp.org>
6587
6588         strerror_r: Fix comments.
6589         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
6590
6591 2011-05-21  Bruno Haible  <bruno@clisp.org>
6592
6593         relocatable-prog-wrapper: Fix possible link error.
6594         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
6595         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
6596         (gl_FUNC_SETENV): ... to here.
6597         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
6598         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
6599
6600 2011-05-21  Bruno Haible  <bruno@clisp.org>
6601
6602         relocatable-prog-wrapper: Assume strerror() exists.
6603         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
6604         m4/strerror.m4.
6605         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
6606         * lib/relocwrapper.c: Remove mention of strerror module.
6607         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
6608         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
6609         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
6610         C macro.
6611
6612 2011-05-21  Bruno Haible  <bruno@clisp.org>
6613
6614         select: Simplify replacement idiom.
6615         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
6616         Win32 platforms.
6617         * lib/sys_select.in.h (select): Simplify accordingly.
6618         * modules/select (Depends-on): Likewise.
6619
6620 2011-05-21  Bruno Haible  <bruno@clisp.org>
6621
6622         mkdir-p: Simplify autoconf macro.
6623         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
6624         gl_FUNC_LCHOWN.
6625
6626 2011-05-21  Eric Blake  <eblake@redhat.com>
6627
6628         strerror_r: avoid clobbering strerror on cygwin
6629         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
6630         fall back instead to sys_errlist.
6631         * modules/strerror (configure.ac): Add witness.
6632         * tests/test-strerror_r.c (main): Enhance test.
6633         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6634         * tests/test-perror2.c (main): Free memory before exit.
6635
6636 2011-05-21  Bruno Haible  <bruno@clisp.org>
6637
6638         mkdtemp: Use gnulib naming conventions.
6639         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
6640         * modules/mkdtemp (configure.ac): Update.
6641
6642 2011-05-20  Eric Blake  <eblake@redhat.com>
6643
6644         strerror_r: avoid corrupting errno on Solaris
6645         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
6646         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6647
6648         strerror_r: avoid compiler warning
6649         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
6650
6651         strerror_r: simplify AIX code
6652         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
6653
6654         test-perror: avoid spurious failure on FreeBSD
6655         * modules/perror-tests (Depends-on): Add strerror, now that
6656         strerror_r no longer pulls it in.
6657
6658 2011-05-20  Bruno Haible  <bruno@clisp.org>
6659
6660         strerror_r-posix: Remove unused dependencies.
6661         * modules/strerror_r-posix (Depends-on): Remove strerror.
6662         Reported by Eric Blake.
6663
6664 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
6665
6666         intprops: remove assumption about A|B representation
6667         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
6668         is a valid integer if both A and B are.  Although this is true for
6669         all known practical hosts, the C standard doesn't guarantee it,
6670         and the code need not assume it.  Also, this change may work around
6671         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
6672         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
6673
6674 2011-05-20  Eric Blake  <eblake@redhat.com>
6675
6676         perror: work around FreeBSD bug
6677         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
6678         is broken.  Move AC_LIBOBJ...
6679         * modules/perror (configure.ac): Here.
6680         * doc/posix-functions/perror.texi (perror): Document this.
6681         * tests/test-perror2.c (main): Enhance test.
6682
6683         test-perror: check for strerror interactions
6684         * tests/macros.h (STREQ): Add macro.
6685         * modules/perror-tests (Files): Add second test.
6686         * tests/test-perror2.c (main): New file.
6687         * doc/posix-functions/perror.texi (perror): Document glibc bug.
6688
6689         test-perror: rewrite to use init script
6690         * modules/perror-tests (Files): Add init.sh.
6691         * tests/test-perror.sh: Use temporary directory.
6692
6693 2011-05-20  Jim Meyering  <meyering@redhat.com>
6694
6695         maint: replace misused "a" with "an"
6696         * doc/intprops.texi: "a integer"
6697         * doc/regex.texi: "a explanation"
6698         * lib/alignof.h: "a object"
6699         * lib/argmatch.h: "a explanation"
6700         * lib/argp-help.c: "a option" and "a OPTION_DOC"
6701         * lib/stdint.in.h: "a integer"
6702         * lib/userspec.c: "a owner"
6703         * doc/gnulib.texi: Fix "a idea", and reword.
6704
6705 2011-05-19  Jim Meyering  <meyering@redhat.com>
6706
6707         maint: correct misuse of "a" and "an"
6708         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
6709         * lib/argp-help.c: "an docum...": s/an/a/
6710         * lib/argp-parse.c: "An vector": s/An/A/
6711         * lib/execute.c: "an native": s/an/a/
6712         * lib/spawn-pipe.c: Likewise.
6713         * lib/gc.h: "an Gc_rc": s/an/a/
6714         * lib/unigbrk.in.h: "an grapheme": s/an/a/
6715         * lib/fts.c: "an stat.st_dev": s/an/a/
6716
6717 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6718
6719         intprops-tests: work around HP-UX 11.23 cc bug with constants
6720         * tests/test-intprops.c (VERIFY): New macro.
6721         (main): Use it, instead of verify, to work around the compiler bug; see
6722         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6723
6724         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
6725         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
6726         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
6727         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
6728         (_GL_REMAINDER_OVERFLOW): Use it.
6729
6730         intprops-tests: revert unsigned part of previous change
6731         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
6732         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
6733         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
6734         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
6735
6736 2011-05-19  Bruno Haible  <bruno@clisp.org>
6737
6738         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
6739         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
6740         strerror_r() returned without filling the buffer.
6741         Reported by Eric Blake.
6742
6743 2011-05-19  Eric Blake  <eblake@redhat.com>
6744
6745         strerror_r: guarantee unchanged errno
6746         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
6747         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
6748         failure.
6749         * tests/test-strerror_r.c (main): Enhance test.
6750
6751 2011-05-19  Bruno Haible  <bruno@clisp.org>
6752
6753         strerror_r: Reorder #if blocks.
6754         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
6755         for consistency with the previous commit.
6756
6757 2011-05-19  Bruno Haible  <bruno@clisp.org>
6758
6759         perror: Avoid clobbering the strerror buffer when possible.
6760         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
6761         * lib/strerror.c: Include it.
6762         * modules/strerror (Files): Add lib/strerror-impl.h.
6763         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
6764         (my_strerror): New function, defined through lib/strerror-impl.h.
6765         (perror): Use it instead of strerror.
6766         * modules/perror (Files): Add lib/strerror-impl.h.
6767         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
6768
6769 2011-05-19  Eric Blake  <eblake@redhat.com>
6770
6771         strerror_r: fix on newer cygwin
6772         * lib/strerror_r.c (strerror_r): Cygwin now has
6773         __xpg_strerror_r, use it.
6774
6775 2011-05-19  Bruno Haible  <bruno@clisp.org>
6776
6777         strerror_r: Avoid clobbering the strerror buffer when possible.
6778         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
6779         (sys_nerr, sys_errlist): New declarations.
6780         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
6781         HP-UX, native Win32, IRIX, and 32-bit Solaris.
6782         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
6783
6784 2011-05-19  Bruno Haible  <bruno@clisp.org>
6785
6786         strerror_r: Fix test failure on mingw.
6787         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
6788         EXTEND_STRERROR_R.
6789         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
6790         macros from errno.in.h instead.
6791
6792 2011-05-19  Eric Blake  <eblake@redhat.com>
6793
6794         strerror: relax test for Solaris
6795         * tests/test-strerror.c (main): Permit Solaris behavior.
6796         * tests/test-strerror_r.c (main): Likewise.
6797
6798         strerror: enforce POSIX ruling on strerror(0)
6799         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
6800         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
6801         * lib/strerror_r.c (rpl_strerror_r): Work around it.
6802         * doc/posix-functions/strerror.texi (strerror): Document it.
6803         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
6804         * tests/test-strerror.c (main): Strengthen test.
6805         * tests/test-strerror_r.c (main): Likewise.
6806
6807 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6808
6809         intprop-tests: port to older and more-pedantic compilers
6810         * modules/intprops-tests (Files): Add tests/macros.h.
6811         * tests/test-intprops.c: Include macros.h.
6812         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
6813         it's no longer documented to expand to an integer constant expression.
6814         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
6815         argument is floating point, as it's no longer documented to expand
6816         to an integer constant expression in that case.
6817         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
6818         compiler bugs reported by Bruno Haible.  See
6819         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6820         (U0, U1): New constants, to work around the same bugs.  Also,
6821         in tests, use e.g., "(unsigned int) 39" rather than "39u".
6822
6823         intprops: work around C compiler bugs
6824         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
6825         bug in Sun C 5.11 2010/08/13 and other compilers; see
6826         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6827
6828         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
6829         * doc/intprops.texi (Integer Type Determination): Fix
6830         documentation for TYPE_IS_INTEGER: it returns an constant
6831         expression, not an integer constant expression.  Fix doc for
6832         TYPE_SIGNED: it returns an integer constant expression only if its
6833         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
6834         hardly worth documented that way....)
6835
6836 2011-05-18  Bruno Haible  <bruno@clisp.org>
6837
6838         strerror_r: Avoid clobbering the strerror buffer when possible.
6839         * lib/strerror_r.c (strerror_r): Merge the three implementations.
6840         Handle gnulib defined errno values here. When strerror() returns NULL
6841         or an empty string, return EINVAL.
6842         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
6843         gnulib defined errno values here.
6844         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
6845
6846 2011-05-18  Eric Blake  <eblake@redhat.com>
6847
6848         fnmatch: avoid compiler warning
6849         * lib/fnmatch_loop.c (FCT): Use correct type.
6850         Reported by Matthias Bolte.
6851
6852 2011-05-13  Jim Meyering  <meyering@redhat.com>
6853
6854         maint.mk: three new prohibit_<HDR>_without_use rules
6855         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
6856         (sc_prohibit_stdio-safer_without_use): Likewise.
6857         (sc_prohibit_xfreopen_without_use): Likewise.
6858
6859 2011-05-17  Jim Meyering  <meyering@redhat.com>
6860
6861         announce-gen: fail if the NEWS delta is empty
6862         If there's nothing noteworthy in NEWS, then either you forgot
6863         or you shouldn't be releasing.
6864         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
6865
6866 2011-05-17  Pádraig Brady <P@draigBrady.com>
6867
6868         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
6869         reserved symbols starting with double underscore from the check.
6870
6871 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
6872
6873         intprops: add doc
6874         * doc/intprops.texi: New file, documenting intprops.
6875         * doc/gnulib.texi (Particular Modules): Include it.
6876
6877         verify: add doc to gnulib manual and fix example
6878         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
6879         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
6880         (Compile-time Assertions): Fix example so it can't overflow.
6881
6882 2011-05-17  Jim Meyering  <meyering@redhat.com>
6883
6884         warnings.m4: don't usurp save_CPPFLAGS variable name
6885         * m4/warnings.m4: Prefix local temporary variable name with gl_.
6886
6887         doc: fix typo
6888         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
6889
6890 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
6891             Bruno Haible  <bruno@clisp.org>
6892
6893         doc: Tweak recent change.
6894         * README (Portability guidelines): Tweak new text.
6895         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
6896         Interix 6.1.
6897
6898 2011-05-16  Eric Blake  <eblake@redhat.com>
6899
6900         inttypes: avoid autoconf warning
6901         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
6902         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6903
6904 2011-05-16  Sam Steingold <sds@gnu.org>
6905         and Eric Blake  <eblake@redhat.com>
6906
6907         vc-list-files: accept multiple directory operands
6908         * build-aux/vc-list-files: Iterate over all remaining operands.
6909
6910 2011-05-16  Bruno Haible  <bruno@clisp.org>
6911
6912         Fix confusion regarding deprecated modules.
6913         * modules/calloc (Status, Notice): Mark module as deprecated, not
6914         obsolete.
6915         * modules/fnmatch-posix (Status, Notice): Likewise.
6916         * modules/getdate (Status, Notice): Likewise.
6917         * modules/getopt (Status, Notice): Likewise.
6918         * modules/malloc (Status, Notice): Likewise.
6919         * modules/pipe (Status, Notice): Likewise.
6920         * modules/realloc (Status, Notice): Likewise.
6921         * modules/rename-dest-slash (Status, Notice): Likewise.
6922         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
6923         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
6924         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
6925         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
6926         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
6927
6928 2011-05-16  Bruno Haible  <bruno@clisp.org>
6929
6930         doc: List the target platforms.
6931         * doc/gnulib-intro.texi (Target Platforms): New section.
6932         * doc/gnulib.texi (Introduction): Update menu.
6933         * README (Portability guidelines): Refer to the new section. Update
6934         statement about oldest supported environment. Remove rationale why
6935         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
6936         unportable C89 function.
6937         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
6938         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
6939
6940 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
6941
6942         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
6943
6944 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
6945
6946         intprops-tests: new module
6947         * modules/intprops-tests, tests/test-intprops.c: New files.
6948
6949         intprops: add safe, portable integer overflow checking
6950         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
6951         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
6952         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
6953         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
6954         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
6955         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
6956         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
6957         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
6958         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
6959         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
6960         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
6961
6962 2011-05-12  James Youngman  <jay@gnu.org>
6963
6964         Add a test for glibc's Bugzilla bug #12378.
6965         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
6966         doesn't allow the literal matching of a lone "[" (which is
6967         required by POSIX).
6968         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
6969
6970 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
6971
6972         Sync glibc change fixing Bugzilla bug #12378.
6973         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
6974         beginning and fall back to matching as normal character if the
6975         string ends before the matching ']' is found.  This is what POSIX
6976         requires.
6977
6978 2011-05-13  Eric Blake  <eblake@redhat.com>
6979
6980         getcwd-lgpl: relax test for FreeBSD
6981         * doc/posix-functions/getcwd.texi (getcwd): Document portability
6982         issue.
6983         * tests/test-getcwd-lgpl.c (main): Relax test.
6984         Reported by Matthias Bolte.
6985
6986 2011-05-11  Eric Blake  <eblake@redhat.com>
6987
6988         test-fflush: silence compiler warning
6989         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
6990
6991 2011-05-11  Bruno Haible  <bruno@clisp.org>
6992
6993         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
6994         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
6995         * modules/canonicalize (Depends-on): Add 'nocrash'.
6996         * modules/canonicalize-lgpl (Depends-on): Likewise.
6997         * doc/posix-functions/realpath.texi: Update platforms list.
6998         Reported by Ryan Schmidt <ryandesign@macports.org>.
6999
7000 2011-05-11  Bruno Haible  <bruno@clisp.org>
7001
7002         group-member: Declare function in <unistd.h>.
7003         * lib/unistd.in.h (group_member): New declaration.
7004         * lib/group-member.h: Remove file.
7005         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
7006         * tests/test-unistd-c++.cc: Check signature of group_member.
7007         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
7008         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
7009         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
7010         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
7011         HAVE_GROUP_MEMBER.
7012         * modules/group-member (Files): Remove lib/group-member.h.
7013         (Depends-on): Add unistd. Specify conditions.
7014         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
7015         (Include): Change to <unistd.h>.
7016         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
7017         HAVE_GROUP_MEMBER.
7018         * NEWS: Mention the change.
7019         * lib/euidaccess.c: Don't include group-member.h.
7020
7021 2011-05-11  Bruno Haible  <bruno@clisp.org>
7022
7023         group-member: Document module.
7024         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
7025         module.
7026
7027 2011-05-11  Bruno Haible  <bruno@clisp.org>
7028
7029         fclose: Fix mistake earlier today.
7030         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
7031
7032 2011-05-11  Eric Blake  <eblake@redhat.com>
7033
7034         fclose: preserve fflush errors
7035         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
7036         Reported by Jim Meyering.
7037
7038         bootstrap: support a prereq of 'rpcgen -' on RHEL5
7039         * build-aux/bootstrap (check_versions): When no specific version
7040         is required, merely check that the app produces an exit status
7041         that indicates its existence.
7042
7043         maint.mk: drop redundant check
7044         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
7045         the same but better.
7046
7047 2011-05-11  Bruno Haible  <bruno@clisp.org>
7048
7049         fclose: Fix possible link error.
7050         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
7051         unregister_shadow_fd. Improve comments.
7052         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
7053         Eric Blake.
7054
7055 2011-05-11  Jim Meyering  <meyering@redhat.com>
7056
7057         maint.mk: improve "can not" detection and generalize rule name
7058         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
7059         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
7060         Use the same technique as in sc_prohibit_doubled_word, so that
7061         we recognize "can not" also when the words are separated by a newline.
7062         Suggested by Eric Blake.
7063         (perl_filename_lineno_text_): Define.  Factored out of...
7064         (prohibit_doubled_word_): ...here.  Use the new definition.
7065         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
7066         (prohibit_undesirable_word_seq_RE_): New overridable variable.
7067         (ignore_undesirable_word_sequence_RE_): New overridable variable.
7068
7069 2011-05-10  Eric Blake  <eblake@redhat.com>
7070
7071         fclose: avoid double close race when possible
7072         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
7073         all but WINDOWS_SOCKETS.
7074
7075 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
7076
7077         openat: correct new comment
7078         * lib/openat-proc.c (openat_proc_name): Correct the comment.
7079
7080 2011-05-10  Jim Meyering  <meyering@redhat.com>
7081
7082         openat: add comments
7083         * lib/openat-proc.c (openat_proc_name): Add comments,
7084         mostly from Eric Blake.
7085
7086 2011-05-09  Eric Blake  <eblake@redhat.com>
7087
7088         openat: reduce syscalls in first probe of /proc
7089         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
7090         be a directory.  Simplify the probe for .. bugs.
7091         * modules/openat (Depends-on): Drop same-inode.
7092         Reported by Bastien ROUCARIES.
7093
7094 2011-05-09  Jim Meyering  <meyering@redhat.com>
7095
7096         maint.mk: change semantics/name of tight_scope variables
7097         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
7098         Rename variables to align with semantics that make them more useful.
7099
7100         maint.mk: tweak new rule's name not to impinge
7101         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
7102         (sc_tight_scope): Use new rule name rather than $@-0.
7103
7104         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
7105         * top/maint.mk (sc_tight_scope): New rule.
7106         (sc_tight_scope-0): New rule, ifdef'd out.
7107         (_gl_TS_dir): Default.
7108         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
7109         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
7110
7111 2011-05-09  Simon Josefsson  <simon@josefsson.org>
7112
7113         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
7114         Haible <bruno@clisp.org>.
7115
7116 2011-05-08  Bruno Haible  <bruno@clisp.org>
7117
7118         Comments.
7119         * m4/isnanf.m4: Add comment.
7120         * m4/isnanl.m4: Likewise.
7121
7122 2011-05-08  Bruno Haible  <bruno@clisp.org>
7123
7124         glob: Remove obsolete macro.
7125         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
7126
7127 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
7128
7129         intprops: Sun C 5.11 supports __typeof__
7130         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
7131         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
7132         which is new.
7133         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
7134
7135         intprops: switch to usual gnulib indenting and naming
7136         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
7137         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
7138
7139         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
7140
7141 2011-05-08  Jim Meyering  <meyering@redhat.com>
7142
7143         maint.mk: suppress "Entering/Leaving directory" diag in announcement
7144         * top/maint.mk (release-prep): Use make's --no-print-directory
7145         option when generating the announcement.  This eliminates the
7146         pesky "make[2]: Entering/Leaving directory" diagnostics in the
7147         generated announcement template.
7148
7149 2011-05-08  Bruno Haible  <bruno@clisp.org>
7150
7151         tzset: Fix gettimeofday wrapper on Solaris 2.6.
7152         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
7153         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
7154
7155 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
7156
7157         ignore-value, verify: Omit include files from lib_SOURCES.
7158         * modules/ignore-value, modules/verify (Makefile.am):
7159         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
7160         that leads Automake to duplicate use of am__objects_... variables
7161         in Makefile.in.  See
7162         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
7163
7164 2011-05-07  Bruno Haible  <bruno@clisp.org>
7165
7166         fclose: Simplify autoconf macro.
7167         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
7168         defined.
7169
7170 2011-05-07  Bruno Haible  <bruno@clisp.org>
7171
7172         canonicalize-lgpl: Fix autoconf macro ordering bug.
7173         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
7174         gl_STDLIB_H_DEFAULTS.
7175
7176 2011-05-06  Eric Blake  <eblake@redhat.com>
7177
7178         maintainer-makefile: make sc_po_check easier to tune
7179         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
7180         to probe for strings, such as an alternate location for gnulib.
7181
7182         fclose: guarantee behavior on seekable stdin
7183         * modules/fclose (Depends-on): Add fflush.
7184         * doc/posix-functions/fclose.texi (fclose): Document this.
7185         * tests/test-fclose.c (main): Make test for this unconditional.
7186
7187 2011-05-06  Bruno Haible  <bruno@clisp.org>
7188
7189         fflush, fpurge: Relicense under LGPLv2+.
7190         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
7191         * modules/fpurge (License): Likewise.
7192         With permission from Eric Blake and Jim Meyering.
7193         Suggested by Eric Blake.
7194
7195 2011-05-06  Karl Berry  <karl@gnu.org>
7196
7197         * MODULES.html.sh (func_all_modules): remove exit.
7198
7199 2011-05-06  Jim Meyering  <meyering@redhat.com>
7200
7201         maint.mk: use info-gnu@ as the default only for a stable release
7202         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
7203         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
7204         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
7205         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
7206
7207 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
7208
7209         assert-h: new module, which supports C1X-style static_assert
7210         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
7211         * lib/verify.h: Revamp so that this can be copied into assert.h,
7212         while retaining the ability to use it standalone as before.
7213         Rename private identifiers so as not to encroach on the
7214         standard C namespace, since this is now used by assert.h.
7215         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
7216         the old verify_true.
7217         (_GL_VERIFY_TRUE): New macro, with much of the contents of
7218         the old verify_true.  Use _GL_VERIFY_TYPE.
7219         (_GL_VERIFY): New macro, with much of the contents of the old verify.
7220         (static_assert): New macro, if _GL_STATIC_ASSERT_H
7221         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
7222         defined when this file is copied into the replacement assert.h.
7223         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
7224         and _Static_assert is not built in.
7225         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
7226         defined, and use the new macros mentioned above.
7227         * doc/posix-headers/assert.texi: Document this.
7228
7229 2011-05-05  Bruno Haible  <bruno@clisp.org>
7230
7231         fclose, fflush: Respect rules for use of AC_LIBOBJ.
7232         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
7233         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
7234         gl_REPLACE_FCLOSE here.
7235         * modules/fflush (Depends-on): Remove fclose.
7236         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
7237         combination with module 'fclose'.
7238
7239 2011-05-05  Bruno Haible  <bruno@clisp.org>
7240
7241         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
7242         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
7243         gl_FUNC_FFLUSH.
7244         (gl_FUNC_FFLUSH): Use it.
7245         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
7246         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
7247         gl_REPLACE_FSEEKO here.
7248
7249 2011-05-05  Bruno Haible  <bruno@clisp.org>
7250
7251         tzset: Relicense under LGPL.
7252         * modules/tzset (License): Change to LGPL.
7253         No agreement needed; it's a no-op.
7254
7255         strtoimax, strtoumax: Relicense under LGPL.
7256         * modules/strtoimax (License): Change to LGPL.
7257         * modules/strtoumax (License): Likewise.
7258         With permission from Jim Meyering, Paul Eggert:
7259         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
7260         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
7261
7262         getgroups: Relicense under LGPL.
7263         * modules/getgroups (License): Change to LGPL.
7264         With permission from Jim Meyering, Paul Eggert, Eric Blake:
7265         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
7266         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
7267         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7268
7269         nanosleep: Relicense under LGPL.
7270         * modules/nanosleep (License): Change to LGPL.
7271         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
7272         Haible:
7273         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
7274         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
7275         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7276         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
7277
7278         futimens: Relicense under LGPL.
7279         * modules/futimens (License): Change to LGPL.
7280         With permission from Eric Blake:
7281         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7282
7283         fflush: Relicense under LGPL.
7284         * modules/fflush (License): Change to LGPL.
7285         With permission from Eric Blake, Bruno Haible, Jim Meyering:
7286         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7287         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
7288         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
7289
7290         tmpfile: Relicense under LGPL.
7291         * modules/tmpfile (License): Change to LGPL.
7292         With permission from Ben Pfaff:
7293         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
7294
7295         isfinite: Relicense under LGPL.
7296         * modules/isfinite (License): Change to LGPL.
7297         With permission from Ben Pfaff, Bruno Haible:
7298         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
7299         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
7300
7301         acosl..tanl: Relicense under LGPL.
7302         * modules/acosl (License): Change to LGPL.
7303         * modules/asinl (License): Likewise.
7304         * modules/atanl (License): Likewise.
7305         * modules/cosl (License): Likewise.
7306         * modules/expl (License): Likewise.
7307         * modules/logl (License): Likewise.
7308         * modules/sinl (License): Likewise.
7309         * modules/sqrtl (License): Likewise.
7310         * modules/tanl (License): Likewise.
7311         Source code originally from glibc and Paolo Bonzini. Agreements:
7312         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
7313         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
7314
7315 2011-05-05  Bruno Haible  <bruno@clisp.org>
7316
7317         signal: Define sighandler_t.
7318         * lib/signal.in.h (sighandler_t): New type.
7319         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
7320         whether sighandler_t is defined.
7321         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
7322         * modules/signal (Depends-on): Add extensions.
7323         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
7324         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
7325         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
7326
7327 2011-05-05  Eric Blake  <eblake@redhat.com>
7328
7329         maint: remove useless REPLACE_*_H macros
7330         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
7331         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
7332         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
7333         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
7334         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
7335         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
7336         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
7337         * m4/btowc.m4: Update callers.
7338         * m4/dirfd.m4: Likewise.
7339         * m4/duplocale.m4: Likewise.
7340         * m4/fchdir.m4: Likewise.
7341         * m4/fdopendir.m4: Likewise.
7342         * m4/inet_ntop.m4: Likewise.
7343         * m4/inet_pton.m4: Likewise.
7344         * m4/ioctl.m4: Likewise.
7345         * m4/mbrlen.m4: Likewise.
7346         * m4/mbrtowc.m4: Likewise.
7347         * m4/mbsinit.m4: Likewise.
7348         * m4/mbsnrtowcs.m4: Likewise.
7349         * m4/mbsrtowcs.m4: Likewise.
7350         * m4/poll.m4: Likewise.
7351         * m4/setlocale.m4: Likewise.
7352         * m4/wcrtomb.m4: Likewise.
7353         * m4/wcsnrtombs.m4: Likewise.
7354         * m4/wcsrtombs.m4: Likewise.
7355         * m4/wctob.m4: Likewise.
7356         * m4/wcwidth.m4: Likewise.
7357         * modules/posix_spawn: Likewise.
7358         * modules/posix_spawn_file_actions_addclose: Likewise.
7359         * modules/posix_spawn_file_actions_adddup2: Likewise.
7360         * modules/posix_spawn_file_actions_addopen: Likewise.
7361         * modules/posix_spawn_file_actions_destroy: Likewise.
7362         * modules/posix_spawn_file_actions_init: Likewise.
7363         * modules/posix_spawnattr_destroy: Likewise.
7364         * modules/posix_spawnattr_getflags: Likewise.
7365         * modules/posix_spawnattr_getpgroup: Likewise.
7366         * modules/posix_spawnattr_getschedparam: Likewise.
7367         * modules/posix_spawnattr_getschedpolicy: Likewise.
7368         * modules/posix_spawnattr_getsigdefault: Likewise.
7369         * modules/posix_spawnattr_getsigmask: Likewise.
7370         * modules/posix_spawnattr_init: Likewise.
7371         * modules/posix_spawnattr_setflags: Likewise.
7372         * modules/posix_spawnattr_setpgroup: Likewise.
7373         * modules/posix_spawnattr_setschedparam: Likewise.
7374         * modules/posix_spawnattr_setschedpolicy: Likewise.
7375         * modules/posix_spawnattr_setsigdefault: Likewise.
7376         * modules/posix_spawnattr_setsigmask: Likewise.
7377         * modules/posix_spawnp: Likewise.
7378
7379 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
7380
7381         Add option to do-release-commit-and-tag to specify branch.
7382         * build-aux/do-release-commit-and-tag: Add --branch.
7383
7384 2011-05-03  Bruno Haible  <bruno@clisp.org>
7385
7386         Avoid unnecessary compilation units, through conditional dependencies.
7387         * modules/accept (Depends-on): Add conditions to the dependencies.
7388         * modules/acosl (Depends-on): Likewise.
7389         * modules/argz (Depends-on): Likewise.
7390         * modules/asinl (Depends-on): Likewise.
7391         * modules/atanl (Depends-on): Likewise.
7392         * modules/atoll (Depends-on): Likewise.
7393         * modules/bind (Depends-on): Likewise.
7394         * modules/btowc (Depends-on): Likewise.
7395         * modules/canonicalize-lgpl (Depends-on): Likewise.
7396         * modules/ceil (Depends-on): Likewise.
7397         * modules/ceilf (Depends-on): Likewise.
7398         * modules/ceill (Depends-on): Likewise.
7399         * modules/chdir-long (Depends-on): Likewise.
7400         * modules/chown (Depends-on): Likewise.
7401         * modules/close (Depends-on): Likewise.
7402         * modules/connect (Depends-on): Likewise.
7403         * modules/cosl (Depends-on): Likewise.
7404         * modules/dirfd (Depends-on): Likewise.
7405         * modules/dprintf (Depends-on): Likewise.
7406         * modules/dprintf-posix (Depends-on): Likewise.
7407         * modules/error (Depends-on): Likewise.
7408         * modules/euidaccess (Depends-on): Likewise.
7409         * modules/expl (Depends-on): Likewise.
7410         * modules/faccessat (Depends-on): Likewise.
7411         * modules/fchdir (Depends-on): Likewise.
7412         * modules/fclose (Depends-on): Likewise.
7413         * modules/fcntl (Depends-on): Likewise.
7414         * modules/fdopendir (Depends-on): Likewise.
7415         * modules/fflush (Depends-on): Likewise.
7416         * modules/floor (Depends-on): Likewise.
7417         * modules/floorf (Depends-on): Likewise.
7418         * modules/floorl (Depends-on): Likewise.
7419         * modules/fnmatch (Depends-on): Likewise.
7420         * modules/fopen (Depends-on): Likewise.
7421         * modules/fprintf-posix (Depends-on): Likewise.
7422         * modules/frexp (Depends-on): Likewise.
7423         * modules/frexp-nolibm (Depends-on): Likewise.
7424         * modules/frexpl (Depends-on): Likewise.
7425         * modules/frexpl-nolibm (Depends-on): Likewise.
7426         * modules/fseek (Depends-on): Likewise.
7427         * modules/fsusage (Depends-on): Likewise.
7428         * modules/ftell (Depends-on): Likewise.
7429         * modules/ftello (Depends-on): Likewise.
7430         * modules/futimens (Depends-on): Likewise.
7431         * modules/getcwd (Depends-on): Likewise.
7432         * modules/getcwd-lgpl (Depends-on): Likewise.
7433         * modules/getdelim (Depends-on): Likewise.
7434         * modules/getdomainname (Depends-on): Likewise.
7435         * modules/getgroups (Depends-on): Likewise.
7436         * modules/gethostname (Depends-on): Likewise.
7437         * modules/getline (Depends-on): Likewise.
7438         * modules/getlogin_r (Depends-on): Likewise.
7439         * modules/getopt-posix (Depends-on): Likewise.
7440         * modules/getpeername (Depends-on): Likewise.
7441         * modules/getsockname (Depends-on): Likewise.
7442         * modules/getsockopt (Depends-on): Likewise.
7443         * modules/getsubopt (Depends-on): Likewise.
7444         * modules/getusershell (Depends-on): Likewise.
7445         * modules/glob (Depends-on): Likewise.
7446         * modules/grantpt (Depends-on): Likewise.
7447         * modules/iconv_open (Depends-on): Likewise.
7448         * modules/iconv_open-utf (Depends-on): Likewise.
7449         * modules/inet_ntop (Depends-on): Likewise.
7450         * modules/inet_pton (Depends-on): Likewise.
7451         * modules/ioctl (Depends-on): Likewise.
7452         * modules/isapipe (Depends-on): Likewise.
7453         * modules/isfinite (Depends-on): Likewise.
7454         * modules/isinf (Depends-on): Likewise.
7455         * modules/lchown (Depends-on): Likewise.
7456         * modules/ldexpl (Depends-on): Likewise.
7457         * modules/link (Depends-on): Likewise.
7458         * modules/linkat (Depends-on): Likewise.
7459         * modules/listen (Depends-on): Likewise.
7460         * modules/logl (Depends-on): Likewise.
7461         * modules/lstat (Depends-on): Likewise.
7462         * modules/mbrlen (Depends-on): Likewise.
7463         * modules/mbrtowc (Depends-on): Likewise.
7464         * modules/mbsinit (Depends-on): Likewise.
7465         * modules/mbsnrtowcs (Depends-on): Likewise.
7466         * modules/mbsrtowcs (Depends-on): Likewise.
7467         * modules/mbtowc (Depends-on): Likewise.
7468         * modules/memcmp (Depends-on): Likewise.
7469         * modules/mkdir (Depends-on): Likewise.
7470         * modules/mkdtemp (Depends-on): Likewise.
7471         * modules/mkfifo (Depends-on): Likewise.
7472         * modules/mkfifoat (Depends-on): Likewise.
7473         * modules/mknod (Depends-on): Likewise.
7474         * modules/mkostemp (Depends-on): Likewise.
7475         * modules/mkostemps (Depends-on): Likewise.
7476         * modules/mkstemp (Depends-on): Likewise.
7477         * modules/mkstemps (Depends-on): Likewise.
7478         * modules/mktime (Depends-on): Likewise.
7479         * modules/nanosleep (Depends-on): Likewise.
7480         * modules/open (Depends-on): Likewise.
7481         * modules/openat (Depends-on): Likewise.
7482         * modules/perror (Depends-on): Likewise.
7483         * modules/poll (Depends-on): Likewise.
7484         * modules/popen (Depends-on): Likewise.
7485         * modules/posix_spawn (Depends-on): Likewise.
7486         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
7487         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
7488         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
7489         * modules/posix_spawnp (Depends-on): Likewise.
7490         * modules/pread (Depends-on): Likewise.
7491         * modules/printf-posix (Depends-on): Likewise.
7492         * modules/ptsname (Depends-on): Likewise.
7493         * modules/putenv (Depends-on): Likewise.
7494         * modules/pwrite (Depends-on): Likewise.
7495         * modules/readline (Depends-on): Likewise.
7496         * modules/readlink (Depends-on): Likewise.
7497         * modules/readlinkat (Depends-on): Likewise.
7498         * modules/recv (Depends-on): Likewise.
7499         * modules/recvfrom (Depends-on): Likewise.
7500         * modules/regex (Depends-on): Likewise.
7501         * modules/remove (Depends-on): Likewise.
7502         * modules/rename (Depends-on): Likewise.
7503         * modules/renameat (Depends-on): Likewise.
7504         * modules/rmdir (Depends-on): Likewise.
7505         * modules/round (Depends-on): Likewise.
7506         * modules/roundf (Depends-on): Likewise.
7507         * modules/roundl (Depends-on): Likewise.
7508         * modules/rpmatch (Depends-on): Likewise.
7509         * modules/select (Depends-on): Likewise.
7510         * modules/send (Depends-on): Likewise.
7511         * modules/sendto (Depends-on): Likewise.
7512         * modules/setenv (Depends-on): Likewise.
7513         * modules/setlocale (Depends-on): Likewise.
7514         * modules/setsockopt (Depends-on): Likewise.
7515         * modules/shutdown (Depends-on): Likewise.
7516         * modules/sigaction (Depends-on): Likewise.
7517         * modules/signbit (Depends-on): Likewise.
7518         * modules/sigprocmask (Depends-on): Likewise.
7519         * modules/sinl (Depends-on): Likewise.
7520         * modules/sleep (Depends-on): Likewise.
7521         * modules/snprintf (Depends-on): Likewise.
7522         * modules/snprintf-posix (Depends-on): Likewise.
7523         * modules/socket (Depends-on): Likewise.
7524         * modules/sprintf-posix (Depends-on): Likewise.
7525         * modules/sqrtl (Depends-on): Likewise.
7526         * modules/stat (Depends-on): Likewise.
7527         * modules/strchrnul (Depends-on): Likewise.
7528         * modules/strdup-posix (Depends-on): Likewise.
7529         * modules/strerror (Depends-on): Likewise.
7530         * modules/strerror_r-posix (Depends-on): Likewise.
7531         * modules/strndup (Depends-on): Likewise.
7532         * modules/strnlen (Depends-on): Likewise.
7533         * modules/strptime (Depends-on): Likewise.
7534         * modules/strsep (Depends-on): Likewise.
7535         * modules/strsignal (Depends-on): Likewise.
7536         * modules/strstr-simple (Depends-on): Likewise.
7537         * modules/strtod (Depends-on): Likewise.
7538         * modules/strtoimax (Depends-on): Likewise.
7539         * modules/strtok_r (Depends-on): Likewise.
7540         * modules/strtoumax (Depends-on): Likewise.
7541         * modules/symlink (Depends-on): Likewise.
7542         * modules/symlinkat (Depends-on): Likewise.
7543         * modules/tanl (Depends-on): Likewise.
7544         * modules/tcgetsid (Depends-on): Likewise.
7545         * modules/tmpfile (Depends-on): Likewise.
7546         * modules/trunc (Depends-on): Likewise.
7547         * modules/truncf (Depends-on): Likewise.
7548         * modules/truncl (Depends-on): Likewise.
7549         * modules/uname (Depends-on): Likewise.
7550         * modules/unlink (Depends-on): Likewise.
7551         * modules/unlockpt (Depends-on): Likewise.
7552         * modules/unsetenv (Depends-on): Likewise.
7553         * modules/usleep (Depends-on): Likewise.
7554         * modules/utimensat (Depends-on): Likewise.
7555         * modules/vasprintf (Depends-on): Likewise.
7556         * modules/vdprintf (Depends-on): Likewise.
7557         * modules/vdprintf-posix (Depends-on): Likewise.
7558         * modules/vfprintf-posix (Depends-on): Likewise.
7559         * modules/vprintf-posix (Depends-on): Likewise.
7560         * modules/vsnprintf (Depends-on): Likewise.
7561         * modules/vsnprintf-posix (Depends-on): Likewise.
7562         * modules/vsprintf-posix (Depends-on): Likewise.
7563         * modules/wcrtomb (Depends-on): Likewise.
7564         * modules/wcscasecmp (Depends-on): Likewise.
7565         * modules/wcscspn (Depends-on): Likewise.
7566         * modules/wcsdup (Depends-on): Likewise.
7567         * modules/wcsncasecmp (Depends-on): Likewise.
7568         * modules/wcsnrtombs (Depends-on): Likewise.
7569         * modules/wcspbrk (Depends-on): Likewise.
7570         * modules/wcsrtombs (Depends-on): Likewise.
7571         * modules/wcsspn (Depends-on): Likewise.
7572         * modules/wcsstr (Depends-on): Likewise.
7573         * modules/wcstok (Depends-on): Likewise.
7574         * modules/wcswidth (Depends-on): Likewise.
7575         * modules/wctob (Depends-on): Likewise.
7576         * modules/wctomb (Depends-on): Likewise.
7577         * modules/wctype (Depends-on): Likewise.
7578         * modules/wcwidth (Depends-on): Likewise.
7579         * modules/write (Depends-on): Likewise.
7580
7581 2011-05-03  Bruno Haible  <bruno@clisp.org>
7582
7583         Support for conditional dependencies.
7584         * doc/gnulib.texi (Module description): Document the syntax of
7585         conditional dependencies.
7586         * gnulib-tool: New option --conditional-dependencies.
7587         (func_usage): Document it.
7588         (cond_dependencies): New variable.
7589         (func_get_automake_snippet_conditional,
7590         func_get_automake_snippet_unconditional): New functions, extracted from
7591         func_get_automake_snippet.
7592         (func_get_automake_snippet): Use them.
7593         (sed_first_32_chars): New variable.
7594         (func_module_shellfunc_name): New function.
7595         (func_module_shellvar_name): New function.
7596         (func_module_conditional_name): New function.
7597         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
7598         func_cond_module_condition): New functions.
7599         (func_modules_transitive_closure): Add support for conditional
7600         dependencies.
7601         (func_emit_lib_Makefile_am): For a conditional module, enclose the
7602         conditional automake snippet in an automake conditional.
7603         (func_emit_autoconf_snippets): Emit shell functions that contain the
7604         code for conditional modules.
7605         (func_import, func_create_testdir): Update specification.
7606
7607 2011-05-03  Eric Blake  <eblake@redhat.com>
7608
7609         test-getaddrinfo: report error information
7610         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
7611
7612 2011-05-03  Jim Meyering  <meyering@redhat.com>
7613
7614         bootstrap: avoid build failure when $GZIP is set
7615         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
7616         program name.  If defined at all, it is supposed to list gzip options.
7617         Reported by Alan Curry in http://debbugs.gnu.org/8609
7618
7619 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
7620
7621         readme-release: new module with release instructions
7622         * modules/readme-release: New module.
7623         * top/README-release: New file, from coreutils, grep, diffutils.
7624         * MODULES.html.sh (Support for maintaining and releasing): Add it.
7625
7626 2011-05-02  Eric Blake  <eblake@redhat.com>
7627
7628         fflush: also replace fclose when fixing fflush
7629         * modules/fflush (Depends-on): Add fclose.
7630         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
7631         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
7632         memstreams with no backing fd.
7633         * doc/posix-functions/fclose.texi (fclose): Document the use of
7634         fflush module to fix the bug.
7635         * tests/test-fclose.c (main): Relax test when fclose is used in
7636         isolation.
7637
7638         fclose: add some tests
7639         * modules/fclose-tests: New test module.
7640         * tests/test-fclose.c: New file.
7641         * doc/posix-functions/fclose.texi (fclose): Document the bug.
7642
7643         fclose: reduced dependencies
7644         * modules/fclose (Depends-on): Switch from fflush/fseeko to
7645         simpler lseek.
7646         * lib/fclose.c (rpl_fclose): Likewise.
7647         Reported by Simon Josefsson.
7648
7649         exit: drop remaining clients
7650         * modules/argmatch (Depends-on): Replace exit with stdlib.
7651         * modules/copy-file (Depends-on): Likewise.
7652         * modules/execute (Depends-on): Likewise.
7653         * modules/exitfail (Depends-on): Likewise.
7654         * modules/obstack (Depends-on): Likewise.
7655         * modules/pagealign_alloc (Depends-on): Likewise.
7656         * modules/pipe-filter-gi (Depends-on): Likewise.
7657         * modules/pipe-filter-ii (Depends-on): Likewise.
7658         * modules/savewd (Depends-on): Likewise.
7659         * modules/spawn-pipe (Depends-on): Likewise.
7660         * modules/wait-process (Depends-on): Likewise.
7661         * modules/xsetenv (Depends-on): Likewise.
7662         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
7663         * modules/git-merge-changelog (Depends-on): Likewise.
7664         * modules/long-options (Depends-on): Likewise.
7665         * modules/pt_chown (Depends-on): Likewise.
7666         * modules/sysexits (Depends-on): Likewise.
7667
7668         freading: relax license from LGPLv3+ to LGPLv2+
7669         * modules/freading (License): Relax LGPL version.
7670
7671 2011-05-02  Bruno Haible  <bruno@clisp.org>
7672
7673         fchdir: Remove unused dependencies.
7674         * modules/fchdir (Depends-on): Remove include_next.
7675
7676 2011-05-02  Bruno Haible  <bruno@clisp.org>
7677
7678         gnulib-tool: Refactor.
7679         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
7680         from func_emit_autoconf_snippets.
7681         (func_emit_autoconf_snippets): Use it.
7682
7683 2011-05-02  Simon Josefsson  <simon@josefsson.org>
7684
7685         * NEWS: Document removal of 'exit'.
7686         * modules/exit: Remove file.
7687
7688 2011-05-01  Bruno Haible  <bruno@clisp.org>
7689
7690         Update DEPENDENCIES.
7691         * DEPENDENCIES (gettext): Recommend the newest release.
7692         Reported by Simon Josefsson.
7693
7694 2011-05-01  Bruno Haible  <bruno@clisp.org>
7695
7696         gnulib-tool: Reduce code duplication.
7697         * gnulib-tool (func_emit_autoconf_snippets): New function.
7698         (func_import, func_create_testdir): Use it.
7699
7700 2011-04-30  Eric Blake  <eblake@redhat.com>
7701
7702         fclose: don't fail on non-seekable input stream
7703         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
7704         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
7705         since fflush is allowed to fail in that case.
7706
7707 2011-04-30  Bruno Haible  <bruno@clisp.org>
7708
7709         dup3: cleanup
7710         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
7711
7712 2011-04-30  Bruno Haible  <bruno@clisp.org>
7713
7714         netdb: Make it work in C++ mode.
7715         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
7716         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
7717         module.
7718         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
7719         gl_MODULE_INDICATOR_FOR_TESTS.
7720         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
7721         * modules/netdb-c++-tests: New file.
7722         * tests/test-netdb-c++.cc: New file.
7723
7724 2011-04-30  Bruno Haible  <bruno@clisp.org>
7725
7726         New modules 'vfscanf', 'vscanf'.
7727         * modules/vfscanf: New file.
7728         * modules/vscanf: New file.
7729         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
7730         here.
7731         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
7732         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
7733
7734 2011-04-30  Bruno Haible  <bruno@clisp.org>
7735
7736         passfd: Add comments.
7737         * lib/passfd.c: Add comments about platforms.
7738
7739 2011-04-30  Bruno Haible  <bruno@clisp.org>
7740
7741         sys_uio: Make <sys/uio.h> self-contained.
7742         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
7743         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
7744
7745 2011-04-30  Bruno Haible  <bruno@clisp.org>
7746
7747         sys_socket: Ensure 'struct iovec' definition.
7748         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
7749         <sys/socket.h>.
7750         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
7751
7752 2011-04-30  Bruno Haible  <bruno@clisp.org>
7753
7754         sys_uio: Protect definition of 'struct iovec'.
7755         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
7756         it as a C struct.
7757
7758 2011-04-30  Bruno Haible  <bruno@clisp.org>
7759
7760         manywarnings: fix indentation
7761         * m4/manywarnings.m4: Indent by 2 spaces consistently.
7762
7763 2011-04-30  Pádraig Brady <P@draigBrady.com>
7764
7765         manywarnings: add -Wno-missing-field-initializers if needed.
7766         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
7767         option if it's needed to allow initialization with { 0, }
7768
7769 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
7770
7771         announce-gen: cosmetic improvement
7772         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
7773
7774 2011-04-29  Jim Meyering  <meyering@redhat.com>
7775
7776         vc-list-files: indent with spaces, not TABs
7777         * build-aux/vc-list-files: Convert leading TABs to spaces,
7778         to match the style of most other files in gnulib.
7779
7780         announce-gen: indent with spaces, not TABs
7781         * build-aux/announce-gen: Convert all TABs to spaces, to match
7782         the style of most other files in gnulib.
7783
7784 2011-04-29  Eric Blake  <eblake@redhat.com>
7785
7786         quotearg: avoid uninitialized variable use
7787         * lib/quotearg.c (quoting_options_from_style): Initialize
7788         remaining fields, and ensure that custom styles are only used via
7789         quoting_options rather than quoting_style.
7790
7791 2011-04-29  Jim Meyering  <meyering@redhat.com>
7792
7793         maint.mk: remove unused VC-tag variable
7794         * top/maint.mk (VC-tag): Remove unused variable.
7795
7796 2011-04-29  Bruno Haible  <bruno@clisp.org>
7797
7798         netdb: fix gai_strerror replacements
7799         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
7800         * modules/netdb: Substitute it.
7801
7802 2011-04-29  Jim Meyering  <meyering@redhat.com>
7803
7804         test-getcwd.c: avoid new set-but-not-used warning
7805         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
7806         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
7807         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
7808         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
7809
7810         test-hash.c: avoid a new shadowing warning
7811         * tests/test-hash.c (main): Don't shadow "dup".
7812
7813 2011-04-28  Eric Blake  <eblake@redhat.com>
7814
7815         getaddrinfo: fix gai_strerror signature
7816         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
7817         and work around mingw with UNICODE defined.
7818         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
7819         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
7820         * modules/netdb (Makefile.am): Substitute it.
7821         * lib/netdb.in.h (gai_strerror): Declare replacement.
7822         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
7823         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
7824         the fix.
7825
7826         getsockopt: avoid compiler warning
7827         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
7828         Reported by Matthias Bolte.
7829
7830         tests: drop unused link dependency
7831         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
7832         * modules/dirent-safer-tests (Makefile.am): Likewise.
7833         * modules/fdopendir-tests (Makefile.am): Likewise.
7834         * modules/mkfifoat-tests (Makefile.am): Likewise.
7835         * modules/openat-safer-tests (Makefile.am): Likewise.
7836         * modules/openat-tests (Makefile.am): Likewise.
7837         * modules/readlinkat-tests (Makefile.am): Likewise.
7838         * modules/symlinkat-tests (Makefile.am): Likewise.
7839         * modules/linkat-tests (Makefile.am): Likewise.
7840         (Depends-on): Switch to filenamecat-lgpl.
7841         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
7842         LIBINTL.
7843         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
7844         * tests/test-linkat.c (main): Don't require xalloc.
7845
7846         hash, mgetgroups: drop xalloc dependency
7847         * lib/hash.c (includes): Adjust includes.
7848         * lib/mgetgroups.c (includes): Likewise.
7849         (xgetgroups): Move...
7850         * lib/xgetgroups.c: ...to new file.
7851         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
7852         * modules/xgetgroups: New file, split from...
7853         * modules/mgetgroups: ...here.
7854         (Depends-on): Add xalloc-oversized.
7855         * modules/hash (Depends-on): Likewise.
7856         * modules/hash-tests (Depends-on): Drop xalloc.
7857         (test_hash_LDADD): Drop unused library.
7858         * tests/test-hash.c (main): Break xalloc dependency.
7859         (includes): Drop unused include.
7860
7861         xalloc-oversized: new module
7862         * modules/xalloc-oversized: New module.
7863         * modules/xalloc (Depends-on): Add it.
7864         * lib/xalloc.h (xalloc_oversized): Move...
7865         * lib/xalloc-oversized.h: ...into new file.
7866
7867         utimecmp: drop dependency on xmalloc
7868         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
7869         due to memory pressure.
7870         * modules/utimecmp (Depends-on): Drop xalloc.
7871
7872 2011-04-27  Eric Blake  <eblake@redhat.com>
7873
7874         getcwd: fix mingw bugs
7875         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
7876         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
7877         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
7878
7879 2011-04-27  Bruno Haible  <bruno@clisp.org>
7880
7881         mkstemps: Ensure declaration on MacOS X 10.5.
7882         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
7883         * doc/glibc-functions/mkstemps.texi: Document header file problem on
7884         MacOS X.
7885
7886 2011-04-27  Bruno Haible  <bruno@clisp.org>
7887
7888         mkstemp: More documentation.
7889         * doc/posix-functions/mkstemp.texi: Document header file problem on
7890         MacOS X.
7891
7892 2011-04-27  Bruno Haible  <bruno@clisp.org>
7893
7894         mkstemp: Tweak configure message when cross-compiling.
7895         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
7896         result as a guess.
7897
7898 2011-04-27  Bruno Haible  <bruno@clisp.org>
7899
7900         clean-temp: Clarify what it does.
7901         * lib/clean-temp.h: Add more comments.
7902         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
7903         module.
7904         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
7905         * doc/glibc-functions/mkstemps.texi: Likewise.
7906         * doc/glibc-functions/mkostemps.texi: Likewise.
7907
7908 2011-04-27  Eric Blake  <eblake@redhat.com>
7909
7910         fchdir: avoid extra chdir and fix test
7911         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
7912         getcwd-lgpl.
7913         * lib/fchdir.c (get_name): Any absolute name will do; it does not
7914         have to be canonical.
7915         (canonicalize_file_name): Drop unused macro.
7916         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
7917
7918         filenamecat-lgpl: fix licence
7919         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
7920         when it was first created.
7921
7922         linkat, renameat: add missing dependency
7923         * modules/linkat (Depends-on): Require getcwd-lgpl.
7924         * modules/renameat (Depends-on): Likewise.
7925
7926         tests: reduce dependencies
7927         * tests/test-linkat.c (main): Use lighter-weight getcwd.
7928         * tests/test-renameat.c (main): Likewise.
7929         * modules/linkat-tests (Depends-on): Relax dependency.
7930         * modules/renameat-tests (Depends-on): Likewise.
7931         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
7932         dependency explicit.
7933
7934         save-cwd: reduce default dependency
7935         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
7936         * lib/save-cwd.c: Update comments.
7937         * NEWS: Document the semantic change.
7938
7939         getcwd: enhance tests
7940         * tests/test-getcwd-lgpl.c: New file, taken from...
7941         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
7942         repeat long path stress tests from m4 probe.
7943         * modules/getcwd-lgpl-tests: New module.
7944         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
7945         * m4/getcwd-abort-bug.m4: Update comment.
7946         * m4/getcwd-path-max.m4: Likewise.
7947
7948         getcwd-lgpl: new module
7949         * modules/getcwd-lgpl: New module.
7950         * lib/getcwd-lgpl.c: New file.
7951         * doc/posix-functions/getcwd.texi (getcwd): Document it.
7952         * MODULES.html.sh (lacking POSIX:2008): Likewise.
7953         * modules/getcwd (configure.ac): Set C witness.
7954         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
7955
7956         getcwd: tweak comments
7957         * m4/getcwd-abort-bug.m4: Fix comments.
7958         * m4/getcwd-path-max.m4: Likewise.
7959         * m4/getcwd.m4: Likewise.
7960
7961 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
7962         and Eric Blake  <eblake@redhat.com>
7963
7964         mkstemp: replace if system version uses wrong permissions
7965         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
7966         read/write mode bits set in file created by mkstemp.
7967         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
7968
7969 2011-04-27  Eric Blake  <eblake@redhat.com>
7970
7971         passfd: avoid compiler warning
7972         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
7973         Reported by Laine Stump.
7974
7975 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
7976
7977         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
7978         required by the NetBSD (and perhaps other 4.4BSD derived) join.
7979
7980 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
7981         and Eric Blake  <eblake@redhat.com>
7982
7983         mkstemp: mention clean-temp module
7984         * lib/mkstemp.c: Add comment.
7985         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
7986
7987 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
7988
7989         inttypes: also provide default values for 32-bit tests
7990         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
7991         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
7992
7993 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
7994
7995         strtoumax: remove dependency on strtoimax
7996         This is like the strtoull change of yesterday.
7997         * modules/strtoumax (Files): Add lib/strtoimax.c.
7998         (Depends-on): Remove strtoimax and add verify.
7999
8000         inttypes-incomplete: new module
8001         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
8002         all but the PRI* and SCN* parts of gl_INTTYPES_H.
8003         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
8004         of gl_INTTYPES_H.
8005         (gl_INTTYPES_H): Rewrite in terms of these new macros.
8006         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
8007         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
8008         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
8009         * modules/strtoumax, modules/xstrtol (Depends-on):
8010         Depend on inttypes-incomplete, not inttypes.
8011         * modules/inttypes-incomplete: New module, containing the contents
8012         of the old modules/inttypes module, except that the Files: section
8013         omits m4/inttypes-pri.m4, and the configure.ac section invokes
8014         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
8015         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
8016         (Depends-on): Depend only on inttypes-incomplete.
8017         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
8018
8019         inttypes: omit now-redundant strtoimax and strtoumax work
8020         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
8021         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
8022
8023         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
8024         This supports apps that need pointers to strtoimax and strtoumax,
8025         and ports to HP-UX 11.00 64.bit, which has macros that expand to
8026         nonexistent functions.  See
8027         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
8028         et seq.
8029         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
8030         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
8031         a macro.
8032         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
8033
8034 2011-04-25  Simon Josefsson  <simon@josefsson.org>
8035
8036         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
8037
8038 2011-04-25  Bruno Haible  <bruno@clisp.org>
8039
8040         strtol, strtoul: Mark modules as obsolete.
8041         * modules/strtol (Status, Notice): New sections.
8042         * modules/strtoul (Status, Notice): New sections.
8043
8044 2011-04-25  Bruno Haible  <bruno@clisp.org>
8045
8046         strtod: Remove check for strtod, unless supporting old platforms.
8047         * modules/strtod-obsolete: New file.
8048         * m4/strtod-obsolete.m4: New file.
8049         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
8050         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
8051         * modules/strtod (Depends-on): Add strtod-obsolete.
8052         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
8053
8054 2011-04-25  Bruno Haible  <bruno@clisp.org>
8055
8056         strcase: Make module obsolete.
8057         * modules/strcase (Status, Notice): New sections.
8058
8059 2011-04-25  Bruno Haible  <bruno@clisp.org>
8060
8061         dup2: Remove check for dup2, unless supporting old obsolete platforms.
8062         * modules/dup2-obsolete: New file.
8063         * m4/dup2-obsolete.m4: New file.
8064         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
8065         gl_FUNC_DUP2_OBSOLETE is not also defined.
8066         * modules/dup2 (Depends-on): Add dup2-obsolete.
8067         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
8068
8069 2011-04-25  Bruno Haible  <bruno@clisp.org>
8070
8071         strnlen: Avoid memchr related link error on old obsolete platforms.
8072         * modules/memchr-obsolete: New file.
8073         * m4/memchr-obsolete.m4: New file.
8074         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
8075         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
8076         * modules/memchr (Depends-on): Add memchr-obsolete.
8077         * modules/strnlen (Depends-on): Likewise.
8078         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
8079
8080 2011-04-25  Jim Meyering  <meyering@redhat.com>
8081
8082         maint.mk: makefile_at_at_check extend and clean up
8083         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
8084         in addition to */Makefile.am.
8085         Exempt legitimate uses of @VAR@ notation, e.g.,
8086         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
8087         Remove obsolete coreutils-specific comment.
8088         Prompted by discussion here:
8089         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
8090
8091 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
8092
8093         strtoul: remove dependency on strtol
8094         This is so that 'configure' need not check for strtol merely because
8095         the application needs strtoul.
8096         * modules/strtoul (Files): Add lib/strtol.c.
8097         (Depends-on): Remove strtol.
8098
8099         strtoull: remove dependency on strtoul
8100         This is like the strtoll change.
8101         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
8102         (Depends-on): Remove strtoul.
8103
8104         strtoll: remove dependency on strtol
8105         This is so that 'configure' need not check for strtol merely because
8106         the application needs strtoll.
8107         * modules/strtoll (Files): Add lib/strtol.c.
8108         (Depends-on): Remove strtol.
8109
8110 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8111
8112         inttypes: Move some configure check to module 'imaxdiv'.
8113         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
8114         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
8115         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
8116
8117 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8118
8119         inttypes: Move some configure check to module 'imaxabs'.
8120         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
8121         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
8122         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
8123
8124 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8125
8126         inttypes: Remove configure tests that are not needed since 2009-12-31.
8127         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
8128         gl_cv_header_working_inttypes_h.
8129
8130 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8131
8132         * modules/strnlen (Depends-on): Remove memchr.
8133         The strnlen implementation doesn't need the memchr module's fixes; see
8134         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
8135
8136         strtol: remove dependency on wchar
8137         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
8138         * modules/strtol (Depends-on): Remove wchar.
8139
8140 2011-04-21  Eric Blake  <eblake@redhat.com>
8141
8142         passfd: fix test regression on Linux
8143         * modules/passfd-tests (configure.ac): Correct socketpair check.
8144
8145         passfd: speed up configure and drop unused code
8146         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
8147         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
8148         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
8149         Instead of probing at configure for unix_scm_rights_bsd44_way,
8150         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
8151         check to a struct member probe.
8152         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
8153         (sendfd, recvfd): Update preprocessor checks.
8154         * modules/passfd (Files): Reflect rename, and drop unused file.
8155         (Depends-on): Drop unused dependency.
8156
8157         passfd: allow compilation on mingw
8158         * modules/sys_socket (Depends-on): Add sys_uio.
8159         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
8160         iovec and a minimal struct msghdr.
8161         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
8162         * tests/test-sys_socket.c (main): Enhance test.
8163         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
8164         guaranteed to provide what we need.
8165         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
8166         * modules/passfd-tests (Depends-on): Add sys_wait.
8167         * tests/test-passfd.c (main): Skip test on mingw, for now.
8168         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
8169         partial 'struct msghdr' implementation.
8170
8171         sys_uio: new module
8172         * modules/sys_uio: New module.
8173         * modules/sys_uio-tests: Likewise.
8174         * lib/sys_uio.in.h: New file.
8175         * m4/sys_uio_h.m4: Likewise.
8176         * tests/test-sys_uio.c: Likewise.
8177         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
8178         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
8179
8180 2011-04-20  Jim Meyering  <meyering@redhat.com>
8181
8182         useless-if-before-free: avoid false-positive
8183         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
8184         disjunct so that it too requires a terminating ";".  Without that,
8185         this script would identify as useless one statement from gcc that
8186         was not:
8187           if (aligned_ptr)
8188             free (((void **) aligned_ptr) [-1]);
8189
8190 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
8191
8192         doc: update users.txt.
8193         * users.txt: Add barcode.
8194
8195 2011-04-19  Bruno Haible  <bruno@clisp.org>
8196
8197         ioctl: Remove link dependency on native Windows.
8198         * lib/fd-hook.h: Renamed from lib/close-hook.h.
8199         (gl_close_fn, gl_ioctl_fn): New types.
8200         (struct fd_hook): Renamed from struct close_hook. Change type of
8201         private_close_fn field. Add private_ioctl_fn field.
8202         (close_hook_fn): Add parameter for primary close method.
8203         (execute_close_hooks, execute_all_close_hooks): Likewise.
8204         (ioctl_hook_fn): New type.
8205         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
8206         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
8207         argument.
8208         (unregister_fd_hook): Renamed from unregister_close_hook.
8209         * lib/fd-hook.c: Renamed from lib/close-hook.c.
8210         Don't include <unistd.h>.
8211         (close): Remove undef.
8212         (anchor): Update.
8213         (execute_close_hooks): Add argument for primary close method.
8214         (execute_all_close_hooks): Likewise.
8215         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
8216         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
8217         argument. Allow each argument to be NULL.
8218         (unregister_fd_hook): Renamed from unregister_close_hook.
8219         * lib/close.c (rpl_close): Pass 'close' function pointer to
8220         execute_all_close_hooks.
8221         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
8222         (primary_ioctl): New function.
8223         (ioctl): Don't call ioctlsocket here. Instead, call
8224         execute_all_ioctl_hooks.
8225         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
8226         close method.
8227         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
8228         (fd_sockets_hook): Renamed from close_sockets_hook.
8229         (gl_sockets_startup, gl_sockets_cleanup): Update.
8230         * modules/fd-hook: Renamed from modules/close-hook. Update.
8231         * modules/close (Depends-on): Add fd-hook, remove close-hook.
8232         * modules/sockets (Depends-on): Likewise.
8233         * modules/ioctl (Depends-on): Add fd-hook.
8234         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
8235         GNULIB_SOCKET.
8236
8237 2011-04-19  Bruno Haible  <bruno@clisp.org>
8238
8239         Move the support of O_NONBLOCK in open() to the 'open' module.
8240         * modules/nonblocking (Depends-on): Remove 'open'.
8241         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
8242         gl_cv_have_open_O_NONBLOCK.
8243         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
8244         O_NONBLOCK support.
8245         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
8246
8247 2011-04-17  Bruno Haible  <bruno@clisp.org>
8248
8249         pipe2: Simplify code.
8250         * lib/pipe2.c (pipe2): Reduce code duplication.
8251
8252 2011-04-17  Bruno Haible  <bruno@clisp.org>
8253
8254         nonblocking: Add comment.
8255         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
8256
8257 2011-04-17  Bruno Haible  <bruno@clisp.org>
8258
8259         nonblocking: Add tests for sockets.
8260         * tests/test-nonblocking-socket.sh: New file.
8261         * tests/test-nonblocking-socket-main.c: New file.
8262         * tests/test-nonblocking-socket-child.c: New file.
8263         * tests/test-nonblocking-socket.h: New file.
8264         * tests/socket-server.h: New file.
8265         * tests/socket-client.h: New file.
8266         * modules/nonblocking-socket-tests: New file.
8267         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
8268
8269 2011-04-17  Bruno Haible  <bruno@clisp.org>
8270
8271         nonblocking: Add tests for pipes.
8272         * tests/test-nonblocking-pipe.sh: New file.
8273         * tests/test-nonblocking-pipe-main.c: New file.
8274         * tests/test-nonblocking-pipe-child.c: New file.
8275         * tests/test-nonblocking-pipe.h: New file.
8276         * tests/test-nonblocking-writer.h: New file.
8277         * tests/test-nonblocking-reader.h: New file.
8278         * tests/test-nonblocking-misc.h: New file.
8279         * modules/nonblocking-pipe-tests: New file.
8280         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
8281
8282 2011-04-16  Bruno Haible  <bruno@clisp.org>
8283
8284         gettext: Clarify the needed programmer actions.
8285         * modules/gettext (Notice): New field.
8286         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
8287
8288 2011-04-16  Bruno Haible  <bruno@clisp.org>
8289
8290         strchrnul: Tweak last commit.
8291         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
8292         bug.
8293         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
8294         as in _GL_FUNCDECL_SYS.
8295         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
8296         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
8297
8298 2011-04-15  Eric Blake  <eblake@redhat.com>
8299
8300         strchrnul: work around cygwin bug
8301         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
8302         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
8303         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
8304         * modules/string (Makefile.am): Substitute it.
8305         * lib/string.in.h (strchrnul): Use it.
8306
8307 2011-04-15  Bruno Haible  <bruno@clisp.org>
8308
8309         Don't require lib/stdio-write.c when only module 'stdio' is used.
8310         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
8311         invocation.
8312         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
8313
8314 2011-04-14  Bruno Haible  <bruno@clisp.org>
8315
8316         Support non-blocking pipe I/O in read() on native Windows.
8317         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
8318         (read): New declaration.
8319         * lib/read.c: New file.
8320         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
8321         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
8322         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
8323         vscanf): New declarations.
8324         * lib/stdio-read.c: New file.
8325         * m4/read.m4: New file.
8326         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
8327         REPLACE_READ.
8328         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
8329         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8330         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
8331         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
8332         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
8333         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8334         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
8335         * modules/read: New file.
8336         * modules/nonblocking (Files): Add lib/stdio-read.c.
8337         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
8338         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
8339         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8340         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
8341         * modules/pread (Depends-on): Add read.
8342         * modules/safe-read (Depends-on): Likewise.
8343         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
8344         gets, scanf, vfscanf, vscanf): Verify signatures.
8345         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
8346         problem with non-blocking pipes.
8347         * doc/posix-functions/fgetc.texi: Likewise.
8348         * doc/posix-functions/fgets.texi: Likewise.
8349         * doc/posix-functions/fread.texi: Likewise.
8350         * doc/posix-functions/fscanf.texi: Likewise.
8351         * doc/posix-functions/getc.texi: Likewise.
8352         * doc/posix-functions/getchar.texi: Likewise.
8353         * doc/posix-functions/gets.texi: Likewise.
8354         * doc/posix-functions/scanf.texi: Likewise.
8355         * doc/posix-functions/vfscanf.texi: Likewise.
8356         * doc/posix-functions/vscanf.texi: Likewise.
8357
8358 2011-04-14  Bruno Haible  <bruno@clisp.org>
8359
8360         Support non-blocking pipe I/O in write() on native Windows.
8361         * lib/write.c (rpl_write): Split a write request that failed merely
8362         because the byte count was larger than the pipe buffer's size.
8363         * doc/posix-functions/write.texi: Mention the problem with large byte
8364         counts.
8365
8366 2011-04-14  Bruno Haible  <bruno@clisp.org>
8367
8368         wchar: Ensure that wchar_t gets defined on uClibc.
8369         * lib/wchar.in.h: On uClibc, include <stddef.h>.
8370         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
8371
8372 2011-04-13  Bruno Haible  <bruno@clisp.org>
8373
8374         safe-write, full-read: Avoid unnecessary compilation units.
8375         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
8376         (Depends-on): Remove safe-read. Add ssize_t.
8377         * modules/full-read (Files): Add lib/full-write.c.
8378         (Depends-on): Add full-write.
8379
8380 2011-04-13  Bruno Haible  <bruno@clisp.org>
8381
8382         Support non-blocking pipe I/O and SIGPIPE in pwrite().
8383         * modules/pwrite (Depends-on): Add 'write'.
8384
8385 2011-04-13  Bruno Haible  <bruno@clisp.org>
8386
8387         Support non-blocking pipe I/O in write() on native Windows.
8388         * lib/unistd.in.h (write): Enable replacement also if
8389         GNULIB_UNISTD_H_NONBLOCKING is 1.
8390         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
8391         (rpl_write): When failing to write on a non-blocking pipe, change
8392         errno from ENOSPC to EAGAIN.
8393         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
8394         putchar, puts, vfprintf, vprintf): Enable replacement also if
8395         GNULIB_STDIO_H_NONBLOCKING is 1.
8396         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
8397         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
8398         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
8399         CALL_WITH_SIGPIPE_EMULATION.
8400         (CALL_WITH_SIGPIPE_EMULATION): Use them.
8401         * m4/nonblocking.m4: New file.
8402         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
8403         for non-blocking I/O support.
8404         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8405         GNULIB_UNISTD_H_NONBLOCKING.
8406         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
8407         required for non-blocking I/O support.
8408         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
8409         * modules/nonblocking (Files): Add m4/nonblocking.m4,
8410         lib/stdio-write.c, m4/asm-underscore.m4.
8411         (Depends-on): Add stdio, unistd.
8412         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
8413         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
8414         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
8415         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
8416         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
8417         problem with non-blocking pipes.
8418         * doc/posix-functions/fputc.texi: Likewise.
8419         * doc/posix-functions/fputs.texi: Likewise.
8420         * doc/posix-functions/fwrite.texi: Likewise.
8421         * doc/posix-functions/printf.texi: Likewise.
8422         * doc/posix-functions/putc.texi: Likewise.
8423         * doc/posix-functions/putchar.texi: Likewise.
8424         * doc/posix-functions/puts.texi: Likewise.
8425         * doc/posix-functions/vfprintf.texi: Likewise.
8426         * doc/posix-functions/vprintf.texi: Likewise.
8427         * doc/posix-functions/write.texi: Likewise.
8428
8429 2011-04-10  Jim Meyering  <meyering@redhat.com>
8430
8431         maint.mk: prohibit doubled words
8432         Detect them also when they're separated by a newline.
8433         There are 3 ways to customize it:
8434           - disable the test on a per file basis, as usual with rules using
8435             $(VC_LIST_EXCEPT)
8436           - replace the default doubled-word-selecting regexp (affects all files)
8437           - ignore a particular file-vs-doubled-word match
8438         I nearly used that last one to ignore the "is is" match in
8439         coreutils' NEWS file, since the text was "ls -is is ..."
8440         To do that, I would have added this line to cfg.mk:
8441           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
8442         but it would have ignored any "is is" match in NEWS.
8443         Low probability, but still...
8444         Instead, I changed the text, slightly:
8445           -  ls -is is now consistent with ls -lis in ignoring values returned
8446           +  "ls -is" is now consistent with ls -lis in ignoring values returned
8447         * top/maint.mk (prohibit_double_word_RE_): Provide default.
8448         (prohibit_doubled_word_): Define.
8449         (sc_prohibit_doubled_word): New rule.
8450         (sc_prohibit_the_the): Remove.  Subsumed by the above.
8451
8452 2011-04-10  Jim Meyering  <meyering@redhat.com>
8453
8454         maint: fix doubled-word typo in comment
8455         * m4/gethostname.m4: s/is is/it is/
8456         * m4/getdomainname.m4: Likewise.
8457
8458 2011-04-10  Jim Meyering  <meyering@redhat.com>
8459
8460         maint: remove doubled word: s/it it/it/
8461         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
8462
8463 2011-04-10  Jim Meyering  <meyering@redhat.com>
8464
8465         maint.mk: remove useless semicolon and backslash
8466         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
8467         semicolon and backslash.
8468
8469 2011-04-10  Bruno Haible  <bruno@clisp.org>
8470
8471         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
8472         * modules/stdint-tests (Depends-on): Add wchar.
8473
8474 2011-04-10  Jim Meyering  <meyering@redhat.com>
8475
8476         maint: remove doubled words in comments, e.g., s/a a/a/
8477         * lib/strptime.c (day_of_the_week): s/the the/the/
8478         * tests/test-chown.h (test_chown): s/a a/a/
8479
8480         test-chown.h: correct a cast
8481         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
8482         when the destination is a stat.st_gid.
8483
8484 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
8485
8486         getaddrinfo: Fix test for sa_len member.
8487         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
8488         include <sys/types.h> before <sys/socket.h>.
8489
8490 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8491
8492         maint: change "can not" to "cannot"
8493         * doc/posix-functions/iconv.texi (iconv): This one crossed line
8494         boundaries.
8495
8496 2011-04-09  Jim Meyering  <meyering@redhat.com>
8497
8498         maint: change "a a" to "a"
8499         * tests/test-lchown.h (test_lchown): s/a a/a/
8500
8501         maint.mk: prohibit \<the the\>
8502         * top/maint.mk (sc_prohibit_the_the): New rule.
8503
8504         maint: fix "the the" in comment
8505         * lib/count-one-bits.h: s/the the/the/
8506
8507         maint: change "can not" to "cannot"
8508         But do not change the occurrences in maintain.texi or in
8509         build-aux/po/Makefile.in.in, which I presume comes from gettext.
8510         * doc/gnulib-tool.texi: s/can not/cannot/
8511         * doc/posix-functions/accept.texi (accept): Likewise.
8512         * doc/posix-functions/socket.texi (socket): Likewise.
8513         * lib/mbrtowc.c: Likewise.
8514
8515         maint.mk: prohibit use of "can not"
8516         * top/maint.mk (sc_prohibit_can_not): New rule.
8517         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
8518
8519 2011-04-09  Bruno Haible  <bruno@clisp.org>
8520
8521         careadlinkat: Guard against misuse of careadlinkatcwd.
8522         * lib/careadlinkat.c: Include <stdlib.h>.
8523         (careadlinkatcwd): Check that the fd argument is as expected.
8524
8525 2011-04-09  Bruno Haible  <bruno@clisp.org>
8526
8527         careadlinkat: Use common coding style.
8528         * lib/careadlinkat.c: Move gnulib includes after system includes.
8529
8530 2011-04-09  Bruno Haible  <bruno@clisp.org>
8531
8532         careadlinkat: Clarify specification.
8533         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
8534         (careadlinkatcwd): Add comment.
8535         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
8536
8537 2011-04-09  Bruno Haible  <bruno@clisp.org>
8538
8539         areadlinkat: Avoid link error on many platforms.
8540         * modules/areadlinkat (Depends-on): Add areadlink.
8541
8542 2011-04-09  Bruno Haible  <bruno@clisp.org>
8543
8544         allocator, careadlinkat: Fix double-inclusion guard.
8545         * lib/allocator.h: Fix double-inclusion guard.
8546         * lib/careadlinkat.h: Likewise.
8547
8548 2011-04-09  Bruno Haible  <bruno@clisp.org>
8549
8550         relocatable-prog-wrapper: Update after module 'areadlink' changed.
8551         * lib/relocwrapper.c: Update dependencies hierarchy.
8552         * build-aux/install-reloc: Update list of files to be compiled.
8553         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
8554         lib/allocator.[hc].
8555
8556 2011-04-08  Eric Blake  <eblake@redhat.com>
8557
8558         strftime: silence gnulib-tool warning
8559         * modules/strftime-tests (Depends-on): Drop automatic dependency.
8560
8561 2011-04-08  Bruno Haible  <bruno@clisp.org>
8562
8563         verify: Fix syntax error with GCC 4.6 in C++ mode.
8564         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
8565         (HAVE_STATIC_ASSERT): New macro.
8566         (verify_true, verify): Use 'static_assert' if it is supported and
8567         '_Static_assert' is not supported.
8568
8569 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
8570
8571         allocator: New module.
8572         * modules/allocator, lib/allocator.c: New files.
8573         * lib/allocator.h (stdlib_allocator): New decl.
8574         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
8575         Remove.  Do not include <stdlib.h>.
8576         (careadlinkat): Use stdlib_allocator instead of rolling our own.
8577         * modules/careadlinkat (Files): Remove lib/allocator.h.
8578         (Depends-on): Add allocator.
8579
8580         stdlib: let modules use system malloc, realloc
8581         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
8582         if !_GL_USE_STDLIB_ALLOC.
8583         (malloc, realloc): Limit this change to a smaller scope.
8584
8585         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
8586         (malloc, realloc): Don't #undef; no longer needed.
8587         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8588         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8589         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
8590         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8591         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8592         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8593         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8594         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
8595
8596         careadlinkat: rename members to avoid problem
8597         * lib/allocator.h (struct allocator): Rename members from
8598         malloc/realloc to allocate/reallocate, to avoid problems if malloc
8599         and realloc are #define'd.  Reported by Eric Blake in
8600         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
8601         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
8602
8603 2011-04-08  Eric Blake  <eblake@redhat.com>
8604
8605         nonblocking: reduce dependency
8606         * tests/test-nonblocking.c: Only test sockets when in use.
8607         * modules/nonblocking-tests (Depends-on): Drop socket.
8608         (Makefile.am): Link even if sockets are not present.
8609         * modules/pipe2-tests (Makefile.am): Likewise.
8610         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
8611
8612         pipe2: fix O_NONBLOCK support on mingw
8613         * modules/pipe2 (Depends-on): Add nonblocking.
8614         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
8615         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
8616         * tests/test-nonblocking.c (main): Likewise.
8617         * modules/pipe2-tests (Makefile.am): Avoid link failure.
8618
8619         fcntl-h: fix O_ACCMODE on cygwin
8620         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
8621         * lib/fcntl.in.h (O_ACCMODE): Fix it.
8622
8623         pipe-filter: drop O_NONBLOCK workarounds
8624         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
8625         * modules/pipe-filter-ii (Depends-on): Likewise.
8626         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
8627
8628         nonblocking: provide O_NONBLOCK for mingw
8629         * modules/nonblocking (Depends-on): Add open.
8630         (configure.ac): Set new witness macro.
8631         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
8632         * modules/fcntl-h (Makefile.am): Substitute it.
8633         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
8634         nonblocking module is in use.
8635         * lib/nonblocking.c: Adjust portability test.
8636         * lib/open.c (open): Don't let native open see gnulib flag.
8637         * tests/test-fcntl-h.c (main): Enhance test.
8638         * tests/test-open.h (test_open): Likewise.
8639         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
8640
8641         careadlinkat: fix compilation error on mingw
8642         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
8643         within struct allocator.
8644
8645 2011-04-06  Eric Blake  <eblake@redhat.com>
8646
8647         binary-io: relicense under LGPLv2+
8648         * modules/binary-io (License): Relax to LGPLv2+.
8649         Requested for libvirt, and required by pipe2.
8650
8651 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
8652
8653         verify: use _Static_assert if available
8654         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
8655         (verify_true, verify): Use it if available.  This generates better
8656         diagnostics with GCC 4.6.0 and later.
8657
8658 2011-04-05  Bruno Haible  <bruno@clisp.org>
8659
8660         Remove leftover generated .h files after config.status changed.
8661
8662         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
8663         GL_GENERATE_ALLOCA_H.
8664         * modules/alloca-opt (Makefile.am): Remove alloca.h if
8665         GL_GENERATE_ALLOCA_H evaluates to false.
8666
8667         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
8668         GL_GENERATE_ARGZ_H.
8669         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
8670         evaluates to false.
8671
8672         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
8673         GL_GENERATE_BYTESWAP_H.
8674         * modules/byteswap (Makefile.am): Remove byteswap.h if
8675         GL_GENERATE_BYTESWAP_H evaluates to false.
8676
8677         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
8678         GL_GENERATE_ERRNO_H.
8679         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
8680         evaluates to false.
8681
8682         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
8683         GL_GENERATE_FLOAT_H.
8684         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
8685         evaluates to false.
8686
8687         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
8688         GL_GENERATE_FNMATCH_H.
8689         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
8690         GL_GENERATE_FNMATCH_H evaluates to false.
8691
8692         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
8693         GL_GENERATE_GLOB_H.
8694         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
8695         evaluates to false.
8696
8697         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
8698         automake conditional GL_GENERATE_ICONV_H.
8699         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
8700         evaluates to false.
8701
8702         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
8703         GL_GENERATE_NETINET_IN_H.
8704         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
8705         GL_GENERATE_NETINET_IN_H evaluates to false.
8706
8707         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
8708         conditional GL_GENERATE_PTHREAD_H.
8709         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
8710         * modules/pthread (Makefile.am): Remove pthread.h if
8711         GL_GENERATE_PTHREAD_H evaluates to false.
8712
8713         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
8714         GL_GENERATE_SCHED_H.
8715         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
8716         evaluates to false.
8717
8718         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
8719         conditional GL_GENERATE_SELINUX_CONTEXT_H.
8720         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
8721         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
8722
8723         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
8724         GL_GENERATE_STDARG_H.
8725         * modules/stdarg (Makefile.am): Remove stdarg.h if
8726         GL_GENERATE_STDARG_H evaluates to false.
8727
8728         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
8729         GL_GENERATE_STDBOOL_H.
8730         * modules/stdbool (Makefile.am): Remove stdbool.h if
8731         GL_GENERATE_STDBOOL_H evaluates to false.
8732
8733         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
8734         conditional GL_GENERATE_STDDEF_H.
8735         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
8736         * modules/stddef (Makefile.am): Remove stddef.h if
8737         GL_GENERATE_STDDEF_H evaluates to false.
8738
8739         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
8740         GL_GENERATE_STDINT_H.
8741         * modules/stdint (Makefile.am): Remove stdint.h if
8742         GL_GENERATE_STDINT_H evaluates to false.
8743
8744         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
8745         GL_GENERATE_SYSEXITS_H.
8746         * modules/sysexits (Makefile.am): Remove sysexits.h if
8747         GL_GENERATE_SYSEXITS_H evaluates to false.
8748
8749         Reported by Karl Berry and Ralf Wildenhues.
8750
8751 2011-04-05  Bruno Haible  <bruno@clisp.org>
8752
8753         Ensure to rebuild generated .h files when config.status has changed.
8754         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
8755         config.status.
8756         * modules/ctype (Makefile.am): Likewise.
8757         * modules/dirent (Makefile.am): Likewise.
8758         * modules/errno (Makefile.am): Likewise.
8759         * modules/fcntl-h (Makefile.am): Likewise.
8760         * modules/float (Makefile.am): Likewise.
8761         * modules/getopt-posix (Makefile.am): Likewise.
8762         * modules/glob (Makefile.am): Likewise.
8763         * modules/iconv-h (Makefile.am): Likewise.
8764         * modules/inttypes (Makefile.am): Likewise.
8765         * modules/langinfo (Makefile.am): Likewise.
8766         * modules/locale (Makefile.am): Likewise.
8767         * modules/math (Makefile.am): Likewise.
8768         * modules/netdb (Makefile.am): Likewise.
8769         * modules/netinet_in (Makefile.am): Likewise.
8770         * modules/poll-h (Makefile.am): Likewise.
8771         * modules/pthread (Makefile.am): Likewise.
8772         * modules/pty (Makefile.am): Likewise.
8773         * modules/sched (Makefile.am): Likewise.
8774         * modules/search (Makefile.am): Likewise.
8775         * modules/selinux-h (Makefile.am): Likewise.
8776         * modules/signal (Makefile.am): Likewise.
8777         * modules/spawn (Makefile.am): Likewise.
8778         * modules/stdarg (Makefile.am): Likewise.
8779         * modules/stdbool (Makefile.am): Likewise.
8780         * modules/stddef (Makefile.am): Likewise.
8781         * modules/stdint (Makefile.am): Likewise.
8782         * modules/stdio (Makefile.am): Likewise.
8783         * modules/stdlib (Makefile.am): Likewise.
8784         * modules/string (Makefile.am): Likewise.
8785         * modules/strings (Makefile.am): Likewise.
8786         * modules/sys_file (Makefile.am): Likewise.
8787         * modules/sys_ioctl (Makefile.am): Likewise.
8788         * modules/sys_select (Makefile.am): Likewise.
8789         * modules/sys_socket (Makefile.am): Likewise.
8790         * modules/sys_stat (Makefile.am): Likewise.
8791         * modules/sys_time (Makefile.am): Likewise.
8792         * modules/sys_times (Makefile.am): Likewise.
8793         * modules/sys_utsname (Makefile.am): Likewise.
8794         * modules/sys_wait (Makefile.am): Likewise.
8795         * modules/sysexits (Makefile.am): Likewise.
8796         * modules/termios (Makefile.am): Likewise.
8797         * modules/time (Makefile.am): Likewise.
8798         * modules/unistd (Makefile.am): Likewise.
8799         * modules/wchar (Makefile.am): Likewise.
8800         * modules/wctype-h (Makefile.am): Likewise.
8801         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
8802
8803 2011-04-05  Bruno Haible  <bruno@clisp.org>
8804
8805         pipe2: Relicense under LGPLv2+.
8806         * modules/pipe2 (License): Change to LGPLv2+.
8807         Requested by Eric Blake, for libvirt.
8808
8809 2011-04-05  Bruce Korb  <bkorb@gnu.org>
8810
8811         bootstrap: compute gnulib_extra_files after updating build_aux
8812         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
8813         change build_aux or also supply gnulib_extra_files.  Handle correctly.
8814
8815 2011-04-05  Eric Blake  <eblake@redhat.com>
8816
8817         bootstrap: preserve git whitelist item sorting
8818         * build-aux/bootstrap (sort_patterns): New function.
8819         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
8820
8821 2011-04-05  Simon Josefsson  <simon@josefsson.org>
8822
8823         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
8824         sc_space_tab check.
8825
8826 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
8827
8828         areadlink, areadlinkat: rewrite in terms of careadlinkat
8829         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
8830         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
8831         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
8832         (malloc, realloc): Remove #undefs.
8833         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
8834         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
8835         readlink, ssize_t, stdint, unistd.
8836         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
8837         areadlink, stdint.
8838
8839         careadlinkat: new module
8840         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
8841         * modules/careadlinkat: New files, written by me with
8842         a review and feedback from Ben Pfaff in
8843         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
8844
8845 2011-04-01  Bruno Haible  <bruno@clisp.org>
8846
8847         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
8848         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
8849         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
8850         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
8851         Reported by Bruce Korb <bruce.korb@gmail.com>.
8852
8853 2011-04-01  Bruno Haible  <bruno@clisp.org>
8854
8855         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
8856         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
8857         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
8858         * modules/wcpcpy (Depends-on): Add extensions.
8859         * modules/wcpncpy (Depends-on): Likewise.
8860         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
8861         systems.
8862         * doc/posix-functions/wcpncpy.texi: Likewise.
8863         * doc/posix-functions/wcwidth.texi: Likewise.
8864
8865 2011-03-31  Eric Blake  <eblake@redhat.com>
8866
8867         nonblocking: fix mingw test failures
8868         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
8869         non-blocking flag on regular file.
8870         (get_nonblocking_flag): Set errno on invalid fd.
8871         * tests/test-nonblocking.c (main): Avoid test failure on
8872         directories if fchdir is not active.
8873         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
8874
8875 2011-03-31  Bruno Haible  <bruno@clisp.org>
8876
8877         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
8878         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
8879         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
8880         Reported by Simon Josefsson <simon@josefsson.org>.
8881
8882 2011-03-31  Bruno Haible  <bruno@clisp.org>
8883         and Eric Blake  <eblake@redhat.com>
8884
8885         nonblocking: new module
8886         * modules/nonblocking: New module.
8887         * modules/nonblocking-tests: Likewise.
8888         * lib/nonblocking.h: New file.
8889         * lib/nonblocking.c: Likewise.
8890         * tests/test-nonblocking.c: New test.
8891         * lib/ioctl.c (ioctl) [mingw]: Update comment.
8892
8893 2011-03-30  Bruno Haible  <bruno@clisp.org>
8894
8895         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
8896         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
8897         instead of 'printf' format for GCC >= 4.4.
8898         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
8899         (fprintf, printf, vfprintf, vprintf): Declare with
8900         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
8901         the system's vfprintf() function.
8902         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
8903
8904 2011-03-30  Eric Blake  <eblake@redhat.com>
8905
8906         passfd: fix scoping bug
8907         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
8908         before sendmsg/recvmsg.
8909
8910         passfd: standardize coding conventions
8911         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
8912         can be learned at compile time.
8913         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
8914         ifdefs.
8915         (sendfd, recvfd): Follow gnulib code conventions.
8916
8917         passfd: fix incorrect sendmsg arguments
8918         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
8919         incorrect msg_controllen value.
8920         * modules/passfd-tests (Depends-on): Check for alarm.
8921         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
8922         Reported by Bastien ROUCARIES.
8923
8924 2011-03-30  Bruno Haible  <bruno@clisp.org>
8925
8926         c-strcasestr: Relicense under LGPLv2+.
8927         * modules/c-strcasestr (License): Change to LGPLv2+.
8928         Requested by Eric Blake, for libvirt.
8929
8930 2011-03-30  Simon Josefsson  <simon@josefsson.org>
8931
8932         * users.txt: Add libidn2.  Fix libtasn1 link.
8933
8934 2011-03-30  Jim Meyering  <meyering@redhat.com>
8935
8936         tests: readlink* ("",... fails with EINVAL on newer kernels
8937         readlink and readlinkat have typically failed with ENOENT for
8938         the invalid, empty file name,  "".  However, with the advent
8939         of linux-2.6.39, they fail with EINVAL.
8940         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
8941         when operating on the empty file name.
8942         * tests/test-readlink.h (test_readlink): Likewise.
8943
8944 2011-03-29  Bruno Haible  <bruno@clisp.org>
8945
8946         Relicense some modules under LGPLv2+, for libidn2.
8947         * modules/array-mergesort (License): Change to LGPLv2+.
8948         * modules/c-strcaseeq (License): Likewise.
8949         * modules/striconveh (License): Likewise.
8950         * modules/striconveha (License): Likewise.
8951         * modules/uniconv/base (License): Likewise.
8952         * modules/uniconv/u8-conv-from-enc (License): Likewise.
8953         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
8954         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
8955         * modules/unictype/base (License): Likewise.
8956         * modules/unictype/bidiclass-of (License): Likewise.
8957         * modules/unictype/category-M (License): Likewise.
8958         * modules/unictype/category-none (License): Likewise.
8959         * modules/unictype/category-of (License): Likewise.
8960         * modules/unictype/category-test (License): Likewise.
8961         * modules/unictype/category-test-withtable (License): Likewise.
8962         * modules/unictype/combining-class (License): Likewise.
8963         * modules/unictype/joiningtype-of (License): Likewise.
8964         * modules/unictype/scripts (License): Likewise.
8965         * modules/uninorm/base (License): Likewise.
8966         * modules/uninorm/canonical-decomposition (License): Likewise.
8967         * modules/uninorm/composition (License): Likewise.
8968         * modules/uninorm/decompose-internal (License): Likewise.
8969         * modules/uninorm/decomposition-table (License): Likewise.
8970         * modules/uninorm/nfc (License): Likewise.
8971         * modules/uninorm/nfd (License): Likewise.
8972         * modules/uninorm/u32-normalize (License): Likewise.
8973         * modules/unistr/base (License): Likewise.
8974         * modules/unistr/u32-cpy (License): Likewise.
8975         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
8976         * modules/unistr/u32-to-u8 (License): Likewise.
8977         * modules/unistr/u32-uctomb (License): Likewise.
8978         * modules/unistr/u8-check (License): Likewise.
8979         * modules/unistr/u8-mblen (License): Likewise.
8980         * modules/unistr/u8-mbtouc (License): Likewise.
8981         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
8982         * modules/unistr/u8-mbtoucr (License): Likewise.
8983         * modules/unistr/u8-prev (License): Likewise.
8984         * modules/unistr/u8-strlen (License): Likewise.
8985         * modules/unistr/u8-to-u32 (License): Likewise.
8986         * modules/unistr/u8-uctomb (License): Likewise.
8987         * modules/unitypes (License): Likewise.
8988         Requested by Simon Josefsson.
8989
8990 2011-03-29  Simon Josefsson  <simon@josefsson.org>
8991
8992         lib-symbol-visibility: Add a notice.
8993         * modules/lib-symbol-visibility (Notice): New field.
8994
8995 2011-03-29  Bruno Haible  <bruno@clisp.org>
8996
8997         getaddrinfo: Doc fix.
8998         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
8999         section "fixed in Gnulib".
9000
9001 2011-03-28  Simon Josefsson  <simon@josefsson.org>
9002
9003         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
9004         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
9005
9006 2011-03-26  Bruno Haible  <bruno@clisp.org>
9007
9008         unictype/property-byname: Reduce the number of load-time relocations.
9009         * lib/unictype/pr_byname.c: Include <stdlib.h>.
9010         (UC_PROPERTY_INDEX_*): New enumeration values.
9011         (uc_property_byname): Convert an index from the lookup table to an
9012         uc_property_t.
9013         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
9014         values.
9015
9016 2011-03-26  Bruno Haible  <bruno@clisp.org>
9017
9018         unictype/property-byname: Allow omitted word separators and aliases.
9019         * lib/unictype/pr_byname.gperf: Add property names without word
9020         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
9021         for 'space'.
9022
9023 2011-03-26  Bruno Haible  <bruno@clisp.org>
9024
9025         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
9026         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
9027         also hyphens to space.
9028         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
9029         without spaces.
9030         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
9031
9032 2011-03-26  Bruno Haible  <bruno@clisp.org>
9033
9034         unictype/joiningtype-byname: Recognize long names as well.
9035         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
9036         a long name.
9037         * lib/unictype/joiningtype_byname.c: Include <string.h>,
9038         unictype/joiningtype_byname.h.
9039         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
9040         * lib/unictype/joiningtype_byname.gperf: New file.
9041         * modules/unictype/joiningtype-byname (Files): Add
9042         lib/unictype/joiningtype_byname.gperf.
9043         (Depends-on): Add gperf.
9044         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
9045         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
9046         long names.
9047
9048         Tests for module 'unictype/joiningtype-longname'.
9049         * modules/unictype/joiningtype-longname-tests: New file.
9050         * tests/unictype/test-joiningtype_longname.c: New file.
9051
9052         New module 'unictype/joiningtype-longname'.
9053         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
9054         * lib/unictype/joiningtype_longname.c: New file.
9055         * modules/unictype/joiningtype-longname: New file.
9056         * modules/unictype/joiningtype-all (Depends-on): Add
9057         unictype/joiningtype-longname.
9058
9059 2011-03-26  Bruno Haible  <bruno@clisp.org>
9060
9061         unictype/bidiclass-byname: Recognize long names as well.
9062         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
9063         name.
9064         * lib/unictype/bidi_byname.c: Include <string.h>,
9065         unictype/bidi_byname.h.
9066         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
9067         * lib/unictype/bidi_byname.gperf: New file.
9068         * modules/unictype/bidiclass-byname (Files): Add
9069         lib/unictype/bidi_byname.gperf.
9070         (Depends-on): Add gperf.
9071         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
9072         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
9073         long names.
9074
9075         Tests for module 'unictype/bidiclass-longname'.
9076         * modules/unictype/bidiclass-longname-tests: New file.
9077         * tests/unictype/test-bidi_longname.c: New file.
9078
9079         New module 'unictype/bidiclass-longname'.
9080         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
9081         * lib/unictype/bidi_longname.c: New file.
9082         * modules/unictype/bidiclass-longname: New file.
9083         * modules/unictype/bidiclass-all (Depends-on): Add
9084         unictype/bidiclass-longname.
9085
9086 2011-03-26  Bruno Haible  <bruno@clisp.org>
9087
9088         unictype/bidi*: Rename modules.
9089         * modules/unictype/bidiclass-all: Renamed from
9090         modules/unictype/bidicategory-all.
9091         * modules/unictype/bidiclass-name: Renamed from
9092         modules/unictype/bidiclass-name.
9093         (Description): Update.
9094         * modules/unictype/bidiclass-name-tests: Renamed from
9095         modules/unictype/bidicategory-name-tests.
9096         * modules/unictype/bidiclass-byname: Renamed from
9097         modules/unictype/bidicategory-byname.
9098         (Description): Update.
9099         * modules/unictype/bidiclass-byname-tests: Renamed from
9100         modules/unictype/bidicategory-byname-tests.
9101         * modules/unictype/bidiclass-of: Renamed from
9102         modules/unictype/bidicategory-of.
9103         (Description): Update.
9104         * modules/unictype/bidiclass-of-tests: Renamed from
9105         modules/unictype/bidicategory-of-tests.
9106         * modules/unictype/bidiclass-test: Renamed from
9107         modules/unictype/bidicategory-test.
9108         (Description): Update.
9109         * modules/unictype/bidiclass-test-tests: Renamed from
9110         modules/unictype/bidicategory-test-tests.
9111         * modules/unictype/bidicategory-all: New file, a simple redirection.
9112         * modules/unictype/bidicategory-name: Likewise.
9113         * modules/unictype/bidicategory-byname: Likewise.
9114         * modules/unictype/bidicategory-of: Likewise.
9115         * modules/unictype/bidicategory-test: Likewise.
9116         * modules/unictype/property-bidi-* (Dependencies): Update.
9117         * lib/unictype/bidi_*.c: Update comment.
9118
9119 2011-03-26  Bruno Haible  <bruno@clisp.org>
9120
9121         unictype/bidi*: Rename functions, part 2.
9122         * modules/unictype/bidicategory-name (configure.ac): Update required
9123         libunistring version.
9124         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
9125
9126 2011-03-25  Bruno Haible  <bruno@clisp.org>
9127
9128         New module 'unictype/combining-class-all'.
9129         * modules/unictype/combining-class-all: New file.
9130
9131         Tests for module 'unictype/combining-class-byname'.
9132         * modules/unictype/combining-class-byname-tests: New file.
9133         * tests/unictype/test-combiningclass_byname.c: New file.
9134
9135         New module 'unictype/combining-class-byname'.
9136         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
9137         * lib/unictype/combiningclass_byname.c: New file.
9138         * lib/unictype/combiningclass_byname.gperf: New file.
9139         * modules/unictype/combining-class-byname: New file.
9140
9141         Tests for module 'unictype/combining-class-longname'.
9142         * modules/unictype/combining-class-longname-tests: New file.
9143         * tests/unictype/test-combiningclass_longname.c: New file.
9144
9145         New module 'unictype/combining-class-longname'.
9146         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
9147         * lib/unictype/combiningclass_longname.c: New file.
9148         * modules/unictype/combining-class-longname: New file.
9149
9150         Tests for module 'unictype/combining-class-name'.
9151         * modules/unictype/combining-class-name-tests: New file.
9152         * tests/unictype/test-combiningclass_name.c: New file.
9153
9154         New module 'unictype/combining-class-name'.
9155         * lib/unictype.in.h (uc_combining_class_name): New declaration.
9156         * lib/unictype/combiningclass_name.c: New file.
9157         * modules/unictype/combining-class-name: New file.
9158
9159 2011-03-25  Bruno Haible  <bruno@clisp.org>
9160
9161         unictype/combining-class: Rename source files.
9162         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
9163         of unictype/combining.h.
9164         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
9165         Update.
9166         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
9167         * modules/unictype/combining-class (Description): Fix.
9168         (Files, Makefile.am): Update.
9169         * tests/unictype/test-combiningclass.c: Renamed from
9170         tests/unictype/test-combining.c.
9171         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
9172
9173 2011-03-25  Bruno Haible  <bruno@clisp.org>
9174
9175         unictype: Update list of canonical combining classes.
9176         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
9177
9178 2011-03-25  Bruno Haible  <bruno@clisp.org>
9179
9180         unictype/category-byname: Recognize long names as well.
9181         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
9182         a long name.
9183         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
9184         unictype/categ_byname.h.
9185         (UC_CATEGORY_INDEX_*): New enumeration values.
9186         (uc_general_category_byname): Use uc_general_category_lookup and
9187         convert from index to value.
9188         * lib/unictype/categ_byname.gperf: New file.
9189         * modules/unictype/category-byname (Files): Add
9190         lib/unictype/categ_byname.gperf.
9191         (Depends-on): Add gperf.
9192         (Makefile.am): Add rule for generating unictype/categ_byname.h.
9193         * tests/unictype/test-categ_byname.c (main): Test the recognition of
9194         long names.
9195
9196         Tests for module 'unictype/category-longname'.
9197         * modules/unictype/category-longname-tests: New file.
9198         * tests/unictype/test-categ_longname.c: New file.
9199
9200         New module 'unictype/category-longname'.
9201         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
9202         * lib/unictype/categ_longname.c: New file.
9203         * modules/unictype/category-longname: New file.
9204         * modules/unictype/category-all (Depends-on): Add it.
9205
9206 2011-03-25  Bruno Haible  <bruno@clisp.org>
9207
9208         Tests for module 'unictype/category-LC'.
9209         * modules/unictype/category-LC-tests: New file.
9210         * tests/unictype/test-categ_LC.c: New file, automatically generated.
9211
9212         New module 'unictype/category-LC'.
9213         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
9214         (UC_CATEGORY_LC): New declaration.
9215         (UC_CASED_LETTER): New macro.
9216         * lib/gen-uni-tables.c (is_category_LC): New function.
9217         (output_categories): Also handle category LC.
9218         (UC_CATEGORY_MASK_LC): New enumeration value.
9219         (general_category_byname): Also handle category LC.
9220         * lib/unictype/categ_LC.c: New file.
9221         * lib/unictype/categ_LC.h: New file, automatically generated.
9222         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
9223         category LC.
9224         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
9225         * modules/unictype/category-LC: New file.
9226         * modules/unictype/category-byname (Depends-on): Add
9227         unictype/category-LC.
9228         * modules/unictype/category-all (Depends-on): Likewise.
9229
9230 2011-03-25  Eric Blake  <eblake@redhat.com>
9231
9232         xmalloc: revert yesterday's regression
9233         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
9234         realloc's underlying behavior (allowing allocation of zero-size
9235         objects, especially if malloc-gnu is also in use).
9236
9237 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
9238
9239         maint.mk: add missing version to VC-tag
9240         * top/maint.mk: git tag was missing actual tag name; add it.
9241
9242         valgrind: do leak checking, and exit with code 1 on error (not 0)
9243         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
9244         to VALGRIND.
9245
9246 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
9247
9248         posix-modules: say what it does.
9249         * posix-modules: Add a line to the --help output saying what it does.
9250
9251 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
9252
9253         xmalloc: Do not leak if underlying realloc is C99 compatible.
9254         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
9255         This avoids a leak on C99-based systems.  See
9256         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
9257
9258 2011-03-24  Eric Blake  <eblake@redhat.com>
9259
9260         realloc: document portability problem
9261         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
9262         passing 0 size to realloc.
9263
9264 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
9265
9266         doc: update users.txt
9267         * users.txt: Add cvsps, tmpwatch
9268
9269 2011-03-23  Matt Rice  <ratmice@gmail.com>
9270
9271         doc: update users.txt
9272         * users.txt: Add gdb.
9273
9274 2011-03-23  Jim Meyering  <meyering@redhat.com>
9275
9276         doc: update users.txt
9277         Looking through matches up to the following URL (there are still
9278         several more pages), I found several projects that use gnulib:
9279         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
9280         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
9281         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
9282
9283 2011-03-22  Bruno Haible  <bruno@clisp.org>
9284
9285         unictype/bidi*: Rename functions.
9286         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
9287         uc_bidi_class, uc_is_bidi_class): New declarations.
9288         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
9289         uc_bidi_category_byname.
9290         (uc_bidi_category_byname): New function.
9291         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
9292         u_bidi_category_name.
9293         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
9294         (uc_bidi_category_name): New function.
9295         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
9296         uc_bidi_category.
9297         (uc_bidi_category): New function.
9298         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
9299         uc_is_bidi_category. Invoke uc_bidi_class.
9300         (uc_is_bidi_category): New function.
9301         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
9302         instead of uc_bidi_category_byname.
9303         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
9304         instead of uc_bidi_category_name.
9305         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
9306         uc_bidi_category.
9307         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
9308         instead of uc_is_bidi_category.
9309
9310 2011-03-21  Bruno Haible  <bruno@clisp.org>
9311
9312         New module 'unictype/joininggroup-all'.
9313         * modules/unictype/joininggroup-all: New file.
9314
9315         Tests for module 'unictype/joininggroup-of'.
9316         * modules/unictype/joininggroup-of-tests: New file.
9317         * tests/unictype/test-joininggroup_of.c: New file.
9318         * tests/unictype/test-joininggroup_of.h: New file, automatically
9319         generated by gen-uni-tables.
9320
9321         New module 'unictype/joininggroup-of'.
9322         * modules/unictype/joininggroup-of: New file.
9323         * lib/unictype/joininggroup_of.c: New file.
9324         * lib/unictype/joininggroup_of.h: New file, automatically generated by
9325         gen-uni-tables.
9326
9327         Tests for module 'unictype/joininggroup-byname'.
9328         * modules/unictype/joininggroup-byname-tests: New file.
9329         * tests/unictype/test-joininggroup_byname.c: New file.
9330
9331         New module 'unictype/joininggroup-byname'.
9332         * modules/unictype/joininggroup-byname: New file.
9333         * lib/unictype/joininggroup_byname.c: New file.
9334         * lib/unictype/joininggroup_byname.gperf: New file.
9335
9336         Tests for module 'unictype/joininggroup-name'.
9337         * modules/unictype/joininggroup-name-tests: New file.
9338         * tests/unictype/test-joininggroup_name.c: New file.
9339
9340         New module 'unictype/joininggroup-name'.
9341         * modules/unictype/joininggroup-name: New file.
9342         * lib/unictype/joininggroup_name.c: New file.
9343         * lib/unictype/joininggroup_name.h: New file.
9344
9345         New module 'unictype/joiningtype-all'.
9346         * modules/unictype/joiningtype-all: New file.
9347
9348         Tests for module 'unictype/joiningtype-of'.
9349         * modules/unictype/joiningtype-of-tests: New file.
9350         * tests/unictype/test-joiningtype_of.c: New file.
9351         * tests/unictype/test-joiningtype_of.h: New file, automatically
9352         generated by gen-uni-tables.
9353
9354         New module 'unictype/joiningtype-of'.
9355         * modules/unictype/joiningtype-of: New file.
9356         * lib/unictype/joiningtype_of.c: New file.
9357         * lib/unictype/joiningtype_of.h: New file, automatically generated by
9358         gen-uni-tables.
9359
9360         Tests for module 'unictype/joiningtype-byname'.
9361         * modules/unictype/joiningtype-byname-tests: New file.
9362         * tests/unictype/test-joiningtype_byname.c: New file.
9363
9364         New module 'unictype/joiningtype-byname'.
9365         * modules/unictype/joiningtype-byname: New file.
9366         * lib/unictype/joiningtype_byname.c: New file.
9367
9368         Tests for module 'unictype/joiningtype-name'.
9369         * modules/unictype/joiningtype-name-tests: New file.
9370         * tests/unictype/test-joiningtype_name.c: New file.
9371
9372         New module 'unictype/joiningtype-name'.
9373         * modules/unictype/joiningtype-name: New file.
9374         * lib/unictype/joiningtype_name.c: New file.
9375
9376         unictype: Add support for Arabic shaping properties.
9377         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
9378         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
9379         declarations.
9380         (UC_JOINING_GROUP_*): New enumeration values.
9381         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
9382         declarations.
9383         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
9384         (unicode_joining_type): New variable.
9385         (UC_JOINING_GROUP_*): New enumeration values.
9386         (unicode_joining_group): New variable.
9387         (fill_arabicshaping, joining_type_as_c_identifier,
9388         output_joining_type_test, output_joining_type,
9389         joining_group_as_c_identifier, output_joining_group_test,
9390         output_joining_group): New functions.
9391         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
9392         fill_arabicshaping and output_joining_type_test, output_joining_type,
9393         output_joining_group_test, output_joining_group.
9394         Reported by Simon Josefsson.
9395
9396 2011-03-21  Jim Meyering  <meyering@redhat.com>
9397
9398         strftime: fix a bug in yesterday's change
9399         * lib/strftime.c (add): Accommodate width's initial value of -1.
9400         Otherwise, nstrftime would copy uninitialized data into
9401         the result buffer.
9402
9403 2011-03-21  Jim Meyering  <meyering@redhat.com>
9404
9405         tests: add strftime-tests module
9406         * tests/test-strftime.c: New file.
9407         * modules/strftime-tests: New module.
9408
9409 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9410
9411         strftime: don't assume a byte count fits in 'int'
9412         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
9413         found this problem by static analysis, using gcc -Wstrict-overflow
9414         (GCC 4.5.2, x86-64).  This reported an optimization that depended
9415         on an integer overflow having undefined behavior, but it turns out
9416         that the argument is a size, which might not fit in 'int' anyway,
9417
9418 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9419
9420         stdio: don't require ignore_value around fwrite
9421
9422         This patch works around libc bug 11959
9423         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
9424         Without this patch, applications must often write
9425         ignore_value (fwrite (...)) even though the ignore_value is
9426         not helpful here.  It's common to write many objects, using
9427         fwrite/printf/etc., and then use ferror to detect output error.
9428
9429         I considered making this patch optional, but decided against it,
9430         because libc is obviously being inconsistent here: there is no
9431         reason libc should insist that user code must inspect fwrite
9432         return's value without also insisting that it inspect printf's,
9433         putchar's, etc.  If user code wants to have a strict style where
9434         all these functions' values are checked (so that ferror need not
9435         be checked), we could add support for that style in a new gnulib
9436         module, but in the meantime it's better to be consistent and to
9437         support common usage.
9438
9439         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
9440         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
9441         that we are compiling in checking mode, and if not C++, and
9442         if not already wrapping fwrite for some other reason.
9443         (fwrite): #define to rpl_fwrite if the latter is defined.
9444
9445 2011-03-20  Bruno Haible  <bruno@clisp.org>
9446
9447         verror: Fix compilation error introduced on 2011-02-13.
9448         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
9449         instead of __attribute__.
9450         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9451
9452 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9453             Bruno Haible  <bruno@clisp.org>
9454
9455         socklen: do not depend on sys_socket
9456         While trying to modify Emacs to use gnulib's socklen module,
9457         I discovered a circular dependency: socklen depends on sys_socket
9458         and vice versa.  Emacs can use socklen, but it does not need
9459         sys_socket because it has its own substitute for sys/socket.h.
9460         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
9461         gl_TYPE_SOCKLEN_T.
9462         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
9463         gl_PREREQ_SYS_H_SOCKET.
9464         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
9465         gl_PREREQ_SYS_H_SOCKET.
9466         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
9467         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
9468         * modules/socklen (Depends-on): Do not depend on sys_socket.
9469         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
9470
9471 2011-03-20  Jim Meyering  <meyering@redhat.com>
9472
9473         maint.mk: sort file names *after* new transformation
9474         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
9475         prefix would have led to an unwarranted failure in GNU parted.
9476         Sort after that transformation.
9477
9478 2011-03-19  Jim Meyering  <meyering@redhat.com>
9479
9480         maint.mk: fix po-file syntax-check rule
9481         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
9482         Patch by Bruno Haible.
9483
9484 2011-03-19  Bruno Haible  <bruno@clisp.org>
9485
9486         socklen: Update comment.
9487         * m4/socklen.m4: Update comment about platforms.
9488
9489 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9490             Bruno Haible  <bruno@clisp.org>
9491
9492         inet_ntop, inet_pton: Simplify.
9493         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
9494         documented to provide socklen_t and we already depend on sys_socket.
9495         * modules/inet_pton (Depends-on): Likewise.
9496         * lib/arpa_inet.in.h: Adjust comment.
9497
9498 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9499             Bruno Haible  <bruno@clisp.org>
9500
9501         netdb: Simplify.
9502         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
9503         documented to provide socklen_t and we already depend on sys_socket.
9504         * lib/netdb.in.h: Adjust comment.
9505
9506 2011-03-19  Bruno Haible  <bruno@clisp.org>
9507
9508         sys_socket, netdb: Document problem with socklen_t.
9509         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
9510         platforms.
9511         * doc/posix-headers/netdb.texi: Likewise.
9512
9513 2011-03-18  Eric Blake  <eblake@redhat.com>
9514
9515         maint.mk: let po check work in VPATH build
9516         * top/maint.mk (po_file): Allow cfg.mk override.
9517         (sc_po_check): Allow VPATH use.
9518         Reported by Jiri Denemark.
9519
9520 2011-03-16  Jim Meyering  <meyering@redhat.com>
9521
9522         maint.mk: allow fine-grained syntax-check exclusion via Make variables
9523         Before, you would have had to create one .x-sc_ file per rule in order
9524         to exempt offending files.  Now, you may instead use a Make variable --
9525         usually defined in cfg.mk -- whose name identifies the affected rule.
9526         * top/maint.mk (_sc_excl): Define.
9527         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
9528         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
9529
9530 2011-03-13  Bruno Haible  <bruno@clisp.org>
9531
9532         ignore-value tests: Avoid warnings.
9533         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
9534         empty for gcc < 3.4.
9535
9536 2011-03-13  Bruno Haible  <bruno@clisp.org>
9537
9538         passfd: Fix link error on Solaris.
9539         * modules/passfd (Description): Correct.
9540         (Depends-on): Add socketlib.
9541         (Link): New section.
9542         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
9543
9544 2011-03-13  Bruno Haible  <bruno@clisp.org>
9545
9546         passfd: Fix link error on AIX 5.2.
9547         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
9548
9549 2011-03-13  Bruno Haible  <bruno@clisp.org>
9550
9551         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
9552         * lib/sys_socket.in.h: Include <stddef.h>.
9553         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
9554         CMSG_FIRSTHDR. Remove unused variable.
9555
9556 2011-03-13  Bruno Haible  <bruno@clisp.org>
9557
9558         passfd: Fix compilation error on OpenBSD.
9559         * lib/passfd.c: Include <sys/uio.h>.
9560
9561 2011-03-13  Bruno Haible  <bruno@clisp.org>
9562
9563         passfd test: Fix warnings.
9564         * tests/test-passfd.c: Include <sys/wait.h>.
9565         (main): Fix typo.
9566
9567 2011-03-13  Bruno Haible  <bruno@clisp.org>
9568
9569         passfd module, part 4, tweaks.
9570         * tests/test-passfd.c: Reorder includes.
9571         (main): Fix perror and printf calls.
9572
9573 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9574
9575         passfd module, part 4.
9576         * modules/passfd-tests: New file.
9577         * tests/test-passfd.c: New file.
9578
9579 2011-03-13  Jim Meyering  <meyering@redhat.com>
9580
9581         Makefile: rely on GNU make; derive syntax-check rule names
9582         Rather than requiring that each sc_ rule be listed as a dependent
9583         of "check", use features of GNU make to derive the list.
9584         * Makefile (syntax-check-rules): Define.
9585         (check): Depend on the new variable, not the hard-coded list.
9586
9587 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
9588             Bruno Haible  <bruno@clisp.org>
9589
9590         passfd module, part 3.
9591         * lib/passfd.h (recvfd): Add a flags argument.
9592         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
9593         (recvfd): Add a flags argument.
9594         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
9595         exists.
9596         * modules/passfd (Depends-on): Add cloexec.
9597         Suggested by Eric Blake.
9598
9599 2011-03-13  Bruno Haible  <bruno@clisp.org>
9600
9601         passfd module, part 2, tweaks.
9602         * modules/passfd (Files): Reorder.
9603         (Depends-on): Remove errno.
9604         (Include): Remove <sys/socket.h>, <sys/un.h>.
9605         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
9606         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
9607         specification header. Include <sys/socket.h> always. Don't include
9608         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
9609         (sendfd): Clarify that it sets errno when it fails.
9610         (recvfd): Fix specification.
9611
9612 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9613
9614         passfd module, part 2.
9615         * modules/passfd: New file.
9616         * lib/passfd.h: New file.
9617         * lib/passfd.c: New file.
9618
9619 2011-03-12  Bruno Haible  <bruno@clisp.org>
9620
9621         wcswidth, mbswidth: Avoid integer overflow.
9622         * lib/wcswidth.c: Include <limits.h>.
9623         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
9624         * lib/mbswidth.c: Include <limits.h>.
9625         (mbsnwidth): Avoid 'int' overflow.
9626         Reported by Jim Meyering.
9627
9628 2011-03-12  Bruno Haible  <bruno@clisp.org>
9629
9630         futimens, utimensat: Avoid endless recursion on Solaris 10.
9631         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
9632         Solaris.
9633         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
9634         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
9635
9636 2011-03-11  Jim Meyering  <meyering@redhat.com>
9637
9638         maint.mk: relax a regexp to accommodate other formatting styles
9639         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
9640         between "ngettext" and the following "(".
9641
9642 2011-03-11  Pádraig Brady <P@draigBrady.com>
9643
9644         maint.mk: suppress a false positive warning
9645         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
9646         diagnostics are marked with ngettext.
9647
9648 2011-03-10  Eric Blake  <eblake@redhat.com>
9649
9650         wchar: add explicit dependencies, for Tru64
9651         * modules/mbmemcasecoll (Depends-on): Add wchar.
9652         * modules/mbtowc (Depends-on): Likewise.
9653         * modules/vasnprintf (Depends-on): Likewise.
9654         * modules/unistdio/u-printf-args (Depends-on): Likewise.
9655         * modules/wctomb (Depends-on): Likewise.
9656         Reported by Peter O'Gorman.
9657
9658 2011-03-08  Bruno Haible  <bruno@clisp.org>
9659
9660         passfd module, part 1, tweaks.
9661         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
9662         Improve indentation. Improve AC_MSG_CHECKING messages.
9663         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
9664         gl_SOCKET_FAMILIES.
9665
9666 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9667
9668         passfd module, part 1.
9669         * m4/afunix.m4: New file.
9670         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
9671         sockets.
9672
9673 2011-03-08  Bruno Haible  <bruno@clisp.org>
9674
9675         regex-quote: New API.
9676         * lib/regex-quote.h: Include <stdbool.h>.
9677         (struct regex_quote_spec): New type.
9678         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
9679         New declarations.
9680         (regex_quote_length, regex_quote_copy, regex_quote): Take a
9681         'const struct regex_quote_spec *' argument.
9682         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
9683         (pcre_special): New constant.
9684         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
9685         New functions.
9686         (regex_quote_length, regex_quote_copy, regex_quote): Take a
9687         'const struct regex_quote_spec *' argument.
9688         * modules/regex-quote (Depends-on): Add stdbool.
9689         * tests/test-regex-quote.c (check): Update for new API. Add test for
9690         anchored results.
9691         * NEWS: Mention the API change.
9692         Reported by Reuben Thomas and Eric Blake.
9693
9694 2011-03-06  Bruno Haible  <bruno@clisp.org>
9695
9696         regex-quote: Fix creation of POSIX extended regular expressions.
9697         * lib/regex-quote.c (ere_special): Add grouping and alternation
9698         operators.
9699
9700 2011-03-05  Bruno Haible  <bruno@clisp.org>
9701
9702         doc: Improve doc regarding autopoint vs. gnulib.
9703         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
9704         disable autopoint while running autoreconf.
9705         Suggested by Ralf Wildenhues.
9706
9707 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9708
9709         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
9710         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
9711
9712 2011-03-03  Bruce Korb  <bkorb@gnu.org>
9713
9714         parse-duration: remove xalloc.h dependency
9715         * lib/parse-duration.c (parse_period): handle NULL return from
9716         strdup instead of calling xstrdup().
9717         * modules/parse-duration: remove "xalloc" dependency
9718
9719 2011-03-03  Matthew Booth  <mbooth@redhat.com>
9720
9721         bootstrap: honor m4_base when running aclocal
9722         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
9723
9724 2011-03-02  Jim Meyering  <meyering@redhat.com>
9725
9726         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
9727         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
9728         on request from Matt Booth.
9729
9730 2011-03-01  Eric Blake  <eblake@redhat.com>
9731
9732         test-link: work on Hurd
9733         * tests/test-link.h (test_link): Hurd rejects linking directories
9734         with EISDIR instead of the POSIX-mandated EPERM.
9735
9736 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
9737
9738         stdio: simplify by moving files to printf-posix, sigpipe
9739         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
9740         since this symbol is needed only if printf is replaced.
9741         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
9742         Require gl_ASM_SYMBOL_PREFIX.
9743         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
9744         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
9745         (Depends-on): Add 'raise'.
9746         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
9747         * modules/stdio (Files): Remove lib/stdio-write.c,
9748         m4/asm-underscore.m4.
9749         (Depends-on): Remove 'raise'.
9750
9751         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
9752         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
9753         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
9754         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
9755
9756 2011-02-28  Bruno Haible  <bruno@clisp.org>
9757
9758         localcharset: Assume ANSI C behaviour of free().
9759         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
9760         calling free().
9761         Suggested by Simon Josefsson <simon@josefsson.org>.
9762
9763 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
9764             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
9765             Bruno Haible  <bruno@clisp.org>  (tiny change)
9766
9767         On Cygwin, use /proc file system instead of win32 API.
9768         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
9769         Win32 file names.
9770         (DllMain): Simplify by removing Cygwin specific code.
9771         (find_shared_library_fullname): Use Linux specific implementation also
9772         for Cygwin.
9773         (get_shared_library_fullname): Update accordingly.
9774         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
9775         Win32 file names.
9776         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
9777         Cygwin specific code.
9778
9779 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
9780             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
9781
9782         Fix OpenMP flag detection for various Fortran compilers.
9783         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
9784         OpenMP-conditional compilation construct, to force compile
9785         failure with missing OpenMP flag.
9786         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
9787
9788 2011-02-25  Eric Blake  <eblake@redhat.com>
9789
9790         strstr: expand test coverage
9791         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
9792         compilation.
9793         * tests/test-memmem.c (main): Duplicate tests.
9794         * tests/test-strcasestr.c (main): Likewise.
9795         * tests/test-c-strcasestr.c (main): Likewise.
9796
9797 2011-02-25  Jim Meyering  <meyering@redhat.com>
9798
9799         maint.mk: detect missing-NL-at-EOF, too
9800         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
9801         it also detects when a file lacks a newline at EOF.
9802         (require_exactly_one_NL_at_EOF_): Renamed from
9803         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
9804         since people may well have .x-sc_... file names tied to the
9805         existing name.  Suggested by Eric Blake.
9806
9807 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
9808
9809         dirname: move m4/dos.m4 functionality into lib/dosname.h
9810
9811         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
9812         extracts symbols from it, puts them into config.h; but it's much
9813         easier to use the symbols directly.  filename.h already does this,
9814         but it disagrees with dos.m4 in some respects.  This patch
9815         introduces a different include file dosname.h that packages up
9816         dos.m4, and then later we can work on merging filename.h and
9817         dosname.h.  Applications that need only the easy-to-configure
9818         symbols should consider including dosname.h rather than dirname.h.
9819         * NEWS: Mention incompatible changes.
9820         * m4/dos.m4: Remove.
9821         * lib/dosname.h, modules/dosname: New files.
9822         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
9823         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
9824         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
9825         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
9826         Include dosname.h, not dirname.h.
9827         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
9828         Include dosname.h, for definitions of symbols like ISSLASH
9829         that used to be in config.h.
9830         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
9831         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
9832         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9833         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9834         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
9835         * modules/rmdir (Files): Likewise.
9836         * modules/stat (Files): Likewise.
9837         * modules/unlink (Files): Likewise.
9838         * modules/dirname-lgpl (Depends-on): Add dosname.
9839         * modules/lstat (Depends-on): Likewise.
9840         * modules/openat (Depends-on): Likewise.
9841         * modules/rmdir (Depends-on): Likewise.
9842         * modules/savewd (Depends-on): Likewise.
9843         * modules/stat (Depends-on): Likewise.
9844         * modules/unlink (Depends-on): Likewise.
9845         * modules/openat (Depends-on): Remove dirname-lgpl.
9846         * modules/savewd (Depends-on): Likewise.
9847         * tests/test-dirname.c: Do not use removed symbols like
9848         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
9849         the remaining symbols, e.g., ISSLASH ('\\').
9850
9851 2011-02-25  Eric Blake  <eblake@redhat.com>
9852
9853         strstr: revert patches that introduced bug and pessimization
9854         * lib/str-two-way.h: Add another reference.
9855         (two_way_short_needle, two_way_long_needle): Revert changes from
9856         2011-02-24; they pessimize search speed.
9857         (critical_factorization): Partially revert changes from
9858         2010-06-22; they violate the requirement that the left half of the
9859         needle be smaller than the period of the needle.
9860
9861 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
9862
9863         filenamecat: remove unnecessary dependency on dirname-lgpl
9864         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
9865         is no direct dependency, just an indirect one via filenamecat-lgpl.
9866
9867         remove: remove unnecessary use of m4/dos.m4
9868         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
9869         * modules/remove (FILES): Remove m4/dos.m4.
9870
9871         * lib/openat-proc.c: Don't include dirname.h; not needed.
9872
9873         backupfile: remove unnecessary use of m4/dos.m4
9874         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
9875         of its symbols are used by the backupfile code.  backupfile.c does
9876         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
9877         for the rare case of programs that want all their backup file
9878         names to live within 8+3 limits, and dos.m4 doesn't address that.
9879         * modules/backupfile (Files): Remove m4/dos.m4.
9880
9881 2011-02-24  Jim Meyering  <meyering@redhat.com>
9882
9883         strstr: fix a bug whereby strstr would mistakenly return NULL
9884         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
9885         in period calculation.
9886         (two_way_long_needle): Likewise.
9887         The original problem was reported by Mike Stump in
9888         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
9889         Ralf Wildenhues provided the short needle and haystack.
9890         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
9891         Add a more involved test to trigger the bug in two_way_long_needle.
9892
9893 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
9894
9895         gnulib-tool: remove use of bold display in help screen
9896         * gnulib-tool (func_usage): Do not use bold display anymore in the
9897         help screen.  That was just meant to be a temporary emphasis for a
9898         backward-incompatible change.
9899
9900 2011-02-23  Bruno Haible  <bruno@clisp.org>
9901
9902         Fix misindentation of preprocessor directives.
9903         * lib/argp-namefrob.h: Reindent preprocessor directives.
9904         * lib/getopt_int.h (struct _getopt_data): Likewise.
9905         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
9906         * lib/vasnprintf.c (decode_long_double): Likewise.
9907         * tests/test-argmatch.c: Insert blank lines, for clarity.
9908         * tests/test-exclude.c: Likewise.
9909
9910 2011-02-22  Bruno Haible  <bruno@clisp.org>
9911
9912         ioctl: Fix for MacOS X in 64-bit mode.
9913         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
9914         value.
9915         Suggested by Eric Blake.
9916         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
9917
9918 2011-02-22  Jim Meyering  <meyering@redhat.com>
9919
9920         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
9921         * Makefile (sc_cpp_indent_check): Don't limit the check to files
9922         in lib/.
9923
9924 2011-02-22  Eric Blake  <eblake@redhat.com>
9925
9926         maint: avoid any CDPATH issue
9927         * Makefile (sc_cpp_indent_check): Anchor cd argument.
9928
9929         maint: adjust cpp indentation for my modules, as well
9930         * Makefile (sc_cpp_indent_check): Add my name.
9931         * lib/fbufmode.c: Filter through cppi.
9932         * lib/fpurge.c: Likewise.
9933         * lib/freadable.c: Likewise.
9934         * lib/freading.c: Likewise.
9935         * lib/fwritable.c: Likewise.
9936         * lib/fwriting.c: Likewise.
9937         * lib/sigaction.c: Likewise.
9938
9939 2011-02-22  Jim Meyering  <meyering@redhat.com>
9940
9941         maint: adjust cpp indentation to reflect nesting depth
9942         I.e., in a block of code that begins with an unnested "#if",
9943         put one space between the "#" in column 1 and following token.
9944         For example,
9945         -#include <sys/vfs.h>
9946         +# include <sys/vfs.h>
9947         Do this only in .c files that are part of a module I maintain.
9948         * lib/linkat.c: Filter through cppi.
9949         * lib/nanosleep.c: Likewise.
9950         * lib/openat.c: Likewise.
9951         * lib/openat-die.c: Likewise.
9952         * lib/dup3.c: Likewise.
9953         * lib/fchownat.c: Likewise.
9954         * lib/flock.c: Likewise.
9955         * lib/fsync.c: Likewise.
9956         * lib/fts.c: Likewise.
9957         * lib/getpass.c: Likewise.
9958         * lib/gettimeofday.c: Likewise.
9959         * lib/userspec.c: Likewise.
9960         * Makefile (sc_cpp_indent_check): New rule, to check this.
9961
9962 2011-02-22  Bruno Haible  <bruno@clisp.org>
9963
9964         New module 'wctomb'.
9965         * lib/stdlib.in.h (wctomb): New declaration.
9966         * lib/wctomb.c: New file.
9967         * lib/wctomb-impl.h: New file.
9968         * m4/wctomb.m4: New file.
9969         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
9970         REPLACE_WCTOMB.
9971         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
9972         REPLACE_WCTOMB.
9973         * modules/wctomb: New file.
9974         * tests/test-stdlib-c++.cc: Test signature of wctomb.
9975         * doc/posix-functions/wctomb.texi: Mention the new module.
9976         * modules/wctob (Depends-on): Add wctomb.
9977
9978 2011-02-22  Bruno Haible  <bruno@clisp.org>
9979
9980         New module 'mbtowc'.
9981         * lib/stdlib.in.h (mbtowc): New declaration.
9982         * lib/mbtowc.c: New file.
9983         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
9984         * m4/mbtowc.m4: New file.
9985         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
9986         REPLACE_MBTOWC.
9987         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
9988         REPLACE_MBTOWC.
9989         * modules/mbtowc: New file.
9990         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
9991         * doc/posix-functions/mbtowc.texi: Mention the new module.
9992         * modules/btowc (Depends-on): Add mbtowc.
9993
9994 2011-02-22  Bruno Haible  <bruno@clisp.org>
9995
9996         wcrtomb: Add more tests for native Windows platforms.
9997         * tests/test-wcrtomb-w32-1.sh: New file.
9998         * tests/test-wcrtomb-w32-2.sh: New file.
9999         * tests/test-wcrtomb-w32-3.sh: New file.
10000         * tests/test-wcrtomb-w32-4.sh: New file.
10001         * tests/test-wcrtomb-w32-5.sh: New file.
10002         * tests/test-wcrtomb-w32.c: New file.
10003         * modules/wcrtomb-tests (Files): Add them.
10004         (Makefile.am): Arrange to run these tests.
10005         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
10006         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
10007
10008 2011-02-20  Bruno Haible  <bruno@clisp.org>
10009
10010         wcrtomb: Enhance test.
10011         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
10012
10013 2011-02-20  Bruno Haible  <bruno@clisp.org>
10014
10015         mbrtowc: Tiny optimization.
10016         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
10017
10018 2011-02-20  Jim Meyering  <meyering@redhat.com>
10019
10020         test-exclude.c: remove unmatched #endif
10021         * tests/test-exclude.c: Remove stray #endif, left over from
10022         the change of a week ago.
10023
10024 2011-02-19  Jim Meyering  <meyering@redhat.com>
10025
10026         git-version-gen: skip "-dirty" check when appropriate
10027         * build-aux/git-version-gen: Don't run any git commands when the
10028         version string comes from .tarball-version.  Prior to this, we
10029         would run git update-index --refresh even from a just-unpacked
10030         tarball directory, and that could affect a .git/ directory in a
10031         parent of the build directory.  Reported by Mike Frysinger.
10032
10033 2011-02-19  Bruno Haible  <bruno@clisp.org>
10034
10035         unictype/property-byname: Reduce the size of the 'data' segment.
10036         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
10037
10038 2011-02-19  Bruno Haible  <bruno@clisp.org>
10039
10040         unictype/scripts: Reduce the size of the 'data' segment.
10041         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
10042         '%pic'.
10043         * lib/unictype/scripts_byname.gperf: Regenerated.
10044
10045 2011-02-19  Bruno Haible  <bruno@clisp.org>
10046
10047         stdint: Update documentation.
10048         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
10049
10050 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
10051
10052         stdint: omit redundant check for wchar.h
10053         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
10054         always tests whether wchar.h exists, so remove the now-redundant test.
10055
10056 2011-02-18  Bruno Haible  <bruno@clisp.org>
10057
10058         stdint: Cut dependency to module 'wchar'.
10059         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
10060         include the necessary prerequisites.
10061         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
10062         * modules/stdint (Depends-on): Remove wchar.
10063         (Makefile.am): Substitute HAVE_WCHAR_H.
10064         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
10065
10066 2011-02-18  Eric Blake  <eblake@redhat.com>
10067
10068         longlong: skip, rather than fail, on cross-compilation
10069         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
10070         when cross-compiling; regression from 2011-02-16.
10071
10072 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
10073
10074         * NEWS: Mention 2011-02-08 change to stdlib.
10075
10076 2011-02-17  Bruno Haible  <bruno@clisp.org>
10077
10078         getloadavg: Add comments about platforms.
10079         * m4/getloadavg.m4: Add comment.
10080         * lib/getloadavg.c: Likewise.
10081
10082 2011-02-17  Bruno Haible  <bruno@clisp.org>
10083
10084         getloadavg: Fix link error on Solaris 2.6.
10085         * modules/getloadavg (Link): New section.
10086         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
10087         linking test-getloadavg.
10088         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
10089         getloadavg.
10090
10091 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
10092
10093         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
10094         It was 'int', but this doesn't match the IRIX 6.5 manual.
10095         Suggested by Bruno Haible in
10096         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
10097
10098 2011-02-17  Bruno Haible  <bruno@clisp.org>
10099
10100         havelib: Fix comments.
10101         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
10102         change.
10103
10104 2011-02-17  Bruno Haible  <bruno@clisp.org>
10105
10106         havelib: Update config.rpath.
10107         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
10108
10109 2011-02-17  Bruno Haible  <bruno@clisp.org>
10110
10111         getloadavg test: Add some plausibility checks.
10112         * tests/test-getloadavg.c (check_avg): Print a warning when the value
10113         is improbable.
10114
10115 2011-02-16  Eric Blake  <eblake@redhat.com>
10116
10117         maintainer-makefile: make syntax-check a no-op from tarballs
10118         * top/maint.mk (no-vc-detected): New rule.
10119         (local-checks-available): Use it to avoid hanging if someone tries
10120         'make syntax-check' from a tarball.  Also append to any non-syntax
10121         checks already defined in cfg.mk.
10122
10123 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
10124
10125         longlong: tune, particularly for common case of c99
10126
10127         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
10128         or running anything if c99, or if unsigned long long int does not
10129         work.  In either case, we know the answer without further tests.
10130         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
10131         it at most once, and use its results for both long long int and
10132         unsigned long long int.  This is more likely to be efficient in
10133         the common case where the program wants to check for both long
10134         long int and unsigned long long int.
10135         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
10136         since the answer is already known.
10137
10138 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
10139
10140         getloadavg: set errno
10141         * lib/getloadavg.c: Set errno when returning -1.  If no other
10142         error number looks appropriate, set it to ENOSYS if the getloadavg
10143         looks like it can't possibly ever work, ENOTSUP otherwise.
10144         Suggested by Bruno Haible in
10145         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
10146
10147         getloadavg: trim unused parts and speed up 'configure'
10148         * NEWS: Document this.
10149         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
10150         always compiled if getloadavg is absent.
10151         Move test code to ...
10152         * tests/test-getloadavg.c: New file, containing previous
10153         contents of test from lib/getloadavg.c.  It also contains
10154         suggestions by Bruno Haible in
10155         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
10156         * modules/getloadavg-tests: New file.
10157         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
10158         Do tests in the same order as they're needed for getloadavg.c.
10159         Omit setgid-related tests that generate symbols KMEM_GROUP,
10160         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
10161         Do only the tests that are needed to see whether the system has
10162         getloadavg, moving the other tests into ...
10163         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
10164         NLIST_NAME_UNION; nobody should be using it.  Do not define
10165         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
10166         relevant, as the user of this module shouldn't care how getloadavg
10167         is implemented.
10168
10169         getloadavg: omit unused var
10170         * lib/getloadavg.c (getloadavg): Omit unused local variable.
10171
10172 2011-02-15  Jim Meyering  <meyering@redhat.com>
10173
10174         doc: update users.txt
10175         * users.txt: Update iwhd's URL.
10176
10177 2011-02-13  Bruno Haible  <bruno@clisp.org>
10178
10179         Consistent macro naming for macros that use GCC __attribute__.
10180         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
10181         _ATTRIBUTE_NONNULL_.
10182         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
10183         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
10184         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
10185         ATTRIBUTE_DEPRECATED.
10186         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
10187         ATTRIBUTE_NORETURN.
10188         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10189         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10190         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10191         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10192         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
10193         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
10194         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
10195         ATTRIBUTE_SENTINEL.
10196         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
10197         ATTRIBUTE_RETURN_CHECK.
10198         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
10199         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
10200         ATTRIBUTE_NORETURN.
10201         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
10202         Reported by Paul Eggert.
10203
10204 2011-02-13  Bruno Haible  <bruno@clisp.org>
10205
10206         Don't interfere with a program's definition of __attribute__.
10207         * lib/argp.h (__attribute__): Remove definition.
10208         (_GL_ATTRIBUTE_FORMAT): New macro.
10209         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
10210         * lib/argp-fmtstream.h (__attribute__): Remove definition.
10211         (_GL_ATTRIBUTE_FORMAT): New macro.
10212         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
10213         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
10214         GCC 3 or newer.
10215         * lib/error.h (__attribute__): Remove definition.
10216         (_GL_ATTRIBUTE_FORMAT): New macro.
10217         (error, error_at_line): Use it.
10218         * lib/hash.h (__attribute__): Remove definition.
10219         (ATTRIBUTE_WUR): Update definition. Define always.
10220         * lib/openat.h (__attribute__): Remove definition.
10221         (ATTRIBUTE_NORETURN): Update definition. Define always.
10222         * lib/sigpipe-die.h (__attribute__): Remove definition.
10223         (ATTRIBUTE_NORETURN): Update definition. Define always.
10224         * lib/vasnprintf.h (__attribute__): Remove definition.
10225         (_GL_ATTRIBUTE_FORMAT): New macro.
10226         (asnprintf, vasnprintf): Use it.
10227         * lib/xalloc.h (__attribute__): Remove definition.
10228         (ATTRIBUTE_NORETURN): Update definition. Define always.
10229         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
10230         * lib/xmemdup0.h (__attribute__): Remove definition.
10231         (ATTRIBUTE_NORETURN): Update definition. Define always.
10232         * lib/xprintf.h (__attribute__): Remove definition.
10233         (_GL_ATTRIBUTE_FORMAT): New macro.
10234         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
10235         * lib/xstrtol.h (__attribute__): Remove definition.
10236         (ATTRIBUTE_NORETURN): Update definition. Define always.
10237         * lib/xvasprintf.h (__attribute__): Remove definition.
10238         (_GL_ATTRIBUTE_FORMAT): New macro.
10239         (xasprintf, xvasprintf): Use it.
10240         * tests/test-argmatch.c (__attribute__): Remove definition.
10241         (ATTRIBUTE_NORETURN): Update definition. Define always.
10242         * tests/test-exclude.c (__attribute__): Remove definition.
10243         (ATTRIBUTE_NORETURN): Update definition. Define always.
10244         Reported by Paul Eggert.
10245
10246 2011-02-13  Bruno Haible  <bruno@clisp.org>
10247
10248         mbrtowc: Add more tests for native Windows platforms.
10249         * tests/test-mbrtowc-w32-1.sh: New file.
10250         * tests/test-mbrtowc-w32-2.sh: New file.
10251         * tests/test-mbrtowc-w32-3.sh: New file.
10252         * tests/test-mbrtowc-w32-4.sh: New file.
10253         * tests/test-mbrtowc-w32-5.sh: New file.
10254         * tests/test-mbrtowc-w32.c: New file.
10255         * modules/mbrtowc-tests (Files): Add them.
10256         (Makefile.am): Arrange to run these tests.
10257         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
10258         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
10259
10260 2011-02-13  Bruno Haible  <bruno@clisp.org>
10261
10262         mbrtowc: Work around native Windows bug.
10263         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
10264         guess when no suitable locale for testing was found.
10265         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
10266
10267 2011-02-13  Bruno Haible  <bruno@clisp.org>
10268
10269         mbsinit: Work around mingw bug.
10270         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
10271         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
10272         Windows.
10273         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
10274
10275 2011-02-13  Bruno Haible  <bruno@clisp.org>
10276
10277         mbsinit: Don't crash for a NULL argument.
10278         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
10279         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
10280
10281 2011-02-13  Bruno Haible  <bruno@clisp.org>
10282
10283         Don't interfere with a program's definition of __attribute__.
10284         * lib/stdio.in.h (__attribute__): Remove definition.
10285         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
10286         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
10287         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
10288         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
10289         * lib/string.in.h (__attribute__): Remove definition.
10290         Reported by Paul Eggert.
10291
10292 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10293
10294         stdlib: don't get in the way of non-GCC __attribute__
10295         See thread starting at
10296         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
10297         Revert previous stdlib change, installing the following instead:
10298         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
10299         to get in the way of a non-GCC compiler that supports __attribute__.
10300         (_GL_ATTRIBUTE_RETURN): New macro.
10301         (_Exit): Use it instead of __attribute__.
10302
10303 2011-02-12  Bruno Haible  <bruno@clisp.org>
10304
10305         quotearg test: Avoid test failure on mingw.
10306         * tests/test-quotearg.sh: Convert the locale identifier from native
10307         Windows syntax to Unix syntax.
10308
10309 2011-02-12  Bruno Haible  <bruno@clisp.org>
10310
10311         setlocale: Prefer gnulib's override over libintl's override.
10312         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
10313         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
10314         GNULIB_defined_setlocale is set.
10315
10316 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10317
10318         stdlib: support non-GCC __attribute__
10319
10320         Fix a serious and tricky problem encountered when attempting to
10321         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
10322         5.5, but it crashed due to memory corruption on Solaris 10 with
10323         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
10324         bits that are otherwise zero.  This tagging is optional inside
10325         Emacs but is preferred and is used when __attribute__ ((__aligned
10326         (8))) works, as it does with both recent-enough GCC and with Sun C
10327         5.11.  However, Sun C 5.11 is not GCC and does not #define
10328         __GNUC__ and __GNUC_MINOR__.
10329
10330         When I added the getloadavg module to Emacs, it brought in
10331         stdlib.in.h, which contained this fragment:
10332
10333            #ifndef __attribute__
10334            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
10335            #  define __attribute__(Spec)   /* empty */
10336            # endif
10337            #endif
10338
10339         When files that include <stdlib.h> were compiled with Sun C 5.11,
10340         the above code disabled __attribute__ ((__aligned (8))), which
10341         caused variables to not be properly aligned, which eventually led
10342         to the pointer corruption mentioned above.  (This was a bit hard
10343         to diagnose, unfortunately.)
10344
10345         Several "#define __attribute__(X) /* empty */" code snippets need
10346         to be eradicated from Gnulib to work with non-GCC compilers that
10347         support __attribute__.  The Autoconf way to do this is to test for
10348         each kind of attribute that we want support for, and selectively
10349         enable that in source code.
10350
10351         Fix this problem just for stdlib.h, by adding a test for the
10352         __noreturn__ attribute, and change stdlib.in.h to use that test
10353         when needed.  This technique can be easily generalized to the
10354         other *.in.h files and attributes, and a similar technique can be
10355         used for *.h and *.c files.  This patch is enough to solve the
10356         problem for Emacs + getloadavg, and I thought I'd publish it for
10357         feedback before undertaking further, similar fixes in other
10358         modules.
10359
10360         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
10361         because it's not needed for stdlib.h.  It merely substitutes the
10362         value directly into stdlib.h.  We may well need to #define it, or
10363         similar symbols, for other modules, but it's nice to also have an
10364         option to not #define it for applications like Emacs that do not
10365         need it.
10366
10367         * lib/stdlib.in.h (__attribute__): Do not #define.
10368         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
10369         be defined only if the _Exit module is also used.
10370         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
10371         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
10372         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
10373         platforms.
10374         * modules/_Exit (Files): Add m4/attribute.m4.
10375         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
10376         * m4/attribute.m4: New file.
10377
10378 2011-02-12  Bruno Haible  <bruno@clisp.org>
10379
10380         wcsrtombs: Work around bug on native Windows.
10381         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
10382         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
10383         instead of len.
10384         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
10385
10386 2011-02-12  Bruno Haible  <bruno@clisp.org>
10387
10388         mbsrtowcs: Work around bug on native Windows.
10389         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
10390         against mingw bug.
10391         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
10392
10393 2011-02-12  Bruno Haible  <bruno@clisp.org>
10394
10395         Avoid setlocale bugs in tests.
10396         * modules/btowc (Dependencies): Add setlocale.
10397         * modules/c-strcase (Dependencies): Likewise.
10398         * modules/mbmemcasecmp (Dependencies): Likewise.
10399         * modules/mbmemcasecoll (Dependencies): Likewise.
10400         * modules/mbrtowc (Dependencies): Likewise.
10401         * modules/mbscasecmp (Dependencies): Likewise.
10402         * modules/mbscasestr (Dependencies): Likewise.
10403         * modules/mbschr (Dependencies): Likewise.
10404         * modules/mbscspn (Dependencies): Likewise.
10405         * modules/mbsinit (Dependencies): Likewise.
10406         * modules/mbsncasecmp (Dependencies): Likewise.
10407         * modules/mbsnrtowcs (Dependencies): Likewise.
10408         * modules/mbspbrk (Dependencies): Likewise.
10409         * modules/mbspcasecmp (Dependencies): Likewise.
10410         * modules/mbsrchr (Dependencies): Likewise.
10411         * modules/mbsrtowcs (Dependencies): Likewise.
10412         * modules/mbsspn (Dependencies): Likewise.
10413         * modules/mbsstr (Dependencies): Likewise.
10414         * modules/nl_langinfo (Dependencies): Likewise.
10415         * modules/quotearg (Dependencies): Likewise.
10416         * modules/unicase/locale-language (Dependencies): Likewise.
10417         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
10418         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
10419         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
10420         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
10421         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
10422         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
10423         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
10424         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
10425         * modules/vasnprintf-posix (Dependencies): Likewise.
10426         * modules/wcrtomb (Dependencies): Likewise.
10427         * modules/wcsnrtombs (Dependencies): Likewise.
10428         * modules/wcsrtombs (Dependencies): Likewise.
10429
10430 2011-02-12  Bruno Haible  <bruno@clisp.org>
10431
10432         setlocale: Workaround native Windows bug.
10433         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
10434         succeeds but sets LC_CTYPE to "C", report a failure.
10435         * tests/test-setlocale2.sh: New file.
10436         * tests/test-setlocale2.c: New file.
10437         * modules/setlocale-tests (Files): Add the new files.
10438         (Makefile.am): Enable test-setlocale2.sh test.
10439         * doc/posix-functions/setlocale.texi: Mention workaround.
10440
10441 2011-02-11  Bruno Haible  <bruno@clisp.org>
10442
10443         Tests for module 'setlocale'.
10444         * modules/setlocale-tests: New file.
10445         * tests/test-setlocale1.sh: New file.
10446         * tests/test-setlocale1.c: New file.
10447
10448         New module 'setlocale'.
10449         * lib/locale.in.h (setlocale): New declaration.
10450         * lib/setlocale.c: New file, based on
10451         gettext/gettext-runtime/intl/setlocale.c.
10452         * m4/setlocale.m4: New file.
10453         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
10454         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
10455         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
10456         REPLACE_SETLOCALE.
10457         * modules/setlocale: New file.
10458         * tests/test-locale-c++.cc: Test the declaration of setlocale.
10459         * doc/posix-functions/setlocale.texi: Mention the new module.
10460
10461 2011-02-11  Bruno Haible  <bruno@clisp.org>
10462
10463         Prepare for locale dependent tests on mingw.
10464         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
10465         because it has the wrong locale encoding.
10466         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
10467         French_France.1252 instead of "fr".
10468         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
10469         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
10470         because it has the wrong locale encoding.
10471         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
10472         native Windows, try Turkish_Turkey.65001.
10473         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
10474         Chinese_China.54936.
10475
10476         Prepare for locale dependent tests on mingw.
10477         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
10478         differently.
10479         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
10480         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
10481         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
10482         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10483
10484 2011-02-11  Eric Blake  <eblake@redhat.com>
10485
10486         strptime: avoid compiler warnings
10487         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
10488         compiler warnings about dead code.
10489         Reported by Daniel P. Berrange.
10490
10491 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
10492
10493         doc: update users.txt
10494         * users.txt: Add rcs.
10495
10496 2011-02-10  John W. Eaton  <jwe@gnu.org>
10497
10498         doc: update users.txt
10499         * users.txt: Add octave.
10500
10501 2011-02-10  Jim Meyering  <meyering@redhat.com>
10502
10503         doc: update users.txt
10504         * users.txt: Add iwhd.
10505
10506 2011-02-09  Bruno Haible  <bruno@clisp.org>
10507
10508         gnulib-tool: Make copyright notice adjustment more robust.
10509         * gnulib-tool (func_import): In sed_transform_main_lib_file,
10510         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
10511         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
10512         License".
10513         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
10514
10515 2011-02-06  Bruno Haible  <bruno@clisp.org>
10516
10517         New module 'towctrans'.
10518         * modules/towctrans: New file.
10519         * lib/wctype.in.h (towctrans): New declaration.
10520         * lib/towctrans.c: New file.
10521         * lib/towctrans-impl.h: New file.
10522         * m4/towctrans.m4: New file.
10523         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
10524         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
10525         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
10526         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
10527         * doc/posix-functions/towctrans.texi: Mention the new module.
10528
10529 2011-02-06  Bruno Haible  <bruno@clisp.org>
10530
10531         New module 'wctrans'.
10532         * modules/wctrans: New file.
10533         * lib/wctype.in.h (wctrans): New declaration.
10534         * lib/wctrans.c: New file.
10535         * lib/wctrans-impl.h: New file.
10536         * m4/wctrans.m4: New file.
10537         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
10538         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
10539         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
10540         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
10541         * doc/posix-functions/wctrans.texi: Mention the new module.
10542
10543 2011-02-06  Bruno Haible  <bruno@clisp.org>
10544
10545         New module 'iswctype'.
10546         * modules/iswctype: New file.
10547         * lib/wctype.in.h (iswctype): New declaration.
10548         * lib/iswctype.c: New file.
10549         * lib/iswctype-impl.h: New file.
10550         * m4/iswctype.m4: New file.
10551         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
10552         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
10553         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
10554         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
10555         * doc/posix-functions/iswctype.texi: Mention the new module and the
10556         HP-UX 11.00 problem.
10557
10558 2011-02-06  Bruno Haible  <bruno@clisp.org>
10559
10560         New module 'wctype'.
10561         * modules/wctype: Change to represent the wctype() substitute.
10562         * lib/wctype.in.h (wctype): New declaration.
10563         * lib/wctype.c: New file.
10564         * lib/wctype-impl.h: New file.
10565         * m4/wctype.m4: New file.
10566         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
10567         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
10568         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
10569         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
10570         * doc/posix-functions/wctype.texi: Mention the new module and the
10571         HP-UX 11.00 problem.
10572
10573 2011-02-06  Bruno Haible  <bruno@clisp.org>
10574
10575         wctype-h: Ensure wctype_t and wctrans_t are defined.
10576         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
10577         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
10578         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
10579         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
10580         HAVE_WCTRANS_T.
10581         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
10582
10583 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
10584
10585         flock: fix license typo
10586
10587         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
10588         omitted.
10589
10590 2011-02-08  Bruno Haible  <bruno@clisp.org>
10591
10592         Split large sed scripts, for HP-UX sed.
10593         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
10594         to avoid HP-UX limit of 99 commands, in the near future.
10595         * modules/stdlib (Makefile.am): Likewise.
10596         * modules/unistd (Makefile.am): Likewise.
10597         * modules/wchar (Makefile.am): Likewise.
10598         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10599         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
10600         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
10601
10602 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10603             Bruno Haible  <bruno@clisp.org>
10604
10605         stdlib: improve random_r modularization
10606         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
10607         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
10608         you also need the random_r module to get this material right.
10609         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
10610         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
10611         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
10612
10613 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10614
10615         stdlib: don't depend on stdint
10616         * lib/stdlib.in.h: Don't include <stdint.h> merely because
10617         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
10618         be independent of whether stdint.h is needed.
10619         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
10620         here, instead of ...
10621         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
10622         struct random_data should be using the random_r module, not just
10623         the stdlib module (which wouldn't make sense: what package needs
10624         just struct random_data without also needing random_r?).
10625         * modules/stdlib (Depends-on): Remove stdint.
10626
10627         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
10628         See the thread rooted at
10629         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
10630         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
10631         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
10632         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
10633         __VMS)); previously it was always included (via fcntl--.h).
10634         (getloadavg): Do not use c_strtod.  Instead, approximate it by
10635         hand; this is good enough for load averages.  Also, do not use
10636         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
10637         flags directly if available and don't bother otherwise.  (Packages
10638         that need the extra reliability should use the modules that define
10639         these flags on older platforms that lack them.)
10640         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
10641         fcntl-safer.
10642
10643 2011-02-08  Jim Meyering  <meyering@redhat.com>
10644
10645         di-set.h, ino-map.h: add multiple-inclusion guard
10646         Technically, the guard is required only for ino-map.h, due to its
10647         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
10648         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
10649         * lib/ino-map.h: Likewise.
10650
10651 2011-02-06  Bruno Haible  <bruno@clisp.org>
10652
10653         iswblank: Ensure declaration on glibc systems.
10654         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
10655         * modules/iswblank (Dependencies): Add 'extensions'.
10656         * doc/posix-functions/iswblank.texi: Document the glibc problem.
10657
10658 2011-02-06  Bruno Haible  <bruno@clisp.org>
10659
10660         New module 'iswblank'.
10661         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
10662         * modules/iswblank: New file.
10663         * modules/wctype-h (Files): Remove lib/iswblank.c.
10664         (Makefile.am): Substitute GNULIB_ISWBLANK.
10665         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
10666         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
10667         (gl_WCTYPE_H_DEFAULTS): New macro.
10668         (gl_WCTYPE_H): Require it. Remove iswblank related code.
10669         * modules/iswblank-tests: New file.
10670         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
10671         * tests/test-wctype-h.c (main): Remove iswblank tests.
10672         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
10673         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
10674         of 'wctype-h'.
10675         * NEWS: Mention the change.
10676         * modules/mbchar (Depends-on): Add iswblank.
10677
10678 2011-02-08  Bruno Haible  <bruno@clisp.org>
10679
10680         di-set tests: Refactor.
10681         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
10682         unnecessary includes.
10683         (ASSERT): Remove macro.
10684         (main): Make C90 compliant by avoiding variable declaration after
10685         statement.
10686         * modules/di-set-tests (Files): Add tests/macros.h.
10687
10688 2011-02-08  Bruno Haible  <bruno@clisp.org>
10689
10690         ino-map tests: Refactor.
10691         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
10692         unnecessary includes.
10693         (ASSERT): Remove macro.
10694         (main): Make C90 compliant by avoiding variable declaration after
10695         statement.
10696         * modules/ino-map-tests (Files): Add tests/macros.h.
10697
10698 2011-02-08  Jim Meyering  <meyering@redhat.com>
10699
10700         di-set: add "const" to a cast
10701         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
10702         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
10703
10704 2011-02-06  Bruno Haible  <bruno@clisp.org>
10705
10706         Rename module 'wctype' to 'wctype-h'.
10707         * modules/wctype-h: Renamed from modules/wctype.
10708         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
10709         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
10710         (Files, Depends-on, Makefile.am): Update.
10711         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
10712         (Files, Makefile.am): Update.
10713         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
10714         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
10715         * doc/posix-headers/wctype.texi: Update.
10716         * doc/posix-functions/iswalnum.texi: Update.
10717         * doc/posix-functions/iswalpha.texi: Update.
10718         * doc/posix-functions/iswblank.texi: Update.
10719         * doc/posix-functions/iswcntrl.texi: Update.
10720         * doc/posix-functions/iswdigit.texi: Update.
10721         * doc/posix-functions/iswgraph.texi: Update.
10722         * doc/posix-functions/iswlower.texi: Update.
10723         * doc/posix-functions/iswprint.texi: Update.
10724         * doc/posix-functions/iswpunct.texi: Update.
10725         * doc/posix-functions/iswspace.texi: Update.
10726         * doc/posix-functions/iswupper.texi: Update.
10727         * doc/posix-functions/iswxdigit.texi: Update.
10728         * doc/posix-functions/towlower.texi: Update.
10729         * doc/posix-functions/towupper.texi: Update.
10730         * NEWS: Mention the change.
10731         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
10732         * modules/mbchar (Dependencies): Likewise.
10733         * modules/mbswidth (Dependencies): Likewise.
10734         * modules/quotearg (Dependencies): Likewise.
10735         * modules/regex (Dependencies): Likewise.
10736         * modules/wcscasecmp (Dependencies): Likewise.
10737         * modules/wcsncasecmp (Dependencies): Likewise.
10738         * modules/wcwidth (Dependencies): Likewise.
10739
10740 2011-02-06  Bruno Haible  <bruno@clisp.org>
10741
10742         New module 'wcswidth'.
10743         * modules/wcswidth: New file.
10744         * lib/wchar.in.h (wcswidth): New declaration.
10745         * lib/wcswidth.c: New file.
10746         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
10747         * m4/wcswidth.m4: New file.
10748         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
10749         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
10750         REPLACE_WCSWIDTH.
10751         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
10752         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
10753         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
10754         * doc/posix-functions/wcswidth.texi: Mention the new module.
10755
10756 2011-02-06  Bruno Haible  <bruno@clisp.org>
10757
10758         New module 'wcstok'.
10759         * modules/wcstok: New file.
10760         * lib/wchar.in.h (wcstok): New declaration.
10761         * lib/wcstok.c: New file.
10762         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
10763         * m4/wcstok.m4: New file.
10764         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
10765         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
10766         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
10767         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
10768         * doc/posix-functions/wcstok.texi: Mention the new module.
10769
10770 2011-02-06  Bruno Haible  <bruno@clisp.org>
10771
10772         New module 'wcsstr'.
10773         * modules/wcsstr: New file.
10774         * lib/wchar.in.h (wcsstr): New declaration.
10775         * lib/wcsstr.c: New file.
10776         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
10777         * m4/wcsstr.m4: New file.
10778         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
10779         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
10780         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
10781         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
10782         * doc/posix-functions/wcsstr.texi: Mention the new module.
10783
10784 2011-02-06  Bruno Haible  <bruno@clisp.org>
10785
10786         New module 'wcspbrk'.
10787         * modules/wcspbrk: New file.
10788         * lib/wchar.in.h (wcspbrk): New declaration.
10789         * lib/wcspbrk.c: New file.
10790         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
10791         * m4/wcspbrk.m4: New file.
10792         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
10793         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
10794         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
10795         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
10796         * doc/posix-functions/wcspbrk.texi: Mention the new module.
10797
10798 2011-02-06  Bruno Haible  <bruno@clisp.org>
10799
10800         New module 'wcsspn'.
10801         * modules/wcsspn: New file.
10802         * lib/wchar.in.h (wcsspn): New declaration.
10803         * lib/wcsspn.c: New file.
10804         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
10805         * m4/wcsspn.m4: New file.
10806         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
10807         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
10808         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
10809         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
10810         * doc/posix-functions/wcsspn.texi: Mention the new module.
10811
10812 2011-02-06  Bruno Haible  <bruno@clisp.org>
10813
10814         New module 'wcscspn'.
10815         * modules/wcscspn: New file.
10816         * lib/wchar.in.h (wcscspn): New declaration.
10817         * lib/wcscspn.c: New file.
10818         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
10819         * m4/wcscspn.m4: New file.
10820         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
10821         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
10822         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
10823         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
10824         * doc/posix-functions/wcscspn.texi: Mention the new module.
10825
10826 2011-02-06  Bruno Haible  <bruno@clisp.org>
10827
10828         New module 'wcsrchr'.
10829         * modules/wcsrchr: New file.
10830         * lib/wchar.in.h (wcsrchr): New declaration.
10831         * lib/wcsrchr.c: New file.
10832         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
10833         * m4/wcsrchr.m4: New file.
10834         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
10835         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
10836         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
10837         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
10838         * doc/posix-functions/wcsrchr.texi: Mention the new module.
10839
10840 2011-02-06  Bruno Haible  <bruno@clisp.org>
10841
10842         New module 'wcschr'.
10843         * modules/wcschr: New file.
10844         * lib/wchar.in.h (wcschr): New declaration.
10845         * lib/wcschr.c: New file.
10846         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
10847         * m4/wcschr.m4: New file.
10848         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
10849         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
10850         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
10851         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
10852         * doc/posix-functions/wcschr.texi: Mention the new module.
10853
10854 2011-02-06  Bruno Haible  <bruno@clisp.org>
10855
10856         New module 'wcsdup'.
10857         * modules/wcsdup: New file.
10858         * lib/wchar.in.h (wcsdup): New declaration.
10859         * lib/wcsdup.c: New file.
10860         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
10861         * m4/wcsdup.m4: New file.
10862         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
10863         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
10864         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
10865         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
10866         * doc/posix-functions/wcsdup.texi: Mention the new module.
10867
10868 2011-02-06  Bruno Haible  <bruno@clisp.org>
10869
10870         New module 'wcsxfrm'.
10871         * modules/wcsxfrm: New file.
10872         * lib/wchar.in.h (wcsxfrm): New declaration.
10873         * lib/wcsxfrm.c: New file.
10874         * lib/wcsxfrm-impl.h: New file.
10875         * m4/wcsxfrm.m4: New file.
10876         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
10877         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
10878         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
10879         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
10880         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
10881
10882 2011-02-06  Bruno Haible  <bruno@clisp.org>
10883
10884         New module 'wcscoll'.
10885         * modules/wcscoll: New file.
10886         * lib/wchar.in.h (wcscoll): New declaration.
10887         * lib/wcscoll.c: New file.
10888         * lib/wcscoll-impl.h: New file.
10889         * m4/wcscoll.m4: New file.
10890         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
10891         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
10892         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
10893         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
10894         * doc/posix-functions/wcscoll.texi: Mention the new module.
10895
10896 2011-02-06  Bruno Haible  <bruno@clisp.org>
10897
10898         New module 'wcsncasecmp'.
10899         * modules/wcsncasecmp: New file.
10900         * lib/wchar.in.h (wcsncasecmp): New declaration.
10901         * lib/wcsncasecmp.c: New file.
10902         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
10903         * m4/wcsncasecmp.m4: New file.
10904         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
10905         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
10906         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
10907         HAVE_WCSNCASECMP.
10908         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
10909         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
10910
10911 2011-02-06  Bruno Haible  <bruno@clisp.org>
10912
10913         New module 'wcscasecmp'.
10914         * modules/wcscasecmp: New file.
10915         * lib/wchar.in.h (wcscasecmp): New declaration.
10916         * lib/wcscasecmp.c: New file.
10917         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
10918         * m4/wcscasecmp.m4: New file.
10919         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
10920         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
10921         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
10922         HAVE_WCSCASECMP.
10923         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
10924         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
10925
10926 2011-02-05  Bruno Haible  <bruno@clisp.org>
10927
10928         New module 'wcsncmp'.
10929         * modules/wcsncmp: New file.
10930         * lib/wchar.in.h (wcsncmp): New declaration.
10931         * lib/wcsncmp.c: New file.
10932         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
10933         * m4/wcsncmp.m4: New file.
10934         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
10935         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
10936         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
10937         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
10938         * doc/posix-functions/wcsncmp.texi: Mention the new module.
10939
10940 2011-02-05  Bruno Haible  <bruno@clisp.org>
10941
10942         New module 'wcscmp'.
10943         * modules/wcscmp: New file.
10944         * lib/wchar.in.h (wcscmp): New declaration.
10945         * lib/wcscmp.c: New file.
10946         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
10947         * m4/wcscmp.m4: New file.
10948         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
10949         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
10950         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
10951         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
10952         * doc/posix-functions/wcscmp.texi: Mention the new module.
10953
10954 2011-02-05  Bruno Haible  <bruno@clisp.org>
10955
10956         New module 'wcsncat'.
10957         * modules/wcsncat: New file.
10958         * lib/wchar.in.h (wcsncat): New declaration.
10959         * lib/wcsncat.c: New file.
10960         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
10961         * m4/wcsncat.m4: New file.
10962         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
10963         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
10964         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
10965         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
10966         * doc/posix-functions/wcsncat.texi: Mention the new module.
10967
10968 2011-02-05  Bruno Haible  <bruno@clisp.org>
10969
10970         New module 'wcscat'.
10971         * modules/wcscat: New file.
10972         * lib/wchar.in.h (wcscat): New declaration.
10973         * lib/wcscat.c: New file.
10974         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
10975         * m4/wcscat.m4: New file.
10976         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
10977         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
10978         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
10979         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
10980         * doc/posix-functions/wcscat.texi: Mention the new module.
10981
10982 2011-02-05  Bruno Haible  <bruno@clisp.org>
10983
10984         New module 'wcpncpy'.
10985         * modules/wcpncpy: New file.
10986         * lib/wchar.in.h (wcpncpy): New declaration.
10987         * lib/wcpncpy.c: New file.
10988         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
10989         * m4/wcpncpy.m4: New file.
10990         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
10991         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
10992         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
10993         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
10994         * doc/posix-functions/wcpncpy.texi: Mention the new module.
10995
10996 2011-02-05  Bruno Haible  <bruno@clisp.org>
10997
10998         New module 'wcsncpy'.
10999         * modules/wcsncpy: New file.
11000         * lib/wchar.in.h (wcsncpy): New declaration.
11001         * lib/wcsncpy.c: New file.
11002         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
11003         * m4/wcsncpy.m4: New file.
11004         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
11005         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
11006         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
11007         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
11008         * doc/posix-functions/wcsncpy.texi: Mention the new module.
11009
11010 2011-02-05  Bruno Haible  <bruno@clisp.org>
11011
11012         New module 'wcpcpy'.
11013         * modules/wcpcpy: New file.
11014         * lib/wchar.in.h (wcpcpy): New declaration.
11015         * lib/wcpcpy.c: New file.
11016         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
11017         * m4/wcpcpy.m4: New file.
11018         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
11019         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
11020         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
11021         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
11022         * doc/posix-functions/wcpcpy.texi: Mention the new module.
11023
11024 2011-02-05  Bruno Haible  <bruno@clisp.org>
11025
11026         New module 'wcscpy'.
11027         * modules/wcscpy: New file.
11028         * lib/wchar.in.h (wcscpy): New declaration.
11029         * lib/wcscpy.c: New file.
11030         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
11031         * m4/wcscpy.m4: New file.
11032         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
11033         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
11034         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
11035         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
11036         * doc/posix-functions/wcscpy.texi: Mention the new module.
11037
11038 2011-02-05  Bruno Haible  <bruno@clisp.org>
11039
11040         New module 'wcsnlen'.
11041         * modules/wcsnlen: New file.
11042         * lib/wchar.in.h (wcsnlen): New declaration.
11043         * lib/wcsnlen.c: New file.
11044         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
11045         * m4/wcsnlen.m4: New file.
11046         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
11047         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
11048         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
11049         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
11050         * doc/posix-functions/wcsnlen.texi: Mention the new module.
11051
11052 2011-02-05  Bruno Haible  <bruno@clisp.org>
11053
11054         New module 'wcslen'.
11055         * modules/wcslen: New file.
11056         * lib/wchar.in.h (wcslen): New declaration.
11057         * lib/wcslen.c: New file.
11058         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
11059         * m4/wcslen.m4: New file.
11060         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
11061         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
11062         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
11063         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
11064         * doc/posix-functions/wcslen.texi: Mention the new module.
11065
11066 2011-02-05  Bruno Haible  <bruno@clisp.org>
11067
11068         New module 'wmemset'.
11069         * modules/wmemset: New file.
11070         * lib/wchar.in.h (wmemset): New declaration.
11071         * lib/wmemset.c: New file.
11072         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
11073         * m4/wmemset.m4: New file.
11074         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
11075         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
11076         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
11077         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
11078         * doc/posix-functions/wmemset.texi: Mention the new module.
11079
11080 2011-02-05  Bruno Haible  <bruno@clisp.org>
11081
11082         New module 'wmemmove'.
11083         * modules/wmemmove: New file.
11084         * lib/wchar.in.h (wmemmove): New declaration.
11085         * lib/wmemmove.c: New file.
11086         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
11087         * m4/wmemmove.m4: New file.
11088         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
11089         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
11090         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
11091         HAVE_WMEMMOVE.
11092         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
11093         * doc/posix-functions/wmemmove.texi: Mention the new module.
11094
11095 2011-02-05  Bruno Haible  <bruno@clisp.org>
11096
11097         New module 'wmemcpy'.
11098         * modules/wmemcpy: New file.
11099         * lib/wchar.in.h (wmemcpy): New declaration.
11100         * lib/wmemcpy.c: New file.
11101         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
11102         * m4/wmemcpy.m4: New file.
11103         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
11104         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
11105         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
11106         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
11107         * doc/posix-functions/wmemcpy.texi: Mention the new module.
11108
11109 2011-02-05  Bruno Haible  <bruno@clisp.org>
11110
11111         New module 'wmemcmp'.
11112         * modules/wmemcmp: New file.
11113         * lib/wchar.in.h (wmemcmp): New declaration.
11114         * lib/wmemcmp.c: New file.
11115         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
11116         * m4/wmemcmp.m4: New file.
11117         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
11118         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
11119         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
11120         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
11121         * doc/posix-functions/wmemcmp.texi: Mention the new module.
11122
11123 2011-02-07  Jim Meyering  <meyering@redhat.com>
11124
11125         di-set, ino-map: new modules, from coreutils
11126         * lib/di-set.c: New file.
11127         * lib/di-set.h: Likewise.
11128         * lib/ino-map.c: Likewise.
11129         * lib/ino-map.h: Likewise.
11130         * modules/di-set: Likewise.
11131         * modules/di-set-tests: Likewise.
11132         * modules/ino-map: Likewise.
11133         * modules/ino-map-tests: Likewise.
11134         * tests/test-di-set.c: Likewise.
11135         * tests/test-ino-map.c: Likewise.
11136
11137 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
11138
11139         getloadavg: merge minor changes from Emacs
11140
11141         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
11142         (getloadavg): Use memset, not bzero.
11143
11144         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
11145         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
11146         clash (bug#86).
11147
11148 2010-11-14  Bruno Haible  <bruno@clisp.org>
11149
11150         Allow multiple gnulib generated replacements to coexist.
11151         * lib/getopt.in.h (struct option): Avoid identical redefinition.
11152         * lib/inttypes.in.h (imaxdiv_t): Likewise.
11153         * lib/langinfo.in.h (nl_item): Likewise.
11154         * lib/math.in.h (_NaN, NAN): Likewise.
11155         * lib/netdb.in.h (struct addrinfo): Likewise.
11156         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
11157         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
11158         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
11159         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
11160         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
11161         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
11162         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
11163         pthread_mutexattr_init, pthread_mutexattr_settype,
11164         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
11165         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
11166         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
11167         pthread_spin_trylock, pthread_spin_unlock): Likewise.
11168         * lib/sched.in.h (struct sched_param): Likewise.
11169         * lib/se-selinux.in.h (security_class_t, security_context_t,
11170         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
11171         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
11172         lsetfilecon, fsetfilecon, security_check_context,
11173         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
11174         Likewise.
11175         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
11176         Likewise.
11177         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
11178         _gl_function_taking_int_returning_void_t, union sigval,
11179         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
11180         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
11181         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
11182         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
11183         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
11184         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
11185         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
11186         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
11187         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
11188         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
11189         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
11190         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
11191         socklen_t, rpl_fd_isset): Likewise.
11192         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
11193         * lib/sys_time.in.h (struct timeval): Likewise.
11194         * lib/sys_times.in.h (struct tms): Likewise.
11195         * lib/sys_utsname.in.h (struct utsname):
11196         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
11197         * lib/unistd.in.h (getpagesize): Likewise.
11198         * lib/wchar.in.h (mbstate_t): Likewise.
11199         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
11200         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
11201         towlower, towupper): Likewise.
11202         Reported by Sam Steingold <sds@gnu.org>.
11203
11204 2011-02-05  Eric Blake  <eblake@redhat.com>
11205
11206         unsetenv: work around Haiku issues
11207         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
11208         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
11209
11210 2010-12-30  Bruce Korb  <bkorb@gnu.org>
11211
11212         libposix: avoid calling error() within libposix
11213         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
11214         is defined.
11215
11216 2011-02-05  Eric Blake  <eblake@redhat.com>
11217
11218         strerror_r-posix: port to cygwin
11219         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
11220         implementation.
11221         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
11222         * tests/test-strerror_r.c (main): Fix test.
11223         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
11224         issue.
11225
11226 2011-02-05  Bruno Haible  <bruno@clisp.org>
11227
11228         New module 'wmemchr'.
11229         * modules/wmemchr: New file.
11230         * lib/wchar.in.h (wmemchr): New declaration.
11231         * lib/wmemchr.c: New file.
11232         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
11233         * m4/wmemchr.m4: New file.
11234         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
11235         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
11236         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
11237         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
11238         * doc/posix-functions/wmemchr.texi: Mention the new module.
11239
11240 2011-02-04  Eric Blake  <eblake@redhat.com>
11241
11242         fdopendir: detect FreeBSD bug
11243         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
11244         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
11245
11246 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
11247
11248         stdbool: do not define HAVE_STDBOOL_H
11249         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
11250         AC_HEADER_STDBOOL.  All uses changed.  Do not define
11251         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
11252         imported from the latest Autoconf git.  It was motivated by Emacs,
11253         which uses gnulib but does not need HAVE_STDBOOL_H.
11254
11255 2011-02-04  Bruno Haible  <bruno@clisp.org>
11256
11257         wcsnrtombs: Prepare for new module wwcsnrtombs.
11258         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
11259         * lib/wcsnrtombs.c: Include it.
11260         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
11261
11262         wcsrtombs: Prepare for new module wwcsrtombs.
11263         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
11264         * lib/wcsrtombs.c: Include it.
11265         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
11266
11267         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
11268         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
11269         * lib/mbsnrtowcs.c: Include it.
11270         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
11271
11272         mbsrtowcs: Prepare for new module mbsrtowwcs.
11273         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
11274         * lib/mbsrtowcs.c: Include it.
11275         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
11276
11277 2011-02-04  Bruno Haible  <bruno@clisp.org>
11278
11279         vasnprintf: Reduce use of malloc for small format strings.
11280         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
11281         (arguments): Add room for the first 7 arguments.
11282         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
11283         (char_directives, u8_directives, u16_directives, u32_directives): Add
11284         room for the first 7 directives.
11285         * lib/printf-parse.c: Include <string.h>.
11286         (PRINTF_PARSE): Change memory handling code so that it uses the first
11287         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
11288         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
11289         Reported by Pádraig Brady <P@draigbrady.com>.
11290
11291 2011-01-31  Eric Blake  <eblake@redhat.com>
11292
11293         dup2: work around Haiku bug
11294         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
11295         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
11296         * doc/posix-functions/dup2.texi (dup2): Document the bug.
11297         * tests/test-dup2.c (main): Enhance test.
11298
11299 2011-01-31  Simon Josefsson  <simon@josefsson.org>
11300
11301         doc: off_t is not available in eglibc 2.11.2 stdio.h.
11302         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
11303         declared by eglibc 2.11.2.
11304         * lib/stdio.in.h: Likewise.
11305
11306 2011-01-31  Eric Blake  <eblake@redhat.com>
11307
11308         ignore-value: add missing test dependency
11309         * tests/test-ignore-value.c: Revert previous change; stdio.h
11310         provides off_t.
11311         * modules/ignore-value-tests (Depends-on): Add missing dependency.
11312
11313 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
11314
11315         mktime: clarify long_int width checking
11316         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
11317         the top level, to make it clearer that the assumption about
11318         long_int width is being checked.  See
11319         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
11320
11321 2011-01-30  Simon Josefsson  <simon@josefsson.org>
11322
11323         ignore-value: Fix self-test.
11324         * tests/test-ignore-value.c: Include sys/types.h for off_t.
11325
11326 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
11327
11328         TYPE_MAXIMUM: avoid theoretically undefined behavior
11329         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
11330         negative number, which the C Standard says has undefined behavior.
11331         In practice this is not a problem, but might as well do it by the book.
11332         Reported by Rich Felker and Eric Blake; see
11333         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
11334         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
11335         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
11336         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
11337         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
11338         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11339         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
11340
11341         mktime: #undef mktime before #defining it
11342         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
11343
11344         mktime: systematically normalize tm_isdst comparisons
11345         * lib/mktime.c (isdst_differ): New function.
11346         (__mktime_internal): Use it systematically for all isdst comparisons.
11347         This completes the fix for libc BZ #6723, and removes the need for
11348         normalizing tm_isdst.  See
11349         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
11350         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
11351
11352         mktime: fix some integer overflow issues and sidestep the rest
11353
11354         This was prompted by a bug report by Benjamin Lindner for MinGW
11355         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
11356         His bug is due to signed integer overflow (0 - INT_MIN), and I
11357         I scanned through mktime.c looking for other integer overflow
11358         problems, fixing all the bugs I found.
11359
11360         Although the C Standard says the resulting code is still not safe
11361         in the presence of integer overflow, in practice it should be good
11362         enough for all real-world two's-complement implementations, except
11363         for debugging environments that deliberately trap on integer
11364         overflow (e.g., gcc -ftrapv).
11365
11366         * lib/mktime.c (WRAPV): New macro.
11367         (SHR): Also check that long_int and time_t shift right in the
11368         usual way, before using the fast-but-unportable method.
11369         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
11370         used.  The code already assumed two's complement, so there's
11371         no need to test for alternatives.  All uses removed.
11372         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
11373         the C standard.  Problem reported by Rich Felker in
11374         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
11375         (twos_complement_arithmetic): Also check long_int and time_t.
11376         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
11377         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
11378         (__mktime_internal): Avoid integer overflow with unary subtraction
11379         in two instances where -1 - X is an adequate replacement for -X,
11380         since the calculations are approximate.
11381
11382 2011-01-29  Eric Blake  <eblake@redhat.com>
11383
11384         mktime: avoid infinite loop
11385         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
11386         type; behavior is still undefined but portable to all known targets.
11387         Reported by Rich Felker.
11388
11389 2011-01-29  Simon Josefsson  <simon@josefsson.org>
11390
11391         rename, unlink, same-inode: Relicense.
11392         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
11393         * modules/unlink (License): Likewise.
11394         * modules/same-inode (License): Likewise.
11395
11396 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
11397
11398         mktime: avoid problems on NetBSD 5 / i386
11399         * lib/mktime.c (long_int): New type.  This works around a problem
11400         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
11401         but time_t is 64 bits, and where I expect the existing code is
11402         wrong in some cases.
11403         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
11404         (ydhms_diff): Bring back the compile-time check for wide-enough
11405         year and yday.
11406
11407         mktime: fix misspelling in comment
11408         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
11409         This merges all recent glibc changes of importance.
11410
11411 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11412
11413         move-if-change: cope with concurrent mv of identical file.
11414         * build-aux/move-if-change (CMPPROG): Accept environment
11415         variable as an override for `cmp'.
11416         (usage): Document CMPPROG.
11417         Adjust comparison to drop stdout.  Cope with failure of mv if
11418         the target file exists and is identical to the source, for
11419         parallel builds.
11420         Report from H.J. Lu against binutils in PR binutils/12283.
11421
11422 2011-01-28  Bruce Korb  <bkorb@gnu.org>
11423
11424         * users.txt: Mention sharutils.
11425
11426 2011-01-28  Simon Josefsson  <simon@josefsson.org>
11427
11428         * users.txt: Mention OATH Toolkit.
11429
11430 2011-01-27  Bruno Haible  <bruno@clisp.org>
11431
11432         Prepare for supporting FreeBSD 10.
11433         * build-aux/config.libpath: Remove handling of freebsd1*.
11434
11435 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
11436
11437         Prepare for supporting FreeBSD 10.
11438         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
11439         match FreeBSD 10.0.
11440
11441 2011-01-27  Bruno Haible  <bruno@clisp.org>
11442
11443         vma-iter, get-rusage-as: Add OpenBSD support.
11444         * modules/vma-iter (configure.ac): Test for mquery.
11445         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
11446         * lib/vma-iter.c: Include <sys/mman.h>.
11447         (vma_iterate): Add an implementation based on mquery().
11448         * lib/resource-ext.h (get_rusage_as): Update comments.
11449         * lib/get-rusage-as.c: Likewise.
11450         * lib/get-rusage-data.c: Likewise.
11451
11452 2011-01-26  Karl Berry  <karl@gnu.org>
11453
11454         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
11455         variables to make it easier to override the makeinfo program used.
11456
11457 2011-01-26  Eric Blake  <eblake@redhat.com>
11458
11459         fcntl: work around Haiku F_DUPFD bugs
11460         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
11461         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
11462         cloexec bit on duplication.
11463         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
11464
11465 2011-01-26  Bruno Haible  <bruno@clisp.org>
11466
11467         Enable memory leak tests on AIX.
11468         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
11469         * tests/test-fprintf-posix3.c (main): Likewise.
11470
11471 2011-01-26  Bruno Haible  <bruno@clisp.org>
11472
11473         Tests for module 'get-rusage-data'.
11474         * modules/get-rusage-data-tests: New file.
11475         * tests/test-get-rusage-data.c: New file.
11476
11477         New module 'get-rusage-data'.
11478         * lib/resource-ext.h (get_rusage_data): New declaration.
11479         * lib/get-rusage-data.c: New file.
11480         * modules/get-rusage-data: New file.
11481
11482 2011-01-25  Bruno Haible  <bruno@clisp.org>
11483
11484         get-rusage-as: Allow for easier testing.
11485         * lib/resource-ext.h (get_rusage_as): Add comment.
11486         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
11487         (main): New function for interactive testing.
11488
11489 2011-01-25  Bruno Haible  <bruno@clisp.org>
11490
11491         vma-iter: Treat Haiku like BeOS.
11492         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
11493         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
11494
11495 2011-01-25  Eric Blake  <eblake@redhat.com>
11496
11497         c-stack: fix regression on cygwin when libsigsegv is present
11498         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
11499
11500 2011-01-24  Bruno Haible  <bruno@clisp.org>
11501
11502         vma-iter: Avoid empty intervals.
11503         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
11504         on an empty interval.
11505
11506 2011-01-24  Jim Meyering  <meyering@redhat.com>
11507
11508         u64: remove unnecessary #include
11509         * lib/u64.h: Don't include <stddef.h>.  It was not used.
11510
11511 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
11512
11513         Allow the user to avoid the HAVE_RAW_DECL_* macros.
11514         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
11515
11516 2011-01-23  Bruno Haible  <bruno@clisp.org>
11517
11518         New module 'vma-iter'.
11519         * lib/vma-iter.h: New file.
11520         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
11521         * modules/vma-iter: New file.
11522         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
11523         for get_rusage_as_via_iterator.
11524         (vma_iterate_callback): New function.
11525         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
11526         * modules/get-rusage-as (Depends-on): Add vma-iter.
11527
11528 2011-01-23  Bruno Haible  <bruno@clisp.org>
11529
11530         uninorm: Tweak includes.
11531         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
11532         Reported by Jim Meyering.
11533
11534 2011-01-23  Bruno Haible  <bruno@clisp.org>
11535
11536         get-rusage-as: Improve on NetBSD.
11537         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
11538         /proc, like on FreeBSD.
11539
11540 2011-01-23  Jim Meyering  <meyering@redhat.com>
11541
11542         xreadlink.h: remove unnecessary #include
11543         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
11544
11545         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
11546         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
11547
11548 2011-01-23  Bruno Haible  <bruno@clisp.org>
11549
11550         get-rusage-as: Fix bug.
11551         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
11552         original limit when aborting the first loop.
11553
11554 2011-01-23  Bruno Haible  <bruno@clisp.org>
11555
11556         wctype: Ensure valid C syntax.
11557         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
11558         unconditionally, instead of gl_NEXT_HEADERS conditionally.
11559
11560 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
11561
11562         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
11563         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
11564         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
11565         as they are needed only for configure's test case.
11566         This removes two unnecessary symbols from config.h.
11567
11568         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
11569         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
11570         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
11571         AC_CHECK_HEADERS_ONCE on a header that we also invoke
11572         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
11573         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
11574         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
11575         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
11576         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
11577         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11578         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
11579         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11580         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11581         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11582         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
11583         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11584         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
11585         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
11586
11587 2011-01-21  Eric Blake  <eblake@redhat.com>
11588
11589         maintainer-makefile: work with older git for submodule check
11590         * top/maint.mk (public-submodule-commit): Rewrite to avoid
11591         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
11592         Reported by Matthias Bolte.
11593
11594         bootstrap: minor portability fixes
11595         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
11596         (usage): Omit leading capital and trailing . on help phrases, per
11597         GNU Coding Standards.
11598         (check_versions, top level): Prefix messages with script name.
11599
11600 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
11601
11602         bootstrap: support --no-git option
11603         * build-aux/bootstrap: Add --no-git option, to be used when
11604         --gnulib-srcdir points to the exact desired checkout.
11605
11606 2011-01-21  Eric Blake  <eblake@redhat.com>
11607
11608         strerror_r-posix: work with glibc 2.13
11609         * lib/strerror_r.c (strerror_r): Fix return type.
11610
11611 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11612             Bruno Haible  <bruno@clisp.org>
11613
11614         uN_strstr: New unit tests.
11615         * modules/unistr/u8-strstr-tests: New file.
11616         * modules/unistr/u16-strstr-tests: New file.
11617         * modules/unistr/u32-strstr-tests: New file.
11618         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
11619         * tests/unistr/test-u8-strstr.c: New file.
11620         * tests/unistr/test-u16-strstr.c: New file.
11621         * tests/unistr/test-u32-strstr.c: New file.
11622
11623 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11624             Bruno Haible  <bruno@clisp.org>
11625
11626         Make uN_strstr functions O(n) worst-case.
11627         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
11628         16-bit and 32-bit unit cases, use the unibyte algorithm from
11629         lib/mbsstr.c.
11630         * lib/unistr/u8-strstr.c: Include <string.h>.
11631         (UNIT_IS_UINT8_T): New macro.
11632         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
11633         (U_STRLEN, U_STRNLEN): New macros.
11634         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
11635         (U_STRLEN, U_STRNLEN): New macros.
11636         * modules/unistr/u8-strstr (Depends-on): Add strstr.
11637         (configure.ac): Update required libunistring version.
11638         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
11639         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
11640         malloca.
11641         (configure.ac): Update required libunistring version.
11642         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
11643         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
11644         malloca.
11645         (configure.ac): Update required libunistring version.
11646
11647 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11648             Bruno Haible  <bruno@clisp.org>
11649
11650         Prepare for faster uN_strstr functions.
11651         * lib/str-kmp.h: Support definable UNITs.
11652         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
11653         needle_len argument.
11654         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
11655         * lib/mbscasestr.c (mbscasestr): Likewise.
11656
11657 2011-01-21  Pádraig Brady <P@draigBrady.com>
11658
11659         malloca-tests: make faster by unsetting MALLOC_PERTURB_
11660         * tests/test-malloca.c (main): Unset the environment variable
11661         to greatly speed up the test.
11662         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
11663         * modules/malloca-tests: Depend on unsetenv.
11664
11665 2011-01-21  Pádraig Brady <P@draigBrady.com>
11666
11667         ignore-value: remove stdint dependency
11668         * lib/ignore-value.h: Remove <stdint.h>
11669         * modules/ignore-value: Remove stdint dependency.
11670
11671 2011-01-21  Jim Meyering  <meyering@redhat.com>
11672
11673         maint.mk: adjust variable name to be consistent with other gl_ vars
11674         * top/maint.mk (gl_public_submodule_commit): Rename the variable
11675         to be lower case.
11676
11677 2011-01-20  Jim Meyering  <meyering@redhat.com>
11678
11679         maint.mk: make "check" depend on public-submodule-commit by default
11680         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
11681
11682 2011-01-20  Bruno Haible  <bruno@clisp.org>
11683
11684         mbfile, mbiter: Complete change from 2008-12-21.
11685         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
11686         * m4/mbiter.m4 (gl_MBITER): Likewise.
11687
11688 2011-01-20  Jim Meyering  <meyering@redhat.com>
11689
11690         init.sh: insert space between each function name and "()"
11691         * tests/init.sh: Make it a little easier to see that a function's
11692         name is "warn_", and not "warn" when looking at the first part of
11693         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
11694
11695 2011-01-20  Jim Meyering  <meyering@redhat.com>
11696
11697         mountlist: clean up code formatting
11698         * lib/mountlist.c (read_file_system_list): Split a long line,
11699         correct bracing style, use NULL in place of "(struct statfs *)0",
11700         don't parenthesize return value, add spaces around "=" and after
11701         ";-in-for-stmt".
11702
11703 2011-01-14  Markus Duft <mduft@gentoo.org>
11704
11705         mountlist: add support for Interix
11706         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
11707         Apply statvfs to all entries of /dev/fs.
11708         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
11709         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
11710
11711 2011-01-20  Jim Meyering  <meyering@redhat.com>
11712
11713         maint.mk: improve the public-submodule-commit rule
11714         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
11715         to suppress printing of its commands... unless V=1.
11716         Add git submodule's --quiet option to suppress printing of e.g.,
11717         "Entering gnulib" output.
11718         "cd" into $(srcdir) before running git submodule.
11719
11720 2011-01-20  Bruno Haible  <bruno@clisp.org>
11721
11722         include_next: Fix bug introduced on 2011-01-18.
11723         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
11724         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
11725         ac_cv_header_... variable if the second argument is not 'check'.
11726         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
11727         gl_NEXT_HEADERS_INTERNAL.
11728
11729 2011-01-20  Bruno Haible  <bruno@clisp.org>
11730
11731         Allow the user to avoid the GNULIB_TEST_* macros.
11732         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
11733         Suggested by Paul Eggert.
11734
11735 2011-01-14  Jim Meyering  <meyering@redhat.com>
11736
11737         bootstrap: avoid failure when there is no .gitmodules file
11738         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
11739         has been assigned to, even when its value is the empty string.
11740         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
11741         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
11742         Reported by John W. Eaton <jwe@gnu.org>.
11743
11744 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
11745
11746         assume <ctype.h>, ..., <time.h> exist
11747         For years gnulib has been assuming the existence of the headers
11748         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
11749         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
11750         them, since they don't appear to be needed.
11751         * README (Portability guidelines): Document this.
11752         * lib/flock.c: Assume <fcntl.h> exists.
11753         * lib/regex_internal.h: Assume <locale.h> exists.
11754         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
11755         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
11756         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
11757         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
11758         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
11759         * m4/regex.m4 (gl_REGEX): Likewise.
11760         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
11761         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
11762         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
11763         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
11764         * tests/test-argp.c: Likewise.
11765         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
11766
11767         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
11768         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
11769         AA_APPLE_UNIVERSAL_BUILD.  See
11770         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
11771         * NEWS: Document this.
11772
11773 2011-01-19  Eric Blake  <eblake@redhat.com>
11774
11775         c-stack: assume stack overflow if SA_SIGINFO unsupported
11776         * lib/c-stack.c (SIGACTION_WORKS): Rename...
11777         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
11778         sigaction will work.
11779         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
11780         behavior match Linux.
11781         * tests/test-c-stack.c (main): Prefer NULL for pointers.
11782
11783         stdbool-tests: accomodate Haiku
11784         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
11785
11786         binary-io: fix O_TEXT on Haiku
11787         * modules/binary-io (Depends-on): Add fcntl-h.
11788         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
11789         than blindly undefining O_TEXT.
11790         Reported by Scott McCreary.
11791
11792 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
11793
11794         include_next: do not check for standard headers like stddef.h
11795
11796         I found this problem when modifying Emacs to use gnulib.
11797         I noticed that it added HAVE_STDDEF_H to config.h, even though
11798         gnulib always assumes <stddef.h> exists as per README and this
11799         symbol is unnecessary.
11800         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
11801         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
11802         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
11803         faster for headers like stddef.h that are known to exist.
11804         (gl_CHECK_NEXT_HEADERS): Use it.
11805         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
11806         rather than gl_CHECK_NEXT_HEADERS.
11807         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
11808         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
11809
11810 2011-01-18  Eric Blake  <eblake@redhat.com>
11811
11812         ansi-c++-opt: skip C++ dependency style if C++ is unused
11813         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
11814         tests when we know C++ compilation is not desired.
11815         Reported by Scott McCreary.
11816
11817 2011-01-18  Bruno Haible  <bruno@clisp.org>
11818
11819         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
11820         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
11821         (main): Perform test also when getrlimit and setrlimit don't exist or
11822         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
11823         limiting the address space size using setrlimit, compare the address
11824         space size before and after the the test.
11825         * tests/test-dprintf-posix2.c: Likewise.
11826         * tests/test-fprintf-posix3.sh: Update skip messages.
11827         * tests/test-dprintf-posix2.sh: Likewise.
11828         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
11829         * modules/dprintf-posix-tests (Depends-on): Likewise.
11830         Reported by Bruce Korb <bkorb@gnu.org> and
11831         Gary V. Vaughan <gary@gnu.org>.
11832
11833 2011-01-18  Bruno Haible  <bruno@clisp.org>
11834
11835         get-rusage-as: Improvement for Cygwin.
11836         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
11837         areas that are merely reserved.
11838
11839 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
11840
11841         strftime: remove dependencies on multibyte modules
11842
11843         strftime depended on mbrlen, mbsinit, and wchar, but these modules
11844         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
11845         only if __osf__ is defined, and I suspect OSF doesn't need these
11846         other modules.  If my guess is wrong, we'll need to come up with a
11847         variant of strftime that doesn't need the multibyte modules.
11848
11849         I discovered this problem when attempting modify Emacs to use the
11850         strftime module.  With the previous gnulib, this caused Emacs to
11851         need 31 new files, ranging from lib/config.charset to
11852         m4/wint_t.m4.  This was overkill and I expect would be offputting
11853         to the Emacs maintainers.  After this change, only 6 new files are
11854         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
11855         stdbool.m4, and tm_gmtoff.m4.
11856
11857         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
11858         Suggested by Bruno Haible in
11859         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
11860         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
11861         and do not check for wchar.h.
11862         * modules/strftime (Files): Remove m4/mbstate_t.m4.
11863         (Depends-on): Remove mbrlen, mbsinit, wchar.
11864
11865 2011-01-18  Bruno Haible  <bruno@clisp.org>
11866
11867         Tests for module 'get-rusage-as'.
11868         * modules/get-rusage-as-tests: New file.
11869         * tests/test-get-rusage-as.c: New file.
11870
11871         New module 'get-rusage-as'.
11872         * modules/get-rusage-as: New file.
11873         * lib/resource-ext.h: New file.
11874         * lib/get-rusage-as.c: New file.
11875
11876 2011-01-17  Eric Blake  <eblake@redhat.com>
11877
11878         sigaction: relax license from LGPLv3+ to LGPLv2+
11879         * modules/sigaction (License): Relax to LGPLv2+.
11880
11881 2011-01-14  Bruno Haible  <bruno@clisp.org>
11882
11883         filemode: Make function declarations usable in C++ mode.
11884         * lib/filemode.h: Enclose function declarations in extern "C" block.
11885         Reported by John W. Eaton <jwe@gnu.org>.
11886
11887 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
11888
11889         save-cwd: no longer include "xgetcwd.h"
11890         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
11891         This avoids a compilation failure in projects that use save-cwd
11892         without also using the xgetcwd module.
11893
11894 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
11895
11896         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
11897         This is so that a program like Emacs, which needs only dtoastr,
11898         does not have to bother with distributing and compiling ftoastr
11899         and ldtoastr.
11900         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
11901         * modules/dtoastr, modules/ldtoastr: New files.
11902         * modules/ftoastr: Now works just for 'float'.
11903         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
11904         (Makefile.am): Remove ftoastr.h (not needed and no effect),
11905         dtoastr.c, ldtoastr.c.
11906
11907 2011-01-11  Jim Meyering  <meyering@redhat.com>
11908
11909         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
11910         There is no need to work around the lack of the fchdir function,
11911         since gnulib can now provide a replacement when required.
11912         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
11913         * modules/save-cwd (Depends-on): Add fchdir.
11914
11915 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
11916
11917         openat, save-cwd: avoid xmalloc
11918
11919         This removes a direct (but undocumented) dependency of openat on
11920         xalloc, along with an indirect dependency via save-cwd.  It also
11921         removes a dependency of save-cwd on xgetcwd, and thereby
11922         indirectly on xalloc.  This change causes the openat substitute
11923         to fall back on save_cwd when memory is tight, and for save_cwd to
11924         fail instead of dying when memory is tight, but that's good enough.
11925         Problem and initial idea for fix reported by Bastien Roucaries in
11926         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
11927
11928         * lib/openat-proc.c: Include stdlib.h (for malloc), not
11929         xalloc.h (for xmalloc).
11930         (openat_proc_name): Use malloc, not xmalloc.
11931         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
11932         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
11933
11934         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
11935         This avoids heap allocation for file names whose lengths are in
11936         the range 512..1023, with the upper bound increasing to at most
11937         4031 depending on the platform's PATH_MAX.  (We do not want
11938         pathmax.h here as it might supply a non-constant PATH_MAX.)
11939         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
11940         Perhaps they should be moved to malloca.h?
11941         (OPENAT_BUFFER_SIZE): Use them.
11942
11943 2011-01-10  Bruno Haible  <bruno@clisp.org>
11944
11945         doc: Update users.txt.
11946         * users.txt: Add recutils.
11947
11948 2011-01-09  Karl Berry  <karl@gnu.org>
11949
11950         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
11951
11952         * doc/configmake.texi: New file.
11953         * doc/gnulib.texi: Include it.
11954         * modules/configmake: Move documentation from here.
11955
11956 2011-01-09  Bruno Haible  <bruno@clisp.org>
11957
11958         Update to Unicode 6.0.0.
11959         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
11960         (get_lbp): Update for Unicode 6.0.0.
11961         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
11962         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
11963         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
11964         U+11001, U+11038..U+11046. Remove U+06DE.
11965         (uc_width): Fix bounds of planes.
11966         * tests/uniwidth/test-uc_width2.sh: Same updates as in
11967         lib/uniwidth/width.c.
11968         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
11969         trailing whitespace removed.
11970         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
11971         without comments, but with the original copyright notice.
11972         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
11973         * lib/unicase/ignorable.h: Likewise.
11974         * lib/unicase/tocasefold.h: Likewise.
11975         * lib/unicase/tolower.h: Likewise.
11976         * lib/unicase/totitle.h: Likewise.
11977         * lib/unicase/toupper.h: Likewise.
11978         * lib/unictype/bidi_of.h: Likewise.
11979         * lib/unictype/blocks.h: Likewise.
11980         * lib/unictype/categ_C.h: Likewise.
11981         * lib/unictype/categ_Cn.h: Likewise.
11982         * lib/unictype/categ_L.h: Likewise.
11983         * lib/unictype/categ_Ll.h: Likewise.
11984         * lib/unictype/categ_Lm.h: Likewise.
11985         * lib/unictype/categ_Lo.h: Likewise.
11986         * lib/unictype/categ_Lu.h: Likewise.
11987         * lib/unictype/categ_M.h: Likewise.
11988         * lib/unictype/categ_Mc.h: Likewise.
11989         * lib/unictype/categ_Me.h: Likewise.
11990         * lib/unictype/categ_Mn.h: Likewise.
11991         * lib/unictype/categ_N.h: Likewise.
11992         * lib/unictype/categ_Nd.h: Likewise.
11993         * lib/unictype/categ_No.h: Likewise.
11994         * lib/unictype/categ_P.h: Likewise.
11995         * lib/unictype/categ_Po.h: Likewise.
11996         * lib/unictype/categ_S.h: Likewise.
11997         * lib/unictype/categ_Sc.h: Likewise.
11998         * lib/unictype/categ_Sk.h: Likewise.
11999         * lib/unictype/categ_Sm.h: Likewise.
12000         * lib/unictype/categ_So.h: Likewise.
12001         * lib/unictype/categ_of.h: Likewise.
12002         * lib/unictype/combining.h: Likewise.
12003         * lib/unictype/ctype_alnum.h: Likewise.
12004         * lib/unictype/ctype_alpha.h: Likewise.
12005         * lib/unictype/ctype_graph.h: Likewise.
12006         * lib/unictype/ctype_lower.h: Likewise.
12007         * lib/unictype/ctype_print.h: Likewise.
12008         * lib/unictype/ctype_punct.h: Likewise.
12009         * lib/unictype/ctype_upper.h: Likewise.
12010         * lib/unictype/decdigit.h: Likewise.
12011         * lib/unictype/digit.h: Likewise.
12012         * lib/unictype/numeric.h: Likewise.
12013         * lib/unictype/pr_alphabetic.h: Likewise.
12014         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
12015         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
12016         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
12017         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
12018         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
12019         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
12020         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
12021         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
12022         * lib/unictype/pr_case_ignorable.h: Likewise.
12023         * lib/unictype/pr_cased.h: Likewise.
12024         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
12025         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
12026         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
12027         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
12028         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
12029         * lib/unictype/pr_combining.h: Likewise.
12030         * lib/unictype/pr_composite.h: Likewise.
12031         * lib/unictype/pr_currency_symbol.h: Likewise.
12032         * lib/unictype/pr_decimal_digit.h: Likewise.
12033         * lib/unictype/pr_deprecated.h: Likewise.
12034         * lib/unictype/pr_format_control.h: Likewise.
12035         * lib/unictype/pr_grapheme_base.h: Likewise.
12036         * lib/unictype/pr_grapheme_extend.h: Likewise.
12037         * lib/unictype/pr_grapheme_link.h: Likewise.
12038         * lib/unictype/pr_id_continue.h: Likewise.
12039         * lib/unictype/pr_id_start.h: Likewise.
12040         * lib/unictype/pr_ideographic.h: Likewise.
12041         * lib/unictype/pr_lowercase.h: Likewise.
12042         * lib/unictype/pr_math.h: Likewise.
12043         * lib/unictype/pr_numeric.h: Likewise.
12044         * lib/unictype/pr_other_alphabetic.h: Likewise.
12045         * lib/unictype/pr_other_id_continue.h: Likewise.
12046         * lib/unictype/pr_other_math.h: Likewise.
12047         * lib/unictype/pr_punctuation.h: Likewise.
12048         * lib/unictype/pr_sentence_terminal.h: Likewise.
12049         * lib/unictype/pr_terminal_punctuation.h: Likewise.
12050         * lib/unictype/pr_unassigned_code_value.h: Likewise.
12051         * lib/unictype/pr_unified_ideograph.h: Likewise.
12052         * lib/unictype/pr_uppercase.h: Likewise.
12053         * lib/unictype/pr_xid_continue.h: Likewise.
12054         * lib/unictype/pr_xid_start.h: Likewise.
12055         * lib/unictype/scripts.h: Likewise.
12056         * lib/unictype/scripts_byname.gperf: Likewise.
12057         * lib/unictype/sy_java_ident.h: Likewise.
12058         * lib/unigbrk/gbrkprop.h: Likewise.
12059         * lib/unilbrk/lbrkprop1.h: Likewise.
12060         * lib/unilbrk/lbrkprop2.h: Likewise.
12061         * lib/uninorm/decomposition-table2.h: Likewise.
12062         * lib/uniwbrk/wbrkprop.h: Likewise.
12063         * tests/unicase/test-cased.c: Likewise.
12064         * tests/unicase/test-ignorable.c: Likewise.
12065         * tests/unicase/test-uc_tolower.c: Likewise.
12066         * tests/unicase/test-uc_totitle.c: Likewise.
12067         * tests/unicase/test-uc_toupper.c: Likewise.
12068         * tests/unictype/test-categ_C.c: Likewise.
12069         * tests/unictype/test-categ_Cn.c: Likewise.
12070         * tests/unictype/test-categ_L.c: Likewise.
12071         * tests/unictype/test-categ_Ll.c: Likewise.
12072         * tests/unictype/test-categ_Lm.c: Likewise.
12073         * tests/unictype/test-categ_Lo.c: Likewise.
12074         * tests/unictype/test-categ_Lu.c: Likewise.
12075         * tests/unictype/test-categ_M.c: Likewise.
12076         * tests/unictype/test-categ_Mc.c: Likewise.
12077         * tests/unictype/test-categ_Me.c: Likewise.
12078         * tests/unictype/test-categ_Mn.c: Likewise.
12079         * tests/unictype/test-categ_N.c: Likewise.
12080         * tests/unictype/test-categ_Nd.c: Likewise.
12081         * tests/unictype/test-categ_No.c: Likewise.
12082         * tests/unictype/test-categ_P.c: Likewise.
12083         * tests/unictype/test-categ_Po.c: Likewise.
12084         * tests/unictype/test-categ_S.c: Likewise.
12085         * tests/unictype/test-categ_Sc.c: Likewise.
12086         * tests/unictype/test-categ_Sk.c: Likewise.
12087         * tests/unictype/test-categ_Sm.c: Likewise.
12088         * tests/unictype/test-categ_So.c: Likewise.
12089         * tests/unictype/test-ctype_alnum.c: Likewise.
12090         * tests/unictype/test-ctype_alpha.c: Likewise.
12091         * tests/unictype/test-ctype_graph.c: Likewise.
12092         * tests/unictype/test-ctype_lower.c: Likewise.
12093         * tests/unictype/test-ctype_print.c: Likewise.
12094         * tests/unictype/test-ctype_punct.c: Likewise.
12095         * tests/unictype/test-ctype_upper.c: Likewise.
12096         * tests/unictype/test-decdigit.h: Likewise.
12097         * tests/unictype/test-digit.h: Likewise.
12098         * tests/unictype/test-numeric.h: Likewise.
12099         * tests/unictype/test-pr_alphabetic.c: Likewise.
12100         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
12101         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
12102         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
12103         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
12104         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
12105         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
12106         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
12107         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
12108         * tests/unictype/test-pr_case_ignorable.c: Likewise.
12109         * tests/unictype/test-pr_cased.c: Likewise.
12110         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
12111         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
12112         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
12113         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
12114         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
12115         * tests/unictype/test-pr_combining.c: Likewise.
12116         * tests/unictype/test-pr_composite.c: Likewise.
12117         * tests/unictype/test-pr_currency_symbol.c: Likewise.
12118         * tests/unictype/test-pr_decimal_digit.c: Likewise.
12119         * tests/unictype/test-pr_deprecated.c: Likewise.
12120         * tests/unictype/test-pr_format_control.c: Likewise.
12121         * tests/unictype/test-pr_grapheme_base.c: Likewise.
12122         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
12123         * tests/unictype/test-pr_grapheme_link.c: Likewise.
12124         * tests/unictype/test-pr_id_continue.c: Likewise.
12125         * tests/unictype/test-pr_id_start.c: Likewise.
12126         * tests/unictype/test-pr_ideographic.c: Likewise.
12127         * tests/unictype/test-pr_lowercase.c: Likewise.
12128         * tests/unictype/test-pr_math.c: Likewise.
12129         * tests/unictype/test-pr_numeric.c: Likewise.
12130         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
12131         * tests/unictype/test-pr_other_id_continue.c: Likewise.
12132         * tests/unictype/test-pr_other_math.c: Likewise.
12133         * tests/unictype/test-pr_punctuation.c: Likewise.
12134         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
12135         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
12136         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
12137         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
12138         * tests/unictype/test-pr_uppercase.c: Likewise.
12139         * tests/unictype/test-pr_xid_continue.c: Likewise.
12140         * tests/unictype/test-pr_xid_start.c: Likewise.
12141         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
12142         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
12143         changes.
12144         * lib/unictype/categ_Cc.h: Likewise.
12145         * lib/unictype/categ_Cf.h: Likewise.
12146         * lib/unictype/categ_Co.h: Likewise.
12147         * lib/unictype/categ_Cs.h: Likewise.
12148         * lib/unictype/categ_Lt.h: Likewise.
12149         * lib/unictype/categ_Nl.h: Likewise.
12150         * lib/unictype/categ_Pc.h: Likewise.
12151         * lib/unictype/categ_Pd.h: Likewise.
12152         * lib/unictype/categ_Pe.h: Likewise.
12153         * lib/unictype/categ_Pf.h: Likewise.
12154         * lib/unictype/categ_Pi.h: Likewise.
12155         * lib/unictype/categ_Ps.h: Likewise.
12156         * lib/unictype/categ_Z.h: Likewise.
12157         * lib/unictype/categ_Zl.h: Likewise.
12158         * lib/unictype/categ_Zp.h: Likewise.
12159         * lib/unictype/categ_Zs.h: Likewise.
12160         * lib/unictype/ctype_blank.h: Likewise.
12161         * lib/unictype/ctype_cntrl.h: Likewise.
12162         * lib/unictype/ctype_digit.h: Likewise.
12163         * lib/unictype/ctype_space.h: Likewise.
12164         * lib/unictype/ctype_xdigit.h: Likewise.
12165         * lib/unictype/mirror.h: Likewise.
12166         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
12167         * lib/unictype/pr_bidi_block_separator.h: Likewise.
12168         * lib/unictype/pr_bidi_common_separator.h: Likewise.
12169         * lib/unictype/pr_bidi_control.h: Likewise.
12170         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
12171         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
12172         * lib/unictype/pr_bidi_european_digit.h: Likewise.
12173         * lib/unictype/pr_bidi_pdf.h: Likewise.
12174         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
12175         * lib/unictype/pr_bidi_whitespace.h: Likewise.
12176         * lib/unictype/pr_dash.h: Likewise.
12177         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
12178         * lib/unictype/pr_diacritic.h: Likewise.
12179         * lib/unictype/pr_extender.h: Likewise.
12180         * lib/unictype/pr_hex_digit.h: Likewise.
12181         * lib/unictype/pr_hyphen.h: Likewise.
12182         * lib/unictype/pr_ids_binary_operator.h: Likewise.
12183         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
12184         * lib/unictype/pr_ignorable_control.h: Likewise.
12185         * lib/unictype/pr_iso_control.h: Likewise.
12186         * lib/unictype/pr_join_control.h: Likewise.
12187         * lib/unictype/pr_left_of_pair.h: Likewise.
12188         * lib/unictype/pr_line_separator.h: Likewise.
12189         * lib/unictype/pr_logical_order_exception.h: Likewise.
12190         * lib/unictype/pr_non_break.h: Likewise.
12191         * lib/unictype/pr_not_a_character.h: Likewise.
12192         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
12193         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
12194         * lib/unictype/pr_other_id_start.h: Likewise.
12195         * lib/unictype/pr_other_lowercase.h: Likewise.
12196         * lib/unictype/pr_other_uppercase.h: Likewise.
12197         * lib/unictype/pr_paired_punctuation.h: Likewise.
12198         * lib/unictype/pr_paragraph_separator.h: Likewise.
12199         * lib/unictype/pr_pattern_syntax.h: Likewise.
12200         * lib/unictype/pr_pattern_white_space.h: Likewise.
12201         * lib/unictype/pr_private_use.h: Likewise.
12202         * lib/unictype/pr_quotation_mark.h: Likewise.
12203         * lib/unictype/pr_radical.h: Likewise.
12204         * lib/unictype/pr_soft_dotted.h: Likewise.
12205         * lib/unictype/pr_space.h: Likewise.
12206         * lib/unictype/pr_titlecase.h: Likewise.
12207         * lib/unictype/pr_variation_selector.h: Likewise.
12208         * lib/unictype/pr_white_space.h: Likewise.
12209         * lib/unictype/pr_zero_width.h: Likewise.
12210         * lib/unictype/sy_c_ident.h: Likewise.
12211         * lib/unictype/sy_c_whitespace.h: Likewise.
12212         * lib/unictype/sy_java_whitespace.h: Likewise.
12213         * lib/uninorm/composition-table.gperf: Likewise.
12214         * lib/uninorm/decomposition-table1.h: Likewise.
12215         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
12216         LB8.
12217         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12218         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12219         * modules/unictype/*: Bump version number of expected libunistring
12220         version.
12221
12222 2011-01-09  Bruno Haible  <bruno@clisp.org>
12223
12224         Update to Unicode 5.2.0.
12225         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
12226         trailing whitespace removed.
12227
12228 2011-01-09  Bruno Haible  <bruno@clisp.org>
12229
12230         New Unicode character properties, from Unicode 5.2.0.
12231         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
12232         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
12233         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
12234         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
12235         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
12236         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
12237         uc_is_property_cased, uc_is_property_case_ignorable,
12238         uc_is_property_changes_when_lowercased,
12239         uc_is_property_changes_when_uppercased,
12240         uc_is_property_changes_when_titlecased,
12241         uc_is_property_changes_when_casefolded,
12242         uc_is_property_changes_when_casemapped): New declarations.
12243         * lib/unictype/pr_byname.gperf: Add the new properties.
12244         * modules/unictype/property-byname (Depends-on): Depend on the new
12245         properties modules.
12246         * modules/unictype/property-all (Depends-on): Likewise.
12247         * MODULES.html.sh (Unicode string functions): Add
12248         unictype/property-case-ignorable, unictype/property-cased,
12249         unictype/property-changes-when-casefolded,
12250         unictype/property-changes-when-casemapped,
12251         unictype/property-changes-when-lowercased,
12252         unictype/property-changes-when-titlecased,
12253         unictype/property-changes-when-uppercased.
12254
12255         New module 'unictype/property-changes-when-casemapped'.
12256         * modules/unictype/property-changes-when-casemapped: New file.
12257         * lib/unictype/pr_changes_when_casemapped.c: New file.
12258         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
12259         generated by gen-uni-tables.
12260         * modules/unictype/property-changes-when-casemapped-tests: New file.
12261         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
12262         automatically generated by gen-uni-tables.
12263
12264         New module 'unictype/property-changes-when-casefolded'.
12265         * modules/unictype/property-changes-when-casefolded: New file.
12266         * lib/unictype/pr_changes_when_casefolded.c: New file.
12267         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
12268         generated by gen-uni-tables.
12269         * modules/unictype/property-changes-when-casefolded-tests: New file.
12270         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
12271         automatically generated by gen-uni-tables.
12272
12273         New module 'unictype/property-changes-when-titlecased'.
12274         * modules/unictype/property-changes-when-titlecased: New file.
12275         * lib/unictype/pr_changes_when_titlecased.c: New file.
12276         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
12277         generated by gen-uni-tables.
12278         * modules/unictype/property-changes-when-titlecased-tests: New file.
12279         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
12280         automatically generated by gen-uni-tables.
12281
12282         New module 'unictype/property-changes-when-uppercased'.
12283         * modules/unictype/property-changes-when-uppercased: New file.
12284         * lib/unictype/pr_changes_when_uppercased.c: New file.
12285         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
12286         generated by gen-uni-tables.
12287         * modules/unictype/property-changes-when-uppercased-tests: New file.
12288         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
12289         automatically generated by gen-uni-tables.
12290
12291         New module 'unictype/property-changes-when-lowercased'.
12292         * modules/unictype/property-changes-when-lowercased: New file.
12293         * lib/unictype/pr_changes_when_lowercased.c: New file.
12294         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
12295         generated by gen-uni-tables.
12296         * modules/unictype/property-changes-when-lowercased-tests: New file.
12297         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
12298         automatically generated by gen-uni-tables.
12299
12300         New module 'unictype/property-case-ignorable'.
12301         * modules/unictype/property-case-ignorable: New file.
12302         * lib/unictype/pr_case_ignorable.c: New file.
12303         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
12304         by gen-uni-tables.
12305         * modules/unictype/property-case-ignorable-tests: New file.
12306         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
12307         generated by gen-uni-tables.
12308
12309         New module 'unictype/property-cased'.
12310         * modules/unictype/property-cased: New file.
12311         * lib/unictype/pr_cased.c: New file.
12312         * lib/unictype/pr_cased.h: New file, automatically generated by
12313         gen-uni-tables.
12314         * modules/unictype/property-cased-tests: New file.
12315         * tests/unictype/test-pr_cased.c: New file, automatically generated by
12316         gen-uni-tables.
12317
12318 2011-01-09  Bruno Haible  <bruno@clisp.org>
12319
12320         Update to Unicode 5.2.0.
12321         * lib/gen-uni-tables.c (output_predicate, output_category,
12322         output_combclass, output_bidi_category, output_decimal_digit_test,
12323         output_decimal_digit, output_digit_test, output_digit,
12324         output_numeric_test, output_numeric, output_mirror, output_scripts,
12325         output_scripts_byname, output_blocks, output_ident_category): Fix
12326         comment header.
12327         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
12328         get_wbp.
12329         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
12330         items.
12331         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
12332         Changes_When_Lowercased, Changes_When_Uppercased,
12333         Changes_When_Titlecased, Changes_When_Casefolded,
12334         Changes_When_Casemapped.
12335         (is_property_alphabetic, is_property_default_ignorable_code_point):
12336         Update for Unicode 5.2.0.
12337         (is_property_cased, is_property_case_ignorable,
12338         is_property_changes_when_lowercased,
12339         is_property_changes_when_uppercased,
12340         is_property_changes_when_titlecased,
12341         is_property_changes_when_casefolded,
12342         is_property_changes_when_casemapped): New functions.
12343         (output_properties): Output also the properties cased, case_ignorable,
12344         changes_when_lowercased, changes_when_uppercased,
12345         changes_when_titlecased, changes_when_casefolded,
12346         changes_when_casemapped.
12347         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
12348         Unicode TR#11 revision 17 -> 19.
12349         (LBP_CP): New enumeration value.
12350         (LBP_*): Adjust values accordingly.
12351         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
12352         TR#14 revision 22 -> 24.
12353         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
12354         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
12355         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
12356         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
12357         is_WBP_MIDLETTER.
12358         (output_composition_tables): Allow for 24 bits instead of 16 bits in
12359         the code1 and code2 of each composition rule.
12360         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
12361         * lib/unicase/ignorable.h: Likewise.
12362         * lib/unicase/tocasefold.h: Likewise.
12363         * lib/unicase/tolower.h: Likewise.
12364         * lib/unicase/totitle.h: Likewise.
12365         * lib/unicase/toupper.h: Likewise.
12366         * lib/unictype/bidi_of.h: Likewise.
12367         * lib/unictype/blocks.h: Likewise.
12368         * lib/unictype/categ_C.h: Likewise.
12369         * lib/unictype/categ_Cf.h: Likewise.
12370         * lib/unictype/categ_Cn.h: Likewise.
12371         * lib/unictype/categ_L.h: Likewise.
12372         * lib/unictype/categ_Ll.h: Likewise.
12373         * lib/unictype/categ_Lm.h: Likewise.
12374         * lib/unictype/categ_Lo.h: Likewise.
12375         * lib/unictype/categ_Lu.h: Likewise.
12376         * lib/unictype/categ_M.h: Likewise.
12377         * lib/unictype/categ_Mc.h: Likewise.
12378         * lib/unictype/categ_Mn.h: Likewise.
12379         * lib/unictype/categ_N.h: Likewise.
12380         * lib/unictype/categ_Nd.h: Likewise.
12381         * lib/unictype/categ_Nl.h: Likewise.
12382         * lib/unictype/categ_No.h: Likewise.
12383         * lib/unictype/categ_P.h: Likewise.
12384         * lib/unictype/categ_Pd.h: Likewise.
12385         * lib/unictype/categ_Po.h: Likewise.
12386         * lib/unictype/categ_S.h: Likewise.
12387         * lib/unictype/categ_Sc.h: Likewise.
12388         * lib/unictype/categ_So.h: Likewise.
12389         * lib/unictype/categ_of.h: Likewise.
12390         * lib/unictype/combining.h: Likewise.
12391         * lib/unictype/ctype_alnum.h: Likewise.
12392         * lib/unictype/ctype_alpha.h: Likewise.
12393         * lib/unictype/ctype_graph.h: Likewise.
12394         * lib/unictype/ctype_lower.h: Likewise.
12395         * lib/unictype/ctype_print.h: Likewise.
12396         * lib/unictype/ctype_punct.h: Likewise.
12397         * lib/unictype/ctype_upper.h: Likewise.
12398         * lib/unictype/decdigit.h: Likewise.
12399         * lib/unictype/digit.h: Likewise.
12400         * lib/unictype/numeric.h: Likewise.
12401         * lib/unictype/pr_alphabetic.h: Likewise.
12402         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
12403         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
12404         * lib/unictype/pr_bidi_european_digit.h: Likewise.
12405         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
12406         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
12407         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
12408         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
12409         * lib/unictype/pr_combining.h: Likewise.
12410         * lib/unictype/pr_composite.h: Likewise.
12411         * lib/unictype/pr_currency_symbol.h: Likewise.
12412         * lib/unictype/pr_dash.h: Likewise.
12413         * lib/unictype/pr_decimal_digit.h: Likewise.
12414         * lib/unictype/pr_deprecated.h: Likewise.
12415         * lib/unictype/pr_diacritic.h: Likewise.
12416         * lib/unictype/pr_extender.h: Likewise.
12417         * lib/unictype/pr_grapheme_base.h: Likewise.
12418         * lib/unictype/pr_grapheme_extend.h: Likewise.
12419         * lib/unictype/pr_grapheme_link.h: Likewise.
12420         * lib/unictype/pr_id_continue.h: Likewise.
12421         * lib/unictype/pr_id_start.h: Likewise.
12422         * lib/unictype/pr_ideographic.h: Likewise.
12423         * lib/unictype/pr_ignorable_control.h: Likewise.
12424         * lib/unictype/pr_logical_order_exception.h: Likewise.
12425         * lib/unictype/pr_lowercase.h: Likewise.
12426         * lib/unictype/pr_numeric.h: Likewise.
12427         * lib/unictype/pr_other_alphabetic.h: Likewise.
12428         * lib/unictype/pr_punctuation.h: Likewise.
12429         * lib/unictype/pr_sentence_terminal.h: Likewise.
12430         * lib/unictype/pr_terminal_punctuation.h: Likewise.
12431         * lib/unictype/pr_unassigned_code_value.h: Likewise.
12432         * lib/unictype/pr_unified_ideograph.h: Likewise.
12433         * lib/unictype/pr_uppercase.h: Likewise.
12434         * lib/unictype/pr_xid_continue.h: Likewise.
12435         * lib/unictype/pr_xid_start.h: Likewise.
12436         * lib/unictype/pr_zero_width.h: Likewise.
12437         * lib/unictype/scripts.h: Likewise.
12438         * lib/unictype/scripts_byname.gperf: Likewise.
12439         * lib/unictype/sy_java_ident.h: Likewise.
12440         * lib/unigbrk/gbrkprop.h: Likewise.
12441         * lib/unilbrk/lbrkprop1.h: Likewise.
12442         * lib/unilbrk/lbrkprop2.h: Likewise.
12443         * lib/unilbrk/lbrktables.h: Likewise.
12444         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
12445         LBP_CP. Implement rule LB30.
12446         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
12447         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
12448         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
12449         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
12450         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
12451         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
12452         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
12453         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
12454         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
12455         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
12456         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
12457         bits instead of 16 bits in the code1 and code2 of each composition
12458         rule.
12459         (uc_composition): Update for Unicode 5.2.0.
12460         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
12461         * lib/uninorm/decomposition-table2.h: Likewise.
12462         * lib/uniwbrk/wbrkprop.h: Likewise.
12463         * tests/unicase/test-cased.c: Likewise.
12464         * tests/unicase/test-ignorable.c: Likewise.
12465         * tests/unicase/test-uc_tolower.c: Likewise.
12466         * tests/unicase/test-uc_totitle.c: Likewise.
12467         * tests/unicase/test-uc_toupper.c: Likewise.
12468         * tests/unictype/test-categ_C.c: Likewise.
12469         * tests/unictype/test-categ_Cf.c: Likewise.
12470         * tests/unictype/test-categ_Cn.c: Likewise.
12471         * tests/unictype/test-categ_L.c: Likewise.
12472         * tests/unictype/test-categ_Ll.c: Likewise.
12473         * tests/unictype/test-categ_Lm.c: Likewise.
12474         * tests/unictype/test-categ_Lo.c: Likewise.
12475         * tests/unictype/test-categ_Lu.c: Likewise.
12476         * tests/unictype/test-categ_M.c: Likewise.
12477         * tests/unictype/test-categ_Mc.c: Likewise.
12478         * tests/unictype/test-categ_Mn.c: Likewise.
12479         * tests/unictype/test-categ_N.c: Likewise.
12480         * tests/unictype/test-categ_Nd.c: Likewise.
12481         * tests/unictype/test-categ_Nl.c: Likewise.
12482         * tests/unictype/test-categ_No.c: Likewise.
12483         * tests/unictype/test-categ_P.c: Likewise.
12484         * tests/unictype/test-categ_Pd.c: Likewise.
12485         * tests/unictype/test-categ_Po.c: Likewise.
12486         * tests/unictype/test-categ_S.c: Likewise.
12487         * tests/unictype/test-categ_Sc.c: Likewise.
12488         * tests/unictype/test-categ_So.c: Likewise.
12489         * tests/unictype/test-ctype_alnum.c: Likewise.
12490         * tests/unictype/test-ctype_alpha.c: Likewise.
12491         * tests/unictype/test-ctype_graph.c: Likewise.
12492         * tests/unictype/test-ctype_lower.c: Likewise.
12493         * tests/unictype/test-ctype_print.c: Likewise.
12494         * tests/unictype/test-ctype_punct.c: Likewise.
12495         * tests/unictype/test-ctype_upper.c: Likewise.
12496         * tests/unictype/test-decdigit.h: Likewise.
12497         * tests/unictype/test-digit.h: Likewise.
12498         * tests/unictype/test-numeric.h: Likewise.
12499         * tests/unictype/test-pr_alphabetic.c: Likewise.
12500         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
12501         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
12502         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
12503         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
12504         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
12505         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
12506         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
12507         * tests/unictype/test-pr_combining.c: Likewise.
12508         * tests/unictype/test-pr_composite.c: Likewise.
12509         * tests/unictype/test-pr_currency_symbol.c: Likewise.
12510         * tests/unictype/test-pr_dash.c: Likewise.
12511         * tests/unictype/test-pr_decimal_digit.c: Likewise.
12512         * tests/unictype/test-pr_deprecated.c: Likewise.
12513         * tests/unictype/test-pr_diacritic.c: Likewise.
12514         * tests/unictype/test-pr_extender.c: Likewise.
12515         * tests/unictype/test-pr_grapheme_base.c: Likewise.
12516         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
12517         * tests/unictype/test-pr_grapheme_link.c: Likewise.
12518         * tests/unictype/test-pr_id_continue.c: Likewise.
12519         * tests/unictype/test-pr_id_start.c: Likewise.
12520         * tests/unictype/test-pr_ideographic.c: Likewise.
12521         * tests/unictype/test-pr_ignorable_control.c: Likewise.
12522         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
12523         * tests/unictype/test-pr_lowercase.c: Likewise.
12524         * tests/unictype/test-pr_numeric.c: Likewise.
12525         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
12526         * tests/unictype/test-pr_punctuation.c: Likewise.
12527         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
12528         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
12529         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
12530         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
12531         * tests/unictype/test-pr_uppercase.c: Likewise.
12532         * tests/unictype/test-pr_xid_continue.c: Likewise.
12533         * tests/unictype/test-pr_xid_start.c: Likewise.
12534         * tests/unictype/test-pr_zero_width.c: Likewise.
12535         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
12536         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
12537         changed behaviour: line breaking is now disallowed between a letter
12538         or '=' and '('.
12539         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12540         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12541         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
12542         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
12543         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12544         lib/uniwidth/width.c.
12545         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
12546         without comments, but with the original copyright notice.
12547         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
12548         changes.
12549         * lib/unictype/categ_Cc.h: Likewise.
12550         * lib/unictype/categ_Co.h: Likewise.
12551         * lib/unictype/categ_Cs.h: Likewise.
12552         * lib/unictype/categ_Lt.h: Likewise.
12553         * lib/unictype/categ_Me.h: Likewise.
12554         * lib/unictype/categ_Pc.h: Likewise.
12555         * lib/unictype/categ_Pe.h: Likewise.
12556         * lib/unictype/categ_Pf.h: Likewise.
12557         * lib/unictype/categ_Pi.h: Likewise.
12558         * lib/unictype/categ_Ps.h: Likewise.
12559         * lib/unictype/categ_Sk.h: Likewise.
12560         * lib/unictype/categ_Sm.h: Likewise.
12561         * lib/unictype/categ_Z.h: Likewise.
12562         * lib/unictype/categ_Zl.h: Likewise.
12563         * lib/unictype/categ_Zp.h: Likewise.
12564         * lib/unictype/categ_Zs.h: Likewise.
12565         * lib/unictype/ctype_blank.h: Likewise.
12566         * lib/unictype/ctype_cntrl.h: Likewise.
12567         * lib/unictype/ctype_digit.h: Likewise.
12568         * lib/unictype/ctype_space.h: Likewise.
12569         * lib/unictype/ctype_xdigit.h: Likewise.
12570         * lib/unictype/mirror.h: Likewise.
12571         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
12572         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
12573         * lib/unictype/pr_bidi_block_separator.h: Likewise.
12574         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
12575         * lib/unictype/pr_bidi_common_separator.h: Likewise.
12576         * lib/unictype/pr_bidi_control.h: Likewise.
12577         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
12578         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
12579         * lib/unictype/pr_bidi_pdf.h: Likewise.
12580         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
12581         * lib/unictype/pr_bidi_whitespace.h: Likewise.
12582         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
12583         * lib/unictype/pr_format_control.h: Likewise.
12584         * lib/unictype/pr_hex_digit.h: Likewise.
12585         * lib/unictype/pr_hyphen.h: Likewise.
12586         * lib/unictype/pr_ids_binary_operator.h: Likewise.
12587         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
12588         * lib/unictype/pr_iso_control.h: Likewise.
12589         * lib/unictype/pr_join_control.h: Likewise.
12590         * lib/unictype/pr_left_of_pair.h: Likewise.
12591         * lib/unictype/pr_line_separator.h: Likewise.
12592         * lib/unictype/pr_math.h: Likewise.
12593         * lib/unictype/pr_non_break.h: Likewise.
12594         * lib/unictype/pr_not_a_character.h: Likewise.
12595         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
12596         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
12597         * lib/unictype/pr_other_id_continue.h: Likewise.
12598         * lib/unictype/pr_other_id_start.h: Likewise.
12599         * lib/unictype/pr_other_lowercase.h: Likewise.
12600         * lib/unictype/pr_other_math.h: Likewise.
12601         * lib/unictype/pr_other_uppercase.h: Likewise.
12602         * lib/unictype/pr_paired_punctuation.h: Likewise.
12603         * lib/unictype/pr_paragraph_separator.h: Likewise.
12604         * lib/unictype/pr_pattern_syntax.h: Likewise.
12605         * lib/unictype/pr_pattern_white_space.h: Likewise.
12606         * lib/unictype/pr_private_use.h: Likewise.
12607         * lib/unictype/pr_quotation_mark.h: Likewise.
12608         * lib/unictype/pr_radical.h: Likewise.
12609         * lib/unictype/pr_soft_dotted.h: Likewise.
12610         * lib/unictype/pr_space.h: Likewise.
12611         * lib/unictype/pr_titlecase.h: Likewise.
12612         * lib/unictype/pr_variation_selector.h: Likewise.
12613         * lib/unictype/pr_white_space.h: Likewise.
12614         * lib/unictype/sy_c_ident.h: Likewise.
12615         * lib/unictype/sy_c_whitespace.h: Likewise.
12616         * lib/unictype/sy_java_whitespace.h: Likewise.
12617         * modules/uni*/*: Bump version number of expected libunistring version.
12618         Reported by Simon Josefsson.
12619
12620 2011-01-09  Karl Heuer  <kwzh@gnu.org>
12621
12622         useless-if-before-free: fix typo in --help and make the internal,
12623         automatic version date update process work once again.
12624         --help output contained a NUL character instead of the
12625         backslash-zero that was intended.  Also, the "must lie within
12626         the first 8 lines" line is on line 9, and hence not getting
12627         automatically updated.
12628         * build-aux/useless-if-before-free: Fix the former by adding a
12629         backslash, and the latter by condensing the three lines of what-it-does
12630         to a single line, leaving one line of slack for the future.
12631
12632 2011-01-09  Bruno Haible  <bruno@clisp.org>
12633
12634         uniwidth/width: Fix width of U+1D173..U+1D17A.
12635         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
12636         symbolic_width, output_width_property_test): New functions.
12637         (main): Invoke output_nonspacing_property, output_width_property_test.
12638         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
12639         U+1D173..U+1D17A.
12640         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
12641         1.
12642         * modules/uniwidth/*: Bump version number of expected libunistring
12643         version.
12644         * modules/unilbrk/*: Likewise.
12645
12646 2011-01-08  Bruno Haible  <bruno@clisp.org>
12647
12648         uninorm tests: Preserve copyright of Unicode data file.
12649         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
12650         Mention modifications.
12651
12652 2011-01-08  Bruno Haible  <bruno@clisp.org>
12653
12654         gen-uni-tables: Prepare for Unicode 5.2.0.
12655         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
12656         (debug_output_lbp, output_lbp): Update.
12657
12658 2011-01-08  Bruno Haible  <bruno@clisp.org>
12659
12660         unilbrk: Clarify gen-uni-tables.c code.
12661         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
12662         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
12663         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
12664
12665 2011-01-07  Bruno Haible  <bruno@clisp.org>
12666
12667         strtod: Restore errno when successfully parsing Infinity or NaN.
12668         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
12669         restore the original errno.
12670
12671 2011-01-07  Bruno Haible  <bruno@clisp.org>
12672
12673         remove test: Avoid failure on HP-UX 11.
12674         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
12675
12676 2011-01-07  Bruno Haible  <bruno@clisp.org>
12677
12678         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
12679         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
12680         error code.
12681
12682 2011-01-07  Pádraig Brady <P@draigBrady.com>
12683
12684         ignore-value: fixup comments, and add Eric Blake
12685         as an author since he rewrote the macros.
12686         * lib/ignore-value.h (ignore_value):  State that
12687         we now support aggregates.  Also specify exactly
12688         when the GCC warn_unused_result feature was added.
12689
12690 2011-01-06  Eric Blake  <eblake@redhat.com>
12691
12692         ignore-value: support aggregate types
12693         * lib/ignore-value.h (ignore_value): Provide separate gcc
12694         definition.
12695         * modules/ignore-value-tests: New test module.
12696         * tests/test-ignore-value.c: New test.
12697
12698         maint.mk: improve sc_prohibit_strcmp regex
12699         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
12700         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
12701         definition of STRNEQ.
12702
12703         signal: work around Haiku issue with SIGBUS
12704         * lib/siglist.h: Add comment.
12705         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
12706         strsignal's favoring of SIGSEGV.
12707         * tests/test-signal.c (main): Avoid test failure.
12708         * doc/posix-headers/signal.texi (signal.h): Document the issue.
12709         Reported by Scott McCreary.
12710
12711         maint.mk: add pre-release check to ensure submodule commits are public
12712         * top/maint.mk (public-submodule-commit): New rule.
12713         (submodule-checks): New variable.
12714         (alpha beta stable): Depend on the variable.
12715
12716 2011-01-05  Pádraig Brady <P@draigBrady.com>
12717         and Jim Meyering  <meyering@redhat.com>
12718
12719         ignore-value: make ignore_value more generic; deprecate ignore_ptr
12720         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
12721         (ATTRIBUTE_DEPRECATED): Define.
12722         (_ignore_case): New function.
12723         (ignore_value): New macro, to replace the old function.
12724         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
12725         * modules/ignore-value (Depends-on): Add stdint.
12726
12727 2011-01-04  Eric Blake  <eblake@redhat.com>
12728
12729         doc: regenerate INSTALL
12730         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
12731         @firstparagraphindent support, now that autoconf dropped it.
12732         (INSTALL_PRELUDE): Reinstate old macro.
12733         * doc/install.texi: Resync from autoconf.
12734         * doc/INSTALL: Reflect recent autoconf update.
12735         * doc/INSTALL.ISO: Likewise.
12736         * doc/INSTALL.UTF-8: Likewise.
12737         Reported by Karl Berry.
12738
12739 2011-01-04  Bruce Korb  <address@hidden>
12740
12741         git-version-gen: avoid a sub-shell
12742         * build-aux/git-version-gen: Redirect stderr in `...` via
12743         "exec 2>...", rather than via an added sub-shell.
12744
12745 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
12746
12747         git-version-gen: use (...) rather than sh -c '...'
12748         * build-aux/git-version-gen: Rather than hard-coding a shell's name
12749         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
12750
12751 2011-01-03  Jim Meyering  <meyering@redhat.com>
12752
12753         git-version-gen: convert leading TABs to spaces
12754         * build-aux/git-version-gen: Expand leading TABs.
12755
12756         git-version-gen: handle failed "git rev-list"
12757         * build-aux/git-version-gen: Rather than leaking a "fatal" error
12758         from git and proceeding as if it had succeeded but printed no SHA1
12759         checksums, suppress the diagnostic and handle the failure.
12760         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
12761
12762         git-version-gen: include command name in one more diagnostic
12763         * build-aux/git-version-gen: When the required .tarball-version file
12764         was missing or unreadable, you might see the diagnostic from "cat",
12765         but no trace of the name of the invoking script.  Now, you still see
12766         the diagnostic from cat, but also get one from "git-version-gen: ".
12767         Inspired by a patch from Bruce Korb.
12768
12769         update-copyright: adjust test to match changed code
12770         * tests/test-update-copyright.sh: Change test's expected output
12771         to match new actual output.
12772
12773 2011-01-02  Bruno Haible  <bruno@clisp.org>
12774
12775         getlogin_r: Avoid test failure on HP-UX 11.
12776         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
12777         ERANGE when the second argument is zero.
12778         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
12779         portability problem.
12780
12781 2011-01-02  Bruce Korb  <bkorb@gnu.org>
12782
12783         * build-aux/update-copyright: doc Simon's changes
12784
12785 2011-01-02  Simon Josefsson  <simon@josefsson.org>
12786
12787         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
12788         environment variable.
12789
12790 2011-01-02  Bruno Haible  <bruno@clisp.org>
12791
12792         unigbrk: Avoid gcc warnings.
12793         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
12794         unused variable.
12795         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
12796         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
12797         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
12798         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
12799         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
12800         Change type of first argument to 'const char *'.
12801         (main): Remove unused variable.
12802         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
12803         type of first argument to 'const char *'.
12804         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
12805         Likewise.
12806         (main): Change type of variable 's'.
12807         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
12808         to 'int'.
12809
12810 2011-01-02  Bruno Haible  <bruno@clisp.org>
12811
12812         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
12813         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
12814         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
12815         bug.
12816         * lib/pwrite.c: Undo 2010-12-31 patch.
12817         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
12818
12819 2011-01-02  Bruno Haible  <bruno@clisp.org>
12820
12821         pread: Fix test whether it works.
12822         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
12823
12824 2011-01-02  Bruno Haible  <bruno@clisp.org>
12825
12826         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
12827         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
12828         ends in "6". Don't require a specific month name. Try also the locale
12829         names found on HP-UX 11 and Solaris 7.
12830
12831 2011-01-02  Bruno Haible  <bruno@clisp.org>
12832
12833         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
12834         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
12835         C linkage.
12836         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
12837
12838 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12839
12840         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
12841         for consistency, since the "cluster" term is not used elsewhere.
12842         * lib/unigbrk.in.h: Update name.
12843         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
12844         * lib/unigbrk/u16-grapheme-next.c: Update name.
12845         * lib/unigbrk/u16-grapheme-prev.c: Update name.
12846         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
12847         * lib/unigbrk/u32-grapheme-next.c: Update name.
12848         * lib/unigbrk/u32-grapheme-prev.c: Update name.
12849         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
12850         * lib/unigbrk/u8-grapheme-next.c: Update name.
12851         * lib/unigbrk/u8-grapheme-prev.c: Update name.
12852         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
12853         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
12854         Suggested by Bruno Haible.
12855
12856 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12857
12858         Remove module 'u8-grapheme-len' as too redundant with
12859         'u8-grapheme-next'.
12860         * modules/unigbrk/u8-grapheme-len: Delete file.
12861         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
12862         * lib/unigbrk.in.h: Remove prototype for deleted function.
12863         * lib/unigbrk/u8-grapheme-len.c: Delete file.
12864         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
12865
12866         Remove module 'u16-grapheme-len' as too redundant with
12867         'u16-grapheme-next'.
12868         * modules/unigbrk/u16-grapheme-len: Delete file.
12869         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
12870         * lib/unigbrk.in.h: Remove prototype for deleted function.
12871         * lib/unigbrk/u16-grapheme-len.c: Delete file.
12872         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
12873
12874         Remove module 'u32-grapheme-len' as too redundant with
12875         'u32-grapheme-next'.
12876         * modules/unigbrk/u32-grapheme-len: Delete file.
12877         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
12878         * lib/unigbrk.in.h: Remove prototype for deleted function.
12879         * lib/unigbrk/u32-grapheme-len.c: Delete file.
12880         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
12881
12882         Suggested by Bruno Haible.
12883
12884 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12885
12886         * unigbrk.in.h: Fix typo: "ben" => "been".
12887         Reported by Bruno Haible.
12888
12889 2011-01-01  Jim Meyering  <meyering@redhat.com>
12890
12891         maint: update almost all copyright ranges to include 2011
12892         Run the new "make update-copyright" rule.
12893
12894 2011-01-01  Jim Meyering  <meyering@redhat.com>
12895
12896         maint: update-copyright: exempt doc/INSTALL*
12897         * Makefile (update-copyright): Also exclude doc/INSTALL*,
12898         since they are generated.  Suggested by Bruno Haible.
12899
12900 2011-01-01  Jim Meyering  <meyering@redhat.com>
12901
12902         maint: refine the update-copyright rule
12903         * Makefile (update-copyright): Also exclude any file that includes
12904         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
12905         code that merely generates the comment.
12906
12907 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
12908
12909         New module 'u8-grapheme-len'.
12910         * modules/unigbrk/u8-grapheme-len: New file.
12911         * modules/unigbrk/u8-grapheme-len-tests: New file.
12912         * lib/unigbrk.in.h: Add prototype for new function.
12913         * lib/unigbrk/u8-grapheme-len.c: New file.
12914         * tests/unigbrk/test-u8-grapheme-len.c: New file.
12915
12916         New module 'u16-grapheme-len'.
12917         * modules/unigbrk/u16-grapheme-len: New file.
12918         * modules/unigbrk/u16-grapheme-len-tests: New file.
12919         * lib/unigbrk.in.h: Add prototype for new function.
12920         * lib/unigbrk/u16-grapheme-len.c: New file.
12921         * tests/unigbrk/test-u16-grapheme-len.c: New file.
12922
12923         New module 'u32-grapheme-len'.
12924         * modules/unigbrk/u32-grapheme-len: New file.
12925         * modules/unigbrk/u32-grapheme-len-tests: New file.
12926         * lib/unigbrk.in.h: Add prototype for new function.
12927         * lib/unigbrk/u32-grapheme-len.c: New file.
12928         * tests/unigbrk/test-u32-grapheme-len.c: New file.
12929
12930         New module 'u8-grapheme-next'.
12931         * modules/unigbrk/u8-grapheme-next: New file.
12932         * modules/unigbrk/u8-grapheme-next-tests: New file.
12933         * lib/unigbrk.in.h: Add prototype for new function.
12934         * lib/unigbrk/u8-grapheme-next.c: New file.
12935         * tests/unigbrk/test-u8-grapheme-next.c: New file.
12936
12937         New module 'u16-grapheme-next'.
12938         * modules/unigbrk/u16-grapheme-next: New file.
12939         * modules/unigbrk/u16-grapheme-next-tests: New file.
12940         * lib/unigbrk.in.h: Add prototype for new function.
12941         * lib/unigbrk/u16-grapheme-next.c: New file.
12942         * tests/unigbrk/test-u16-grapheme-next.c: New file.
12943
12944         New module 'u32-grapheme-next'.
12945         * modules/unigbrk/u32-grapheme-next: New file.
12946         * modules/unigbrk/u32-grapheme-next-tests: New file.
12947         * lib/unigbrk.in.h: Add prototype for new function.
12948         * lib/unigbrk/u32-grapheme-next.c: New file.
12949         * tests/unigbrk/test-u32-grapheme-next.c: New file.
12950
12951         New module 'u8-grapheme-prev'.
12952         * modules/unigbrk/u8-grapheme-prev: New file.
12953         * modules/unigbrk/u8-grapheme-prev-tests: New file.
12954         * lib/unigbrk.in.h: Add prototype for new function.
12955         * lib/unigbrk/u8-grapheme-prev.c: New file.
12956         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
12957
12958         New module 'u16-grapheme-prev'.
12959         * modules/unigbrk/u16-grapheme-prev: New file.
12960         * modules/unigbrk/u16-grapheme-prev-tests: New file.
12961         * lib/unigbrk.in.h: Add prototype for new function.
12962         * lib/unigbrk/u16-grapheme-prev.c: New file.
12963         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
12964
12965         New module 'u32-grapheme-prev'.
12966         * modules/unigbrk/u32-grapheme-prev: New file.
12967         * modules/unigbrk/u32-grapheme-prev-tests: New file.
12968         * lib/unigbrk.in.h: Add prototype for new function.
12969         * lib/unigbrk/u32-grapheme-prev.c: New file.
12970         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
12971
12972         New module 'u8-grapheme-breaks'.
12973         * modules/unigbrk/u8-grapheme-breaks: New file.
12974         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
12975         * lib/unigbrk.in.h: Add prototype for new function.
12976         * lib/unigbrk/u8-grapheme-breaks.c: New file.
12977         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
12978
12979         New module 'u16-grapheme-breaks'.
12980         * modules/unigbrk/u16-grapheme-breaks: New file.
12981         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
12982         * lib/unigbrk.in.h: Add prototype for new function.
12983         * lib/unigbrk/u16-grapheme-breaks.c: New file.
12984         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
12985
12986         New module 'u32-grapheme-breaks'.
12987         * modules/unigbrk/u32-grapheme-breaks: New file.
12988         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
12989         * lib/unigbrk.in.h: Add prototype for new function.
12990         * lib/unigbrk/u32-grapheme-breaks.c: New file.
12991         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
12992
12993         New module 'ulc-grapheme-breaks'.
12994         * modules/unigbrk/ulc-grapheme-breaks: New file.
12995         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
12996         * m4/locale-ar.m4: New file.
12997         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
12998         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
12999         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
13000
13001 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
13002
13003         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
13004         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
13005         modified how this file was generated before I initially submitted
13006         the module, but failed to regenerate it.  This meant that several
13007         of the level2 entries were wrong.
13008         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
13009         Remove the division-by-2 that is folded into the table now that
13010         gbrkprop.h has been regenerated properly.  Now -1 entries are
13011         handled correctly.
13012
13013         New module 'unigbrk/uc-gbrk-prop-tests'.
13014         * modules/unigbrk/uc-gbrk-prop-tests: New file.
13015         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
13016         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
13017         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
13018
13019 2011-01-01  Bruno Haible  <bruno@clisp.org>
13020
13021         Avoid use of hexadecimal escapes.
13022         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
13023         instead of hexadecimal escapes.
13024
13025 2011-01-01  Jim Meyering  <meyering@redhat.com>
13026
13027         maint: new rule to update copyright year ranges
13028         * Makefile (update-copyright): New rule.
13029
13030         maint: indent with TABs in Makefile
13031         * Makefile: Expand leading sequences of spaces to TABs
13032
13033         version-etc: update the copyright year it reports
13034         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
13035
13036 2010-12-31  Bruno Haible  <bruno@clisp.org>
13037
13038         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
13039         * lib/isfinite.c (zerof, zerod, zerol): New variables.
13040         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
13041         zero.
13042
13043 2010-12-31  Bruno Haible  <bruno@clisp.org>
13044
13045         pwrite: Work around HP-UX 11.11 bug.
13046         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
13047         works and set REPLACE_PWRITE if not.
13048         * lib/pwrite.c (pwrite): Add an implementation that uses the system
13049         function.
13050         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
13051
13052 2010-12-31  Bruno Haible  <bruno@clisp.org>
13053
13054         pread: Work around HP-UX 11 bugs.
13055         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
13056         and set REPLACE_PREAD if not.
13057         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
13058
13059 2010-12-31  Eric Blake  <eblake@redhat.com>
13060
13061         nl_langinfo: fix YESEXPR on Irix 6.5
13062         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
13063         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
13064         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
13065         it.
13066
13067 2010-12-31  Bruno Haible  <bruno@clisp.org>
13068
13069         iconv: Document HP-UX 11 bug.
13070         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
13071
13072 2010-12-31  Bruno Haible  <bruno@clisp.org>
13073
13074         ldexpl: Fix link error on HP-UX 11.
13075         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
13076         LDEXPL_LIBM, using $ISNANL_LIBM.
13077
13078 2010-12-31  Eric Blake  <eblake@redhat.com>
13079
13080         ftello: avoid compilation failure with SunStudio c89
13081         * lib/ftello.c (ftello): Use lseek, not llseek.
13082
13083         tests: avoid failing coreutils tests on cygwin
13084         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
13085         (create_exe_shims_): Return 0 when skipping.
13086
13087 2010-12-31  Bruno Haible  <bruno@clisp.org>
13088
13089         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
13090         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
13091
13092 2010-12-31  Bruno Haible  <bruno@clisp.org>
13093
13094         waitpid: Fix link error in C++ mode.
13095         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
13096
13097 2010-12-31  Bruno Haible  <bruno@clisp.org>
13098
13099         isnan: Use GCC built-ins when possible.
13100         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
13101         __builtin_isnan.
13102         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
13103         (isnan): Define using GCC built-ins for GCC >= 4.0.
13104
13105 2010-12-31  Bruno Haible  <bruno@clisp.org>
13106
13107         isnand: Fix mistake.
13108         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
13109         __builtin_isnand.
13110
13111 2010-12-31  Bruno Haible  <bruno@clisp.org>
13112
13113         open: Avoid C++ error on HP-UX 11.
13114         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
13115
13116 2010-12-31  Bruno Haible  <bruno@clisp.org>
13117
13118         time_r: Add missing declarations on HP-UX 11.
13119         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
13120         instead of HAVE_LOCALTIME_R.
13121         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
13122         HAVE_LOCALTIME_R always.
13123         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
13124         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
13125         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
13126         HAVE_LOCALTIME_R.
13127         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
13128         * doc/posix-functions/localtime_r.texi: Likewise.
13129
13130 2010-12-29  Eric Blake  <eblake@redhat.com>
13131
13132         mountlist: tweak previous commit
13133         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
13134         Reported by Paul Eggert.
13135
13136         mountlist: fix local drive detection on cygwin
13137         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
13138         that works for cygwin.
13139
13140 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
13141
13142         ftoastr, snprintf: ftoastr + snprintf module
13143         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
13144         since the snprintf module now should be good enough here.
13145         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
13146         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
13147         and gl_MODULE_INDICATOR([snprintf]), but the former enables
13148         GNULIB_SNPRINTF only for the test directory, and the latter
13149         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
13150         seems to suffice by itself.
13151
13152 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
13153
13154         alloca: one step towards thread-safety
13155         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
13156         need for a static variable.  All callers changed.  This does not
13157         make the alloca replacement thread-safe, but it's one step.
13158
13159         tests: minor indenting change
13160         * tests/init.sh: Sync from coreutils housekeeping patch
13161         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
13162         to keep lines within 80 columns.
13163
13164 2010-12-28  Jim Meyering  <meyering@redhat.com>
13165
13166         regex: don't infloop on persistent failing calloc
13167         * lib/regexec.c (build_trtable): Return failure indication upon
13168         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
13169         In glibc, this was fixed for version 2.13:
13170         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
13171
13172 2010-12-28  Bruno Haible  <bruno@clisp.org>
13173             Paul Eggert <eggert@cs.ucla.edu>
13174
13175         linkat: Make implementation robust against system behaviour variations.
13176         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
13177         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
13178         way, and to -2 if it needs a generic runtime test.
13179         * lib/linkat.c (solaris_optimized_link_immediate,
13180         solaris_optimized_link_follow): New functions.
13181         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
13182         (check_same_link): Use it.
13183
13184 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
13185
13186         New module 'unigbrk/base'.
13187         * modules/unigbrk/base: New file.
13188         * lib/unigbrk.in.h: New file.
13189
13190         New module 'unigbrk/uc-gbrk-prop'.
13191         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
13192         * modules/unigbrk/uc-gbrk-prop: New file.
13193         * lib/unigbrk/gbrkprop.h: New file.
13194         * lib/unigbrk/uc-gbrk-prop.c: New file.
13195
13196         New module 'unigbrk/uc-is-grapheme-break'.
13197         * modules/unigbrk/uc-is-grapheme-break: New file.
13198         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
13199         * lib/unigbrk/uc-is-grapheme-break.c: New file.
13200         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
13201         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
13202         * tests/unigbrk/GraphemeBreakTest.txt: New file.
13203
13204         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
13205
13206 2010-12-27  Bruno Haible  <bruno@clisp.org>
13207
13208         linkat test: Avoid failure on Solaris 11 2010-11.
13209         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
13210
13211 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13212
13213         utimens: work around glibc rounding bug on more platforms
13214         * lib/utimens.c (fdutimens): Work around rounding bug even if
13215         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
13216         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
13217
13218 2010-12-27  Bruno Haible  <bruno@clisp.org>
13219
13220         select tests: Improve comments.
13221         * tests/test-select.c (do_select): Add comments.
13222
13223 2010-12-27  Bruno Haible  <bruno@clisp.org>
13224
13225         select tests: Safer way of handling timeout.
13226         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
13227         at every invocation.
13228
13229 2010-12-27  Bruno Haible  <bruno@clisp.org>
13230
13231         select tests: Use 'bool' where appropriate.
13232         * tests/test-select.c (connect_to_socket): Change argument type to
13233         'bool'.
13234
13235 2010-12-27  Bruno Haible  <bruno@clisp.org>
13236
13237         select tests: Use existing modules.
13238         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
13239         (configure.ac): Don't test for unistd.h.
13240         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
13241         declared in <unistd.h>.
13242
13243 2010-12-27  Bruno Haible  <bruno@clisp.org>
13244
13245         mbrtowc: Work around a Solaris 7 bug.
13246         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
13247         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
13248         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
13249         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
13250         MBRTOWC_NULL_ARG1_BUG.
13251         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
13252         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
13253         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
13254         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
13255
13256 2010-12-27  Jim Meyering  <meyering@redhat.com>
13257
13258         read-file.c: tweak syntax
13259         * lib/read-file.c (fread_file): Remove space after "*" in function
13260         definitions.
13261
13262 2010-12-27  Bruno Haible  <bruno@clisp.org>
13263
13264         times test: Avoid gcc warnings on OSF/1.
13265         * tests/test-times.c (main): Cast printf arguments from clock_t to
13266         'long int'.
13267
13268 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13269
13270         utimens: work around glibc rounding bug on older Linux kernels
13271         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
13272         on Linux with a glibc whose utimes might not work, then work
13273         around a longstanding glibc bug involving rounding rather than
13274         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
13275         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
13276
13277 2010-12-26  Bruno Haible  <bruno@clisp.org>
13278
13279         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
13280         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
13281         _GL_CXXALIAS_SYS.
13282         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13283
13284 2010-12-26  Bruno Haible  <bruno@clisp.org>
13285
13286         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
13287         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
13288         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
13289         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
13290         looking for the declaration.
13291         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
13292         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
13293         problem.
13294         * doc/posix-functions/inet_pton.texi: Likewise.
13295
13296 2010-12-26  Bruno Haible  <bruno@clisp.org>
13297
13298         arpa_inet: Use the common idioms with C++ support.
13299         * lib/arpa_inet.in.h: Include c++defs.h.
13300         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
13301         support.
13302         * modules/arpa_inet (Depends-on): Add c++defs.
13303         (Makefile.am): Substitute the contents of c++defs.h.
13304         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
13305         * modules/arpa_inet-c++-tests: New file.
13306         * tests/test-arpa_inet-c++.cc: New file.
13307
13308 2010-12-25  Bruno Haible  <bruno@clisp.org>
13309
13310         Fix more C++ link errors on Solaris 8.
13311         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
13312         $(LIB_EACCESS).
13313         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
13314         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
13315         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
13316         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
13317         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
13318
13319 2010-12-25  Bruno Haible  <bruno@clisp.org>
13320
13321         printf-posix: Fix link error when a non-GCC compiler is used.
13322         * lib/stdio.in.h (printf): When not using GCC, override printf
13323         correctly.
13324         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13325
13326 2010-12-25  Bruno Haible  <bruno@clisp.org>
13327
13328         strerror_r-posix: Update doc.
13329         * doc/posix-functions/strerror_r.texi: Update doc about the return
13330         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
13331
13332 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
13333
13334         utimens: simplify the logic of the previous change
13335         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
13336         This should not affect whether the test succeeds or fails.
13337
13338         utimens: configure better on hosts with NFS clock skew
13339         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
13340         uses the clock of the local host.  It might use the clock of the
13341         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
13342         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
13343
13344 2010-12-25  Bruno Haible  <bruno@clisp.org>
13345
13346         ptsname test: Avoid failure on Solaris.
13347         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
13348         open a pseudo-terminal; don't use BSD-style ptys.
13349         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
13350
13351 2010-12-25  Bruno Haible  <bruno@clisp.org>
13352
13353         ptsname: Avoid ERANGE failure on some systems.
13354         * lib/ptsname.c (buffer): Increase size.
13355
13356 2010-12-25  Bruno Haible  <bruno@clisp.org>
13357
13358         rename, renameat: Avoid test failures at NFS mounted locations.
13359         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
13360         so that subsequent mkdir calls succeed.
13361
13362 2010-12-25  Bruno Haible  <bruno@clisp.org>
13363
13364         iswblank: Fix C++ link error on Solaris 8.
13365         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
13366         _GL_FUNCDECL_SYS.
13367
13368 2010-12-25  Bruno Haible  <bruno@clisp.org>
13369
13370         unistd: Fix C++ link error on Solaris 8.
13371         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
13372
13373 2010-12-25  Bruno Haible  <bruno@clisp.org>
13374
13375         readlink doc: Mention an old glibc bug.
13376         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
13377
13378 2010-12-25  Bruno Haible  <bruno@clisp.org>
13379
13380         fcntl-h: Fix for use of C++ on glibc systems.
13381         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
13382         also on glibc systems in C++ mode.
13383         Reported by Gary V. Vaughan <gary@gnu.org>.
13384
13385 2010-12-25  Bruno Haible  <bruno@clisp.org>
13386
13387         roundl-ieee: Make it work on OSF/1 5.1 with cc.
13388         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
13389
13390 2010-12-25  Bruno Haible  <bruno@clisp.org>
13391
13392         truncl-ieee: Make it work on OSF/1 5.1 with cc.
13393         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
13394         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
13395         test whether truncl works according to ISO C 99 with IEC 60559.
13396         * m4/truncl-ieee.m4: New file.
13397         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
13398         m4/signbit.m4.
13399         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
13400
13401 2010-12-25  Bruno Haible  <bruno@clisp.org>
13402
13403         ceill-ieee: Make it work on OSF/1 5.1 with cc.
13404         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
13405         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
13406         test whether ceill works according to ISO C 99 with IEC 60559.
13407         * m4/ceill-ieee.m4: New file.
13408         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
13409         m4/signbit.m4.
13410         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
13411
13412 2010-12-25  Bruno Haible  <bruno@clisp.org>
13413
13414         Ensure all prerequisites of <wchar.h> are included.
13415         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
13416         before <wchar.h>.
13417         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
13418         gl_MBRLEN_NUL_RETVAL): Likewise.
13419         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13420         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
13421         AC_FUNC_MBRTOWC): Likewise.
13422         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13423         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
13424         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13425         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
13426         Likewise.
13427         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13428         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
13429         (gl_WCHAR_H): Improve comments.
13430         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
13431
13432 2010-12-25  Bruno Haible  <bruno@clisp.org>
13433
13434         strtok_r: Fix C syntax error in autoconf macro.
13435         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
13436         characters in test program.
13437
13438 2010-12-24  Bruno Haible  <bruno@clisp.org>
13439
13440         ceil, trunc, round: Fix gcc warnings.
13441         * lib/ceil.c (MIN): Undefine before redefining.
13442         * lib/trunc.c (MIN): Likewise.
13443         * lib/round.c (MIN): Likewise.
13444         Include <math.h> first.
13445
13446 2010-12-24  Bruno Haible  <bruno@clisp.org>
13447
13448         select tests: Avoid failures on OSF/1 5.1.
13449         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
13450         failure of closing the last socket; it may fail with ECONNRESET.
13451
13452 2010-12-24  Eric Blake  <eblake@redhat.com>
13453
13454         stdint: avoid HP-UX 10.20 preprocessor bug
13455         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
13456         than #if.
13457         * tests/test-floor2.c (main): Likewise.
13458         Reported by Peter O'Gorman.
13459
13460         pipe: make obsoletion transition easier
13461         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
13462         * modules/pipe (Files): Include revived file.
13463         (Include): Drop reference, to mirror getdate's behavior.
13464
13465 2010-12-24  Bruno Haible  <bruno@clisp.org>
13466
13467         sys_socket: Hide mismatch of declarations on NonStop Kernel.
13468         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
13469         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
13470         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13471
13472 2010-12-24  Bruno Haible  <bruno@clisp.org>
13473
13474         gethostname: Ensure declaration on NonStop Kernel.
13475         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
13476         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13477
13478 2010-12-24  Bruno Haible  <bruno@clisp.org>
13479
13480         sys_select: Ensure all necessary types on NonStop Kernel.
13481         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
13482         include <sys/time.h>.
13483         * doc/posix-headers/sys_select.texi: Mention that it's missing on
13484         NonStop Kernel.
13485         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13486
13487 2010-12-24  Bruno Haible  <bruno@clisp.org>
13488
13489         sys_select: Remove unneeded include.
13490         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
13491         have <sys/select.h>.
13492
13493 2010-12-24  Bruno Haible  <bruno@clisp.org>
13494
13495         gethostname: Provide a fallback for HOST_NAME_MAX.
13496         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
13497         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
13498         instead.
13499         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13500
13501 2010-12-24  Bruno Haible  <bruno@clisp.org>
13502
13503         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
13504         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
13505         (SA_RESTART): Likewise.
13506         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13507
13508 2010-12-24  Bruno Haible  <bruno@clisp.org>
13509
13510         signal: Define NSIG.
13511         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
13512         * tests/test-signal.c (nsig): New variable.
13513         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13514
13515 2010-12-24  Bruno Haible  <bruno@clisp.org>
13516
13517         rename, renameat: Avoid test failures on OSF/1 5.1.
13518         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
13519         alternative error codes.
13520         * tests/test-renameat.c (main): Likewise.
13521
13522 2010-12-24  Bruno Haible  <bruno@clisp.org>
13523
13524         *printf: Detect large precisions bug on Solaris 10/SPARC.
13525         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
13526         by Paul Eggert.
13527         * tests/test-snprintf-posix.h (test_function): Add this test code here
13528         too.
13529         * tests/test-sprintf-posix.h (test_function): Likewise.
13530         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13531         * tests/test-vasprintf-posix.c (test_function): Likewise.
13532         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
13533         around by gnulib.
13534         * doc/posix-functions/printf.texi: Likewise.
13535         * doc/posix-functions/snprintf.texi: Likewise.
13536         * doc/posix-functions/sprintf.texi: Likewise.
13537         * doc/posix-functions/vfprintf.texi: Likewise.
13538         * doc/posix-functions/vprintf.texi: Likewise.
13539         * doc/posix-functions/vsnprintf.texi: Likewise.
13540         * doc/posix-functions/vsprintf.texi: Likewise.
13541         * doc/posix-functions/dprintf.texi: Undo last commit.
13542         * doc/posix-functions/vdprintf.texi: Likewise.
13543
13544 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
13545
13546         tests: port test-fdutimensat.c to Solaris 8
13547         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
13548         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
13549         On Solaris 8, it fails with errno == ENOSYS, because there is no
13550         futimens (so it can't use the fd), and there is no lutimens (so it
13551         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
13552
13553         vsnprintf: make more consistent with snprintf; doc fixes
13554
13555         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
13556         the byte count return problem was promoted from the snprintf-posix
13557         to the snprintf module.
13558         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13559         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
13560         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
13561         * tests/test-snprintf.c (main): Check the byte count returned.
13562         * tests/test-vsnprintf.c (main): Likewise.
13563
13564 2010-12-23  Eric Blake  <eblake@redhat.com>
13565
13566         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
13567         * modules/sigpipe (License): Relax license.
13568
13569 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13570
13571         doc: document Solaris printf bug with large float precisions
13572         * doc/posix-functions/dprintf.texi (dprintf):
13573         * doc/posix-functions/fprintf.texi (fprintf):
13574         * doc/posix-functions/printf.texi (printf):
13575         * doc/posix-functions/snprintf.texi (snprintf):
13576         * doc/posix-functions/sprintf.texi (sprintf):
13577         * doc/posix-functions/vdprintf.texi (vdprintf):
13578         * doc/posix-functions/vfprintf.texi (vfprintf):
13579         * doc/posix-functions/vprintf.texi (vprintf):
13580         * doc/posix-functions/vsnprintf.texi (vsnprintf):
13581         * doc/posix-functions/vsprintf.texi (vsprintf):
13582         Mention that these functions mishandle large floating point
13583         precisions on Solaris 10.  The same bug is also present in Solaris
13584         8, and I assume earlier.  This causes "cd gnulib-tests; make
13585         check" to fail on Solaris 8 (and I assume, later) when building
13586         the latest coreutils, in test-vasprintf-posix's call to
13587         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
13588         the wide flavors (e.g., wprintf) so this patch just updates the
13589         documentation for the narrow ones.
13590
13591         test-posixtm.c: add two tests
13592         * tests/test-posixtm.c: Add two tests, to highlight the
13593         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
13594         around this bug; this is merely to document it.
13595
13596 2010-12-22  Bruno Haible  <bruno@clisp.org>
13597
13598         getlogin_r: Work around portability problem on OSF/1.
13599         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
13600         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
13601         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
13602         test for a truncated result.
13603         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
13604         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
13605         * modules/getlogin_r (Depends-on): Add memchr.
13606         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
13607
13608 2010-12-22  Bruno Haible  <bruno@clisp.org>
13609
13610         ptsname: Avoid test failure on OSF/1 5.1.
13611         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
13612         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
13613         (same_slave): New function.
13614         (main): Use it to compare ptsname's result with the expected file name.
13615
13616 2010-12-22  Bruno Haible  <bruno@clisp.org>
13617
13618         Port extended stdio modules to HP NonStop Kernel.
13619         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
13620         macros.
13621         * lib/fbufmode.c: Update comments.
13622         * lib/fflush.c: Likewise.
13623         * lib/fpurge.c: Likewise.
13624         * lib/freadable.c: Likewise.
13625         * lib/freadahead.c: Likewise.
13626         * lib/freading.c: Likewise.
13627         * lib/freadptr.c: Likewise.
13628         * lib/freadseek.c: Likewise.
13629         * lib/fseeko.c: Likewise.
13630         * lib/fseterr.c: Likewise.
13631         * lib/fwritable.c: Likewise.
13632         * lib/fwriting.c: Likewise.
13633         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13634
13635 2010-12-22  Bruno Haible  <bruno@clisp.org>
13636
13637         ttyname_r: Work around bug on OSF/1 5.1.
13638         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
13639         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
13640         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
13641         present.
13642         * lib/ttyname_r.c (ttyname_r): Update comments.
13643
13644 2010-12-22  Bruno Haible  <bruno@clisp.org>
13645
13646         round: Implement result sign according to IEEE 754.
13647         * lib/round.c (MIN, MINUS_ZERO): New macros.
13648         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
13649         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
13650         * tests/test-round-ieee.c (main): Likewise.
13651         * tests/test-roundl-ieee.c (main): Likewise.
13652
13653         trunc: Implement result sign according to IEEE 754.
13654         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
13655         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
13656         * tests/test-trunc2.c: Include minus-zero.h.
13657         (MINUS_ZERO): New macro.
13658         (trunc_reference): Keep in sync with lib/trunc.c.
13659         * tests/test-truncf2.c: Include minus-zero.h.
13660         (MINUS_ZERO): New macro.
13661         (truncf_reference): Keep in sync with lib/trunc.c.
13662         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
13663         * tests/test-trunc-ieee.c (main): Likewise.
13664         * tests/test-truncl-ieee.c (main): Likewise.
13665
13666         ceil: Implement result sign according to IEEE 754.
13667         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
13668         (FUNC): Return -0.0 for -1 < x < 0.
13669         * tests/test-ceil2.c: Include minus-zero.h.
13670         (MINUS_ZERO): New macro.
13671         (ceil_reference): Keep in sync with lib/ceil.c.
13672         * tests/test-ceilf2.c: Include minus-zero.h.
13673         (MINUS_ZERO): New macro.
13674         (ceilf_reference): Keep in sync with lib/ceil.c.
13675         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
13676         * tests/test-ceil-ieee.c (main): Likewise.
13677         * tests/test-ceill-ieee.c (main): Likewise.
13678
13679         floor: Implement result sign according to IEEE 754.
13680         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
13681         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
13682         * tests/test-floorf2.c (floorf_reference): Likewise.
13683         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
13684         * tests/test-floor-ieee.c (main): Likewise.
13685         * tests/test-floorl-ieee.c (main): Likewise.
13686
13687 2010-12-22  Bruno Haible  <bruno@clisp.org>
13688
13689         getaddrinfo: Update doc.
13690         * doc/posix-functions/gai_strerror.texi: Return type is also different
13691         on AIX and HP-UX.
13692
13693 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13694
13695         getaddrinfo, inet_ntop: Update doc for Solaris.
13696         * doc/posix-functions/gai_strerror.texi: Return type is also an
13697         issue on Solaris 9 and earlier.
13698         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
13699         on Solaris 10 and earlier.
13700
13701 2010-12-21  Bruno Haible  <bruno@clisp.org>
13702
13703         New module 'roundl-ieee'.
13704         * modules/roundl-ieee: New file.
13705         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
13706         test whether roundl works according to ISO C 99 with IEC 60559.
13707         * m4/roundl-ieee.m4: New file.
13708         * modules/roundl-ieee-tests: New file.
13709         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
13710         * tests/test-roundl.c (main): Remove signbit tests.
13711         * modules/roundl-tests (Depends-on): Remove signbit.
13712         * doc/posix-functions/roundl.texi: Mention the new module.
13713
13714 2010-12-21  Bruno Haible  <bruno@clisp.org>
13715
13716         New module 'truncl-ieee'.
13717         * modules/truncl-ieee: New file.
13718         * modules/truncl-ieee-tests: New file.
13719         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
13720         * tests/test-truncl.c (main): Remove signbit tests.
13721         * modules/truncl-tests (Depends-on): Remove signbit.
13722         * doc/posix-functions/truncl.texi: Mention the new module.
13723
13724 2010-12-21  Bruno Haible  <bruno@clisp.org>
13725
13726         New module 'ceill-ieee'.
13727         * modules/ceill-ieee: New file.
13728         * modules/ceill-ieee-tests: New file.
13729         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
13730         * tests/test-ceill.c (main): Remove signbit tests.
13731         * modules/ceill-tests (Depends-on): Remove signbit.
13732         * doc/posix-functions/ceill.texi: Mention the new module.
13733
13734 2010-12-21  Bruno Haible  <bruno@clisp.org>
13735
13736         New module 'floorl-ieee'.
13737         * modules/floorl-ieee: New file.
13738         * modules/floorl-ieee-tests: New file.
13739         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
13740         * tests/test-floorl.c (main): Remove signbit tests.
13741         * modules/floorl-tests (Depends-on): Remove signbit.
13742         * doc/posix-functions/floorl.texi: Mention the new module.
13743
13744 2010-12-21  Bruno Haible  <bruno@clisp.org>
13745
13746         New module 'round-ieee'.
13747         * modules/round-ieee: New file.
13748         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
13749         whether round works according to ISO C 99 with IEC 60559.
13750         * m4/round-ieee.m4: New file.
13751         * modules/round-ieee-tests: New file.
13752         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
13753         * tests/test-round1.c (main): Remove signbit tests.
13754         * modules/round-tests (Depends-on): Remove 'signbit'.
13755         * doc/posix-functions/round.texi: Mention the new module.
13756
13757 2010-12-21  Bruno Haible  <bruno@clisp.org>
13758
13759         New module 'trunc-ieee'.
13760         * modules/trunc-ieee: New file.
13761         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
13762         whether trunc works according to ISO C 99 with IEC 60559.
13763         * m4/trunc-ieee.m4: New file.
13764         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
13765         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
13766         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
13767         * modules/trunc-ieee-tests: New file.
13768         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
13769         * tests/test-trunc1.c (main): Remove signbit tests.
13770         * modules/trunc-tests (Depends-on): Remove 'signbit'.
13771         * doc/posix-functions/trunc.texi: Mention the new module.
13772
13773 2010-12-21  Bruno Haible  <bruno@clisp.org>
13774
13775         New module 'ceil-ieee'.
13776         * modules/ceil-ieee: New file.
13777         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
13778         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
13779         ISO C 99 with IEC 60559.
13780         * m4/ceil-ieee.m4: New file.
13781         * modules/ceil (Files): Add lib/ceil.c.
13782         (Depends-on): Add 'float'.
13783         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
13784         * lib/math.in.h (ceil): New declaration.
13785         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
13786         REPLACE_CEIL.
13787         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
13788         * modules/ceil-ieee-tests: New file.
13789         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
13790         * tests/test-math-c++.cc: Check the signature of 'ceil'.
13791         * doc/posix-functions/ceil.texi: Mention the new module.
13792
13793 2010-12-21  Bruno Haible  <bruno@clisp.org>
13794
13795         New module 'floor-ieee'.
13796         * modules/floor-ieee: New file.
13797         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
13798         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
13799         ISO C 99 with IEC 60559.
13800         * m4/floor-ieee.m4: New file.
13801         * modules/floor (Files): Add lib/floor.c.
13802         (Depends-on): Add 'float'.
13803         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
13804         * lib/math.in.h (floor): New declaration.
13805         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
13806         REPLACE_FLOOR.
13807         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
13808         * modules/floor-ieee-tests: New file.
13809         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
13810         * tests/test-math-c++.cc: Check the signature of 'floor'.
13811         * doc/posix-functions/floor.texi: Mention the new module.
13812
13813 2010-12-21  Bruno Haible  <bruno@clisp.org>
13814
13815         New module 'roundf-ieee'.
13816         * modules/roundf-ieee: New file.
13817         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
13818         test whether roundf works according to ISO C 99 with IEC 60559.
13819         * m4/roundf-ieee.m4: New file.
13820         * modules/roundf-ieee-tests: New file.
13821         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
13822         * tests/test-roundf1.c (main): Remove signbit tests.
13823         * modules/roundf-tests (Depends-on): Remove 'signbit'.
13824         * doc/posix-functions/roundf.texi: Mention the new module.
13825
13826 2010-12-21  Bruno Haible  <bruno@clisp.org>
13827
13828         New module 'truncf-ieee'.
13829         * modules/truncf-ieee: New file.
13830         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
13831         test whether truncf works according to ISO C 99 with IEC 60559.
13832         * m4/truncf-ieee.m4: New file.
13833         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
13834         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
13835         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
13836         * modules/truncf-ieee-tests: New file.
13837         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
13838         * tests/test-truncf1.c (main): Remove signbit tests.
13839         * modules/truncf-tests (Depends-on): Remove 'signbit'.
13840         * doc/posix-functions/truncf.texi: Mention the new module.
13841
13842 2010-12-21  Bruno Haible  <bruno@clisp.org>
13843
13844         New module 'ceilf-ieee'.
13845         * modules/ceilf-ieee: New file.
13846         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
13847         test whether ceilf works according to ISO C 99 with IEC 60559.
13848         * m4/ceilf-ieee.m4: New file.
13849         * modules/ceilf-ieee-tests: New file.
13850         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
13851         * tests/test-ceilf1.c (main): Remove signbit tests.
13852         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
13853         * doc/posix-functions/ceilf.texi: Mention the new module.
13854
13855 2010-12-21  Bruno Haible  <bruno@clisp.org>
13856
13857         New module 'floorf-ieee'.
13858         * modules/floorf-ieee: New file.
13859         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
13860         test whether floorf works according to ISO C 99 with IEC 60559.
13861         * m4/floorf-ieee.m4: New file.
13862         * modules/floorf-ieee-tests: New file.
13863         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
13864         * tests/test-floorf1.c (main): Remove signbit tests.
13865         * modules/floorf-tests (Depends-on): Remove 'signbit'.
13866         * doc/posix-functions/floorf.texi: Mention the new module.
13867
13868 2010-12-21  Bruno Haible  <bruno@clisp.org>
13869
13870         Support for minus zero in autoconf macros.
13871         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
13872         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
13873         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
13874         * tests/minus-zero.h: Update comments.
13875
13876 2010-12-21  Bruno Haible  <bruno@clisp.org>
13877
13878         Tests for module 'ceil'.
13879         * modules/ceil-tests: New file.
13880         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
13881         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
13882
13883 2010-12-21  Bruno Haible  <bruno@clisp.org>
13884
13885         Tests for module 'floor'.
13886         * modules/floor-tests: New file.
13887         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
13888         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
13889
13890 2010-12-21  Bruno Haible  <bruno@clisp.org>
13891
13892         math: Fix indentation.
13893         * lib/math.in.h (floorf): Fix indentation.
13894
13895 2010-12-21  Bruno Haible  <bruno@clisp.org>
13896
13897         Fix cross-compilation guesses on Solaris.
13898         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
13899         not match "solaris2.10".
13900         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
13901         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
13902         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
13903
13904 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
13905
13906         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
13907         This fixes a problem observed with the latest coreutils snapshot
13908         that caused a test to fail on Solaris 8.  src/csplit.c's call
13909         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
13910         earlier, instead of returning the number of bytes that would have
13911         been generated; this causes csplit to incorrectly report memory
13912         exhaustion.
13913         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
13914         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
13915         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
13916         comments to match.
13917         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
13918         Fix typo in matching older versions of Solaris: "solaris2.10"
13919         is matched by the shell pattern "solaris2.[0-9]*".  This matters
13920         only for guessing while cross-compiling.
13921         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
13922
13923 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
13924
13925         ftoastr: fix comment again
13926         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
13927         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
13928         Also, simplify example a bit by using flags = 0.
13929
13930 2010-12-20  Bruno Haible  <bruno@clisp.org>
13931
13932         round*, trunc*: Update documentation regarding glibc.
13933         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
13934         * doc/posix-functions/round.texi: Likewise.
13935         * doc/posix-functions/roundl.texi: Likewise.
13936         * doc/posix-functions/truncf.texi: Likewise.
13937         * doc/posix-functions/trunc.texi: Likewise.
13938         * doc/posix-functions/truncl.texi: Likewise.
13939
13940 2010-12-20  Bruno Haible  <bruno@clisp.org>
13941
13942         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
13943         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
13944         * doc/posix-functions/round.texi: Likewise.
13945         * doc/posix-functions/roundl.texi: Likewise.
13946
13947 2010-12-20  Bruno Haible  <bruno@clisp.org>
13948
13949         ttyname_r: Add missing declaration on HP-UX 11.
13950         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
13951         HAVE_TTYNAME_R.
13952         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
13953         declared. Set HAVE_TTYNAME_R always.
13954         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13955         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
13956         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
13957         HAVE_TTYNAME_R.
13958         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
13959
13960 2010-12-20  Bruno Haible  <bruno@clisp.org>
13961
13962         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
13963         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
13964         * doc/posix-functions/getlogin_r.texi: Likewise.
13965         * tests/test-getlogin.c: Include <errno.h>.
13966         (main): Avoid test failure on HP-UX 11.11.
13967         * tests/test-getlogin_r.c (main): Likewise.
13968
13969 2010-12-20  Bruno Haible  <bruno@clisp.org>
13970
13971         getlogin_r: Add missing declaration on HP-UX 11.
13972         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
13973         declared also when it exists as a function.
13974         * doc/posix-functions/getlogin_r.texi: Document this workaround.
13975
13976 2010-12-20  Bruno Haible  <bruno@clisp.org>
13977
13978         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
13979         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
13980         through wcrtomb.
13981
13982 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
13983
13984         ftoastr: fix comment
13985         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
13986         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
13987
13988 2010-12-19  Bruno Haible  <bruno@clisp.org>
13989
13990         isnan: Ensure it is a macro.
13991         * lib/math.in.h (isnan): Define as a macro if not already a macro.
13992         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
13993         Solaris.
13994
13995 2010-12-19  Bruno Haible  <bruno@clisp.org>
13996
13997         ldexpl test: Fix link error on OSF/1 5.1.
13998         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
13999
14000 2010-12-19  Bruno Haible  <bruno@clisp.org>
14001
14002         wctype: Make it work in C++ mode on OSF/1 5.1.
14003         * lib/wctype.in.h (iswblank): Declare but not define here.
14004         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
14005         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
14006         * modules/wctype (Files): Add lib/iswblank.c.
14007
14008 2010-12-19  Bruno Haible  <bruno@clisp.org>
14009
14010         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
14011         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
14012         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
14013
14014 2010-12-19  Bruno Haible  <bruno@clisp.org>
14015
14016         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
14017         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
14018         _POSIX_PII_SOCKET.
14019         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
14020         * doc/posix-functions/recvfrom.texi: Likewise.
14021         * doc/posix-functions/send.texi: Likewise.
14022         * doc/posix-functions/sendto.texi: Likewise.
14023
14024 2010-12-19  Bruno Haible  <bruno@clisp.org>
14025
14026         tcgetsid: Add missing declaration on OSF/1 5.1.
14027         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
14028         HAVE_TCGETSID.
14029         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
14030         Don't set HAVE_TCGETSID.
14031         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
14032         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
14033         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
14034         HAVE_TCGETSID.
14035         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
14036
14037 2010-12-19  Bruno Haible  <bruno@clisp.org>
14038
14039         stdio: Fix problem with popen() declaration on OSF/1 5.1.
14040         * lib/stdio.in.h: During the include_next statement, let recursive
14041         includes of this file include only the system header file.
14042
14043 2010-12-19  Bruno Haible  <bruno@clisp.org>
14044
14045         iconv_open: Fix regression from 2010-12-04.
14046         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
14047         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
14048
14049 2010-12-19  Bruno Haible  <bruno@clisp.org>
14050
14051         stdbool test: Avoid a gcc warning.
14052         * tests/test-stdbool.c (main): Fail if e1 is false.
14053         Reported by Jim Meyering.
14054
14055 2010-12-19  Jim Meyering  <meyering@redhat.com>
14056
14057         setenv: restore to working order
14058         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
14059         mistakenly removed.
14060         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
14061         HAVE_SETENV.
14062         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
14063         HAVE_SETENV.
14064
14065 2010-12-19  Bruno Haible  <bruno@clisp.org>
14066
14067         Document some different function declarations on OSF/1 5.1.
14068         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
14069         * doc/posix-functions/inet_ntop.texi: Likewise.
14070         * doc/posix-functions/gethostname.texi: Likewise.
14071         * lib/unistd.in.h (gethostname): Update comment.
14072
14073 2010-12-19  Bruno Haible  <bruno@clisp.org>
14074
14075         doc: Mention vasprintf-posix module.
14076         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
14077         the 'vasprintf-posix' module.
14078         * doc/glibc-functions/vasprintf.texi: Likewise.
14079
14080 2010-12-19  Bruno Haible  <bruno@clisp.org>
14081
14082         unsetenv: Add missing declaration on OSF/1 5.1.
14083         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
14084         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
14085         Don't set HAVE_UNSETENV. In the test program, set _BSD.
14086         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
14087         not HAVE_UNSETENV.
14088         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
14089         HAVE_UNSETENV.
14090         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
14091
14092 2010-12-19  Bruno Haible  <bruno@clisp.org>
14093
14094         setenv: Add missing declaration on OSF/1 5.1.
14095         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
14096         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
14097         declared. Don't set HAVE_SETENV.
14098         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
14099         not HAVE_SETENV.
14100         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
14101         HAVE_SETENV.
14102         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
14103
14104 2010-12-19  Bruno Haible  <bruno@clisp.org>
14105
14106         nl_langinfo tests: Avoid gcc warning.
14107         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
14108
14109 2010-12-19  Bruno Haible  <bruno@clisp.org>
14110
14111         mknod: Avoid error in C++ mode on OSF/1 with GCC.
14112         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
14113         _GL_CXXALIAS_SYS.
14114
14115 2010-12-19  Bruno Haible  <bruno@clisp.org>
14116
14117         stdbool: Relax test.
14118         * tests/test-stdbool.c (e): Don't require that casts from a variable's
14119         address to 'bool' work in static initializer, for compilers other than
14120         GCC.
14121
14122 2010-12-19  Bruno Haible  <bruno@clisp.org>
14123
14124         ftello: Add missing declaration on OSF/1 5.1.
14125         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
14126         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
14127         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
14128         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
14129         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
14130
14131 2010-12-19  Bruno Haible  <bruno@clisp.org>
14132
14133         fseeko: Add missing declaration on OSF/1 5.1.
14134         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
14135         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
14136         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
14137         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
14138         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
14139
14140 2010-12-19  Bruno Haible  <bruno@clisp.org>
14141
14142         fchdir: Add missing declaration on OSF/1 5.1.
14143         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
14144         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
14145         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
14146         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
14147         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
14148
14149 2010-12-19  Bruno Haible  <bruno@clisp.org>
14150
14151         relocatable-prog-wrapper: Separate from relocatable-prog.
14152         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
14153         uninstall-relocwrapper rule here.
14154         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
14155         Reported by Ian Beckwith <ianb@erislabs.net>.
14156
14157 2010-12-19  Bruno Haible  <bruno@clisp.org>
14158
14159         unistr/u8-mbsnlen: Add missing dependency.
14160         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
14161         Reported by Ian Beckwith <ianb@erislabs.net>.
14162
14163 2010-12-19  Bruno Haible  <bruno@clisp.org>
14164
14165         iconv: Make it possible again to use this module without 'iconv-h'.
14166         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
14167         if it is not defined.
14168         Reported by Ian Beckwith <ianb@erislabs.net>.
14169
14170 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
14171
14172         acl: port to Solaris 8 when copying from tmpfs to ufs
14173         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
14174         error number.  Problem observed on Solaris 8 with latest
14175         coreutils, with "mv A B", where A is on a tmpfs file system and B
14176         is on a ufs file system.  This caused coreutils' mv/part-symlink
14177         test to fail.
14178
14179         tests: set fail=0 at start
14180         * tests/init.sh (setup_): Move fail=0 initialization here ...
14181         (mktempd_): ... from here, so that tests can rely on fail being
14182         set to 0 initially.  This fixes a problem in coreutils; see:
14183         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
14184
14185 2010-12-18  Bruno Haible  <bruno@clisp.org>
14186
14187         memmem-simple: Stylistic changes.
14188         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
14189         Fix preprocessor directive indentation.
14190
14191 2010-12-15  Pádraig Brady <P@draigBrady.com>
14192
14193         memmem, memmem-simple: reorganize and expand empty needle check
14194         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
14195         functional checks to memmem-simple so that one has a fully functional
14196         memmem by using just this module.
14197         Restrict the performance only check to the memmem module.
14198         Also expand the empty needle check to ensure the correct
14199         pointer is returned, not just a non NULL pointer.
14200         * doc/glibc-functions/memmem.texi: Rearrange the portability
14201         documentation to correlate with the rearranged checks.
14202         Clarify exactly how the memmem and memmem-simple modules
14203         relate to each other.
14204
14205 2010-12-15  Pádraig Brady <P@draigBrady.com>
14206             Bruno Haible  <bruno@clisp.org>
14207
14208         Improve cross-compilation guesses for uClibc.
14209         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
14210         that uClibc does not have the glibc bug.
14211         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
14212         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
14213
14214 2010-12-14  Eric Blake  <eblake@redhat.com>
14215
14216         configmake: provide fallbacks for oldest supported autotools
14217         * m4/configmake.m4: New file.
14218         * modules/configmake (Files): Ship it.
14219         (configure.ac): Use it to guarantee fallbacks.
14220
14221 2010-12-13  Pádraig Brady <P@draigBrady.com>
14222
14223         read-file: Improve handling of large files
14224         * lib/read-file.c (fread_file): Minimize realloc()s
14225         for regular files, and better manage sizes around SIZE_MAX.
14226
14227 2010-12-13  Eric Blake  <eblake@redhat.com>
14228
14229         cloexec, fcntl: relax license
14230         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
14231         consent from all contributors.
14232         * modules/fcntl (License): Likewise.
14233
14234 2010-12-10  Bruno Haible  <bruno@clisp.org>
14235
14236         Tests for module 'pipe-posix'.
14237         * modules/pipe-posix-tests: New file.
14238         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
14239
14240 2010-12-10  Bruno Haible  <bruno@clisp.org>
14241
14242         pipe-posix: Make it work in C++ mode.
14243         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
14244         (pipe): Use common idiom, not a macro definition.
14245         * lib/pipe.c: New file.
14246         * m4/pipe.m4: New file.
14247         * modules/pipe-posix (Description): Enhance.
14248         (Files): Add lib/pipe.c, m4/pipe.m4.
14249         (configure.ac): Invoke gl_FUNC_PIPE.
14250         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
14251         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
14252         * tests/test-unistd-c++.cc: Check the signature of pipe.
14253
14254 2010-12-10  Bruno Haible  <bruno@clisp.org>
14255
14256         Rename module 'pipe' to 'spawn-pipe'.
14257         * modules/spawn-pipe: New file, renamed from modules/pipe.
14258         (Files, configure.ac, Makefile.am): Update.
14259         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
14260         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
14261         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
14262         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
14263         "spawn-pipe.h" instead of "pipe.h".
14264         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
14265         to gl_SPAWN_PIPE.
14266         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
14267         (Files, Makefile.am): Update.
14268         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
14269         Update.
14270         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
14271         Include "spawn-pipe.h" instead of "pipe.h".
14272         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
14273         * lib/javacomp.c: Likewise.
14274         * lib/javaversion.c: Likewise.
14275         * lib/pipe-filter-gi.c: Likewise.
14276         * lib/pipe-filter-ii.c: Likewise.
14277         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
14278         * modules/javacomp (Depends-on): Likewise.
14279         * modules/javaversion (Depends-on): Likewise.
14280         * modules/pipe-filter-gi (Depends-on): Likewise.
14281         * modules/pipe-filter-ii (Depends-on): Likewise.
14282         * MODULES.html.sh (Executing programs): Update.
14283         * NEWS: Mention the change.
14284
14285 2010-12-10  Eric Blake  <eblake@redhat.com>
14286
14287         pipe-posix: new module
14288         * modules/pipe-posix: New file.
14289         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
14290         (gl_UNISTD_H): Check for declaration.
14291         * modules/unistd (Makefile.am): Substitute it.
14292         * lib/unistd.in.h (pipe): Provide it for mingw.
14293         * doc/posix-functions/pipe.texi (pipe): Update documentation.
14294         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
14295
14296 2010-12-07  Bruno Haible  <bruno@clisp.org>
14297
14298         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
14299         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
14300         u8_strcmp_gnu.
14301         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
14302
14303 2010-12-06  Bruno Haible  <bruno@clisp.org>
14304
14305         Update internal documentation.
14306         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
14307
14308 2010-12-04  Bruno Haible  <bruno@clisp.org>
14309
14310         Put more information about failed tests into the test return codes.
14311         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
14312         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
14313         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
14314         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14315         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
14316         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14317         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14318         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
14319         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
14320         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14321         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
14322         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
14323         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14324         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14325         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
14326         returns a bit mask.
14327         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
14328         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
14329         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
14330         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
14331         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
14332         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
14333         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
14334         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
14335         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
14336         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
14337         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
14338         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
14339         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
14340         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
14341         * m4/link.m4 (gl_FUNC_LINK): Likewise.
14342         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
14343         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
14344         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
14345         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14346         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
14347         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
14348         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
14349         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
14350         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
14351         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
14352         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
14353         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
14354         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
14355         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
14356         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
14357         gl_PRINTF_PRECISION): Likewise.
14358         * m4/regex.m4 (gl_REGEX): Likewise.
14359         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
14360         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14361         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
14362         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14363         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14364         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14365         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
14366         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
14367         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
14368         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14369         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
14370         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
14371         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
14372         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
14373         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14374         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14375         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
14376         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
14377         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14378         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
14379         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
14380         enumerated value.
14381         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
14382
14383 2010-12-04  Bruno Haible  <bruno@clisp.org>
14384
14385         Update for Solaris 11 2010-11.
14386         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
14387         Express, released in November 2010.
14388
14389 2010-12-04  Bruno Haible  <bruno@clisp.org>
14390
14391         nproc: Relax license.
14392         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
14393         and Paul Eggert.
14394         Requested by Ludovic Courtès <ludo@gnu.org>.
14395
14396 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
14397
14398         utimecmp: fine-grained src to nearby coarse-grained dest
14399
14400         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
14401         and the source is on a file system with higher-resolution time
14402         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
14403         not work, and the time stamps are close together, the algorithm to
14404         determine the exact resolution from the read-back mtime was buggy:
14405         it had a "!=" where it should have had an "==".  This bug has been
14406         in the code ever since it was introduced to gnulib.
14407         Problem reported by Dan Jacobson in
14408         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
14409
14410 2010-11-30  Bruno Haible  <bruno@clisp.org>
14411
14412         strerror_r-posix: Fix autoconf test.
14413         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
14414
14415 2010-11-28  Bruno Haible  <bruno@clisp.org>
14416             Paul Eggert  <eggert@cs.ucla.edu>
14417
14418         Tests for module 'getdomainname'.
14419         * modules/getdomainname-tests: New file.
14420         * tests/test-getdomainname.c: New file, based on
14421         tests/test-gethostname.c.
14422
14423 2010-11-28  Bruno Haible  <bruno@clisp.org>
14424             Paul Eggert  <eggert@cs.ucla.edu>
14425
14426         getdomainname: Use the system function when possible.
14427         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
14428         (getdomainname): Replace if needed. Provide the declaration if it is
14429         missing. Don't use _GL_CXXALIAS_SYS_CAST.
14430         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
14431         (getdomainname): When the system has getdomainname, call the system
14432         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
14433         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
14434         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
14435         found in libnsl. Look for the declaration also in <netdb.h>. Replace
14436         the function if its second argument is of type 'int' or if it is found
14437         in libnsl.
14438         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
14439         <sys/systeminfo.h> and sysinfo().
14440         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
14441         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14442         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
14443         HAVE_GETDOMAINNAME.
14444         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
14445         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
14446         * doc/glibc-functions/getdomainname.texi: Document the problems with
14447         the getdomainname declaration.
14448
14449 2010-11-28  Bruno Haible  <bruno@clisp.org>
14450
14451         sys_socket: Ensure ss_family field on AIX.
14452         * lib/sys_socket.in.h (ss_family): New macro definition.
14453         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
14454         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
14455         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
14456         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14457         * modules/sys_socket (Makefile.am): Substitute
14458         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14459         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
14460
14461 2010-11-27  Bruno Haible  <bruno@clisp.org>
14462
14463         readline: Improve configure output.
14464         * m4/readline.m4 (gl_FUNC_READLINE): Make the
14465         "checking for readline..." result understandable.
14466
14467 2010-11-27  Bruno Haible  <bruno@clisp.org>
14468
14469         *printf-posix: Detect a bug on Solaris 10/x86.
14470         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
14471         for floating-point output.
14472         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
14473         directive.
14474         * tests/test-snprintf-posix.h (test_function): Likewise.
14475         * tests/test-sprintf-posix.h (test_function): Likewise.
14476         * tests/test-vasprintf-posix.c (test_function): Likewise.
14477         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
14478         * doc/posix-functions/printf.texi: Likewise.
14479         * doc/posix-functions/snprintf.texi: Likewise.
14480         * doc/posix-functions/sprintf.texi: Likewise.
14481         * doc/posix-functions/vfprintf.texi: Likewise.
14482         * doc/posix-functions/vprintf.texi: Likewise.
14483         * doc/posix-functions/vsnprintf.texi: Likewise.
14484         * doc/posix-functions/vsprintf.texi: Likewise.
14485         * doc/glibc-functions/obstack_printf.texi: Likewise.
14486         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14487
14488 2010-11-27  Bruno Haible  <bruno@clisp.org>
14489
14490         Fix link error when module libunistring-optional is in use.
14491         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
14492         * modules/striconveha-tests (Makefile.am): Likewise.
14493
14494 2010-11-27  Bruno Haible  <bruno@clisp.org>
14495
14496         regex: Mention link dependencies.
14497         * modules/regex (Link): New section.
14498         * modules/rpmatch (Link): Likewise.
14499         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
14500
14501 2010-11-27  Bruno Haible  <bruno@clisp.org>
14502
14503         ftoastr: Fix compilation error on Solaris.
14504         * lib/ftoastr.c: Include <config.h>.
14505
14506 2010-11-27  Bruno Haible  <bruno@clisp.org>
14507
14508         getloadavg: Update documentation.
14509         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
14510
14511 2010-11-27  Bruno Haible  <bruno@clisp.org>
14512
14513         sys_socket: Fix test whether the functions are declared.
14514         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
14515         not <sys/select.h>.
14516
14517 2010-11-27  Bruno Haible  <bruno@clisp.org>
14518
14519         getpass: Make sure to get system declaration on some platforms.
14520         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
14521         gl_USE_SYSTEM_EXTENSIONS.
14522         * modules/getpass (Depends-on): Add extensions.
14523
14524 2010-11-26  Bruno Haible  <bruno@clisp.org>
14525
14526         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
14527         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
14528         'iconv' module is present.
14529         (ICONV_CONST): New macro.
14530         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
14531         ICONV_CONST.
14532         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
14533         set ICONV_CONST.
14534         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
14535         here.
14536         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
14537         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
14538         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
14539         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
14540         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
14541         present.
14542
14543 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
14544
14545         ftoastr: comment fix
14546         * lib/ftoastr.c: "little" -> "little or no" in comment
14547
14548 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
14549
14550         stdint: port to GCC 4.3 + OSX + Octave
14551         On this platform, stdint.h is buggy and defines int64_t to long
14552         long int.  The replacement defined it to long int, causing
14553         problems with C++ style name mangling.  Instead, trust the system
14554         definition if INT64_MAX is defined, and likewise for the unsigned
14555         variant.   Problem reported by Jarno Rajahalme in
14556         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
14557         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
14558         and don't mess with int64_t and INT64_MAX in this case.
14559         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
14560
14561 2010-11-24  Bruno Haible  <bruno@clisp.org>
14562
14563         doc: Corrections regarding MacOS X 10.4 and 10.5.
14564         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
14565         MacOS X.
14566         Reported by Simon Josefsson.
14567
14568 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
14569
14570         Uninstall ".bin" files installed by relocwrapper.
14571         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
14572         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
14573         unless it is already there.
14574
14575 2010-11-21  Bruno Haible  <bruno@clisp.org>
14576
14577         Update for NetBSD 5.0.
14578         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
14579         NetBSD; the test fails on NetBSD 5.0.
14580         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
14581         about NetBSD.
14582
14583 2010-11-21  Bruno Haible  <bruno@clisp.org>
14584
14585         Update for HP-UX 11.23 and HP-UX 11.31.
14586         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
14587         HP-UX.
14588
14589 2010-11-21  Bruno Haible  <bruno@clisp.org>
14590
14591         Update for MacOS X 10.5.
14592         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
14593         MacOS X; the test fails on MacOS X 10.5.8.
14594         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
14595         about MacOS X.
14596
14597 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
14598
14599         bootstrap: add bootstrap_sync option.
14600         See discussion at
14601         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
14602         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
14603         * build-aux/bootstrap: Accept --bootstrap-sync to update
14604         bootstrap if it is not identical to the local gnulib's
14605         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
14606         enable this by default.  Accept --no-bootstrap-sync to disable
14607         it.
14608
14609 2010-11-20  Bruno Haible  <bruno@clisp.org>
14610
14611         Ensure that <features.h> is included before __GLIBC__ is tested.
14612         * lib/printf-parse.h: Include <features.h>.
14613         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
14614         Reported by Mike Frysinger <vapier@gentoo.org>.
14615
14616         Ensure that <features.h> is included before __GLIBC__ is tested.
14617         * lib/wchar.in.h: Include <features.h>.
14618         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
14619         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
14620         Reported by Mike Frysinger <vapier@gentoo.org>.
14621
14622         Ensure that <features.h> is included before __GLIBC__ is tested.
14623         * lib/arpa_inet.in.h: Include <features.h>.
14624         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
14625         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
14626         Reported by Mike Frysinger <vapier@gentoo.org>.
14627
14628         Ensure that <features.h> is included before __GLIBC__ is tested.
14629         * build-aux/link-warning.h: Include <features.h>.
14630         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
14631         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
14632         Reported by Mike Frysinger <vapier@gentoo.org>.
14633
14634         Ensure that <features.h> is included before __GLIBC__ is tested.
14635         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
14636         Reported by Mike Frysinger <vapier@gentoo.org>.
14637
14638 2010-11-20  Bruno Haible  <bruno@clisp.org>
14639
14640         memmem: Fix autoconf test.
14641         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
14642
14643 2010-11-20  Bruno Haible  <bruno@clisp.org>
14644
14645         Port to uClibc.
14646         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
14647         * lib/fcntl.in.h: Likewise.
14648         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
14649         * lib/mbrtowc.c (mbrtowc): Likewise.
14650         * lib/relocatable.c (find_shared_library_fullname): Likewise.
14651         * lib/strerror_r.c: Likewise.
14652         * lib/unistr/u8-strnlen.c: Likewise.
14653         * lib/vasnprintf.c (decimal_point_char): Likewise.
14654         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
14655         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
14656         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
14657         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
14658         * tests/test-sigaction.c (handler, main): Likewise.
14659         * lib/freading.h: Treat uClibc like a non-glibc platform.
14660         * lib/freading.c: Likewise.
14661         * lib/gettext.h: Likewise.
14662         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
14663         Likewise.
14664         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
14665         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
14666         * lib/propername.c (proper_name_utf8): Likewise.
14667         * lib/spawn.in.h: Likewise.
14668         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
14669         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
14670         mem_cd_iconveh_internal): Likewise.
14671         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
14672         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
14673         strstr, strcasestr): Likewise.
14674         * lib/unicodeio.c (unicode_to_mb): Likewise.
14675         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
14676         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
14677         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
14678         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
14679         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
14680         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
14681         * lib/unistr/u8-stpncpy.c: Likewise.
14682         * lib/vasnprintf.c (VASNPRINTF): Likewise.
14683         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
14684         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14685         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14686         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
14687         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
14688         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
14689         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
14690         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
14691         Likewise.
14692         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
14693         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14694         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
14695         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14696         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
14697         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14698         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14699         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
14700         * tests/test-getopt.h (OPTIND_MIN): Likewise.
14701         * tests/test-striconveha.c (main): Likewise.
14702         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14703         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
14704         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
14705         * doc/posix-functions/getline.texi: Likewise.
14706         Reported by Mike Frysinger <vapier@gentoo.org>.
14707
14708 2010-11-20  Bruno Haible  <bruno@clisp.org>
14709
14710         nproc: Fix condition.
14711         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
14712         HAVE_PTHREAD_AFFINITY_NP.
14713
14714 2010-11-20  Bruno Haible  <bruno@clisp.org>
14715
14716         Fix a comment.
14717         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
14718
14719 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
14720
14721         ftoastr: don't assume snprintf
14722         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
14723         Implement a subset of snprintf here, by using sprintf safely.
14724         * modules/ftoastr (Depends-on): Remove snprintf.
14725
14726 2010-11-19  Jim Meyering  <meyering@redhat.com>
14727
14728         test-rename.h: fix compilation failure
14729         * tests/test-rename.h (test_rename): Add omitted "}".
14730
14731 2010-11-17  Jim Meyering  <meyering@redhat.com>
14732
14733         maint.mk: add a URL discussing the no-@acronym policy
14734         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
14735
14736 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
14737
14738         ftoastr: depend on snprintf, improve comments
14739         * lib/ftoastr.c: Also mention Loitsch's draft.
14740         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
14741         needed in the current implementation, but it might simplify
14742         speeding up the code later.
14743         * modules/ftoastr: Depend on snprintf; this improves portability.
14744         Suggested by Bruno Haible in the same email.
14745
14746         ftoastr: port to hosts lacking strtof and strtold
14747         Problem reported by Bruno Haible in
14748         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
14749         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
14750         environment and strtold (and presumably strtof) are not available.
14751         * modules/ftoastr (Files): Add m4/c-strtod.m4.
14752         (configure.ac): Require gl_C99_STRTOLD.
14753
14754 2010-11-18  Bruno Haible  <bruno@clisp.org>
14755
14756         c-strtold: Avoid link error on AIX 7.
14757         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
14758         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
14759         (gl_C_STRTOLD): Test whether strtold_l exists.
14760         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14761
14762 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
14763
14764         intprops: new macro INT_BITS_STRLEN_BOUND
14765         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
14766         ftoastr.h.  This exposes an internal of intprops.h that was formerly
14767         not exposed.  Also, it uses a slightly tighter bound than before;
14768         though this makes no practical difference, we might as well be as
14769         tight as we easily can.
14770
14771         ftoastr: new module, for lossless conversion of floats to short strings
14772         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
14773         * modules/ftoastr: New files.
14774
14775 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
14776
14777         bootstrap: port to Solaris sed
14778         * build-aux/bootstrap (get_version): Port to Solaris sed.
14779         See Ralf Wildenhues's note in
14780         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
14781
14782 2010-11-14  Jim Meyering  <meyering@redhat.com>
14783
14784         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
14785         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
14786         and move definition closer to sole use.
14787
14788 2010-11-13  Jim Meyering  <meyering@redhat.com>
14789
14790         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
14791         Now we require at least autoconf-2.59, which means the work-around
14792         is no longer needed.
14793         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
14794         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14795         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
14796         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
14797         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
14798
14799 2010-11-13  Bruno Haible  <bruno@clisp.org>
14800
14801         rename, renameat: Avoid test failures at NFS mounted locations.
14802         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
14803         functions.
14804         (test_rename): Use assert_nonexistent.
14805         * tests/test-rename.c: Include <dirent.h>.
14806         * tests/test-renameat.c: Likewise.
14807         Reported by Gary V. Vaughan <gary@gnu.org>.
14808
14809         rename, renameat: Document Linux bug with NFS
14810         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
14811         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
14812         * doc/posix-functions/renameat.texi: Likewise.
14813         Suggested by Eric Blake.
14814
14815 2010-11-13  Bruno Haible  <bruno@clisp.org>
14816
14817         rename test: Add comments.
14818         * tests/test-rename.h (test_rename): Add structure and comments.
14819
14820 2010-11-13  Eric Blake  <eblake@redhat.com>
14821
14822         maintainer-makefile: cover a few more files
14823         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
14824         scripts generated within C files, for libvirt.
14825
14826 2010-11-13  Bruno Haible  <bruno@clisp.org>
14827
14828         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
14829         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
14830         character, return the number of bytes that belong together, not always
14831         1.
14832         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
14833         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
14834         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
14835         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
14836         number of bytes of an invalid character.
14837         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
14838         (main): Invoke it.
14839         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
14840         results.
14841         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
14842         malformed byte sequences.
14843         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
14844         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
14845         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
14846         Reported by Ben Pfaff and Paolo Bonzini.
14847
14848 2010-11-13  Bruno Haible  <bruno@clisp.org>
14849
14850         openat: Work around glibc bug with fchownat() and empty file names.
14851         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
14852         (gl_FUNC_FCHOWNAT): Invoke it.
14853         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
14854         * doc/posix-functions/fchownat.texi: Document the glibc bug.
14855         Reported by Gary V. Vaughan <gary@gnu.org>.
14856
14857 2010-11-13  Bruno Haible  <bruno@clisp.org>
14858
14859         openat: Ensure autoconf macro ordering.
14860         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
14861         gl_USE_SYSTEM_EXTENSIONS.
14862         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
14863
14864 2010-11-13  Bruno Haible  <bruno@clisp.org>
14865
14866         Update comments.
14867         * lib/unistr/u8-check.c: Update file name in comments.
14868         * lib/unistr/u8-mblen.c: Likewise.
14869         * lib/unistr/u8-prev.c: Likewise.
14870         * lib/unistr/u8-strmblen.c: Likewise.
14871         * lib/unistr/u8-strmbtouc.c: Likewise.
14872
14873 2010-11-13  Jim Meyering  <meyering@redhat.com>
14874
14875         tests: avoid test failure on Solaris 10 due to lack of PATH export
14876         * tests/test-update-copyright.sh: Don't forget to export PATH.
14877
14878         init.sh: ensure that IFS is defined, just in case...
14879         * tests/init.sh (setup_): Ensure that IFS is defined,
14880         so that saving and restoring it works as expected.  This
14881         appears to be useful at least for an old version of dash
14882         from a long time ago (RH 6).  See here for details:
14883         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
14884
14885         maint.mk: tighten "test a == b" check
14886         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
14887         test to files that contain something like #!/bin/sh.
14888         Without this, coreutils would get two false positives in
14889         the comments of C source files.
14890
14891 2010-11-12  Eric Blake  <eblake@redhat.com>
14892
14893         bootstrap: fix typo in previous attempt
14894         * build-aux/bootstrap (buildreq): Correct the grouping.
14895         Reported by Paul Eggert.
14896
14897         maintainer-makefile: prohibit test x == x
14898         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
14899         Based on a report by Matthias Bolte.
14900
14901         bootstrap: allow FreeBSD gzip
14902         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
14903         which has no '.' and goes to stderr.
14904         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
14905         Reported by Matthias Bolte.
14906
14907         maintainer-makefile: check for i18n setup
14908         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
14909         will likely work.
14910
14911 2010-11-12  Bruno Haible  <bruno@clisp.org>
14912
14913         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
14914         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
14915         * lib/nanosleep.c (nanosleep): Likewise.
14916
14917 2010-11-11  Bruno Haible  <bruno@clisp.org>
14918
14919         fcntl-h: Fix for use of C++ on glibc systems.
14920         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
14921         also on glibc systems in C++ mode.
14922         Reported by Gary V. Vaughan <gary@gnu.org>.
14923
14924 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14925
14926         mknod: avoid false failure with dash
14927         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
14928
14929 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
14930
14931         unlink: Fix "is it should" typo in diagnostic.
14932         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
14933         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
14934
14935 2010-11-11  Bruno Haible  <bruno@clisp.org>
14936
14937         Tests for module 'strerror_r-posix'.
14938         * modules/strerror_r-posix-tests: New file.
14939         * tests/test-strerror_r.c: New file.
14940         * tests/test-string-c++.cc: Check the signature of strerror_r.
14941
14942         New module 'strerror_r-posix'.
14943         * lib/string.in.h (strerror_r): New declaration.
14944         * lib/strerror_r.c: New file.
14945         * m4/strerror_r.m4: New file.
14946         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
14947         of strerror_r.
14948         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
14949         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
14950         * modules/strerror_r-posix: New file.
14951         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
14952         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
14953         * doc/posix-functions/strerror_r.texi: Mention the new module and the
14954         portability problems.
14955
14956 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
14957
14958         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
14959         line is also considered for output. Quoted function name in shell
14960         command, so temporary files for functions like MyClass::operator()
14961         are removed correctly without errors.
14962
14963 2010-11-09  Bruno Haible  <bruno@clisp.org>
14964
14965         * doc/posix-functions/strerror.texi: List more failing platforms.
14966
14967         * doc/posix-functions/strerror.texi: Add a comment.
14968
14969 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
14970
14971         fdopendir: fix bug on MacOS X when low on file descriptors
14972
14973         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
14974         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
14975         All callers changed.
14976         (fdopendir): Invoke save_cwd at the top level, not after using
14977         multiple dup() calls to use up file descriptors.  Then retry
14978         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
14979         less than the maximum number of open file descriptors, because
14980         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
14981         on Mac OS X 10.6.4 for tar 1.24
14982         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
14983         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
14984         and for tar 1.25
14985         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
14986
14987 2010-11-07  Bruno Haible  <bruno@clisp.org>
14988
14989         vasnprintf: Support I flag on glibc systems.
14990         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
14991         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
14992         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
14993         snprintf function.
14994         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
14995         glibc systems.
14996         * tests/test-vasnprintf-posix3.c: New file.
14997         * modules/vasnprintf-posix-tests (Files): Add it.
14998         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
14999
15000 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
15001
15002         [html] Fix copy/paste bug: Use unique name for compiler warnings.
15003         * MODULES.html.sh: For compiler warnings, use name
15004         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
15005
15006 2010-11-05  Eric Blake  <eblake@redhat.com>
15007
15008         ceil, floor: avoid spurious failure with icc
15009         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
15010         [denormals-as-zero] when optimizing without -mieee-fp option.
15011         * tests/test-floorf2.c (floorf_reference): Likewise.
15012         * tests/test-ceilf1.c (dummy): New function.
15013         (main): Use it to outsmart icc's optimization.
15014         * tests/test-floorf1.c (dummy, main): Likewise.
15015
15016         tests: require working signbit
15017         * modules/ceilf-tests (Depends-on): Add signbit.
15018         * modules/ceill-tests (Depends-on): Likewise.
15019         * modules/floorf-tests (Depends-on): Likewise.
15020         * modules/floorl-tests (Depends-on): Likewise.
15021         * modules/round-tests (Depends-on): Likewise.
15022         * modules/roundf-tests (Depends-on): Likewise.
15023         * modules/roundl-tests (Depends-on): Likewise.
15024         * modules/trunc-tests (Depends-on): Likewise.
15025         * modules/truncf-tests (Depends-on): Likewise.
15026         * modules/truncl-tests (Depends-on): Likewise.
15027
15028         strtod: work around icc bug
15029         * lib/strtod.c (minus_zero): Define to working value.
15030         (strtod): Use it to avoid icc bug.
15031
15032         copysign: enhance tests
15033         * modules/copysign-tests (Files): Add minus-zero.h.
15034         * tests/test-copysign.c (main): Also test zeros.
15035
15036 2010-11-04  Eric Blake  <eblake@redhat.com>
15037
15038         ceil, floor, round, trunc: enhance tests of -0
15039         * tests/test-ceilf1.c (main): Ensure correct sign of result.
15040         * tests/test-ceill.c (main): Likewise.
15041         * tests/test-floorf1.c (main): Likewise.
15042         * tests/test-floorl.c (main): Likewise.
15043         * tests/test-round1.c (main): Likewise.
15044         * tests/test-roundf1.c (main): Likewise.
15045         * tests/test-roundl.c (main): Likewise.
15046         * tests/test-trunc1.c (main): Likewise.
15047         * tests/test-truncf1.c (main): Likewise.
15048         * tests/test-truncl.c (main): Likewise.
15049
15050 2010-11-04  Eric Blake  <eblake@redhat.com>
15051
15052         frexp, tests: work around ICC bug with -zero
15053         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
15054         works with more compilers.
15055         * tests/minus-zero.h: New file.
15056         * modules/ceilf-tests (Files): Include it.
15057         * modules/ceill-tests (Files): Likewise.
15058         * modules/floorf-tests (Files): Likewise.
15059         * modules/floorl-tests (Files): Likewise.
15060         * modules/frexp-nolibm-tests (Files): Likewise.
15061         * modules/frexp-tests (Files): Likewise.
15062         * modules/frexpl-nolibm-tests (Files): Likewise.
15063         * modules/frexpl-tests (Files): Likewise.
15064         * modules/isnan-tests (Files): Likewise.
15065         * modules/isnand-nolibm-tests (Files): Likewise.
15066         * modules/isnand-tests (Files): Likewise.
15067         * modules/isnanf-nolibm-tests (Files): Likewise.
15068         * modules/isnanf-tests (Files): Likewise.
15069         * modules/isnanl-nolibm-tests (Files): Likewise.
15070         * modules/isnanl-tests (Files): Likewise.
15071         * modules/round-tests (Files): Likewise.
15072         * modules/roundf-tests (Files): Likewise.
15073         * modules/roundl-tests (Files): Likewise.
15074         * modules/ldexpl-tests (Files): Likewise.
15075         * modules/signbit-tests (Files): Likewise.
15076         * modules/snprintf-posix-tests (Files): Likewise.
15077         * modules/sprintf-posix-tests (Files): Likewise.
15078         * modules/strtod-tests (Files): Likewise.
15079         * modules/trunc-tests (Files): Likewise.
15080         * modules/truncf-tests (Files): Likewise.
15081         * modules/truncl-tests (Files): Likewise.
15082         * modules/vsnprintf-posix-tests (Files): Likewise.
15083         * modules/vsprintf-posix-tests (Files): Likewise.
15084         * modules/vasnprintf-posix-tests (Files): Likewise.
15085         * modules/vasprintf-posix-tests (Files): Likewise.
15086         * tests/test-ceilf1.c (main): Use it.
15087         * tests/test-ceill.c (main): Likewise.
15088         * tests/test-floorf1.c (main): Likewise.
15089         * tests/test-floorl.c (main): Likewise.
15090         * tests/test-frexp.c (main): Likewise.
15091         * tests/test-frexpl.c (main): Likewise.
15092         * tests/test-isnan.c (main): Likewise.
15093         * tests/test-isnand.h (main): Likewise.
15094         * tests/test-isnanf.h (main): Likewise.
15095         * tests/test-isnanl.h (main): Likewise.
15096         * tests/test-ldexpl.c (main): Likewise.
15097         * tests/test-round.c (main): Likewise.
15098         * tests/test-roundf.c (main): Likewise.
15099         * tests/test-roundl.c (main): Likewise.
15100         * tests/test-signbit.c (test_signbitf, test_signbitd)
15101         (test_signbitl): Likewise.
15102         * tests/test-snprintf-posix.h (test_function): Likewise.
15103         * tests/test-sprintf-posix.h (test_function): Likewise.
15104         * tests/test-strtod.c (main): Likewise.
15105         * tests/test-trunc1.c (main): Likewise.
15106         * tests/test-truncf1.c (main): Likewise.
15107         * tests/test-truncl.c (main): Likewise.
15108
15109         isnanl: work around icc bug
15110         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
15111
15112 2010-11-03  Eric Blake  <eblake@redhat.com>
15113
15114         tests: fix compiler warnings
15115         * tests/test-getopt.h (test_getopt): Fix condition.
15116         * tests/test-getopt_long.h (test_getopt_long): Likewise.
15117         * tests/test-pipe2.c (main): Likewise.
15118         * tests/test-quotearg-simple.c (main): Avoid icc warning.
15119
15120         utimens: fix broken m4 test
15121         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
15122
15123 2010-10-28  Bruno Haible  <bruno@clisp.org>
15124
15125         posix_spawn*, getdtablesize: Relax license.
15126         * modules/posix_spawn (License): Change to LGPLv2+.
15127         * modules/posix_spawnp (License): Likewise.
15128         * modules/posix_spawn-internal (License): Likewise.
15129         * modules/posix_spawnattr_init (License): Likewise.
15130         * modules/posix_spawnattr_getflags (License): Likewise.
15131         * modules/posix_spawnattr_setflags (License): Likewise.
15132         * modules/posix_spawnattr_getpgroup (License): Likewise.
15133         * modules/posix_spawnattr_setpgroup (License): Likewise.
15134         * modules/posix_spawnattr_getschedparam (License): Likewise.
15135         * modules/posix_spawnattr_setschedparam (License): Likewise.
15136         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
15137         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
15138         * modules/posix_spawnattr_getsigdefault (License): Likewise.
15139         * modules/posix_spawnattr_setsigdefault (License): Likewise.
15140         * modules/posix_spawnattr_getsigmask (License): Likewise.
15141         * modules/posix_spawnattr_setsigmask (License): Likewise.
15142         * modules/posix_spawnattr_destroy (License): Likewise.
15143         * modules/posix_spawn_file_actions_init (License): Likewise.
15144         * modules/posix_spawn_file_actions_addclose (License): Likewise.
15145         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
15146         * modules/posix_spawn_file_actions_addopen (License): Likewise.
15147         * modules/posix_spawn_file_actions_destroy (License): Likewise.
15148         * modules/getdtablesize (License): Likewise.
15149         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
15150
15151 2010-10-26  Bruno Haible  <bruno@clisp.org>
15152
15153         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
15154         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
15155         Cygwin and mingw.
15156         Suggested by Eric Blake.
15157
15158 2010-10-26  Bruno Haible  <bruno@clisp.org>
15159
15160         stdio: Work around compilation error due to renameat() on Solaris 10.
15161         * lib/stdio.in.h: Include <unistd.h> on Solaris.
15162         * lib/renameat.c: Don't include <unistd.h> here.
15163         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
15164         Reported by Paul Eggert and Eric Blake.
15165
15166 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
15167
15168         renameat: port to Solaris 10, which declares renameat in unistd.h
15169
15170         * lib/renameat.c: Include unistd.h before stdio.h, because
15171         Solaris 10 declares renameat in unistd.h.  Problem encountered
15172         when building GNU tar 1.24 on Solaris 10.
15173
15174 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
15175
15176         fdopendir: fix C89 compilation
15177         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
15178         compilers.
15179
15180 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
15181
15182         inttostr: simplify by removing unnecessary redundancy
15183         * lib/anytostr.c: Don't include verify.h.
15184         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
15185         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
15186         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
15187         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
15188         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
15189         Likewise.
15190         * modules/inttostr (Depends-on): Remove 'verify'.
15191
15192 2010-10-23  Bruno Haible  <bruno@clisp.org>
15193
15194         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
15195         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
15196         Reported by Eric Blake.
15197
15198 2010-10-23  Bruno Haible  <bruno@clisp.org>
15199
15200         Tests: Fix LOCALE_JA on MirBSD 10.
15201         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
15202         to an UTF-8 locale.
15203         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
15204         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15205         Reported by Eric Blake.
15206
15207 2010-10-21  Bruno Haible  <bruno@clisp.org>
15208
15209         nl_langinfo test: Avoid test failure on NetBSD 5.
15210         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
15211         Reported by Eric Blake.
15212
15213 2010-10-21  Eric Blake  <eblake@redhat.com>
15214
15215         c-stack: work around libsigsegv 2.8 bug
15216         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
15217         overflow on at least PowerPC64.
15218
15219 2010-10-17  Bruno Haible  <bruno@clisp.org>
15220
15221         userspec: Drop redundant file.
15222         * modules/userspec (Files): Remove lib/inttostr.h.
15223
15224 2010-10-17  Bruno Haible  <bruno@clisp.org>
15225
15226         nl_langinfo tests: Silence some warnings.
15227         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
15228         Reported by Jim Meyering.
15229
15230 2010-10-17  Bruno Haible  <bruno@clisp.org>
15231
15232         Make use of GCC's attribute __alloc_size__.
15233         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
15234         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
15235         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
15236         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
15237         __alloc_size__.
15238         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
15239         Suggested by Jim Meyering.
15240
15241 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
15242
15243         bootstrap: anchor .gitignore entries.
15244         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
15245         with...
15246         (insert_vc_ignore): ... this new function, which prepends `/' to
15247         all .gitignore entries before passing them to
15248         insert_sorted_if_absent.
15249
15250 2010-10-16  Bruno Haible  <bruno@clisp.org>
15251
15252         nextafter: Fix configure check.
15253         * modules/nextafter (configure.ac): Correct expected prototype.
15254
15255 2010-10-16  Bruno Haible  <bruno@clisp.org>
15256
15257         termios: Update documentation.
15258         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
15259
15260 2010-10-16  Bruno Haible  <bruno@clisp.org>
15261
15262         tests: Make them compile with TinyCC.
15263         * tests/test-strstr.c (main): Remove parentheses around array
15264         initializer.
15265
15266 2010-10-15  Eric Blake  <eblake@redhat.com>
15267
15268         ignore-value: make header idempotent
15269         * lib/ignore-value.h: Add double-inclusion guards.
15270         Reported by Stefan Berger.
15271
15272 2010-10-15  Jim Meyering  <meyering@redhat.com>
15273
15274         GNUmakefile: handle "stable" target, not "major"
15275         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
15276         lists in maint.mk and announce-gen.  Without this, "make stable"
15277         would fail to ensure that $(VERSION) is up to date.
15278
15279 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
15280
15281         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
15282         & co.
15283
15284 2010-10-14  Bruno Haible  <bruno@clisp.org>
15285
15286         vasnprintf: Don't set errno to 0.
15287         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
15288         block that sets it to 0.
15289         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
15290
15291 2010-10-14  Bruno Haible  <bruno@clisp.org>
15292
15293         socketlib: Fix.
15294         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
15295         gl_PREREQ_SYS_H_WINSOCK2.
15296         Reported by Ian Beckwith <ianb@erislabs.net>.
15297
15298 2010-10-13  Jim Meyering  <meyering@redhat.com>
15299
15300         test-select-stdin.c: avoid warn_unused_result warnings
15301         * tests/test-select-stdin.c: Include "macros.h".
15302         ASSERT that read and fflush succeed.
15303
15304 2010-10-13  Jim Meyering  <meyering@redhat.com>
15305
15306         git-version-gen: do require git-VC'd files in cwd
15307         * build-aux/git-version-gen: Reject a git version string
15308         if there are no commits associated with the current directory.
15309         This avoids an unlikely false-positive (unrelated dir whose parent
15310         repository also contains a tag matching v*), as pointed out
15311         by Giuseppe Scrivano in
15312         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
15313
15314 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
15315
15316         argv-iter: omit nonconforming declaration
15317         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
15318         enum arg_iter_err declaration, which doesn't conform to C99.
15319         Solaris 10 cc warns about this.
15320
15321 2010-10-13  Eric Blake  <eblake@redhat.com>
15322
15323         termios: fix compilation on mingw
15324         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
15325         (gl_TERMIOS_H): Adjust it on mingw.
15326         * modules/termios (Makefile.am): Substitute new key.
15327         * lib/termios.in.h (includes): Make include_next conditional.
15328         * doc/posix-headers/termios.texi (termios.h): Update
15329         documentation.
15330         Reported by Daniel P. Berrange.
15331
15332 2010-10-13  Jim Meyering  <meyering@redhat.com>
15333
15334         git-version-gen: don't require that .git/ be in the current dir
15335         * build-aux/git-version-gen: Adjust this script so that it works
15336         when run from any working directory beneath the top-level .git/-
15337         containing directory.  Inspired by a patch from Giuseppe Scrivano,
15338         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
15339
15340         test-select: avoid warn_unused_result warnings
15341         * tests/test-select.c: Include "macros.h".
15342         ASSERT that each call to read, write, and pipe succeeds.
15343         While not technically required, also check each "close".
15344         * modules/select-tests (Files): Add tests/macros.h.
15345
15346         test-symlinkat: remove declaration of unused local
15347         * tests/test-symlinkat.c (main): Remove unused local, "buf".
15348
15349         test-inttostr: avoid shadowing warnings
15350         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
15351         and use malloc rather than the stack for the same reason as
15352         mentioned in the comment justifying the other allocation.
15353
15354 2010-10-11  Bruno Haible  <bruno@clisp.org>
15355
15356         stdlib: Allow multiple gnulib generated replacements to coexist.
15357         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
15358         Reported by Sam Steingold <sds@gnu.org>.
15359
15360 2010-10-11  Jim Meyering  <meyering@redhat.com>
15361
15362         fix a documentation typo
15363         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
15364
15365 2010-10-11  Eric Blake  <eblake@redhat.com>
15366
15367         futimens: work around Solaris 11 bug
15368         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
15369         * tests/test-futimens.h (test_futimens): Enhance, rather than
15370         weaken test.
15371         * doc/posix-functions/futimens.texi (futimens): Document the bug.
15372
15373 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
15374
15375         Indentation.
15376         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
15377         higher-level operators more to the left.
15378
15379 2010-10-11  Jim Meyering  <meyering@redhat.com>
15380
15381         test-futimens: avoid unwarranted test failure on Solaris 5.11
15382         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
15383         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
15384         because it tries to dereference the NULL name argument.
15385
15386 2010-10-11  Bruno Haible  <bruno@clisp.org>
15387
15388         Indentation.
15389         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
15390         indentation.
15391
15392 2010-10-11  Jim Meyering  <meyering@redhat.com>
15393
15394         spawn.in.h: make indentation consistent with parentheses
15395         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
15396         Make indentation consistent with parentheses.
15397
15398 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
15399
15400         Fix mismatched parens in previous commit
15401         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
15402         parens.
15403
15404 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
15405
15406         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
15407
15408         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
15409         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
15410         * lib/malloca.c: Include "verify.h".
15411         (verify1): Remove, replacing with a verify call.
15412         * lib/relocwrapper.c (verify1): Likewise.
15413         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
15414         Likewise.
15415         * modules/malloca (Depends-on): Add 'verify'.
15416         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
15417         * modules/vasnprintf (Depends-on): Add 'verify'.
15418         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
15419         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
15420         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
15421         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
15422         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
15423         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
15424         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
15425
15426         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
15427
15428         Formerly the style was sometimes 2*X - 1, because the C standard
15429         was wrongly thought to disallow ?: in integral constant expressions.
15430         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
15431         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
15432         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15433         * lib/stdint.in.h (_verify_intmax_size): Likewise.
15434         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
15435         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
15436         verify that time_t cannot be floating.
15437
15438 2010-10-08  Eric Blake  <eblake@redhat.com>
15439
15440         time: enforce recent POSIX ruling that time_t is integral
15441         * lib/time.in.h (__time_t_must_be_integral): Detect any
15442         problematic systems, allowing the rest of gnulib to assume POSIX.
15443
15444 2010-10-08  Jim Meyering  <meyering@redhat.com>
15445
15446         fdopendir: fix a bug on systems lacking openat and /proc support
15447         OpenBSD 4.7 is one such system.  The most noticeable effect was
15448         failure of any application making nontrivial use of fts: rm, du,
15449         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
15450           ./rm: traversal failed: `a': Bad file descriptor
15451         Debugging that, you see that even though FD 6 was closed just
15452         prior to the opendir call in fd_clone_opendir, its resulting
15453         dir->dd_fd was 8, rather than the expected value of 6:
15454
15455         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
15456         93                close (fd);
15457         (gdb) n
15458         94                dir = fd_clone_opendir (dupfd);
15459         (gdb) n
15460         95                saved_errno = errno;
15461         (gdb) p dir->dd_fd
15462         $11 = 8
15463
15464         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
15465         The problem is that on OpenBSD, fd_clone_opendir has to resort
15466         to using the old-style save/restore CWD mechanism, due to its
15467         lack of openat/proc support, and *that* would steal the FD (6)
15468         that opendir was supposed to use.
15469
15470         The fix is to squirrel away the desired FD so that save_cwd uses a
15471         different one, and then free the dest FD right before calling opendir.
15472         That guarantees opendir will use the required file descriptor.
15473
15474         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
15475
15476 2010-10-08  Bruno Haible  <bruno@clisp.org>
15477
15478         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
15479         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
15480
15481 2010-10-08  Bruno Haible  <bruno@clisp.org>
15482
15483         nanosleep: Make replacement POSIX compliant.
15484         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
15485         is out of range.
15486         Reported by Jim Meyering.
15487
15488 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
15489
15490         bootstrap: add hook for altering gnulib.mk, for Bison
15491         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
15492         the Bison bootstrapping process can rewrite file names and variables
15493         in this file before later parts of 'bootstrap' use the file.
15494         Bison wants to include lib/gnulib.mk from the top-level makefile,
15495         so it needs the file names in this file to be relative to the top
15496         level, not relative to lib; plus it needs variable names to be
15497         rewritten.
15498         (slurp): Use the new function.
15499
15500         bootstrap: reformat for readability
15501         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
15502
15503 2010-10-08  Eric Blake  <eblake@redhat.com>
15504
15505         docs: update cygwin progress
15506         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
15507         1.7.7.
15508         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
15509         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
15510         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
15511         * doc/posix-functions/carg.texi (carg): Likewise.
15512         * doc/posix-functions/cargf.texi (cargf): Likewise.
15513         * doc/posix-functions/casin.texi (casin): Likewise.
15514         * doc/posix-functions/casinf.texi (casinf): Likewise.
15515         * doc/posix-functions/casinh.texi (casinh): Likewise.
15516         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
15517         * doc/posix-functions/catan.texi (catan): Likewise.
15518         * doc/posix-functions/catanf.texi (catanf): Likewise.
15519         * doc/posix-functions/catanh.texi (catanh): Likewise.
15520         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
15521         * doc/posix-functions/ccos.texi (ccos): Likewise.
15522         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
15523         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
15524         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
15525         * doc/posix-functions/cexp.texi (cexp): Likewise.
15526         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
15527         * doc/posix-functions/cimag.texi (cimag): Likewise.
15528         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
15529         * doc/posix-functions/clog.texi (clog): Likewise.
15530         * doc/posix-functions/clogf.texi (clogf): Likewise.
15531         * doc/posix-functions/conj.texi (conj): Likewise.
15532         * doc/posix-functions/conjf.texi (conjf): Likewise.
15533         * doc/posix-functions/cpow.texi (cpow): Likewise.
15534         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
15535         * doc/posix-functions/cproj.texi (cproj): Likewise.
15536         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
15537         * doc/posix-functions/creal.texi (creal): Likewise.
15538         * doc/posix-functions/crealf.texi (crealf): Likewise.
15539         * doc/posix-functions/csin.texi (csin): Likewise.
15540         * doc/posix-functions/csinf.texi (csinf): Likewise.
15541         * doc/posix-functions/csinh.texi (csinh): Likewise.
15542         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
15543         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
15544         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
15545         * doc/posix-functions/ctan.texi (ctan): Likewise.
15546         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
15547         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
15548         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
15549         * doc/posix-headers/complex.texi (complex.h): Likewise.
15550
15551 2010-10-07  Jim Meyering  <meyering@redhat.com>
15552
15553         parse-datetime: avoid compilation failure on OpenBSD 4.7
15554         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
15555         This works around a compilation failure on OpenBSD 4.7:
15556         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
15557
15558 2010-10-07  Eric Blake  <eblake@redhat.com>
15559
15560         docs: update cygwin progress
15561         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
15562         1.7.6.
15563         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
15564         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
15565         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
15566         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
15567         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
15568         Likewise.
15569         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
15570         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
15571         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
15572         Likewise.
15573         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
15574         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
15575         Likewise.
15576         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
15577         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
15578         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
15579         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
15580         Likewise.
15581         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
15582         Likewise.
15583         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
15584
15585         docs: update parse-datetime history
15586         * doc/parse-datetime.texi (Authors of parse_datetime): Better
15587         documentation of this function's history and alternatives.
15588
15589         cygwin: use more robust version check
15590         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
15591         exclude an eventual cygwin 1.9.1.
15592         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15593         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
15594         (gl_FUNC_STRCASESTR): Likewise.
15595         Reported by Bruno Haible.
15596
15597 2010-10-06  Bruno Haible  <bruno@clisp.org>
15598
15599         string, sys_select: Avoid #including large headers unless necessary.
15600         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
15601         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
15602         OSF/1, BeOS, Haiku.
15603         Reported by Jim Meyering.
15604
15605 2010-10-05  Eric Blake  <eblake@redhat.com>
15606
15607         memmem, strstr, strcasestr: fix bug with long periodic needle
15608         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
15609         periodic needle having false positive.
15610         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
15611         and cygwin 1.7.7.
15612         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
15613         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
15614         (gl_FUNC_STRCASESTR): Likewise.
15615         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15616         * tests/test-memmem.c (main): Expose the bug.
15617         * tests/test-strcasestr.c (main): Likewise.
15618         * tests/test-strstr.c (main): Likewise.
15619         * tests/test-c-strcasestr.c (main): Likewise.
15620         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
15621         * doc/posix-functions/strstr.texi (strstr): Likewise.
15622         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
15623         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
15624
15625 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
15626
15627         parse-datetime: do some more renaming
15628         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
15629         parse_datetime, not get_date.  Mention the renaming.
15630         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
15631         in comments.
15632         * m4/bison.m4: Likewise.
15633
15634 2010-10-05  Eric Blake  <eblake@redhat.com>
15635
15636         parse-datetime: better name than get_date
15637         * NEWS: Reword the deprecation notice.
15638         * modules/get_date: Rename to modules/parse-datetime.
15639         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
15640         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
15641         * lib/get_date.y: Rename to lib/parse-datetime.y.
15642         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
15643         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
15644         * doc/getdate.texi: Provide fallback wrapper.
15645         * lib/getdate.h: Move guts, and wrap...
15646         * lib/parse-datetime.h: ...new file.
15647         * lib/parse-datetime.y (get_date): Rename...
15648         (parse_datetime): ...to this.
15649         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
15650         (gl_PARSE_DATETIME): ...to this.
15651         * doc/posix-functions/getdate.texi (get_date): Provide fallback
15652         documentation.
15653         * modules/getdate (Files): Provide fallback docs and header.
15654         (Notice, Depends-on): Update references.
15655         * tests/test-parse-datetime.c: Likewise.
15656         * DEPENDENCIES: Likewise.
15657         * MODULES.html.sh (Date and time <time.h>): Likewise.
15658         * doc/parse-datetime.texi (Date input formats)
15659         (Authors of parse_datetime): Likewise.
15660         * modules/parse-datetime (Files, configure.ac, Makefile.am)
15661         (Include): Likewise.
15662         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
15663         * gnulib-tool: Likewise.
15664         * m4/bison.m4 (gl_BISON): Likewise.
15665         Suggested by Bruno Haible.
15666
15667 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
15668
15669         more ports to Solaris tr, which needs [] around ranges
15670         * gnulib-tool: Solaris tr needs [] around ranges.
15671         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
15672         * tests/test-pipe-filter-gi1.c (main): Likewise.
15673         * tests/test-pipe-filter-ii1.c (main): Likewise.
15674
15675 2010-10-05  Eric Blake  <eblake@redhat.com>
15676
15677         bootstrap: fix Solaris regression
15678         * build-aux/bootstrap (check_versions): Solaris tr still needs []
15679         around ranges.
15680         Reported by Pádraig Brady.
15681
15682         bootstrap: work with pkg-config
15683         * build-aux/bootstrap (check_versions): Also transliterate - in
15684         prerequisite name.
15685         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
15686         prerequisites that were already found, to avoid confusion.
15687         Reported by Justin Clift.
15688
15689         faccessat: remove unused wrappers
15690         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
15691         presence of these wrappers dragged in -lgen on Solaris.
15692         Reported by Clemens Brogi; fix suggested by Paul Eggert.
15693
15694 2010-10-05  Jim Meyering  <meyering@redhat.com>
15695
15696         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
15697         * Makefile (sc_pragma_columns): New syntax-check rule.
15698
15699 2010-10-04  Bruno Haible  <bruno@clisp.org>
15700
15701         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
15702         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
15703         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
15704         Reported by Bruce Korb and Eric Blake.
15705
15706 2010-10-04  Bruno Haible  <bruno@clisp.org>
15707
15708         threadlib: Make option --with-libpth-prefix work.
15709         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
15710         use $LIBPTH, not just -lpth.
15711
15712 2010-10-04  Bruno Haible  <bruno@clisp.org>
15713
15714         Avoid line length limitation from HP NonStop system header files.
15715         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
15716         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
15717         * lib/ctype.in.h: Likewise.
15718         * lib/dirent.in.h: Likewise.
15719         * lib/errno.in.h: Likewise.
15720         * lib/fcntl.in.h: Likewise.
15721         * lib/float.in.h: Likewise.
15722         * lib/getopt.in.h: Likewise.
15723         * lib/iconv.in.h: Likewise.
15724         * lib/inttypes.in.h: Likewise.
15725         * lib/langinfo.in.h: Likewise.
15726         * lib/locale.in.h: Likewise.
15727         * lib/math.in.h: Likewise.
15728         * lib/netdb.in.h: Likewise.
15729         * lib/netinet_in.in.h: Likewise.
15730         * lib/poll.in.h: Likewise.
15731         * lib/pthread.in.h: Likewise.
15732         * lib/pty.in.h: Likewise.
15733         * lib/sched.in.h: Likewise.
15734         * lib/se-selinux.in.h: Likewise.
15735         * lib/search.in.h: Likewise.
15736         * lib/signal.in.h: Likewise.
15737         * lib/spawn.in.h: Likewise.
15738         * lib/stdarg.in.h: Likewise.
15739         * lib/stddef.in.h: Likewise.
15740         * lib/stdint.in.h: Likewise.
15741         * lib/stdio.in.h: Likewise.
15742         * lib/stdlib.in.h: Likewise.
15743         * lib/string.in.h: Likewise.
15744         * lib/strings.in.h: Likewise.
15745         * lib/sys_file.in.h: Likewise.
15746         * lib/sys_ioctl.in.h: Likewise.
15747         * lib/sys_select.in.h: Likewise.
15748         * lib/sys_socket.in.h: Likewise.
15749         * lib/sys_stat.in.h: Likewise.
15750         * lib/sys_time.in.h: Likewise.
15751         * lib/sys_times.in.h: Likewise.
15752         * lib/sys_utsname.in.h: Likewise.
15753         * lib/sys_wait.in.h: Likewise.
15754         * lib/sysexits.in.h: Likewise.
15755         * lib/termios.in.h: Likewise.
15756         * lib/time.in.h: Likewise.
15757         * lib/unistd.in.h: Likewise.
15758         * lib/wchar.in.h: Likewise.
15759         * lib/wctype.in.h: Likewise.
15760         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
15761         * modules/ctype (Makefile.am): Likewise.
15762         * modules/dirent (Makefile.am): Likewise.
15763         * modules/errno (Makefile.am): Likewise.
15764         * modules/fcntl-h (Makefile.am): Likewise.
15765         * modules/float (Makefile.am): Likewise.
15766         * modules/getopt-posix (Makefile.am): Likewise.
15767         * modules/iconv-h (Makefile.am): Likewise.
15768         * modules/inttypes (Makefile.am): Likewise.
15769         * modules/langinfo (Makefile.am): Likewise.
15770         * modules/locale (Makefile.am): Likewise.
15771         * modules/math (Makefile.am): Likewise.
15772         * modules/netdb (Makefile.am): Likewise.
15773         * modules/netinet_in (Makefile.am): Likewise.
15774         * modules/poll-h (Makefile.am): Likewise.
15775         * modules/pthread (Makefile.am): Likewise.
15776         * modules/pty (Makefile.am): Likewise.
15777         * modules/sched (Makefile.am): Likewise.
15778         * modules/search (Makefile.am): Likewise.
15779         * modules/selinux-h (Makefile.am): Likewise.
15780         * modules/signal (Makefile.am): Likewise.
15781         * modules/spawn (Makefile.am): Likewise.
15782         * modules/stdarg (Makefile.am): Likewise.
15783         * modules/stddef (Makefile.am): Likewise.
15784         * modules/stdint (Makefile.am): Likewise.
15785         * modules/stdio (Makefile.am): Likewise.
15786         * modules/stdlib (Makefile.am): Likewise.
15787         * modules/string (Makefile.am): Likewise.
15788         * modules/strings (Makefile.am): Likewise.
15789         * modules/sys_file (Makefile.am): Likewise.
15790         * modules/sys_ioctl (Makefile.am): Likewise.
15791         * modules/sys_select (Makefile.am): Likewise.
15792         * modules/sys_socket (Makefile.am): Likewise.
15793         * modules/sys_stat (Makefile.am): Likewise.
15794         * modules/sys_time (Makefile.am): Likewise.
15795         * modules/sys_times (Makefile.am): Likewise.
15796         * modules/sys_utsname (Makefile.am): Likewise.
15797         * modules/sys_wait (Makefile.am): Likewise.
15798         * modules/sysexits (Makefile.am): Likewise.
15799         * modules/termios (Makefile.am): Likewise.
15800         * modules/time (Makefile.am): Likewise.
15801         * modules/unistd (Makefile.am): Likewise.
15802         * modules/wchar (Makefile.am): Likewise.
15803         * modules/wctype (Makefile.am): Likewise.
15804
15805 2010-10-04  Bruno Haible  <bruno@clisp.org>
15806
15807         read-file tests: Avoid a test failure on NonStop Kernel.
15808         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
15809         a regular file.
15810         Reported by Joachim Schmitz <schmitz@hp.com>.
15811
15812 2010-10-03  Bruno Haible  <bruno@clisp.org>
15813
15814         gnulib-tool: Fixes for --create-testdir with --libtool.
15815         * gnulib-tool (func_get_automake_snippet): Don't augment
15816         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
15817         an executable.
15818         (func_create_testdir): Handle module 'alloca' like func_import.
15819         Reported by Bruce Korb <bruce.korb@gmail.com>.
15820
15821 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
15822
15823         Avoid some lines longer than 80 characters.
15824         * lib/stdint.in.h: Break long comment lines.
15825         * lib/math.in.h: Likewise.
15826         (_GL_NUM_UINT_WORDS): New macro, for readability.
15827         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
15828         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
15829         * lib/stdlib.in.h: Likewise.
15830         * lib/spawn.in.h: Likewise.
15831         * lib/sys_socket.in.h: Update an URL.
15832         * lib/sys_stat.in.h: Break long line.
15833
15834 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
15835
15836         Improve pmccabe2html.
15837         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
15838         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
15839         when the sources change. Remove the line in the HTML about "Used
15840         ranges" (which implied that there might be other unused ranges),
15841         rename "Resume" to "Summary" (easier to understand for more users).
15842         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
15843         styles, and some unnecessary blank lines.
15844
15845 2010-10-03  Bruno Haible  <bruno@clisp.org>
15846             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
15847
15848         acl: Add support for ACLs on NonStop Kernel.
15849         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
15850         Check whether the function aclsort() exists.
15851         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
15852         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
15853         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15854         (acl_nontrivial [HAVE_ACLSORT]: New function.
15855         (file_has_acl): Implement for NonStop Kernel.
15856         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15857         (qset_acl): Implement for NonStop Kernel.
15858         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
15859         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15860         (main): Implement for NonStop Kernel.
15861         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
15862         Kernel. Handle this flavor.
15863         * tests/test-set-mode-acl.sh: Likewise.
15864         * tests/test-copy-acl.sh: Likewise.
15865         * tests/test-copy-file.sh: Likewise.
15866
15867 2010-10-03  Bruno Haible  <bruno@clisp.org>
15868
15869         Info about ACLs on NonStop Kernel.
15870         * doc/acl-resources.txt: Add info about NonStop Kernel.
15871         References by Joachim Schmitz <schmitz@hp.com>.
15872
15873 2010-10-02  Bruno Haible  <bruno@clisp.org>
15874
15875         Define missing EDQUOT on NonStop Kernel.
15876         * lib/errno.in.h (EDQUOT): Assign a value if missing.
15877         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
15878         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
15879         missing.
15880         * doc/posix-headers/errno.texi: Mention the NSK bug.
15881         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
15882         Reported by Joachim Schmitz <schmitz@hp.com>.
15883
15884 2010-10-02  Bruno Haible  <bruno@clisp.org>
15885
15886         Update doc for POSIX:2008.
15887         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
15888         Update URL of POSIX specification.
15889
15890 2010-10-02  Bruno Haible  <bruno@clisp.org>
15891
15892         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
15893         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
15894         from gnulib, not from Automake.
15895
15896 2010-10-02  Bruno Haible  <bruno@clisp.org>
15897
15898         New module 'system-posix'.
15899         * modules/system-posix: New file.
15900         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
15901         module is present.
15902         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
15903         GNULIB_SYSTEM_POSIX.
15904         * modules/stdlib (Depends-on): Remove sys_wait.
15905         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
15906         * doc/posix-functions/system.texi: Mention the new module.
15907         * doc/posix-headers/stdlib.texi: Likewise.
15908         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
15909         define test_sys_wait_macros to a no-op.
15910         Reported by Sam Steingold <sds@gnu.org>.
15911
15912 2010-09-30  Bruno Haible  <bruno@clisp.org>
15913
15914         More renaming from 'getdate' to 'get_date'.
15915         * doc/get_date.texi: Renamed from doc/getdate.texi.
15916         * modules/get_date (Files): Update.
15917         * MODULES.html.sh (Date and time <time.h>): Update.
15918         * DEPENDENCIES: Update.
15919         * gnulib-tool: Update comment.
15920         * m4/bison.m4 (gl_BISON): Likewise.
15921         * m4/get_date.m4 (gl_GET_DATE): Likewise.
15922
15923 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
15924
15925         bootstrap: support ACLOCAL_FLAGS during aclocal
15926         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
15927         can add additional -I dir for third-party .m4 files.
15928
15929 2010-09-30  Eric Blake  <eblake@redhat.com>
15930
15931         bootstrap: use glibtoolize on MacOS
15932         * build-aux/bootstrap (check_versions): Convert libtool into
15933         libtoolize.
15934         (tool search): Move libtool check earlier, and look for
15935         glibtoolize for MacOS.
15936         (gnulib_tool_options): Auto-add --libtool when appropriate.
15937         Reported by Justin Clift.
15938
15939         poll: fix typo that broke test on MacOS
15940         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
15941         Reported by Justin Clift.
15942
15943         getdate: rename to get_date
15944         Note: getdate.h is not renamed, to minimize client impact.
15945         * modules/getdate: Mark obsolete.  Move old contents...
15946         * modules/get_date: ...to new module name.
15947         * modules/getdate-tests: Move...
15948         * modules/get_date-tests: ...here.
15949         * m4/getdate.m4: Move...
15950         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
15951         * lib/getdate.y: Move...
15952         * lib/get_date.y: ...here.
15953         * tests/test-getdate.c: Move...
15954         * tests/test-get_date.c: ...here.
15955         * doc/posix-functions/getdate.texi (getdate): Update name.
15956         * NEWS: Mention the change.
15957
15958 2010-09-29  Bruno Haible  <bruno@clisp.org>
15959
15960         Separate the module 'waitpid' from the module 'sys_wait'.
15961         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
15962         present.
15963         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
15964         gl_MODULE_INDICATOR_FOR_TESTS.
15965         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
15966         * modules/sys_wait (Depends-on): Remove waitpid.
15967         (Makefile.am): Substitute GNULIB_WAITPID.
15968         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
15969         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
15970         signature only if the 'waitpid' module is present.
15971         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
15972         * NEWS: Mention the change.
15973         * modules/grantpt (Depends-on): Add waitpid.
15974         * modules/wait-process (Depends-on): Likewise.
15975
15976 2010-09-29  Bruno Haible  <bruno@clisp.org>
15977
15978         More tests for module 'sys_wait'.
15979         * modules/sys_wait-c++-tests: New file.
15980         * tests/test-sys_wait-c++.cc: New file.
15981         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
15982         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
15983
15984 2010-09-29  Bruno Haible  <bruno@clisp.org>
15985
15986         New module 'waitpid'.
15987         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
15988         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
15989         Don't include <process.h>.
15990         (waitpid): Declare only, using modern idiom.
15991         * m4/waitpid.m4: New file.
15992         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
15993         * modules/waitpid: New file.
15994         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
15995         (Makefile.am): Update.
15996         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
15997
15998 2010-09-28  Bruno Haible  <bruno@clisp.org>
15999
16000         poll: Assume ANSI C.
16001         * lib/poll.c (poll): Use an ANSI C declaration.
16002
16003 2010-09-28  Bruno Haible  <bruno@clisp.org>
16004
16005         poll-h: Create poll.h on all platforms.
16006         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
16007         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
16008         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
16009         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
16010         (gl_REPLACE_POLL_H): Don't set POLL_H.
16011         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
16012         * modules/poll-h (Depends-on): Add include_next.
16013         (Makefile.am): Create poll.h unconditionally. Substitute also
16014         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
16015
16016 2010-09-28  Bruno Haible  <bruno@clisp.org>
16017
16018         Tests for module 'poll-h'.
16019         * modules/poll-h-c++-tests: New file.
16020         * tests/test-poll-h-c++.cc: New file.
16021
16022         Tests for module 'poll-h'.
16023         * modules/poll-h-tests: New file.
16024         * tests/test-poll-h.c: New file.
16025
16026 2010-09-28  Bruno Haible  <bruno@clisp.org>
16027
16028         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
16029         * modules/poll-h (Depends-on): Add 'extensions'.
16030
16031 2010-09-28  Bruno Haible  <bruno@clisp.org>
16032
16033         New module 'poll-h'.
16034         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
16035         (poll): Use modern idiom.
16036         * modules/poll-h: New file.
16037         * modules/poll (Files): Remove lib/poll.in.h.
16038         (Depends-on): Add poll-h.
16039         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
16040         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
16041         * m4/poll_h.m4: New file.
16042         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
16043         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
16044         and invoke gl_REPLACE_POLL_H.
16045         * lib/poll.c: Use common idiom.
16046         * tests/test-poll.c: Likewise.
16047         * doc/posix-headers/poll.texi: Mention the poll-h module.
16048         Suggested by Eric Blake.
16049
16050 2010-09-26  Bruno Haible  <bruno@clisp.org>
16051
16052         sys_wait: Implement WSTOPSIG.
16053         * lib/sys_wait.in.h (WSTOPSIG): New macro.
16054         Reported by Simon Josefsson.
16055
16056 2010-09-26  Simon Josefsson  <simon@josefsson.org>
16057
16058         stdlib, sys_wait: Avoid compilation error on mingw.
16059         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
16060
16061 2010-09-26  Bruno Haible  <bruno@clisp.org>
16062
16063         stdlib tests: Avoid code duplication.
16064         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
16065         * modules/sys_wait-tests (Files): Likewise.
16066         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
16067         * tests/test-stdlib.c: Include test-sys_wait.h.
16068         (main): Invoke test_sys_wait_macros.
16069         * tests/test-sys_wait.c: Include test-sys_wait.h.
16070         (main): Invoke test_sys_wait_macros.
16071
16072 2010-09-25  Simon Josefsson  <simon@josefsson.org>
16073
16074         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
16075         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
16076         sure Windows sockets are working before calling getaddrinfo.
16077         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
16078         * doc/gnulib.texi (Windows sockets): Fix typo.
16079
16080 2010-09-25  Bruno Haible  <bruno@clisp.org>
16081
16082         Tests for module 'regex-quote'.
16083         * modules/regex-quote-tests: New file.
16084         * tests/test-regex-quote.c: New file.
16085
16086         New module 'regex-quote'.
16087         * lib/regex-quote.h: New file.
16088         * lib/regex-quote.c: New file.
16089         * modules/regex-quote: New file.
16090         Suggested by Reuben Thomas <rrt@sc3d.org>.
16091
16092 2010-09-24  Bruno Haible  <bruno@clisp.org>
16093
16094         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
16095         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
16096
16097 2010-09-23  Bruno Haible  <bruno@clisp.org>
16098
16099         setenv: Relax license.
16100         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
16101         Blake.
16102         Requested by Eric Blake.
16103
16104 2010-09-22  Bruno Haible  <bruno@clisp.org>
16105
16106         termios: Relax license.
16107         * modules/termios (License): Change to LGPLv2+.
16108         Requested by Eric Blake.
16109
16110 2010-09-22  Bruno Haible  <bruno@clisp.org>
16111
16112         threadlib: Allow the package to change the default to 'no'.
16113         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
16114         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
16115         Reported by Paul Eggert.
16116
16117 2010-09-22  Pádraig Brady  <P@draigbrady.com>
16118             Bruno Haible  <bruno@clisp.org>
16119
16120         Fix endless loop in mbmemcasecoll.
16121         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
16122         byte.
16123         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
16124
16125 2010-09-22  Bruno Haible  <bruno@clisp.org>
16126
16127         Tests for module 'memcoll'.
16128         * modules/memcoll-tests: New file.
16129         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
16130
16131         memcoll, xmemcoll: Clarify size vs. length.
16132         * modules/memcoll.c (memcoll0): Clarify specification.
16133         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
16134         passed to collate_error.
16135
16136 2010-09-22  Bruno Haible  <bruno@clisp.org>
16137
16138         Tests for module 'memcasecmp'.
16139         * modules/memcasecmp-tests: New file.
16140         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
16141
16142 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
16143
16144         * lib/pthread.in.h: Add split double-inclusion guard, and include
16145         system <pthread.h> if there is one.  Use @@-style as in other
16146         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
16147         pthread.h doesn't.
16148         (pthread_mutexattr_destroy, pthread_mutexattr_init):
16149         (pthread_mutexattr_settype, pthread_mutex_trylock):
16150         New static inline functions, if there's no system <pthread.h>.
16151         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
16152         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
16153         Approximate with mutexes if the system lacks spinlocks, as in
16154         MacOS.
16155         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
16156         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
16157         @@-style.  Check for spinlocks separately.
16158         (gl_PTHREAD_DEFAULTS): New macro.
16159         * modules/pthread: Redo to use a more typical style for in.h files.
16160
16161 2010-09-21  Eric Blake  <eblake@redhat.com>
16162
16163         net_if: enhance tests
16164         * tests/test-net_if.c (main): Move signature checks earlier.
16165         Print failures to stderr.
16166         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
16167         Document the bug that we do not yet fix.
16168
16169 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
16170
16171         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
16172         about gnulib, not GSS.
16173
16174 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
16175
16176         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
16177         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
16178         for Emacs.
16179         * build-aux/pmccabe2html: Make Makefile.am example code more
16180         cut-and-paste friendly.
16181
16182 2010-09-21  Simon Josefsson  <simon@josefsson.org>
16183
16184         * tests/test-net_if.c: New file.
16185         * modules/net_if-tests: New file.
16186
16187 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
16188
16189         pthread: add pthread_spin_destroy
16190         * lib/pthread.in.h (pthread_spin_destroy): New function.
16191
16192 2010-09-19  Bruno Haible  <bruno@clisp.org>
16193
16194         gnulib-tool: Fix --help output.
16195         * gnulib-tool (func_usage): Fix help message.
16196         Reported by Reuben Thomas <rrt@sc3d.org>.
16197
16198 2010-09-18  Jim Meyering  <meyering@redhat.com>
16199
16200         maint.mk: avoid unexpanded \n in two diagnostics
16201         * top/maint.mk (sc_prohibit_always_true_header_tests):
16202         Don't use a literal \n in a halt=... assignment.  It would not be
16203         expanded, and the two \n bytes would appear in the diagnostic output
16204         rather than the desired newline.  Use halt=$$(printf ... instead.
16205         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
16206
16207 2010-09-18  Bruno Haible  <bruno@clisp.org>
16208
16209         netinet_in: Doc tweak.
16210         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
16211         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16212
16213 2010-09-18  Jim Meyering  <meyering@redhat.com>
16214
16215         init.sh: correct an outdated comment
16216         * tests/init.sh (create_exe_shims_):  s/function/alias/
16217
16218         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
16219         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
16220         a file named "*.exe" is removed between the glob expansion and the
16221         processing of that oddly named file.
16222
16223 2010-09-17  Eric Blake  <eblake@redhat.com>
16224
16225         mirbsd: add some more support
16226         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
16227         in BSD family.
16228         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
16229         devices as OpenBSD.
16230         * m4/host-os.m4 (mirbsd): Add MirBSD.
16231
16232         tests: fix unportable assumption on sys/wait.h
16233         * tests/test-sys_wait.c (main): Relax test.
16234         * tests/test-stdlib.c (main): Likewise.
16235
16236         init.sh: accomodate directory with no .exes
16237         * tests/init.sh: Accomodate directory containing only scripts.
16238
16239         tests: avoid compiler warning
16240         * tests/test-stdlib.c (main): Use the variable.
16241
16242         fdutimens, fdutimensat: update signature, again
16243         * lib/utimens.h (gl_futimens): Delete, and move signature...
16244         (fdutimens): ...here.
16245         (fdutimensat): Rearrange signature.
16246         (lutimensat): Rename variable for clarity.
16247         * lib/fdutimensat.c (fdutimensat): Update signature.
16248         * lib/utimens.c (fdutimens): Likewise.
16249         (gl_futimens): Delete.
16250         (utimens, lutimens): Update callers.
16251         * lib/futimens.c (futimens): Likewise.
16252         * tests/test-fdutimensat.c: Likewise.
16253         * tests/test-utimens.c: Likewise.
16254         * tests/test-futimens.h: Update comment.
16255         * NEWS: Mention this.
16256         Suggested by Paul Eggert.
16257
16258 2010-09-17  Bruno Haible  <bruno@clisp.org>
16259
16260         Take over the maintenance of some older macros from Autoconf.
16261         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
16262         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
16263         GNU Autoconf.
16264         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
16265         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
16266
16267 2010-09-17  Eric Blake  <eblake@redhat.com>
16268
16269         fdutimensat: drop atflag validation
16270         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
16271         with valid fd, to close a race scenario where futimens is
16272         unsupported and FILE was replaced by a symlink.
16273         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
16274         accordingly.
16275         Suggested by Paul Eggert.
16276
16277 2010-09-16  Bruno Haible  <bruno@clisp.org>
16278
16279         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
16280         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
16281
16282 2010-09-16  Bruno Haible  <bruno@clisp.org>
16283
16284         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
16285         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
16286         login_tty exists.
16287         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16288
16289 2010-09-16  Bruno Haible  <bruno@clisp.org>
16290
16291         login_tty: Make the replacement code work on BSD systems.
16292         * lib/login_tty.c: Include <sys/ioctl.h>.
16293         (login_tty): Use ioctl TIOCSCTTY when available.
16294         * modules/login_tty (Depends-on): Add sys_ioctl.
16295         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16296
16297 2010-09-16  Bruno Haible  <bruno@clisp.org>
16298
16299         login_tty: Stricter unit test.
16300         * modules/login_tty-tests (Depends-on): Add tcgetsid.
16301         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
16302         and tcgetsid() after login_tty.
16303         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16304
16305 2010-09-16  Bruno Haible  <bruno@clisp.org>
16306
16307         New module 'tcgetsid'.
16308         * lib/tcgetsid.c: New file.
16309         * m4/tcgetsid.m4: New file.
16310         * modules/tcgetsid: New file.
16311         * modules/termios (Depends-on): Add c++defs, warn-on-use.
16312         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
16313         GNULIB_TCGETSID, HAVE_TCGETSID.
16314         * lib/termios.in.h: Include <sys/types.h>.
16315         (tcgetsid): New declaration.
16316         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
16317         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
16318         * doc/posix-functions/tcgetsid.texi: Mention the new module.
16319         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
16320
16321 2010-09-16  Bruno Haible  <bruno@clisp.org>
16322
16323         Tests for module 'termios'.
16324         * modules/termios-c++-tests: New file.
16325         * modules/termios-tests: New file.
16326         * tests/test-termios-c++.cc: New file.
16327         * tests/test-termios.c: New file.
16328
16329         New module 'termios'.
16330         * modules/termios: New file.
16331         * lib/termios.in.h: New file.
16332         * m4/termios_h.m4: New file.
16333         * doc/posix-headers/termios.texi: Mention the new module.
16334
16335 2010-09-16  Eric Blake  <eblake@redhat.com>
16336
16337         fdutimensat: add an atflag parameter
16338         * lib/fdutimensat.c (fdutimensat): Add new parameter.
16339         * lib/utimens.h (fdutimensat): Update prototype.
16340         * tests/test-fdutimensat.c: Adjust test to match.
16341         * NEWS: Document the change.
16342         Suggested by Paul Eggert.
16343
16344 2010-09-16  Bruno Haible  <bruno@clisp.org>
16345
16346         Fix typos in comments.
16347         * lib/striconveh.h: Fix typo in comment.
16348         * lib/login_tty.c (login_tty): Likewise.
16349
16350 2010-09-15  Bruno Haible  <bruno@clisp.org>
16351
16352         stdlib: clarify MirBSD WEXITSTATUS bug
16353         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
16354         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16355
16356 2010-09-15  Eric Blake  <eblake@redhat.com>
16357
16358         stdlib: work around MirBSD WEXITSTATUS bug
16359         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
16360         * modules/stdlib (Depends-on): Add sys_wait.
16361         * tests/test-sys_wait.c (main): Enhance test.
16362         * tests/test-stdlib.c (main): Likewise.
16363         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
16364
16365         docs: mention MacOS issue with WEXITSTATUS(constant)
16366         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
16367         issue.
16368         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16369
16370         strnlen: add tests
16371         * modules/strnlen-tests: New file.
16372         * tests/test-strnlen.c: Likewise.
16373
16374 2010-09-14  Bruno Haible  <bruno@clisp.org>
16375
16376         unistr/base: Avoid link errors when module 'libunistring' is also used.
16377         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
16378         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
16379         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
16380         Declare also when HAVE_LIBUNISTRING is set.
16381         Reported by Pádraig Brady <P@draigbrady.com>.
16382
16383 2010-09-14  Eric Blake  <eblake@redhat.com>
16384
16385         test-rawmemchr: make more robust
16386         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
16387         (Depends-on, configure.ac): Add needed prerequisites to use it.
16388         * modules/memchr-tests (Files, Depends-on, configure.ac):
16389         Likewise, to avoid implicit reliance on memchr module prereqs.
16390         * tests/test-memchr.c (main): Ensure proper masking.
16391         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
16392         reads.
16393
16394         memchr: detect glibc Alpha bug
16395         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
16396         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
16397         Alpha.
16398         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
16399         * tests/test-memchr.c (main): Enhance test.
16400         Reported by Nelson H. F. Beebe.
16401
16402 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16403
16404         fts, getcwd, glob: audit for dirfd returning -1
16405         * lib/fts.c (opendir): Remove #define; no longer used.
16406         (opendirat): New arg PDIR_FD.  All callers changed.
16407         (fts_build, _opendir2): Use new opendirat to avoid the need for
16408         dirfd, or for checking whether dirfd returns a negative value.
16409         Don't use opendir; always use openat followed by fdopendir.
16410         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
16411         it.
16412         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
16413         returns -1 here.
16414         * modules/fts (Depends-on): Remove dirfd.
16415         * modules/getcwd (Depends-on): Likewise.
16416
16417 2010-09-13  Eric Blake  <eblake@redhat.com>
16418
16419         float: fix broken MirBSD header
16420         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
16421         * doc/posix-headers/float.texi (float.h): Document it.
16422
16423 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16424
16425         fts: use O_NOFOLLOW to avoid race condition when opening a directory
16426         * lib/fts.c (opendirat): New arg extra_flags.
16427         (__opendir2): Use it to avoid following symlinks when opening
16428         a directory, if symlinks are not supposed to be followed.  See
16429         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
16430
16431         fdopendir: preserve argument fd before returning
16432         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
16433         (fdopendir_with_dup, fd_clone_opendir): New static functions.
16434         (fdopendir): Use them, arranging for FD to be open to the same
16435         directory that it was when it started.  (It might be temporarily
16436         closed while fdopendir is running, so this not thread- or
16437         signal-safe.)  Be careful to do the right thing even when file
16438         descriptors are scarce and dup fails with errno == EMFILE.  See
16439         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
16440
16441 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
16442
16443         regex: Pass the system regex if its only problem is 32-bit regoff_t.
16444         * NEWS: Document change.
16445         * m4/regex.m4: Disable test for regoff_t size.
16446
16447 2010-09-13  Jim Meyering  <meyering@redhat.com>
16448
16449         fts: don't operate on an invalid file descriptor after failed dup
16450         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
16451         negative file descriptor.
16452
16453 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
16454
16455         savedir: add streamsavedir, deprecate fdsavedir
16456         * NEWS: Mention deprecation of fdsavedir.
16457         * lib/savedir.c (streamsavedir): New extern function, whose name
16458         ends in "savedir" to be consistent with the others.  This differs
16459         from savedirstream in that it doesn't close its argument.  The
16460         next version of GNU tar will use this instead of fdsavedir, to
16461         avoid some race conditions and conserve file descriptors.
16462         (savedirstream): Reimplement as a wrapper around streamsavedir.
16463         (fdsavedir): Add a comment deprecating this function.  As far as
16464         I know, only GNU tar used it, and GNU tar doesn't need it any more.
16465         * lib/savedir.h (streamsavedir): New decl.
16466         (fdsavedir): Add a comment deprecating this.
16467
16468 2010-09-10  Bruno Haible  <bruno@clisp.org>
16469
16470         langinfo: Fix last commit.
16471         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
16472         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
16473         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16474
16475 2010-09-10  Bruno Haible  <bruno@clisp.org>
16476
16477         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
16478         * lib/progreloc.c (O_EXEC): Define fallback.
16479
16480 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
16481
16482         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
16483         * NEWS: Document recent changes to fcntl-h.
16484         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
16485         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
16486         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
16487         Similarly for O_SEARCH; this last was already true, but not documented.
16488         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
16489         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
16490         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
16491         Likewise.
16492         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
16493         is zero, not whether it is defined.
16494         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
16495         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
16496         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
16497
16498 2010-09-10  Bruno Haible  <bruno@clisp.org>
16499
16500         langinfo, nl_langinfo: Fix for IRIX 5.3.
16501         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
16502         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
16503         HAVE_LANGINFO_YESEXPR.
16504         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
16505         HAVE_LANGINFO_YESEXPR.
16506         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
16507         HAVE_LANGINFO_T_FMT_AMPM is 0.
16508         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
16509         HAVE_LANGINFO_YESEXPR is 0.
16510         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
16511         NOEXPR.
16512         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
16513         * doc/posix-functions/nl_langinfo.texi: Likewise.
16514         Reported by Eric Blake.
16515
16516 2010-09-10  Bruno Haible  <bruno@clisp.org>
16517
16518         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
16519         * doc/glibc-functions/login_tty.texi: Mention the include file problem
16520         on FreeBSD 8.0 and OpenBSD 4.6.
16521         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
16522         * m4/pty_h.m4 (gl_PTY_H): Likewise.
16523         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
16524         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
16525         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
16526         ac_includes_default.
16527         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16528
16529 2010-09-09  Eric Blake  <eblake@redhat.com>
16530
16531         strsignal: work around NetBSD bug
16532         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
16533         * lib/string.in.h (includes): Likewise.
16534         * doc/posix-functions/strsignal.texi (strsignal): Document the
16535         bug.
16536         Reported by Nelson H. F. Beebe.
16537
16538         gnulib-tool: work with NetBSD /bin/sh
16539         * gnulib-tool (func_cache_var, func_cache_lookup_module)
16540         (func_get_description, func_get_comment, func_get_status)
16541         (func_get_notice, func_get_applicability, func_get_filelist)
16542         (func_get_dependencies, func_get_autoconf_early_snippet)
16543         (func_get_autoconf_snippet, func_get_automake_snippet)
16544         (func_get_include_directive, func_get_link_directive)
16545         (func_get_license, func_get_maintainer, func_import): Avoid
16546         shell syntax errors from parsing syntax extensions.
16547
16548 2010-09-09  Bruno Haible  <bruno@clisp.org>
16549
16550         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
16551         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
16552         a reliable way to determine whether the 'alias' command works.
16553
16554 2010-09-08  Jim Meyering  <meyering@redhat.com>
16555
16556         init.sh: penalize a set-x-impaired shell; don't disqualify it
16557         * tests/init.sh: Too many shells corrupt application stderr when
16558         you set -x, so we can't afford to disqualify them, since at least
16559         on Irix-6.5, that would disqualify all bourne shells.
16560         Instead, use a two-pass approach.
16561         On the first pass, try to find a shell that meets the stricter
16562         condition that set -x does not corrupt stderr.
16563         If no shell meets the stricter condition, retest each candidate
16564         shell, but without that extra condition.  Finally, when
16565         VERBOSE=yes is requested and set -x might cause trouble, simply
16566         issue a warning and refrain from enabling debug output.
16567
16568 2010-09-08  Eric Blake  <eblake@redhat.com>
16569
16570         unsetenv: fix OpenBSD bug
16571         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
16572         * doc/posix-functions/unsetenv.texi (unsetenv): Update
16573         documentation.
16574         Reported by Jim Meyering.
16575
16576         strtod: work around IRIX 6.5 bug
16577         * lib/strtod.c (strtod): Reparse number on shorter string if
16578         exponent parse was invalid.
16579         * tests/test-strtod.c (main): Add check for "0x1p 2".
16580         Reported by Tom G. Christensen.
16581
16582         getopt: optimize previous patch
16583         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
16584         empty variable.  Speed up awk script.
16585         Reported by Paolo Bonzini.
16586
16587 2010-09-08  Jim Meyering  <meyering@redhat.com>
16588
16589         test.sh: disqualify shells for which set -x corrupts stderr
16590         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
16591         and OpenBSD 4.7.  They make it so with "set -x", environment settings
16592         appear in stderr output.  For example, this command:
16593             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
16594         prints "P=1" on those two systems:
16595
16596 2010-09-08  Bruno Haible  <bruno@clisp.org>
16597
16598         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
16599         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
16600         commands, because some shells ignore redirections when there is an
16601         error in the command lookup.
16602         Reported by Eric Blake.
16603
16604 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
16605
16606         * lib/regex.h: Fix a mention of `regex_compile' (should be
16607         `re_compile_pattern').
16608         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
16609         (re_set_registers): Correct name of parameter in comment.
16610
16611         * doc/regex.texi: Add documentation for missing syntax flags.
16612         Remove commented-out documentation of defunct syntax option
16613         RE_NO_EMPTY_ALTS.
16614         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
16615         Add documentation of re_set_registers.
16616         Document trick to re-use a pattern buffer by setting fastmap manually.
16617         Update documentation of struct re_pattern_buffer per public members.
16618         Uncomment documentation of equivalence class operators and
16619         collating symbol operators, since they are now implemented,
16620         Explain leftmost-longest matching in relation to alternatives.
16621         Tidy documentation of substring matching.
16622         Remove POSIX documentation, which is done better in
16623         glibc, and refer the reader there. Keep BSD API documentation, as
16624         that is not readily available elsewhere.
16625
16626 2010-09-07  Eric Blake  <eblake@redhat.com>
16627
16628         getopt: handle POSIXLY_CORRECT set but not exported
16629         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
16630         export state of POSIXLY_CORRECT, due to bash set -o posix.
16631         Reported by Dustin J. Mitchell.
16632
16633 2010-09-05  Bruno Haible  <bruno@clisp.org>
16634
16635         gnulib-tool: Highlight the changed options.
16636         * gnulib-tool (func_usage): Display the --import, --add-import,
16637         --remove-import explanations in bold font.
16638
16639 2010-09-06  Karl Berry  <karl@gnu.org>
16640
16641         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
16642
16643 2010-09-05  Bruno Haible  <bruno@clisp.org>
16644
16645         uniwidth/width: Update comment.
16646         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
16647         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
16648
16649 2010-09-05  Bruno Haible  <bruno@clisp.org>
16650
16651         isinf, isnan: Relax license.
16652         * modules/isinf (License): Change from GPL to LGPL, with consent from
16653         Ben Pfaff.
16654         * modules/isnan (License): Likewise.
16655         Requested by Ludovic Courtès.
16656
16657 2010-09-04  Bruno Haible  <bruno@clisp.org>
16658
16659         gnulib-tool: Help migration from --import to --add-import or --update.
16660         * gnulib-tool: Emit a verbose error message when --import is used
16661         without any module name.
16662
16663 2010-09-04  Bruno Haible  <bruno@clisp.org>
16664
16665         Update doc about gnulib-tool.
16666         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
16667         'gnulib-tool --update' in more detail.
16668         Reported by Eric Blake.
16669
16670 2010-09-04  Bruno Haible  <bruno@clisp.org>
16671
16672         gnulib-tool: Change --import. New options --add/remove-import.
16673         * gnulib-tool: New options --add-import, --remove-import.
16674         (func_usage): Document them.
16675         (have_associative): Define always.
16676         (func_import): In import mode, don't merge the specified settings with
16677         the cached settings. Implement remove-import mode.
16678         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
16679         Explain when to use them versus --import.
16680         (Simple update): Use --add-import instead of --import.
16681         * NEWS: Mention the change.
16682
16683 2010-09-04  Bruno Haible  <bruno@clisp.org>
16684
16685         * doc/gnulib-tool.texi (Initial import): Update paragraph about
16686         separate gnulib.mk.
16687
16688 2010-09-04  Bruno Haible  <bruno@clisp.org>
16689
16690         gnulib-tool: Don't talk about CVS any more.
16691         * gnulib-tool (func_usage, func_import): Write "version control"
16692         instead of CVS.
16693
16694 2010-09-04  Jim Meyering  <meyering@redhat.com>
16695
16696         maint.mk: avoid obscure sc_copyright_check failure in coreutils
16697         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
16698         false positives (whose names may be ill-chosen) when searching
16699         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
16700         would cause a false-positive.
16701
16702         avoid coreutils "make distcheck" failure
16703         Coreutils tests with an absolute build directory name that contains
16704         a space.  Not quoting this directory name caused a failure.
16705         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
16706         * tests/test-vc-list-files-cvs.sh: Likewise.
16707
16708 2010-09-04  Bruno Haible  <bruno@clisp.org>
16709
16710         gnulib-tool: Avoid error when run in a package without Makefile.am.
16711         * gnulib-tool: When collecting the m4dirs in a package that does not
16712         have a Makefile.am, eliminate those directories that contain no
16713         gnulib-cache.m4. Fix expression that counts these directories.
16714
16715 2010-09-04  Bruno Haible  <bruno@clisp.org>
16716
16717         update-copyright test: Improve output when perl is missing or too old.
16718         * tests/test-update-copyright.sh: Move test of Perl version down after
16719         the test whether Perl exists. Provide an explanation relating Perl's
16720         error message to Automake's SKIP: message.
16721
16722 2010-09-04  Bruno Haible  <bruno@clisp.org>
16723
16724         Don't augment PATH in TESTS_ENVIRONMENT.
16725         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
16726         set abs_aux_dir instead of augmenting PATH.
16727         * modules/vc-list-files-tests (Makefile.am): Likewise.
16728         * tests/test-update-copyright.sh: Augment PATH here.
16729         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
16730         path_prepend_.
16731         * tests/test-vc-list-files-git.sh: Likewise.
16732
16733 2010-09-04  Jim Meyering  <meyering@redhat.com>
16734
16735         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
16736         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
16737
16738 2010-09-04  Bruno Haible  <bruno@clisp.org>
16739
16740         strdup: Fix compilation error in C++ mode.
16741         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
16742         the macro.
16743
16744 2010-09-04  Bruno Haible  <bruno@clisp.org>
16745
16746         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
16747         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
16748         macro into a function.
16749         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16750
16751 2010-09-04  Bruno Haible  <bruno@clisp.org>
16752
16753         Set PATH_SEPARATOR the same way autoconf does.
16754         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
16755         the value of PATH_SEPARATOR the same way autoconf-generated configure
16756         scripts do.
16757         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
16758         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
16759
16760 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
16761
16762         Set PATH_SEPARATOR the same way autoconf does.
16763         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
16764         the same way autoconf-generated configure scripts do.
16765         * posix-modules: Likewise.
16766
16767 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
16768
16769         hash: fix safe_hasher const typo
16770         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
16771         const; otherwise, there is a type error later.
16772
16773 2010-09-02  Jim Meyering  <meyering@redhat.com>
16774
16775         test-update-copyright.sh: require perl 5.8.0
16776         * tests/test-update-copyright.sh: Require 5.8.0,
16777         which Tom G. Christensen has confirmed is adequate,
16778         while 5.6.1 is not.
16779
16780 2010-09-02  Eric Blake  <eblake@redhat.com>
16781
16782         tests: init.sh improvements for re-exec'ing with zsh
16783         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
16784         -vx through shell re-exec.
16785         Reported by Tom G. Christensen.
16786
16787         wctype: fix typo in previous commit
16788         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
16789         Reported by Ludovic Courtès.
16790
16791 2010-09-02  Jim Meyering  <meyering@redhat.com>
16792
16793         test-update-copyright.sh: skip test if Perl is too old
16794         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
16795         Reported by Tom G. Christensen.
16796
16797 2010-09-02  Bruno Haible  <bruno@clisp.org>
16798
16799         wctype: Avoid compilation error on IRIX 6.5.30.
16800         * lib/wctype.in.h (iswblank): Declare with a replacement if
16801         REPLACE_ISWBLANK is set.
16802         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
16803         declared. Set REPLACE_ISWBLANK.
16804         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
16805         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
16806         * doc/posix-headers/wctype.texi: Likewise.
16807         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16808
16809 2010-09-01  Bruno Haible  <bruno@clisp.org>
16810
16811         New module 'socketlib'.
16812         * modules/socketlib: New file.
16813         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
16814         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
16815         * modules/sockets (Depends-on): Add socketlib.
16816         Suggested by Sam Steingold <sds@gnu.org>.
16817
16818 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
16819
16820         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
16821
16822         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
16823         when one needs search access to a directory but not read access.
16824         On systems where it is available, it works in some cases where
16825         O_RDONLY does not, namely on directories that are searchable but
16826         not readable, and which need only to be searchable.  If O_SEARCH
16827         is not available, fall back to the traditional method of using
16828         O_RDONLY.
16829
16830         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
16831         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
16832         when opening a directory that needs only to be searchable.
16833         * lib/chdir-safer.c (chdir_no_follow): Likewise.
16834         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
16835         * lib/openat-proc.c (openat_proc_name): Likewise.
16836         * lib/openat.c (openat_needs_fchdir): Likewise.
16837         * lib/save-cwd.c (save_cwd): Likewise.
16838         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
16839
16840 2010-08-28  Bruno Haible  <bruno@clisp.org>
16841
16842         New module 'host-cpu-c-abi'.
16843         * modules/host-cpu-c-abi: New file.
16844         * m4/host-cpu-c-abi.m4: New file, based on part of
16845         clisp/src/m4/general.m4.
16846         Requested by Sam Steingold <sds@gnu.org>.
16847
16848 2010-08-31  Eric Blake  <eblake@redhat.com>
16849         and Jim Meyering  <meyering@redhat.com>
16850
16851         hash: factor, and guard against misbehaving hasher function
16852         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
16853         of table->hasher's return value.  Also protect against a hash value
16854         so large that adding it to table->bucket results in a NULL pointer.
16855         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
16856         Use it in place of open-coded check-and-abort.
16857
16858 2010-08-30  Bruno Haible  <bruno@clisp.org>
16859
16860         hash: silence spurious clang warning
16861         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
16862         Reported by Eric Blake.
16863
16864 2010-08-30  Eric Blake  <eblake@redhat.com>
16865
16866         strstr, memmem, strcasestr: avoid leaked shell message
16867         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
16868         FreeBSD.
16869         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
16870         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
16871
16872         tests: silence clang warning
16873         * tests/test-malloca.c (do_allocation): Avoid dead store.
16874
16875 2010-08-29  Bruno Haible  <bruno@clisp.org>
16876
16877         gettext: Fix recent mistake.
16878         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
16879
16880 2010-08-29  Bruno Haible  <bruno@clisp.org>
16881
16882         selinux-h: Offer a --without-selinux option.
16883         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
16884         --without-selinux was specified, skip all tests and define
16885         HAVE_SELINUX_SELINUX_H to 0.
16886         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
16887         set LIB_SELINUX to empty.
16888         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
16889         gl_LIBSELINUX. If --without-selinux was specified, replace
16890         selinux/context.h.
16891         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
16892
16893 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16894             Bruno Haible  <bruno@clisp.org>
16895
16896         Make the module 'realloc-gnu' work again on AIX and OSF/1.
16897         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
16898         of HAVE_REALLOC.
16899         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
16900         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
16901         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
16902         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
16903
16904 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16905             Bruno Haible  <bruno@clisp.org>
16906
16907         Make the module 'calloc-gnu' work again on AIX and OSF/1.
16908         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
16909         HAVE_CALLOC.
16910         * lib/xmalloc.c: Update accordingly.
16911         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
16912         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
16913         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
16914
16915 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16916             Bruno Haible  <bruno@clisp.org>
16917
16918         Make the module 'malloc-gnu' work again on AIX and OSF/1.
16919         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
16920         HAVE_MALLOC.
16921         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
16922         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
16923         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
16924
16925 2010-08-29  Bruno Haible  <bruno@clisp.org>
16926
16927         Update modules list.
16928         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
16929         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
16930         (String handling <string.h>): Add astrxfrm.
16931         (File system functions): Add readlinkat.
16932
16933 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16934
16935         Tests for module 'realloc-gnu'.
16936         * modules/realloc-gnu-tests: New file.
16937         * tests/test-realloc-gnu.c: New file.
16938
16939         Tests for module 'calloc-gnu'.
16940         * modules/calloc-gnu-tests: New file.
16941         * tests/test-calloc-gnu.c: New file.
16942
16943         Tests for module 'malloc-gnu'.
16944         * modules/malloc-gnu-tests: New file.
16945         * tests/test-malloc-gnu.c: New file.
16946
16947 2010-08-28  Bruno Haible  <bruno@clisp.org>
16948
16949         Rename module 'realloc' -> 'realloc-gnu'.
16950         * modules/realloc-gnu: New file, copied from modules/realloc.
16951         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
16952         obsolete.
16953         * modules/mgetgroups (Depends-on): Update.
16954         * doc/posix-functions/realloc.texi: Update.
16955         * NEWS: Mention the change.
16956
16957         Rename module 'calloc' -> 'calloc-gnu'.
16958         * modules/calloc-gnu: New file, copied from modules/calloc.
16959         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
16960         obsolete.
16961         * doc/posix-functions/calloc.texi: Update.
16962         * NEWS: Mention the change.
16963
16964         Rename module 'malloc' -> 'malloc-gnu'.
16965         * modules/malloc-gnu: New file, copied from modules/malloc.
16966         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
16967         obsolete.
16968         * modules/argp (Depends-on): Update.
16969         * modules/regex (Depends-on): Update.
16970         * doc/posix-functions/malloc.texi: Update.
16971         * NEWS: Mention the change.
16972
16973 2010-08-28  Eric Blake  <eblake@redhat.com>
16974
16975         pread, pwrite: add missing dependency
16976         * modules/pread (Depends-on): Add extensions.
16977         * modules/pwrite (Depends-on): Likewise.
16978
16979 2010-08-28  Bruno Haible  <bruno@clisp.org>
16980
16981         unistr/u*-strchr: Fix tests dependencies.
16982         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
16983         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
16984         Reported by Ian Beckwith <ianb@erislabs.net>.
16985
16986 2010-08-28  Bruno Haible  <bruno@clisp.org>
16987
16988         read-file: Don't occupy too much unused memory.
16989         * lib/read-file.c (fread_file): Shrink the buffer at the end.
16990
16991 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
16992             Eric Blake  <eblake@redhat.com>
16993             Bruno Haible  <bruno@clisp.org>
16994
16995         read-file: Avoid memory reallocations with regular files.
16996         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
16997         (fread_file): With regular files, use the remaining length as the
16998         initial buffer size.  Check against overflow.
16999         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
17000         sys_stat.
17001
17002 2010-08-28  Bruno Haible  <bruno@clisp.org>
17003
17004         ftello: Relax license.
17005         * modules/ftello (License): Relax to LGPLv2+.
17006         Reported by Eric Blake.
17007
17008 2010-08-28  Bruno Haible  <bruno@clisp.org>
17009
17010         Avoid relocwrapper link errors due to gnulib replacement functions.
17011         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
17012         function.
17013         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17014
17015 2010-08-28  Bruno Haible  <bruno@clisp.org>
17016
17017         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
17018         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
17019         defined.
17020         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
17021         Suggested by Eric Blake.
17022
17023 2010-08-28  Bruno Haible  <bruno@clisp.org>
17024
17025         sys_socket, netdb: Ensure socklen_t gets defined.
17026         * modules/sys_socket (Depends-on): Add socklen.
17027         * modules/netdb (Depends-on): Likewise.
17028         * modules/getaddrinfo (Depends-on): Remove socklen.
17029         * modules/getsockopt (Depends-on): Likewise.
17030         * modules/setsockopt (Depends-on): Likewise.
17031         * tests/test-sys_socket.c: Check that socklen_t is defined.
17032         * tests/test-netdb.c: Likewise.
17033         * m4/socklen.m4: Update comments.
17034         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17035
17036 2010-08-27  Eric Blake  <eblake@redhat.com>
17037
17038         login_tty: add missing dependency
17039         * modules/login_tty (Depends-on): Add pty.
17040
17041 2010-08-26  Eric Blake  <eblake@redhat.com>
17042
17043         lib-symbol-versions: fix m4 quoting
17044         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
17045         format for AC_LINK_IFELSE.
17046
17047         glob: fix compile test
17048         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
17049
17050         btowc: fix missing file
17051         * modules/btowc (Files): Also ship locale-fr.m4.
17052
17053         lseek: fix link test
17054         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
17055         AC_LINK_IFELSE.
17056
17057         include_next: silence autoconf 2.68 warning
17058         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
17059         AC_COMPILE_IFELSE as special.
17060         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
17061         autoconf < 2.68.
17062
17063         acl: fix compilation test
17064         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
17065         AC_COMPILE_IFELSE.
17066
17067 2010-08-26  Bruno Haible  <bruno@clisp.org>
17068
17069         Modernize AC_TRY_RUN invocations.
17070         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
17071         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
17072         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
17073         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
17074         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
17075         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
17076         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
17077         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
17078         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17079         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17080         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
17081         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17082         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
17083         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17084         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
17085         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17086         gl_MBRLEN_NUL_RETVAL): Likewise.
17087         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17088         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
17089         Likewise.
17090         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17091         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17092         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
17093         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
17094         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
17095         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
17096         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
17097         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
17098         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
17099         Likewise.
17100         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
17101         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
17102         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17103         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17104         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17105         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
17106         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17107         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
17108         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17109         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17110
17111 2010-08-26  Bruno Haible  <bruno@clisp.org>
17112
17113         Modernize AC_TRY_LINK invocations.
17114         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
17115         AC_TRY_LINK.
17116         * m4/argp.m4 (gl_ARGP): Likewise.
17117         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
17118         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
17119         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
17120         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
17121         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
17122         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
17123         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
17124         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
17125         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
17126         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
17127         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
17128         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
17129         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
17130         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17131         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
17132         * m4/hostent.m4 (gl_HOSTENT): Likewise.
17133         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17134         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
17135         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
17136         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
17137         Likewise.
17138         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
17139         Likewise.
17140         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
17141         Likewise.
17142         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
17143         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
17144         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
17145         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
17146         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
17147         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
17148         * m4/servent.m4 (gl_SERVENT): Likewise.
17149         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
17150         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
17151         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
17152         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
17153         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17154         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
17155         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17156         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17157         * modules/tsearch-tests (configure.ac): Likewise.
17158
17159 2010-08-26  Bruno Haible  <bruno@clisp.org>
17160
17161         Modernize AC_TRY_COMPILE invocations.
17162         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
17163         AC_TRY_COMPILE.
17164         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
17165         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
17166         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
17167         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
17168         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
17169         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
17170         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
17171         * m4/lock.m4 (gl_LOCK): Likewise.
17172         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
17173         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17174         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
17175         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
17176         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
17177         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
17178         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
17179         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
17180         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
17181         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
17182         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
17183         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17184         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
17185         extraneous semicolon.
17186
17187 2010-08-26  Jim Meyering  <meyering@redhat.com>
17188
17189         stat-time: relax license LGPL
17190         * modules/stat-time (License): Change from GPL to LGPL,
17191         with consent from all contributors, for use in libguile.
17192         Requested by Ludovic Courtès.
17193
17194 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
17195
17196         poll: return immediately on POLLHUP.
17197         * lib/poll.c (poll): Always set timeout before wait_timeout is
17198         computed.
17199
17200 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17201
17202         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
17203         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
17204         rmdir ("dir/.//"), unlinkat.
17205
17206 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17207
17208         stdbool: avoid spurious failure with modern xlc
17209         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
17210
17211 2010-08-24  Bruno Haible  <bruno@clisp.org>
17212
17213         getloadavg: simplify code
17214         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
17215         gl_have_func. Update comments.
17216
17217 2010-08-24  Eric Blake  <eblake@redhat.com>
17218
17219         getloadavg: don't define SVR4 on cygwin
17220         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
17221         only define SVR4 when -lkvm is required.
17222         Reported by Yaakov Selkowitz.
17223
17224 2010-08-24  Bruno Haible  <bruno@clisp.org>
17225
17226         priv-set: fix comment
17227         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
17228
17229 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17230
17231         priv-set: fix comments
17232         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
17233         to match code, as suggested by David Bartley in:
17234         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
17235
17236 2010-08-23  Eric Blake  <eblake@redhat.com>
17237
17238         stdbool: avoid rejecting clang
17239         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
17240         * tests/test-stdbool.c: Enable more tests if using the system
17241         <stdbool.h> instead of the gnulib replacement.
17242         (main): Move xlc bug test to a runtime test for all compilers.
17243         Reported by Anders Kaseorg.
17244
17245         argz: fix shell quoting issue
17246         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
17247         Reported by Charles Wilson.
17248
17249 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
17250             Erik Faye-Lund <kusmabite@gmail.com>
17251
17252         poll, select: handle ERROR_BROKEN_PIPE.
17253         * lib/poll.c (win32_compute_revents): Return POLLHUP when
17254         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
17255         * lib/select.c (win32_compute_revents): Do not mark a pipe
17256         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
17257
17258 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
17259
17260         fts: allow compilation with C++
17261         * lib/fts_.h: Specify extern "C" linkage with C++.
17262
17263 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17264
17265         Fix gnulib-tool sed script de-commentation for AIX sed.
17266         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
17267         sed.
17268
17269 2010-08-17  Eric Blake  <eblake@redhat.com>
17270
17271         test-stddef: test for (some) offsetof bugs
17272         * tests/test-stddef.c: Enhance test to ensure correct type of
17273         offsetof.
17274         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
17275         that we are not fixing at this time.
17276
17277 2010-08-15  Bruno Haible  <bruno@clisp.org>
17278
17279         stpncpy: Allow stpncpy to be defined as a macro.
17280         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
17281         if it's already correctly declared.
17282         * lib/string.in.h (stpncpy): Undefine before redefining.
17283         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
17284
17285 2010-08-14  Bruno Haible  <bruno@clisp.org>
17286
17287         Rename module 'memxfrm' to 'amemxfrm'.
17288         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
17289         (amemxfrm): Renamed from memxfrm.
17290         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
17291         (amemxfrm): Renamed from memxfrm.
17292         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
17293         * NEWS: Mention the change.
17294         * MODULES.html.sh (String handling <string.h>): Update.
17295         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
17296         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
17297         * lib/unicase/u16-casexfrm.c: Likewise.
17298         * lib/unicase/u32-casexfrm.c: Likewise.
17299         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
17300         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
17301         * lib/uninorm/u16-normxfrm.c: Likewise.
17302         * lib/uninorm/u32-normxfrm.c: Likewise.
17303         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
17304         memxfrm.
17305         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
17306         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
17307         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
17308         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
17309         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
17310         Suggested by Paul Eggert.
17311
17312 2010-08-14  Bruno Haible  <bruno@clisp.org>
17313
17314         Tests for module 'astrxfrm'.
17315         * modules/astrxfrm-tests: New file.
17316         * tests/test-astrxfrm.c: New file.
17317
17318         New module 'astrxfrm'.
17319         * lib/astrxfrm.h: New file.
17320         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
17321         * modules/astrxfrm: New file.
17322
17323 2010-08-14  Reuben Thomas <rrt@sc3d.org>
17324
17325         regex: Tweak doc.
17326         * doc/regex.texi (Overview): Don't mention regex.c.
17327         (GNU Regular Expression Compiling): Likewise.
17328         (Match-end-of-line Operator): Mention 'not_eol'.
17329
17330 2010-08-14  Brian Gough  <bjg@gnu.org>
17331             Bruno Haible  <bruno@clisp.org>
17332
17333         git-merge-changelog: add doc relating to use with bzr and hg.
17334         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
17335
17336 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
17337
17338         pthread: fix pthread.h creation for srcdir != builddir
17339         * modules/pthread (Makefile.am): Fix the rule to work also in a
17340         non-srcdir build.
17341
17342 2010-08-13  Karl Berry  <karl@gnu.org>
17343
17344         * doc/regex.texi (Predefined Syntaxes): @smallexample.
17345         * doc/posix-*/*: force line break before @url of POSIX
17346         specifications.
17347         Suggested by Werner Lemberg.
17348
17349 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
17350
17351         strtod: fix const diagnostic
17352         * lib/strtod.c (strtod): Don't assign const char * to char *,
17353         as this elicits a warning from GCC when warnings are enabled.
17354
17355 2010-08-10  Pádraig Brady <P@draigbrady.com>
17356         and Eric Blake  <eblake@redhat.com>
17357
17358         copy-acl: ignore ENOTSUP on HP-UX
17359         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
17360         so that it is available for HP-UX.
17361         * lib/copy-acl.c (qcopy_acl): Use it.
17362         Reported by Patrick M. Callahan.
17363
17364 2010-08-10  Eric Blake  <eblake@redhat.com>
17365
17366         open, chown: relax license
17367         * modules/open (License): Change to LGPLv2+, with consent by all
17368         authors, for use in augeas.
17369         * modules/chown (License): Likewise.
17370         * modules/lchown (Likewise): Likewise.
17371         Requested by Adam Stokes.
17372
17373 2010-08-09  Karl Berry  <karl@gnu.org>
17374
17375         * build-aux/ar-lib: new file, import from Automake.
17376         * config/srclist.txt: autocheck for updates.
17377
17378 2010-08-09  Eric Blake  <eblake@redhat.com>
17379
17380         readlinkat: adjust client modules
17381         * modules/areadlinkat (Depends-on): Use readlinkat, not
17382         symlinkat.
17383         * modules/areadlinkat-with-size (Depends-on): Likewise.
17384
17385         mknod: be more vocal about danger of running tests as root
17386         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
17387         root, since that is just asking for problems.
17388         Suggested by Bruno Haible, based on a report by Rainer Tammer.
17389
17390         readlinkat: split into its own module
17391         * modules/symlinkat: Split readlinkat...
17392         * modules/readlinkat: ...into separate module.
17393         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
17394         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
17395         * lib/symlinkat.c (readlinkat): Move...
17396         * lib/readlinkat.c: ...into new file.
17397         * modules/symlinkat-tests: Split readlinkat test...
17398         * modules/readlinkat-tests: ...into separate module.
17399         * tests/test-symlinkat.c: Split...
17400         * tests/test-readlinkat.c: ...into new file.
17401         * NEWS: Document the split.
17402         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17403         * lib/unistd.in.h (readlinkat): Likewise.
17404         Suggested by Bruno Haible.
17405
17406 2010-08-08  Bruno Haible  <bruno@clisp.org>
17407
17408         memxfrm: Speed up.
17409         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
17410         that usually only one call to strxfrm is necessary for each string
17411         part.
17412         Reported by Paul Eggert <eggert@cs.ucla.edu>.
17413
17414 2010-08-07  Karl Berry  <karl@gnu.org>
17415
17416         * doc/posix-headers/limits.texi,
17417         * doc/posix-functions/malloc.texi,
17418         * doc/posix-functions/strsignal.texi: missing @item.
17419         * doc/ld-version-script.texi: spurious leading i.
17420         * doc/regex.texi (Interval Operators): no commas inside @var.
17421
17422 2010-08-01  Bruno Haible  <bruno@clisp.org>
17423
17424         Integrate the regex documentation.
17425         * doc/gnulib.texi: Define 'cn' index.
17426         (Regular expressions): New a chapter that includes regex.texi and
17427         regexprops-generic.texi.
17428         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
17429         syntax.
17430
17431         Whitespace cleanup.
17432         * doc/regex.texi: Remove trailing spaces.
17433
17434         Add regex documentation.
17435         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
17436         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
17437         Written by Kathy A. Hargreaves and Karl Berry.
17438
17439 2010-08-01  Bruno Haible  <bruno@clisp.org>
17440
17441         link: Update documentation.
17442         * doc/posix-functions/link.texi: Update regarding Solaris.
17443
17444 2010-07-31  Bruno Haible  <bruno@clisp.org>
17445
17446         Update modules list.
17447         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
17448         (String handling <string.h>): Add memcmp2, memxfrm.
17449         (Container data structures): Add xlist, xsublist, xoset.
17450         (Core language properties): Add alignof, unused-parameter.
17451         (Process control, Numeric conversion functions <stdlib.h>): Renamed
17452         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
17453         (Unibyte characters <ctype.h>): New section.
17454         (String handling <string.h>): New section.
17455         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
17456         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
17457         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
17458         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
17459         tan, tanh, tanl, y0, y1, yn.
17460         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
17461         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
17462         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
17463         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
17464         unlockpt, vdprintf, vdprintf-posix.
17465         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
17466         (File system functions): Add concat-filename, sys_file, sys_ioctl,
17467         xconcat-filename.
17468         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
17469         getdtablesize, pipe2, pipe2-safer.
17470         (Security): New section.
17471         (Networking functions): Add accept4.
17472         (Signal handling): Add sigpipe.
17473         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
17474         mbmemcasecoll.
17475         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
17476         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
17477         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
17478         pipe-filter-ii.
17479         (Misc): Add argp-version-etc, login_tty, parse-duration.
17480
17481 2010-07-31  Bruno Haible  <bruno@clisp.org>
17482
17483         Improve doc in MODULES.html.
17484         * modules/linkat (Description): Add the word "function".
17485         * modules/mkfifo (Description): Likewise.
17486         * modules/mknod (Description): Likewise.
17487         * modules/remove (Description): Likewise.
17488         * modules/renameat (Description): Likewise.
17489         * modules/stat (Description): Likewise.
17490         * modules/symlink (Description): Likewise.
17491         * modules/unlink (Description): Likewise.
17492
17493 2010-07-31  Bruno Haible  <bruno@clisp.org>
17494
17495         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
17496         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
17497         option --enable/disable-c++ instead of --enable/disable-cxx.
17498         * NEWS: Mention the change.
17499
17500 2010-07-31  Bruno Haible  <bruno@clisp.org>
17501
17502         readlink, areadlink: Relax test a bit.
17503         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
17504         alternative to ENOTDIR.
17505         * tests/test-areadlink.h (test_areadlink): Likewise.
17506         Reported by Rainer Tammer.
17507
17508 2010-07-31  Bruno Haible  <bruno@clisp.org>
17509
17510         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
17511         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
17512         character, perform the search using U_STRCHR.
17513         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
17514         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
17515         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
17516         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
17517         Suggested by Paolo Bonzini.
17518
17519 2010-07-31  Bruno Haible  <bruno@clisp.org>
17520
17521         unistr/u*-strstr: Fix dependencies.
17522         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
17523         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
17524         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
17525
17526 2010-07-31  Bruno Haible  <bruno@clisp.org>
17527
17528         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
17529         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
17530         the beginning of the loop.
17531         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
17532         cases in 'switch' statement.
17533
17534         unistr/u8-strchr: Fix several bugs.
17535         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
17536         the string. When not found, return NULL, not a pointer near the end.
17537
17538         More tests for unistr/u8-strchr.
17539         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
17540         that the function does not read past the first occurrence of the byte
17541         being searched.
17542         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
17543         * tests/unistr/test-u16-strchr.c (main): New function.
17544         * tests/unistr/test-u32-strchr.c (main): New function.
17545
17546 2010-07-31  Bruno Haible  <bruno@clisp.org>
17547
17548         posix-modules: Ignore backup files of documentation files.
17549         * posix-modules: grep only through files named *.texi.
17550
17551 2010-07-31  Bruno Haible  <bruno@clisp.org>
17552
17553         symlinkat: Fix documentation.
17554         * doc/posix-functions/readlinkat.texi: Fix module name.
17555
17556 2010-07-31  Bruno Haible  <bruno@clisp.org>
17557
17558         fchownat: Replace also when chown has the trailing slash bug.
17559         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
17560         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
17561         introduced on 2010-04-10.
17562         Reported by Rainer Tammer.
17563
17564 2010-07-31  Bruno Haible  <bruno@clisp.org>
17565
17566         linkat: Work around AIX 7.1 bug.
17567         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
17568         whether linkat handles trailing slash correctly. If not, replace linkat
17569         and define LINKAT_TRAILING_SLASH_BUG.
17570         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
17571         check whether (fd1,file1) points to a directory if file1 or file2 ends
17572         in a slash. Code taken from lib/link.c.
17573         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
17574         Reported by Rainer Tammer.
17575
17576 2010-07-31  Bruno Haible  <bruno@clisp.org>
17577
17578         Correctly determine whether pow is available in libc on AIX 7 with xlc.
17579         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
17580         This disables an xlc optimization that was causing wrong test results.
17581         Reported by Rainer Tammer.
17582
17583 2010-07-31  Bruno Haible  <bruno@clisp.org>
17584
17585         iconv: Work around AIX 6.1..7.1 bug.
17586         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
17587         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
17588         cross-compiling, guess no on all versions of AIX.
17589         Reported by Rainer Tammer.
17590
17591 2010-07-31  Bruno Haible  <bruno@clisp.org>
17592
17593         readlink: Relax test a bit.
17594         * tests/test-readlink.h (test_readlink): Allow different errno value
17595         when readlink is called with a file name that ends in / and refers to
17596         a file.
17597         Suggested by Eric Blake.
17598         Reported by Rainer Tammer.
17599
17600 2010-07-31  Bruno Haible  <bruno@clisp.org>
17601
17602         copysign: Does not require -lm on glibc systems.
17603         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
17604         gl_COMMON_DOUBLE_MATHFUNC.
17605         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
17606
17607 2010-07-31  Bruno Haible  <bruno@clisp.org>
17608
17609         duplocale: Work around AIX 7.1 bug.
17610         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
17611         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
17612         * lib/duplocale.c (rpl_duplocale): Update comment.
17613         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
17614         Reported by Rainer Tammer.
17615
17616 2010-07-30  Bruno Haible  <bruno@clisp.org>
17617
17618         dirfd: Avoid link error on AIX 7.1.
17619         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
17620         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
17621         exist, set REPLACE_DIRFD.
17622         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
17623         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
17624         * doc/posix-functions/dirfd.texi: Update.
17625         Reported by Rainer Tammer.
17626
17627 2010-07-30  Eric Blake  <eblake@redhat.com>
17628
17629         strtod: next round of AIX fixes
17630         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
17631         exponent.
17632         * tests/test-strtod.c (main): Enhance tests.
17633         * doc/posix-functions/strtod.texi (strtod): Document next bug.
17634         Reported by Rainer Tammer.
17635
17636         futimens: fix configure check
17637         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
17638         Reported by Bruno Haible.
17639
17640 2010-07-30  Bruno Haible  <bruno@clisp.org>
17641
17642         getline: Update regarding AIX.
17643         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
17644         Reported by Rainer Tammer.
17645
17646 2010-07-30  Bruno Haible  <bruno@clisp.org>
17647
17648         wcwidth: Drop replacement on AIX 7.
17649         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
17650         AIX 7.
17651         Reported by Rainer Tammer.
17652
17653 2010-07-30  Bruno Haible  <bruno@clisp.org>
17654
17655         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
17656         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
17657         a 'char *'.
17658         Reported by Rainer Tammer.
17659
17660 2010-07-30  Bruno Haible  <bruno@clisp.org>
17661
17662         unlink: Update regarding AIX.
17663         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
17664         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
17665         Reported by Rainer Tammer.
17666
17667 2010-07-30  Bruno Haible  <bruno@clisp.org>
17668
17669         symlink: Update regarding AIX.
17670         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
17671         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
17672         Reported by Rainer Tammer.
17673
17674 2010-07-30  Bruno Haible  <bruno@clisp.org>
17675
17676         strndup: Update regarding AIX.
17677         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
17678         AIX 7.
17679         Reported by Rainer Tammer.
17680
17681 2010-07-30  Bruno Haible  <bruno@clisp.org>
17682
17683         stat: Update regarding AIX.
17684         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
17685         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
17686         Reported by Rainer Tammer.
17687
17688 2010-07-30  Bruno Haible  <bruno@clisp.org>
17689
17690         truncl: Fix autoconf test.
17691         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
17692         whether truncl works.
17693         Reported by Rainer Tammer.
17694
17695 2010-07-30  Bruno Haible  <bruno@clisp.org>
17696
17697         round: Update regarding AIX.
17698         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
17699         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
17700         Reported by Rainer Tammer.
17701
17702 2010-07-30  Bruno Haible  <bruno@clisp.org>
17703
17704         rename: Update regarding AIX.
17705         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
17706         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
17707         Reported by Rainer Tammer.
17708
17709 2010-07-30  Bruno Haible  <bruno@clisp.org>
17710
17711         printf.m4: Update regarding AIX.
17712         * m4/printf.m4: Update comments regarding AIX.
17713         Reported by Rainer Tammer.
17714
17715 2010-07-30  Bruno Haible  <bruno@clisp.org>
17716
17717         iconv: Update regarding AIX.
17718         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
17719         AIX 7.
17720         Reported by Rainer Tammer.
17721
17722 2010-07-30  Bruno Haible  <bruno@clisp.org>
17723
17724         getopt: Update regarding AIX.
17725         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
17726         no on AIX.
17727         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
17728         Reported by Rainer Tammer.
17729
17730 2010-07-30  Bruno Haible  <bruno@clisp.org>
17731
17732         ldexpl; Update regarding AIX.
17733         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
17734         on AIX 7.
17735         Reported by Rainer Tammer.
17736
17737 2010-07-30  Bruno Haible  <bruno@clisp.org>
17738
17739         frexpl: Update regarding AIX.
17740         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
17741         on AIX 7.
17742         Reported by Rainer Tammer.
17743
17744 2010-07-30  Bruno Haible  <bruno@clisp.org>
17745
17746         open, fopen: Update regarding AIX.
17747         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
17748         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
17749         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
17750         * doc/posix-functions/fopen.texi: Likewise.
17751         Reported by Rainer Tammer.
17752
17753 2010-07-30  Bruno Haible  <bruno@clisp.org>
17754
17755         chown: Update doc regarding AIX.
17756         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
17757         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
17758         Reported by Rainer Tammer.
17759
17760 2010-07-30  Eric Blake  <eblake@redhat.com>
17761
17762         strtod: fix bug in replacement function on AIX
17763         * lib/strtod.c (strtod): Special case broken "0x" parse in
17764         underlying strtod.
17765         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
17766         * doc/posix-functions/strtod.texi (strtod): Likewise.
17767         Reported by Rainer Tammer.
17768
17769 2010-07-30  Bruno Haible  <bruno@clisp.org>
17770
17771         mbrlen: Fix cross-compilation guess for AIX.
17772         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
17773         guess. Leftover from 2008-12-22.
17774
17775 2010-07-30  Bruno Haible  <bruno@clisp.org>
17776
17777         mbrtowc: Fix cross-compilation guess for AIX.
17778         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
17779         guess. Leftover from 2008-12-21.
17780
17781 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
17782
17783         init.sh: work around trap limitation of some shells
17784         * tests/init.sh (setup_): Move exit trap outside of shell function.
17785
17786 2010-07-29  Eric Blake  <eblake@redhat.com>
17787
17788         strtod: aid debugging
17789         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
17790         understanding why strtod is rejected.
17791
17792 2010-07-28  Bruno Haible  <bruno@clisp.org>
17793
17794         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
17795         * lib/unistr/u8-chr.c: Include <string.h>.
17796         * tests/unistr/test-u8-chr.c: Likewise.
17797         * tests/unistr/test-u16-chr.c: Likewise.
17798         * tests/unistr/test-u32-chr.c: Likewise.
17799         * tests/unistr/test-u8-strchr.c: Likewise.
17800         * tests/unistr/test-u16-strchr.c: Likewise.
17801         * tests/unistr/test-u32-strchr.c: Likewise.
17802         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
17803         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
17804         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
17805         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
17806
17807 2010-07-28  Bruno Haible  <bruno@clisp.org>
17808
17809         Use spaces for indentation, not tabs.
17810         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
17811
17812 2010-07-27  Bruno Haible  <bruno@clisp.org>
17813
17814         mbspcasecmp: Fix function specification.
17815         * lib/string.in.h (mbspcasecmp): Fix specification comment.
17816         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
17817         Reported by Eric Blake <eblake@redhat.com>.
17818
17819 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
17820
17821         timespec: use cast and not conditional, as truncation isn't possible
17822         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
17823         instead of a conditional.  Comment about the situation in more detail.
17824         This undoes most of the 2009-10-29 patch.
17825
17826 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
17827
17828         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
17829         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
17830         * lib/unistr/u8-strchr.c: Likewise.
17831         * modules/unistr/u8-chr: Depend on memchr.
17832
17833         unistr/u*-strchr: add tests
17834         * modules/unistr/u8-strchr-tests: New file.
17835         * modules/unistr/u16-strchr-tests: New file.
17836         * modules/unistr/u32-strchr-tests: New file.
17837         * tests/unistr/test-strchr.h: New file.
17838         * tests/unistr/test-u8-strchr.c: New file.
17839         * tests/unistr/test-u16-strchr.c: New file.
17840         * tests/unistr/test-u32-strchr.c: New file.
17841
17842         unistr/u*-chr: test multibyte sequences more
17843         * tests/unistr/test-chr.h: Do complete testing of the characters in the
17844         test vector.
17845         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
17846         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
17847         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
17848
17849         unistr/u*-chr: test multibyte sequences
17850         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
17851
17852         unistr/u*-chr: prepare for multibyte tests
17853         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
17854         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
17855         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
17856         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
17857         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
17858         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
17859
17860 2010-07-18  Bruno Haible  <bruno@clisp.org>
17861
17862         unistr/u8-strchr: Optimize non-ASCII argument case.
17863         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
17864         because the first byte often matches anyway.
17865         Reported by Pádraig Brady <P@draigbrady.com>.
17866
17867 2010-07-15  Karl Berry  <karl@gnu.org>
17868
17869         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
17870
17871 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
17872
17873         getcwd: on Solaris, work better if ancestors are inaccessible
17874         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
17875         buffer and size, try again with a large buffer.  This works better
17876         on Solaris, since its getcwd succeeds even if the path to the root
17877         is inaccessible, and this is helpful in common cases such as .zfs
17878         hidden directories.  Problem reported by J Chapman Flack in
17879         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
17880         Use system getcwd if it's declared, not merely if it's partly
17881         working; use the partly-working test only to avoid needless effort
17882         if the system getcwd fails.
17883         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
17884         comment that was already obsolete and is now even more obsolete.
17885         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
17886         now might call strdup.
17887
17888 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
17889
17890         pthread: Add enough so that coreutils/src/sort.c compiles.
17891         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
17892         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
17893         gnulib. Include <sched.h> and <time.h>, as per POSIX.
17894         Include <sys/types.h>, in case it defines pthread_t.
17895         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
17896         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
17897         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
17898         (pthread_rwlockattr_t, pthread_spinlock_t):
17899         New typedefs, if HAVE_PTHREAD_T is not defined.
17900         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
17901         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
17902         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
17903         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
17904         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
17905         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
17906         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
17907         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
17908         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
17909         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
17910         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
17911         New macros.
17912         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
17913         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
17914         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
17915         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
17916         (pthread_spin_unlock): New dummy functions.
17917         (pthread_create): Return EAGAIN; don't set errno.
17918         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
17919         require AC_C_INLINE.
17920         * modules/pthread (Depends-on): Add sched, time.
17921         (pthread.h): Use AM_V_GEN.
17922
17923 2010-07-13  Bruno Haible  <bruno@clisp.org>
17924
17925         striconveh: Don't malloc memory if the result buffer is sufficient.
17926         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
17927         buffer if its size is sufficient.
17928         Reported by Ludovic Courtès <ludo@gnu.org>.
17929
17930 2010-07-13  Bruno Haible  <bruno@clisp.org>
17931
17932         strtod: Add safety check.
17933         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
17934
17935 2010-07-12  Bruno Haible  <bruno@clisp.org>
17936
17937         Unify tests that set gl_cv_func_ldexpl_no_libm.
17938         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
17939         gl_FUNC_LDEXPL.
17940         (gl_FUNC_LDEXPL): Invoke it.
17941         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
17942
17943 2010-07-12  Bruno Haible  <bruno@clisp.org>
17944
17945         Unify tests that set gl_cv_func_ldexp_no_libm.
17946         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
17947         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
17948         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
17949         (configure.ac): Simply invoke gl_FUNC_LDEXP.
17950         * modules/strtod (Files): Add m4/ldexp.m4.
17951
17952 2010-07-12  Bruno Haible  <bruno@clisp.org>
17953
17954         Unify tests that set gl_cv_func_frexpl_no_libm.
17955         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
17956         gl_FUNC_FREXPL_NO_LIBM.
17957         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
17958         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
17959
17960 2010-07-12  Bruno Haible  <bruno@clisp.org>
17961
17962         Unify tests that set gl_cv_func_frexp_no_libm.
17963         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
17964         gl_FUNC_FREXP_NO_LIBM.
17965         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
17966         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
17967
17968 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
17969
17970         memcoll: clarify sizes versus lengths, document better, and tweak perf
17971         * lib/memcoll.c (strcoll_loop, memcoll0):
17972         Improve quality of descriptive comments.  Name variables
17973         consistently as to whether they are lengths (which do not include
17974         terminating null) versus sizes (which do).
17975         * lib/xmemcoll.c (xmemcoll0): Likewise.
17976         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
17977         returned when s1size == 0; this is easier to compile and saves
17978         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
17979
17980 2010-07-12  Bruno Haible  <bruno@clisp.org>
17981
17982         Tests for module '_Exit'.
17983         * modules/_Exit-tests: New file.
17984         * tests/test-_Exit.sh: New file.
17985         * tests/test-_Exit.c: New file.
17986
17987         New module '_Exit'.
17988         * lib/stdlib.in.h (__attribute__): New macro.
17989         (_Exit): New declaration.
17990         * lib/_Exit.c: New file.
17991         * m4/_Exit.m4: New file.
17992         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
17993         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
17994         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
17995         * modules/_Exit: New file.
17996         * tests/test-stdlib-c++.cc (_Exit): Check signature.
17997         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
17998
17999 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
18000
18001         strtod: make it more-accurate typically, and don't require libm
18002         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
18003         Include limits.h.  Don't include string.h.
18004         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
18005         (locale_isspace): New function, so that no casts are needed to
18006         check whether *s is a space.
18007         (ldexp): Provide an unused dummy if not available.
18008         (scale_radix_exp, parse_number, underlying_strtod): New functions.
18009         (strtod): Use them.  This implementation prefers to use the
18010         underlying strtod if available, falling back on our own code
18011         only to fix known bugs.  This is more likely to produce an
18012         accurate result.  Also, it avoids the use of libm functions.
18013         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
18014         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
18015         was absent, but it caused a test failure with coreutils.
18016         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
18017         with libm.
18018         * modules/strtod (Makefile.am, Link): libm is no longer needed.
18019         * modules/strtod-tests (Makefile.am): Likewise.
18020
18021 2010-07-11  Pádraig Brady  <P@draigBrady.com>
18022             Bruno Haible  <bruno@clisp.org>
18023
18024         unistr/u8-strchr: Optimize ASCII argument case.
18025         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
18026
18027 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
18028
18029         (x)memcoll: minor tweaks
18030         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
18031         is after the type that it qualifies.
18032         (memcoll0): Likewise.
18033         * lib/memcoll.h (memcoll0): Likewise.
18034         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
18035         * lib/xmemcoll.h (xmemcoll0): Likewise.
18036         * lib/memcoll.c (memcoll0): Correct the comment.  This function
18037         differs from memcoll in that the NUL byte is part of the argument.
18038         Omit the abort-checks, as performance is a real issue here.  Plus,
18039         the checks were wrong anyway (an off-by-one error).  Omit local
18040         variable 'diff', as it's a bit clearer that way.
18041         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
18042         no longer needed.
18043
18044 2010-07-08  Chen Guo <chenguo4@yahoo.com>
18045
18046         (x)memcoll: speedup when input is known to be NUL delimited
18047         * lib/memcoll.c: Include stdlib.
18048         (memcoll0): New function.
18049         (strcoll_loop): New function, refactored for use in both memcoll
18050         and memcoll0.
18051         * lib/memcoll.h (memcoll0): Add prototype.
18052         * lib/xmemcoll.c (xmemcoll0): New function.
18053         (collate_error): New function, refactored for use in both xmemcoll
18054         and xmemcoll0.
18055         * lib/xmemcoll.h (xmemcoll0): Add prototype.
18056         * m4/memcoll.m4: add inline invocation.
18057
18058 2010-07-06  Pádraig Brady  <P@draigBrady.com>
18059
18060         * build-aux/bootstrap: Remove any local translations
18061         from the translation project synchronization directory,
18062         so that local only translations are not distributed.
18063
18064 2010-07-04  Bruno Haible  <bruno@clisp.org>
18065
18066         fsusage: Clarify which code applies to which platforms.
18067         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
18068         platform.
18069         * lib/fsusage.c (get_fs_usage): Likewise.
18070
18071 2010-07-04  Bruno Haible  <bruno@clisp.org>
18072
18073         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
18074         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
18075         Reported by Martin Lambers <marlam@marlam.de>.
18076
18077 2010-07-04  Jim Meyering  <meyering@redhat.com>
18078
18079         hash: once again explicitly disallow insertion of NULL
18080         * lib/hash.c (hash_insert0): Reinstate just-removed test:
18081         inserting a NULL pointer cannot work with these functions.
18082         Add a comment with details.
18083         This reverts part of the 2010-07-01 commit, 5bef1a35
18084         "hash: extend module to deal with non-pointer keys".
18085
18086 2010-07-01  Bruno Haible  <bruno@clisp.org>
18087
18088         stdbool: Update doc.
18089         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
18090         Info from Christian Weisgerber <naddy@mips.inka.de>.
18091
18092 2010-07-01  Jim Meyering  <meyering@redhat.com>
18093
18094         hash: extend module to deal with non-pointer keys
18095         * lib/hash.c (hash_insert0): New interface, much like hash_insert
18096         but that allows insertion of non-pointer entries.
18097         Do not disallow an ENTRY value of NULL.
18098         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
18099         * lib/hash.h (hash_insert0): Declare.
18100
18101 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18102
18103         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
18104         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
18105         not present (i.e. with autoconf 2.59 and when using gettextize, not
18106         gnulib), require AC_GNU_SOURCE instead.
18107
18108 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
18109
18110         idpriv-drop: Fix tests.
18111         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
18112         not to the test-idpriv-droptemp program.
18113
18114 2010-06-29  Bruno Haible  <bruno@clisp.org>
18115
18116         string: Fix syntax error with g++ 2.96.
18117         * lib/string.in.h (__pure__): Remove definition.
18118         (_GL_ATTRIBUTE_PURE): New macro.
18119         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
18120         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
18121         Reported by Christian Weisgerber <naddy@mips.inka.de>.
18122
18123 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
18124
18125         unitypes: Fix bug introduced on 2010-05-18.
18126         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
18127
18128 2010-06-22  Eric Blake  <eblake@redhat.com>
18129
18130         memmem: slight optimization
18131         * lib/str-two-way.h (critical_factorization): Update comments.
18132         Reduce work during factorization phase.
18133         Reported by Carlos Bueno <carlos@bueno.org>.
18134
18135 2010-06-21  Bruno Haible  <bruno@clisp.org>
18136
18137         Fix HAVE_CALLOC_POSIX misnomer.
18138         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
18139         !HAVE_CALLOC_POSIX.
18140         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
18141         HAVE_CALLOC_POSIX.
18142         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
18143         instead of HAVE_CALLOC_POSIX.
18144         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
18145         HAVE_CALLOC_POSIX.
18146
18147         Use modern idiom for calloc() replacement.
18148         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
18149         AC_FUNC_CALLOC.
18150         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
18151         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
18152         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18153         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
18154         (gl_REPLACE_CALLOC): New macro.
18155
18156 2010-06-21  Bruno Haible  <bruno@clisp.org>
18157
18158         Fix HAVE_REALLOC_POSIX misnomer.
18159         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
18160         !HAVE_REALLOC_POSIX.
18161         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
18162         HAVE_REALLOC_POSIX.
18163         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
18164         instead of HAVE_REALLOC_POSIX.
18165         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
18166         HAVE_REALLOC_POSIX.
18167
18168         Use modern idiom for realloc() replacement.
18169         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
18170         AC_FUNC_REALLOC.
18171         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
18172         Autoconf's AC_FUNC_REALLOC.
18173         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18174         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
18175         (gl_REPLACE_REALLOC): New macro.
18176         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
18177
18178 2010-06-21  Bruno Haible  <bruno@clisp.org>
18179
18180         Fix HAVE_MALLOC_POSIX misnomer.
18181         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
18182         !HAVE_MALLOC_POSIX.
18183         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
18184         HAVE_MALLOC_POSIX.
18185         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
18186         instead of HAVE_MALLOC_POSIX.
18187         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
18188         HAVE_MALLOC_POSIX.
18189
18190         Use modern idiom for malloc() replacement.
18191         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
18192         AC_FUNC_MALLOC.
18193         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
18194         Autoconf's AC_FUNC_MALLOC.
18195         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18196         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
18197         (gl_REPLACE_MALLOC): New macro.
18198         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
18199
18200 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
18201
18202         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
18203         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
18204         This macro takes 3 arguments, not 4.
18205
18206 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
18207
18208         ipv6: fix detection under mingw
18209         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
18210         in6_addr.
18211
18212 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
18213
18214         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
18215         that strtod() works when cross-compiling to a glibc version known
18216         to work.
18217
18218 2010-06-15  Bruno Haible  <bruno@clisp.org>
18219
18220         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
18221
18222 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
18223
18224         select: Correct timeout.
18225         * lib/select.c (rpl_select): Compute wait_timeout correctly.
18226
18227 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18228
18229         git-version-gen: init shell var to avoid env var influence
18230         * build-aux/git-version-gen (v): Init shell var to empty.
18231
18232 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
18233
18234         priv-set: Don't assume that priv.h exists merely because getppriv does.
18235         See Jan Andersen's bug report about AIX 5L in
18236         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
18237         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
18238         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
18239         * lib/priv-set.h: Likewise.
18240         * tests/test-priv-set.c: Likewise.
18241
18242 2010-06-13  Bruno Haible  <bruno@clisp.org>
18243
18244         relocatable: Make it easier to test whether to install wrappers.
18245         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
18246         RELOCATABLE_VIA_WRAPPER.
18247
18248 2010-06-13  Bruno Haible  <bruno@clisp.org>
18249
18250         gnulib-tool: Display specified modules and dependencies differently.
18251         * gnulib-tool (func_show_module_list): New function.
18252         (func_import, func_create_testdir): Invoke it.
18253         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
18254
18255 2010-06-13  Bruno Haible  <bruno@clisp.org>
18256
18257         gnulib-tool: Align code of func_import and func_create_testdir.
18258         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
18259         specified_modules.
18260
18261 2010-06-12  Jim Meyering  <meyering@redhat.com>
18262
18263         test-inttostr: avoid spurious failure on Solaris 9
18264         * tests/test-inttostr.c (main): Skip the test when snprintf fails
18265         to accept "%ju".  Reported by Bruno Haible.
18266
18267 2010-06-11  Jim Meyering  <meyering@redhat.com>
18268
18269         test-sys_socket: mark variables as used more readably
18270         * tests/test-sys_socket.c (main): Mark otherwise unused variables
18271         as "used" explicitly via (void) statement casts.  This is more
18272         readable than using them in an artificial return expression.
18273         Suggestion from Bruno Haible.
18274
18275 2010-06-11  Bruno Haible  <bruno@clisp.org>
18276
18277         Avoid some more warnings from "gcc -Wwrite-strings".
18278         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
18279         to 'const char *'.
18280         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
18281         * tests/test-c-strcasestr.c (main): Likewise.
18282         * tests/test-mbscasestr1.c (main): Likewise.
18283         * tests/test-mbscasestr2.c (main): Likewise.
18284         * tests/test-memmem.c (main): Likewise.
18285         * tests/test-strstr.c (main): Likewise.
18286         * tests/test-strcasestr.c (main): Likewise.
18287
18288 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18289
18290         init.sh: change framework_failure_ to fail with status 99, not 1
18291         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
18292         automake's parallel-tests rule that this is an unexpected failure,
18293         even if the test is listed in XFAIL_TESTS.
18294
18295 2010-06-11  Jim Meyering  <meyering@redhat.com>
18296
18297         test-inttostr: avoid warnings about 4-6KB literal strings
18298         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
18299         Include "macros.h", for its definition of ASSERT.
18300         (CK): s/assert/ASSERT/
18301         * modules/inttostr-tests (Files): Add macros.h.
18302
18303         init.sh: don't use $ME_ or skip_ before they are defined
18304         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
18305         their first uses.  Also hoist their companions: warn_, fail_,
18306         framework_failure_, $stderr_fileno.  Prompted by a patch from
18307         Stefano Lattarini.
18308
18309         test-sys_socket: avoid set-but-not-used warnings from gcc
18310         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
18311         avoid warning about set-but-not-used variables.
18312
18313         test-xvasprintf: avoid 'const' discard warnings
18314         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
18315         "const" when assigning from literal strings.
18316         (test_xasprintf): Add "void" in function argument list to placate
18317         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
18318
18319         tests: avoid compilation warnings in argmatch and exclude tests...
18320         in packages that define ARGMATCH_DIE_DECL, like coreutils.
18321         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
18322         Since it always exits, declare with the "noreturn" attribute.
18323         * tests/test-argmatch.c: Likewise.
18324
18325         tests: avoid 'const' discard warnings in mbsstr tests
18326         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
18327         * tests/test-mbsstr2.c (main): Likewise.
18328
18329         test-verify: avoid warning from gcc's -Wmissing-declarations
18330         * tests/test-verify.c (function): Declare to be static.
18331
18332         test-inttostr.c: include <string.h> for use of strcmp
18333         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
18334
18335         test-linkat: avoid failed assertion on "other" architectures
18336         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
18337         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
18338         sparc: https://bugs.launchpad.net/bugs/591968
18339
18340 2010-06-11  Jim Meyering  <meyering@redhat.com>
18341
18342         printf.m4: avoid autoconf's "Expanded Before Required" warning
18343         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
18344         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
18345         autoconf warning.
18346
18347 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
18348
18349         Replacement header templates are now named with ".in", not "_".
18350         * doc/gnulib-intro.texi: Correct.
18351
18352 2010-06-10  Jim Meyering  <meyering@redhat.com>
18353
18354         inttostr-tests: depend on snprintf, not snprintf-posix
18355         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
18356         snprintf-posix, to avoid this aclocal failure:
18357           missing file gnulib-tests/vasnprintf.c
18358           configure.ac:45: error: expected source file, required through \
18359           AC_LIBSOURCES, not found
18360
18361 2010-06-10  Jim Meyering  <meyering@redhat.com>
18362
18363         inttostr: add a new function, inttostr, and tests
18364         The namesake function was not available.  The existence of the
18365         template file, inttostr.c makes its addition nontrivial.
18366         * lib/anytostr.c: Rename from inttostr.c.
18367         (anytostr): Rename from inttostr.
18368         * lib/inttostr.c: New file.
18369         * modules/inttostr (Files): Add anytostr.c.
18370         (Makefile.am): Set lib_SOURCES instead of ...
18371         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
18372         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
18373         * lib/offtostr.c: Likewise.
18374         * lib/uinttostr.c: Likewise.
18375         * lib/umaxtostr.c: Likewise.
18376         * modules/inttostr-tests: New file.
18377         * tests/test-inttostr.c: New file.  Test these functions.
18378
18379 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
18380             Bruno Haible  <bruno@clisp.org>
18381
18382         Add "Extending Gnulib" chapter to manual.
18383         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
18384         chapter.
18385         (Extending Gnulib): New chapter.
18386         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
18387         chapter.
18388
18389 2010-06-09  Bruno Haible  <bruno@clisp.org>
18390
18391         Avoid relocwrapper link errors due to gnulib replacement functions.
18392         * lib/areadlink.c: Use the system's malloc, realloc functions.
18393         (areadlink): Set errno to ENOMEM explicitly.
18394         * modules/areadlink (Depends-on): Remove malloc-posix.
18395         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18396
18397 2010-06-09  Bruno Haible  <bruno@clisp.org>
18398
18399         Avoid relocwrapper link errors due to gnulib replacement functions.
18400         * lib/canonicalize-lgpl.c: Use the system's malloc function.
18401         * lib/malloca.c: Likewise.
18402         * lib/relocatable.c: Likewise.
18403         * lib/progreloc.c: Use the system's malloc, sprintf functions.
18404         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
18405         * lib/setenv.c: Use the system's malloc, realloc functions.
18406         * lib/strerror.c: Use the system's sprintf function.
18407         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18408
18409 2010-06-04  Bruno Haible  <bruno@clisp.org>
18410
18411         Prefer documented low-level autoconf macro names.
18412         * m4/lib-link.m4: Use m4_translit instead of translit.
18413         * m4/environ.m4: Likewise.
18414         * m4/mathfunc.m4: Likewise.
18415         * m4/onceonly.m4: Likewise.
18416         * m4/stdint.m4: Likewise.
18417         Suggested by Eric Blake.
18418
18419 2010-06-04  Martin Lambers  <marlam@marlam.de>
18420             Bruno Haible  <bruno@clisp.org>
18421
18422         havelib: Allow library names with '+' characters.
18423         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
18424         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
18425
18426 2010-06-09  Bruno Haible  <bruno@clisp.org>
18427
18428         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
18429         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
18430         realloc failed.
18431
18432 2010-06-08  Peter Simons  <simons@cryp.to>
18433
18434         maint.mk: make the news-check rule more configurable
18435         * top/maint.mk (news-check-lines-spec): New variable.
18436         (news-check): Use "sed -n 1,10p" in place of "head".
18437
18438 2010-06-07  Jim Meyering  <meyering@redhat.com>
18439
18440         do-release-commit-and-tag: fix typo in --help
18441         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
18442
18443         regex: avoid new dead-code warning with gcc-4.6.0
18444         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
18445         if-block containing a while-loop.  It's been unused for at least
18446         5 years.
18447
18448 2010-06-05  Bruno Haible  <bruno@clisp.org>
18449
18450         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
18451         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
18452
18453 2010-06-04  Bruno Haible  <bruno@clisp.org>
18454
18455         Update to GNU gettext 0.18.1.
18456         * modules/gettext (configure.ac): Require gettext infrastructure from
18457         version 0.18.1.
18458
18459 2010-06-03  Bruno Haible  <bruno@clisp.org>
18460
18461         Don't use AC_LIBOBJ with file names in subdirectories.
18462         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
18463         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
18464         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
18465         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
18466         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
18467         gl_LIBUNISTRING_LIBSOURCE.
18468         (Makefile.am): Augment lib_SOURCES here, conditionally.
18469         * NEWS: Drop requirement for Automake option 'subdir-objects'.
18470
18471 2010-06-03  Bruno Haible  <bruno@clisp.org>
18472
18473         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
18474         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
18475         expansion does not end with a newline.
18476         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
18477         unnecessary newline.
18478
18479 2010-06-03  Bruno Haible  <bruno@clisp.org>
18480
18481         Reduce dependencies.
18482         * tests/test-quotearg.h: New file, extracted from
18483         tests/test-quotearg.c.
18484         * tests/test-quotearg-simple.c: New file, extracted from
18485         tests/test-quotearg.c.
18486         * tests/test-quotearg.c: Don't include <ctype.h>.
18487         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
18488         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
18489         use_quote_double_quotes, use_quotearg_colon): Moved to
18490         tests/test-quotearg.h.
18491         (results_g, flag_results, custom_quotes, custom_results): Moved
18492         to tests/test-quotearg-simple.c.
18493         (main): Moved the part that does not depend on gettext to
18494         tests/test-quotearg-simple.c. Return 77 if the test cannot be
18495         performed.
18496         * modules/quotearg-simple: New file.
18497         * modules/quotearg-simple-tests: New file.
18498         * modules/quotearg (Depends-on): Add quotearg-simple.
18499         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
18500         (Files): Add tests/test-quotearg.h.
18501         Reported by Paolo Bonzini.
18502
18503 2010-06-03  Bruno Haible  <bruno@clisp.org>
18504
18505         Reduce dependencies.
18506         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
18507
18508 2010-06-03  Bruno Haible  <bruno@clisp.org>
18509
18510         time: Undefine more broken macros.
18511         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
18512         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
18513         Reported by Eric Blake.
18514
18515 2010-06-03  Bruno Haible  <bruno@clisp.org>
18516
18517         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
18518         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
18519         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
18520         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
18521         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
18522         Reported by Ludovic Courtès <ludo@gnu.org>.
18523
18524 2010-06-02  Eric Blake  <eblake@redhat.com>
18525
18526         time: work with mingw + pthreads-win32 library
18527         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
18528         if timespec is defined only in pthread.h.
18529         * modules/time (Makefile.am): Substitute it.
18530         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
18531         <pthread.h>, when needed.
18532         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
18533         from the library.
18534
18535 2010-05-31  Bruno Haible  <bruno@clisp.org>
18536
18537         Avoid expanding two macros in the wrong order.
18538         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
18539         gl_LIBUNISTRING if it is defined.
18540         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
18541         autoconf >= 2.64.
18542         Reported by Ludovic Courtès <ludo@gnu.org>.
18543
18544 2010-05-27  Jim Meyering  <meyering@redhat.com>
18545
18546         maint.mk: also prohibit "#undef" of always-defined symbols
18547         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
18548         Allow more than one space before the symbol name.
18549         (sc_prohibit_always-defined_macros): Use grep's -E, now that
18550         the regexp uses alternation.
18551
18552 2010-05-26  Eric Blake  <eblake@redhat.com>
18553
18554         maint.mk: avoid echo -e
18555         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
18556         Convert all uses of echo -* to printf.
18557         Reported by Matthias Bolte.
18558
18559 2010-05-25  Bruno Haible  <bruno@clisp.org>
18560
18561         Update to GNU gettext 0.18, part 2.
18562         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
18563         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
18564
18565 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18566
18567         Add missing include in test-pwrite.c.
18568         * tests/test-pwrite.c: Include string.h, for strcmp.
18569
18570 2010-05-24  Bruno Haible  <bruno@clisp.org>
18571
18572         * NEWS: Mention requirement for Automake option 'subdir-objects'.
18573
18574 2010-05-24  Bruno Haible  <bruno@clisp.org>
18575
18576         Don't use conversion with transliteration in u{8,16,32}_strcoll.
18577         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
18578         iconveh_error argument.
18579         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
18580         U_STRCONV_TO_LOCALE.
18581         * lib/unistr/u16-strcoll.c: Likewise.
18582         * lib/unistr/u32-strcoll.c: Likewise.
18583         * modules/unistr/u8-strcoll (Depends-on): Add
18584         uniconv/u8-strconv-to-enc, localcharset. Remove
18585         uniconv/u8-strconv-to-locale.
18586         (configure.ac): Bump version number.
18587         * modules/unistr/u16-strcoll (Depends-on): Add
18588         uniconv/u16-strconv-to-enc, localcharset. Remove
18589         uniconv/u16-strconv-to-locale.
18590         (configure.ac): Bump version number.
18591         * modules/unistr/u32-strcoll (Depends-on): Add
18592         uniconv/u32-strconv-to-enc, localcharset. Remove
18593         uniconv/u32-strconv-to-locale.
18594         (configure.ac): Bump version number.
18595
18596 2010-05-24  Bruno Haible  <bruno@clisp.org>
18597
18598         Avoid a test failure on NetBSD 5.0.
18599         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
18600         an iconv() bug.
18601
18602 2010-05-24  Bruno Haible  <bruno@clisp.org>
18603
18604         Adjust #include directive style.
18605         * modules/regex (Includes): Recommend to write <regex.h>.
18606
18607 2010-05-24  Bruno Haible  <bruno@clisp.org>
18608
18609         regex: Don't require alloca.
18610         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
18611         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
18612         only inside if (0).
18613
18614 2010-05-23  Jim Meyering  <meyering@redhat.com>
18615
18616         test-renameat.c: include <sys/stat.h>
18617         * tests/test-renameat.c: Include <sys/stat.h>; required for
18618         definition of S_IS* macros.
18619
18620 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
18621
18622         Update maintainer documentation for 'relocatable-prog' module.
18623         * doc/relocatable-maint.texi: Update.
18624         Comments by Bruno Haible.
18625
18626 2010-05-23  Bruno Haible  <bruno@clisp.org>
18627
18628         git-merge-changelog: Enable --split-merged-entry by default.
18629         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
18630         (usage): Don't mention this option any more.
18631         Reported by Ralf Wildenhues.
18632
18633 2010-05-23  Jim Meyering  <meyering@redhat.com>
18634
18635         test-pwrite: do not leave behind a test file named "out"
18636         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
18637         The trivial-looking use of init.sh is really necessary.
18638         It ensures that the temporary file, "out", is created in
18639         a temporary directory, and removed upon termination.
18640         * tests/test-pwrite.sh: Re-add file.
18641         * modules/pwrite-tests: Reference it.
18642
18643 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18644
18645         Fix output redirection buglet in init.sh.
18646         * tests/init.sh: Fix redirection of stderr.
18647
18648 2010-05-20  Simon Josefsson  <simon@josefsson.org>
18649
18650         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
18651
18652 2010-05-17  Simon Josefsson  <simon@josefsson.org>
18653
18654         * modules/valgrind-tests: New file.
18655         * m4/valgrind-tests.m4: New file.
18656         * doc/valgrind-tests.texi: New file.
18657         * doc/gnulib.texi (Running self-tests under valgrind): New
18658         section.
18659
18660 2010-05-19  Bruno Haible  <bruno@clisp.org>
18661
18662         Clean up dead code in recent commit.
18663         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
18664         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
18665         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
18666         Suggested by Paolo Bonzini.
18667
18668 2010-05-19  Bruno Haible  <bruno@clisp.org>
18669
18670         Avoid valgrind error reports from libunistring.
18671         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
18672         * modules/libunistring (Files): Add it.
18673         * modules/libunistring-optional (Files): Likewise.
18674
18675 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
18676             Bruno Haible  <bruno@clisp.org>
18677
18678         New module 'libunistring-optional'.
18679         * modules/libunistring-optional: New file.
18680         * m4/libunistring-base.m4: New file.
18681         * m4/libunistring-optional.m4: New file.
18682         * lib/unicase.in.h: Renamed from lib/unicase.h.
18683         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
18684         * lib/unictype.in.h: Renamed from lib/unictype.h.
18685         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
18686         * lib/uniname.in.h: Renamed from lib/uniname.h.
18687         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
18688         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
18689         * lib/unistr.in.h: Renamed from lib/unistr.h.
18690         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
18691         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
18692         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
18693         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
18694         gl_LIBUNISTRING. If the library was found, determine the installed
18695         version and set LIBUNISTRING_VERSION.
18696         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
18697         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
18698         handle a configuration option --with-included-libunistring.
18699         * modules/libunistring (Files): Add m4/absolute-header.m4.
18700         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
18701         Add m4/libunistring-base.m4.
18702         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18703         (Makefile.am): Build unicase.h from unicase.in.h.
18704         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
18705         Add m4/libunistring-base.m4.
18706         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18707         (Makefile.am): Build uniconv.h from uniconv.in.h.
18708         * modules/unictype/base (Files): Use unictype.in.h instead of
18709         unictype.h. Add m4/libunistring-base.m4.
18710         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18711         (Makefile.am): Build unictype.h from unictype.in.h.
18712         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
18713         Add m4/libunistring-base.m4.
18714         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18715         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
18716         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
18717         Add m4/libunistring-base.m4.
18718         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18719         (Makefile.am): Build uniname.h from uniname.in.h.
18720         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
18721         Add m4/libunistring-base.m4.
18722         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18723         (Makefile.am): Build uninorm.h from uninorm.in.h.
18724         * modules/unistdio/base (Files): Use unistdio.in.h instead of
18725         unistdio.h. Add m4/libunistring-base.m4.
18726         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18727         (Makefile.am): Build unistdio.h from unistdio.in.h.
18728         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
18729         Add m4/libunistring-base.m4.
18730         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18731         (Makefile.am): Build unistr.h from unistr.in.h.
18732         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
18733         Add m4/libunistring-base.m4.
18734         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18735         (Makefile.am): Build unitypes.h from unitypes.in.h.
18736         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
18737         Add m4/libunistring-base.m4.
18738         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18739         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
18740         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
18741         uniwidth.h. Add m4/libunistring-base.m4.
18742         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18743         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
18744         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
18745         instead of augmenting lib_SOURCES.
18746         * modules/unicase/empty-suffix-context: Likewise.
18747         * modules/unicase/locale-language: Likewise.
18748         * modules/unicase/tolower: Likewise.
18749         * modules/unicase/totitle: Likewise.
18750         * modules/unicase/toupper: Likewise.
18751         * modules/unicase/u8-casecmp: Likewise.
18752         * modules/unicase/u8-casecoll: Likewise.
18753         * modules/unicase/u8-casefold: Likewise.
18754         * modules/unicase/u8-casexfrm: Likewise.
18755         * modules/unicase/u8-ct-casefold: Likewise.
18756         * modules/unicase/u8-ct-tolower: Likewise.
18757         * modules/unicase/u8-ct-totitle: Likewise.
18758         * modules/unicase/u8-ct-toupper: Likewise.
18759         * modules/unicase/u8-is-cased: Likewise.
18760         * modules/unicase/u8-is-casefolded: Likewise.
18761         * modules/unicase/u8-is-lowercase: Likewise.
18762         * modules/unicase/u8-is-titlecase: Likewise.
18763         * modules/unicase/u8-is-uppercase: Likewise.
18764         * modules/unicase/u8-prefix-context: Likewise.
18765         * modules/unicase/u8-suffix-context: Likewise.
18766         * modules/unicase/u8-tolower: Likewise.
18767         * modules/unicase/u8-totitle: Likewise.
18768         * modules/unicase/u8-toupper: Likewise.
18769         * modules/unicase/u16-casecmp: Likewise.
18770         * modules/unicase/u16-casecoll: Likewise.
18771         * modules/unicase/u16-casefold: Likewise.
18772         * modules/unicase/u16-casexfrm: Likewise.
18773         * modules/unicase/u16-ct-casefold: Likewise.
18774         * modules/unicase/u16-ct-tolower: Likewise.
18775         * modules/unicase/u16-ct-totitle: Likewise.
18776         * modules/unicase/u16-ct-toupper: Likewise.
18777         * modules/unicase/u16-is-cased: Likewise.
18778         * modules/unicase/u16-is-casefolded: Likewise.
18779         * modules/unicase/u16-is-lowercase: Likewise.
18780         * modules/unicase/u16-is-titlecase: Likewise.
18781         * modules/unicase/u16-is-uppercase: Likewise.
18782         * modules/unicase/u16-prefix-context: Likewise.
18783         * modules/unicase/u16-suffix-context: Likewise.
18784         * modules/unicase/u16-tolower: Likewise.
18785         * modules/unicase/u16-totitle: Likewise.
18786         * modules/unicase/u16-toupper: Likewise.
18787         * modules/unicase/u32-casecmp: Likewise.
18788         * modules/unicase/u32-casecoll: Likewise.
18789         * modules/unicase/u32-casefold: Likewise.
18790         * modules/unicase/u32-casexfrm: Likewise.
18791         * modules/unicase/u32-ct-casefold: Likewise.
18792         * modules/unicase/u32-ct-tolower: Likewise.
18793         * modules/unicase/u32-ct-totitle: Likewise.
18794         * modules/unicase/u32-ct-toupper: Likewise.
18795         * modules/unicase/u32-is-cased: Likewise.
18796         * modules/unicase/u32-is-casefolded: Likewise.
18797         * modules/unicase/u32-is-lowercase: Likewise.
18798         * modules/unicase/u32-is-titlecase: Likewise.
18799         * modules/unicase/u32-is-uppercase: Likewise.
18800         * modules/unicase/u32-prefix-context: Likewise.
18801         * modules/unicase/u32-suffix-context: Likewise.
18802         * modules/unicase/u32-tolower: Likewise.
18803         * modules/unicase/u32-totitle: Likewise.
18804         * modules/unicase/u32-toupper: Likewise.
18805         * modules/unicase/ulc-casecmp: Likewise.
18806         * modules/unicase/ulc-casecoll: Likewise.
18807         * modules/unicase/ulc-casexfrm: Likewise.
18808         * modules/uniconv/u8-conv-from-enc: Likewise.
18809         * modules/uniconv/u8-conv-to-enc: Likewise.
18810         * modules/uniconv/u8-strconv-from-enc: Likewise.
18811         * modules/uniconv/u8-strconv-from-locale: Likewise.
18812         * modules/uniconv/u8-strconv-to-enc: Likewise.
18813         * modules/uniconv/u8-strconv-to-locale: Likewise.
18814         * modules/uniconv/u16-conv-from-enc: Likewise.
18815         * modules/uniconv/u16-conv-to-enc: Likewise.
18816         * modules/uniconv/u16-strconv-from-enc: Likewise.
18817         * modules/uniconv/u16-strconv-from-locale: Likewise.
18818         * modules/uniconv/u16-strconv-to-enc: Likewise.
18819         * modules/uniconv/u16-strconv-to-locale: Likewise.
18820         * modules/uniconv/u32-conv-from-enc: Likewise.
18821         * modules/uniconv/u32-conv-to-enc: Likewise.
18822         * modules/uniconv/u32-strconv-from-enc: Likewise.
18823         * modules/uniconv/u32-strconv-from-locale: Likewise.
18824         * modules/uniconv/u32-strconv-to-enc: Likewise.
18825         * modules/uniconv/u32-strconv-to-locale: Likewise.
18826         * modules/unictype/bidicategory-byname: Likewise.
18827         * modules/unictype/bidicategory-name: Likewise.
18828         * modules/unictype/bidicategory-of: Likewise.
18829         * modules/unictype/bidicategory-test: Likewise.
18830         * modules/unictype/block-list: Likewise.
18831         * modules/unictype/block-test: Likewise.
18832         * modules/unictype/category-C: Likewise.
18833         * modules/unictype/category-Cc: Likewise.
18834         * modules/unictype/category-Cf: Likewise.
18835         * modules/unictype/category-Cn: Likewise.
18836         * modules/unictype/category-Co: Likewise.
18837         * modules/unictype/category-Cs: Likewise.
18838         * modules/unictype/category-L: Likewise.
18839         * modules/unictype/category-Ll: Likewise.
18840         * modules/unictype/category-Lm: Likewise.
18841         * modules/unictype/category-Lo: Likewise.
18842         * modules/unictype/category-Lt: Likewise.
18843         * modules/unictype/category-Lu: Likewise.
18844         * modules/unictype/category-M: Likewise.
18845         * modules/unictype/category-Mc: Likewise.
18846         * modules/unictype/category-Me: Likewise.
18847         * modules/unictype/category-Mn: Likewise.
18848         * modules/unictype/category-N: Likewise.
18849         * modules/unictype/category-Nd: Likewise.
18850         * modules/unictype/category-Nl: Likewise.
18851         * modules/unictype/category-No: Likewise.
18852         * modules/unictype/category-P: Likewise.
18853         * modules/unictype/category-Pc: Likewise.
18854         * modules/unictype/category-Pd: Likewise.
18855         * modules/unictype/category-Pe: Likewise.
18856         * modules/unictype/category-Pf: Likewise.
18857         * modules/unictype/category-Pi: Likewise.
18858         * modules/unictype/category-Po: Likewise.
18859         * modules/unictype/category-Ps: Likewise.
18860         * modules/unictype/category-S: Likewise.
18861         * modules/unictype/category-Sc: Likewise.
18862         * modules/unictype/category-Sk: Likewise.
18863         * modules/unictype/category-Sm: Likewise.
18864         * modules/unictype/category-So: Likewise.
18865         * modules/unictype/category-Z: Likewise.
18866         * modules/unictype/category-Zl: Likewise.
18867         * modules/unictype/category-Zp: Likewise.
18868         * modules/unictype/category-Zs: Likewise.
18869         * modules/unictype/category-and: Likewise.
18870         * modules/unictype/category-and-not: Likewise.
18871         * modules/unictype/category-byname: Likewise.
18872         * modules/unictype/category-name: Likewise.
18873         * modules/unictype/category-none: Likewise.
18874         * modules/unictype/category-of: Likewise.
18875         * modules/unictype/category-or: Likewise.
18876         * modules/unictype/category-test: Likewise.
18877         * modules/unictype/combining-class: Likewise.
18878         * modules/unictype/ctype-alnum: Likewise.
18879         * modules/unictype/ctype-alpha: Likewise.
18880         * modules/unictype/ctype-blank: Likewise.
18881         * modules/unictype/ctype-cntrl: Likewise.
18882         * modules/unictype/ctype-digit: Likewise.
18883         * modules/unictype/ctype-graph: Likewise.
18884         * modules/unictype/ctype-lower: Likewise.
18885         * modules/unictype/ctype-print: Likewise.
18886         * modules/unictype/ctype-punct: Likewise.
18887         * modules/unictype/ctype-space: Likewise.
18888         * modules/unictype/ctype-upper: Likewise.
18889         * modules/unictype/ctype-xdigit: Likewise.
18890         * modules/unictype/decimal-digit: Likewise.
18891         * modules/unictype/digit: Likewise.
18892         * modules/unictype/mirror: Likewise.
18893         * modules/unictype/numeric: Likewise.
18894         * modules/unictype/property-alphabetic: Likewise.
18895         * modules/unictype/property-ascii-hex-digit: Likewise.
18896         * modules/unictype/property-bidi-arabic-digit: Likewise.
18897         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
18898         * modules/unictype/property-bidi-block-separator: Likewise.
18899         * modules/unictype/property-bidi-boundary-neutral: Likewise.
18900         * modules/unictype/property-bidi-common-separator: Likewise.
18901         * modules/unictype/property-bidi-control: Likewise.
18902         * modules/unictype/property-bidi-embedding-or-override: Likewise.
18903         * modules/unictype/property-bidi-eur-num-separator: Likewise.
18904         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
18905         * modules/unictype/property-bidi-european-digit: Likewise.
18906         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
18907         * modules/unictype/property-bidi-left-to-right: Likewise.
18908         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
18909         * modules/unictype/property-bidi-other-neutral: Likewise.
18910         * modules/unictype/property-bidi-pdf: Likewise.
18911         * modules/unictype/property-bidi-segment-separator: Likewise.
18912         * modules/unictype/property-bidi-whitespace: Likewise.
18913         * modules/unictype/property-byname: Likewise.
18914         * modules/unictype/property-combining: Likewise.
18915         * modules/unictype/property-composite: Likewise.
18916         * modules/unictype/property-currency-symbol: Likewise.
18917         * modules/unictype/property-dash: Likewise.
18918         * modules/unictype/property-decimal-digit: Likewise.
18919         * modules/unictype/property-default-ignorable-code-point: Likewise.
18920         * modules/unictype/property-deprecated: Likewise.
18921         * modules/unictype/property-diacritic: Likewise.
18922         * modules/unictype/property-extender: Likewise.
18923         * modules/unictype/property-format-control: Likewise.
18924         * modules/unictype/property-grapheme-base: Likewise.
18925         * modules/unictype/property-grapheme-extend: Likewise.
18926         * modules/unictype/property-grapheme-link: Likewise.
18927         * modules/unictype/property-hex-digit: Likewise.
18928         * modules/unictype/property-hyphen: Likewise.
18929         * modules/unictype/property-id-continue: Likewise.
18930         * modules/unictype/property-id-start: Likewise.
18931         * modules/unictype/property-ideographic: Likewise.
18932         * modules/unictype/property-ids-binary-operator: Likewise.
18933         * modules/unictype/property-ids-trinary-operator: Likewise.
18934         * modules/unictype/property-ignorable-control: Likewise.
18935         * modules/unictype/property-iso-control: Likewise.
18936         * modules/unictype/property-join-control: Likewise.
18937         * modules/unictype/property-left-of-pair: Likewise.
18938         * modules/unictype/property-line-separator: Likewise.
18939         * modules/unictype/property-logical-order-exception: Likewise.
18940         * modules/unictype/property-lowercase: Likewise.
18941         * modules/unictype/property-math: Likewise.
18942         * modules/unictype/property-non-break: Likewise.
18943         * modules/unictype/property-not-a-character: Likewise.
18944         * modules/unictype/property-numeric: Likewise.
18945         * modules/unictype/property-other-alphabetic: Likewise.
18946         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
18947         * modules/unictype/property-other-grapheme-extend: Likewise.
18948         * modules/unictype/property-other-id-continue: Likewise.
18949         * modules/unictype/property-other-id-start: Likewise.
18950         * modules/unictype/property-other-lowercase: Likewise.
18951         * modules/unictype/property-other-math: Likewise.
18952         * modules/unictype/property-other-uppercase: Likewise.
18953         * modules/unictype/property-paired-punctuation: Likewise.
18954         * modules/unictype/property-paragraph-separator: Likewise.
18955         * modules/unictype/property-pattern-syntax: Likewise.
18956         * modules/unictype/property-pattern-white-space: Likewise.
18957         * modules/unictype/property-private-use: Likewise.
18958         * modules/unictype/property-punctuation: Likewise.
18959         * modules/unictype/property-quotation-mark: Likewise.
18960         * modules/unictype/property-radical: Likewise.
18961         * modules/unictype/property-sentence-terminal: Likewise.
18962         * modules/unictype/property-soft-dotted: Likewise.
18963         * modules/unictype/property-space: Likewise.
18964         * modules/unictype/property-terminal-punctuation: Likewise.
18965         * modules/unictype/property-test: Likewise.
18966         * modules/unictype/property-titlecase: Likewise.
18967         * modules/unictype/property-unassigned-code-value: Likewise.
18968         * modules/unictype/property-unified-ideograph: Likewise.
18969         * modules/unictype/property-uppercase: Likewise.
18970         * modules/unictype/property-variation-selector: Likewise.
18971         * modules/unictype/property-white-space: Likewise.
18972         * modules/unictype/property-xid-continue: Likewise.
18973         * modules/unictype/property-xid-start: Likewise.
18974         * modules/unictype/property-zero-width: Likewise.
18975         * modules/unictype/scripts: Likewise.
18976         * modules/unictype/syntax-c-ident: Likewise.
18977         * modules/unictype/syntax-c-whitespace: Likewise.
18978         * modules/unictype/syntax-java-ident: Likewise.
18979         * modules/unictype/syntax-java-whitespace: Likewise.
18980         * modules/unilbrk/u8-possible-linebreaks: Likewise.
18981         * modules/unilbrk/u8-width-linebreaks: Likewise.
18982         * modules/unilbrk/u16-possible-linebreaks: Likewise.
18983         * modules/unilbrk/u16-width-linebreaks: Likewise.
18984         * modules/unilbrk/u32-possible-linebreaks: Likewise.
18985         * modules/unilbrk/u32-width-linebreaks: Likewise.
18986         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
18987         * modules/unilbrk/ulc-width-linebreaks: Likewise.
18988         * modules/uniname/uniname: Likewise.
18989         * modules/uninorm/canonical-decomposition: Likewise.
18990         * modules/uninorm/composition: Likewise.
18991         * modules/uninorm/decomposing-form: Likewise.
18992         * modules/uninorm/decomposition: Likewise.
18993         * modules/uninorm/filter: Likewise.
18994         * modules/uninorm/nfc: Likewise.
18995         * modules/uninorm/nfd: Likewise.
18996         * modules/uninorm/nfkc: Likewise.
18997         * modules/uninorm/nfkd: Likewise.
18998         * modules/uninorm/u8-normalize: Likewise.
18999         * modules/uninorm/u8-normcmp: Likewise.
19000         * modules/uninorm/u8-normcoll: Likewise.
19001         * modules/uninorm/u8-normxfrm: Likewise.
19002         * modules/uninorm/u16-normalize: Likewise.
19003         * modules/uninorm/u16-normcmp: Likewise.
19004         * modules/uninorm/u16-normcoll: Likewise.
19005         * modules/uninorm/u16-normxfrm: Likewise.
19006         * modules/uninorm/u32-normalize: Likewise.
19007         * modules/uninorm/u32-normcmp: Likewise.
19008         * modules/uninorm/u32-normcoll: Likewise.
19009         * modules/uninorm/u32-normxfrm: Likewise.
19010         * modules/unistdio/u8-asnprintf: Likewise.
19011         * modules/unistdio/u8-asprintf: Likewise.
19012         * modules/unistdio/u8-snprintf: Likewise.
19013         * modules/unistdio/u8-sprintf: Likewise.
19014         * modules/unistdio/u8-u8-asnprintf: Likewise.
19015         * modules/unistdio/u8-u8-asprintf: Likewise.
19016         * modules/unistdio/u8-u8-snprintf: Likewise.
19017         * modules/unistdio/u8-u8-sprintf: Likewise.
19018         * modules/unistdio/u8-u8-vasnprintf: Likewise.
19019         * modules/unistdio/u8-u8-vasprintf: Likewise.
19020         * modules/unistdio/u8-u8-vsnprintf: Likewise.
19021         * modules/unistdio/u8-u8-vsprintf: Likewise.
19022         * modules/unistdio/u8-vasnprintf: Likewise.
19023         * modules/unistdio/u8-vasprintf: Likewise.
19024         * modules/unistdio/u8-vsnprintf: Likewise.
19025         * modules/unistdio/u8-vsprintf: Likewise.
19026         * modules/unistdio/u16-asnprintf: Likewise.
19027         * modules/unistdio/u16-asprintf: Likewise.
19028         * modules/unistdio/u16-snprintf: Likewise.
19029         * modules/unistdio/u16-sprintf: Likewise.
19030         * modules/unistdio/u16-u16-asnprintf: Likewise.
19031         * modules/unistdio/u16-u16-asprintf: Likewise.
19032         * modules/unistdio/u16-u16-snprintf: Likewise.
19033         * modules/unistdio/u16-u16-sprintf: Likewise.
19034         * modules/unistdio/u16-u16-vasnprintf: Likewise.
19035         * modules/unistdio/u16-u16-vasprintf: Likewise.
19036         * modules/unistdio/u16-u16-vsnprintf: Likewise.
19037         * modules/unistdio/u16-u16-vsprintf: Likewise.
19038         * modules/unistdio/u16-vasnprintf: Likewise.
19039         * modules/unistdio/u16-vasprintf: Likewise.
19040         * modules/unistdio/u16-vsnprintf: Likewise.
19041         * modules/unistdio/u16-vsprintf: Likewise.
19042         * modules/unistdio/u32-asnprintf: Likewise.
19043         * modules/unistdio/u32-asprintf: Likewise.
19044         * modules/unistdio/u32-snprintf: Likewise.
19045         * modules/unistdio/u32-sprintf: Likewise.
19046         * modules/unistdio/u32-u32-asnprintf: Likewise.
19047         * modules/unistdio/u32-u32-asprintf: Likewise.
19048         * modules/unistdio/u32-u32-snprintf: Likewise.
19049         * modules/unistdio/u32-u32-sprintf: Likewise.
19050         * modules/unistdio/u32-u32-vasnprintf: Likewise.
19051         * modules/unistdio/u32-u32-vasprintf: Likewise.
19052         * modules/unistdio/u32-u32-vsnprintf: Likewise.
19053         * modules/unistdio/u32-u32-vsprintf: Likewise.
19054         * modules/unistdio/u32-vasnprintf: Likewise.
19055         * modules/unistdio/u32-vasprintf: Likewise.
19056         * modules/unistdio/u32-vsnprintf: Likewise.
19057         * modules/unistdio/u32-vsprintf: Likewise.
19058         * modules/unistdio/ulc-asnprintf: Likewise.
19059         * modules/unistdio/ulc-asprintf: Likewise.
19060         * modules/unistdio/ulc-fprintf: Likewise.
19061         * modules/unistdio/ulc-snprintf: Likewise.
19062         * modules/unistdio/ulc-sprintf: Likewise.
19063         * modules/unistdio/ulc-vasnprintf: Likewise.
19064         * modules/unistdio/ulc-vasprintf: Likewise.
19065         * modules/unistdio/ulc-vfprintf: Likewise.
19066         * modules/unistdio/ulc-vsnprintf: Likewise.
19067         * modules/unistdio/ulc-vsprintf: Likewise.
19068         * modules/unistr/u8-check: Likewise.
19069         * modules/unistr/u8-chr: Likewise.
19070         * modules/unistr/u8-cmp: Likewise.
19071         * modules/unistr/u8-cmp2: Likewise.
19072         * modules/unistr/u8-cpy: Likewise.
19073         * modules/unistr/u8-cpy-alloc: Likewise.
19074         * modules/unistr/u8-endswith: Likewise.
19075         * modules/unistr/u8-mblen: Likewise.
19076         * modules/unistr/u8-mbsnlen: Likewise.
19077         * modules/unistr/u8-mbtouc: Likewise.
19078         * modules/unistr/u8-mbtouc-unsafe: Likewise.
19079         * modules/unistr/u8-mbtoucr: Likewise.
19080         * modules/unistr/u8-move: Likewise.
19081         * modules/unistr/u8-next: Likewise.
19082         * modules/unistr/u8-prev: Likewise.
19083         * modules/unistr/u8-set: Likewise.
19084         * modules/unistr/u8-startswith: Likewise.
19085         * modules/unistr/u8-stpcpy: Likewise.
19086         * modules/unistr/u8-stpncpy: Likewise.
19087         * modules/unistr/u8-strcat: Likewise.
19088         * modules/unistr/u8-strchr: Likewise.
19089         * modules/unistr/u8-strcmp: Likewise.
19090         * modules/unistr/u8-strcoll: Likewise.
19091         * modules/unistr/u8-strcpy: Likewise.
19092         * modules/unistr/u8-strcspn: Likewise.
19093         * modules/unistr/u8-strdup: Likewise.
19094         * modules/unistr/u8-strlen: Likewise.
19095         * modules/unistr/u8-strmblen: Likewise.
19096         * modules/unistr/u8-strmbtouc: Likewise.
19097         * modules/unistr/u8-strncat: Likewise.
19098         * modules/unistr/u8-strncmp: Likewise.
19099         * modules/unistr/u8-strncpy: Likewise.
19100         * modules/unistr/u8-strnlen: Likewise.
19101         * modules/unistr/u8-strpbrk: Likewise.
19102         * modules/unistr/u8-strrchr: Likewise.
19103         * modules/unistr/u8-strspn: Likewise.
19104         * modules/unistr/u8-strstr: Likewise.
19105         * modules/unistr/u8-strtok: Likewise.
19106         * modules/unistr/u8-to-u16: Likewise.
19107         * modules/unistr/u8-to-u32: Likewise.
19108         * modules/unistr/u8-uctomb: Likewise.
19109         * modules/unistr/u16-check: Likewise.
19110         * modules/unistr/u16-chr: Likewise.
19111         * modules/unistr/u16-cmp: Likewise.
19112         * modules/unistr/u16-cmp2: Likewise.
19113         * modules/unistr/u16-cpy: Likewise.
19114         * modules/unistr/u16-cpy-alloc: Likewise.
19115         * modules/unistr/u16-endswith: Likewise.
19116         * modules/unistr/u16-mblen: Likewise.
19117         * modules/unistr/u16-mbsnlen: Likewise.
19118         * modules/unistr/u16-mbtouc: Likewise.
19119         * modules/unistr/u16-mbtouc-unsafe: Likewise.
19120         * modules/unistr/u16-mbtoucr: Likewise.
19121         * modules/unistr/u16-move: Likewise.
19122         * modules/unistr/u16-next: Likewise.
19123         * modules/unistr/u16-prev: Likewise.
19124         * modules/unistr/u16-set: Likewise.
19125         * modules/unistr/u16-startswith: Likewise.
19126         * modules/unistr/u16-stpcpy: Likewise.
19127         * modules/unistr/u16-stpncpy: Likewise.
19128         * modules/unistr/u16-strcat: Likewise.
19129         * modules/unistr/u16-strchr: Likewise.
19130         * modules/unistr/u16-strcmp: Likewise.
19131         * modules/unistr/u16-strcoll: Likewise.
19132         * modules/unistr/u16-strcpy: Likewise.
19133         * modules/unistr/u16-strcspn: Likewise.
19134         * modules/unistr/u16-strdup: Likewise.
19135         * modules/unistr/u16-strlen: Likewise.
19136         * modules/unistr/u16-strmblen: Likewise.
19137         * modules/unistr/u16-strmbtouc: Likewise.
19138         * modules/unistr/u16-strncat: Likewise.
19139         * modules/unistr/u16-strncmp: Likewise.
19140         * modules/unistr/u16-strncpy: Likewise.
19141         * modules/unistr/u16-strnlen: Likewise.
19142         * modules/unistr/u16-strpbrk: Likewise.
19143         * modules/unistr/u16-strrchr: Likewise.
19144         * modules/unistr/u16-strspn: Likewise.
19145         * modules/unistr/u16-strstr: Likewise.
19146         * modules/unistr/u16-strtok: Likewise.
19147         * modules/unistr/u16-to-u32: Likewise.
19148         * modules/unistr/u16-to-u8: Likewise.
19149         * modules/unistr/u16-uctomb: Likewise.
19150         * modules/unistr/u32-check: Likewise.
19151         * modules/unistr/u32-chr: Likewise.
19152         * modules/unistr/u32-cmp: Likewise.
19153         * modules/unistr/u32-cmp2: Likewise.
19154         * modules/unistr/u32-cpy: Likewise.
19155         * modules/unistr/u32-cpy-alloc: Likewise.
19156         * modules/unistr/u32-endswith: Likewise.
19157         * modules/unistr/u32-mblen: Likewise.
19158         * modules/unistr/u32-mbsnlen: Likewise.
19159         * modules/unistr/u32-mbtouc: Likewise.
19160         * modules/unistr/u32-mbtouc-unsafe: Likewise.
19161         * modules/unistr/u32-mbtoucr: Likewise.
19162         * modules/unistr/u32-move: Likewise.
19163         * modules/unistr/u32-next: Likewise.
19164         * modules/unistr/u32-prev: Likewise.
19165         * modules/unistr/u32-set: Likewise.
19166         * modules/unistr/u32-startswith: Likewise.
19167         * modules/unistr/u32-stpcpy: Likewise.
19168         * modules/unistr/u32-stpncpy: Likewise.
19169         * modules/unistr/u32-strcat: Likewise.
19170         * modules/unistr/u32-strchr: Likewise.
19171         * modules/unistr/u32-strcmp: Likewise.
19172         * modules/unistr/u32-strcoll: Likewise.
19173         * modules/unistr/u32-strcpy: Likewise.
19174         * modules/unistr/u32-strcspn: Likewise.
19175         * modules/unistr/u32-strdup: Likewise.
19176         * modules/unistr/u32-strlen: Likewise.
19177         * modules/unistr/u32-strmblen: Likewise.
19178         * modules/unistr/u32-strmbtouc: Likewise.
19179         * modules/unistr/u32-strncat: Likewise.
19180         * modules/unistr/u32-strncmp: Likewise.
19181         * modules/unistr/u32-strncpy: Likewise.
19182         * modules/unistr/u32-strnlen: Likewise.
19183         * modules/unistr/u32-strpbrk: Likewise.
19184         * modules/unistr/u32-strrchr: Likewise.
19185         * modules/unistr/u32-strspn: Likewise.
19186         * modules/unistr/u32-strstr: Likewise.
19187         * modules/unistr/u32-strtok: Likewise.
19188         * modules/unistr/u32-to-u16: Likewise.
19189         * modules/unistr/u32-to-u8: Likewise.
19190         * modules/unistr/u32-uctomb: Likewise.
19191         * modules/uniwbrk/u8-wordbreaks: Likewise.
19192         * modules/uniwbrk/u16-wordbreaks: Likewise.
19193         * modules/uniwbrk/u32-wordbreaks: Likewise.
19194         * modules/uniwbrk/ulc-wordbreaks: Likewise.
19195         * modules/uniwbrk/wordbreak-property: Likewise.
19196         * modules/uniwidth/u8-strwidth: Likewise.
19197         * modules/uniwidth/u8-width: Likewise.
19198         * modules/uniwidth/u16-strwidth: Likewise.
19199         * modules/uniwidth/u16-width: Likewise.
19200         * modules/uniwidth/u32-strwidth: Likewise.
19201         * modules/uniwidth/u32-width: Likewise.
19202         * modules/uniwidth/width: Likewise.
19203         * modules/unicase/cased-tests (Makefile.am): Link all test programs
19204         with $(LIBUNISTRING).
19205         * modules/unicase/ignorable-tests: Likewise.
19206         * modules/unicase/locale-language-tests: Likewise.
19207         * modules/unicase/tolower-tests: Likewise.
19208         * modules/unicase/totitle-tests: Likewise.
19209         * modules/unicase/toupper-tests: Likewise.
19210         * modules/unicase/u8-casecmp-tests: Likewise.
19211         * modules/unicase/u8-casecoll-tests: Likewise.
19212         * modules/unicase/u8-casefold-tests: Likewise.
19213         * modules/unicase/u8-is-cased-tests: Likewise.
19214         * modules/unicase/u8-is-casefolded-tests: Likewise.
19215         * modules/unicase/u8-is-lowercase-tests: Likewise.
19216         * modules/unicase/u8-is-titlecase-tests: Likewise.
19217         * modules/unicase/u8-is-uppercase-tests: Likewise.
19218         * modules/unicase/u8-tolower-tests: Likewise.
19219         * modules/unicase/u8-totitle-tests: Likewise.
19220         * modules/unicase/u8-toupper-tests: Likewise.
19221         * modules/unicase/u16-casecmp-tests: Likewise.
19222         * modules/unicase/u16-casecoll-tests: Likewise.
19223         * modules/unicase/u16-casefold-tests: Likewise.
19224         * modules/unicase/u16-is-cased-tests: Likewise.
19225         * modules/unicase/u16-is-casefolded-tests: Likewise.
19226         * modules/unicase/u16-is-lowercase-tests: Likewise.
19227         * modules/unicase/u16-is-titlecase-tests: Likewise.
19228         * modules/unicase/u16-is-uppercase-tests: Likewise.
19229         * modules/unicase/u16-tolower-tests: Likewise.
19230         * modules/unicase/u16-totitle-tests: Likewise.
19231         * modules/unicase/u16-toupper-tests: Likewise.
19232         * modules/unicase/u32-casecmp-tests: Likewise.
19233         * modules/unicase/u32-casecoll-tests: Likewise.
19234         * modules/unicase/u32-casefold-tests: Likewise.
19235         * modules/unicase/u32-is-cased-tests: Likewise.
19236         * modules/unicase/u32-is-casefolded-tests: Likewise.
19237         * modules/unicase/u32-is-lowercase-tests: Likewise.
19238         * modules/unicase/u32-is-titlecase-tests: Likewise.
19239         * modules/unicase/u32-is-uppercase-tests: Likewise.
19240         * modules/unicase/u32-tolower-tests: Likewise.
19241         * modules/unicase/u32-totitle-tests: Likewise.
19242         * modules/unicase/u32-toupper-tests: Likewise.
19243         * modules/unicase/ulc-casecmp-tests: Likewise.
19244         * modules/unicase/ulc-casecoll-tests: Likewise.
19245         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
19246         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
19247         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
19248         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
19249         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
19250         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
19251         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
19252         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
19253         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
19254         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
19255         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
19256         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
19257         * modules/unictype/bidicategory-byname-tests: Likewise.
19258         * modules/unictype/bidicategory-name-tests: Likewise.
19259         * modules/unictype/bidicategory-of-tests: Likewise.
19260         * modules/unictype/bidicategory-test-tests: Likewise.
19261         * modules/unictype/block-list-tests: Likewise.
19262         * modules/unictype/block-of-tests: Likewise.
19263         * modules/unictype/block-test-tests: Likewise.
19264         * modules/unictype/category-C-tests: Likewise.
19265         * modules/unictype/category-Cc-tests: Likewise.
19266         * modules/unictype/category-Cf-tests: Likewise.
19267         * modules/unictype/category-Cn-tests: Likewise.
19268         * modules/unictype/category-Co-tests: Likewise.
19269         * modules/unictype/category-Cs-tests: Likewise.
19270         * modules/unictype/category-L-tests: Likewise.
19271         * modules/unictype/category-Ll-tests: Likewise.
19272         * modules/unictype/category-Lm-tests: Likewise.
19273         * modules/unictype/category-Lo-tests: Likewise.
19274         * modules/unictype/category-Lt-tests: Likewise.
19275         * modules/unictype/category-Lu-tests: Likewise.
19276         * modules/unictype/category-M-tests: Likewise.
19277         * modules/unictype/category-Mc-tests: Likewise.
19278         * modules/unictype/category-Me-tests: Likewise.
19279         * modules/unictype/category-Mn-tests: Likewise.
19280         * modules/unictype/category-N-tests: Likewise.
19281         * modules/unictype/category-Nd-tests: Likewise.
19282         * modules/unictype/category-Nl-tests: Likewise.
19283         * modules/unictype/category-No-tests: Likewise.
19284         * modules/unictype/category-P-tests: Likewise.
19285         * modules/unictype/category-Pc-tests: Likewise.
19286         * modules/unictype/category-Pd-tests: Likewise.
19287         * modules/unictype/category-Pe-tests: Likewise.
19288         * modules/unictype/category-Pf-tests: Likewise.
19289         * modules/unictype/category-Pi-tests: Likewise.
19290         * modules/unictype/category-Po-tests: Likewise.
19291         * modules/unictype/category-Ps-tests: Likewise.
19292         * modules/unictype/category-S-tests: Likewise.
19293         * modules/unictype/category-Sc-tests: Likewise.
19294         * modules/unictype/category-Sk-tests: Likewise.
19295         * modules/unictype/category-Sm-tests: Likewise.
19296         * modules/unictype/category-So-tests: Likewise.
19297         * modules/unictype/category-Z-tests: Likewise.
19298         * modules/unictype/category-Zl-tests: Likewise.
19299         * modules/unictype/category-Zp-tests: Likewise.
19300         * modules/unictype/category-Zs-tests: Likewise.
19301         * modules/unictype/category-and-not-tests: Likewise.
19302         * modules/unictype/category-and-tests: Likewise.
19303         * modules/unictype/category-byname-tests: Likewise.
19304         * modules/unictype/category-name-tests: Likewise.
19305         * modules/unictype/category-none-tests: Likewise.
19306         * modules/unictype/category-of-tests: Likewise.
19307         * modules/unictype/category-or-tests: Likewise.
19308         * modules/unictype/category-test-withtable-tests: Likewise.
19309         * modules/unictype/combining-class-tests: Likewise.
19310         * modules/unictype/ctype-alnum-tests: Likewise.
19311         * modules/unictype/ctype-alpha-tests: Likewise.
19312         * modules/unictype/ctype-blank-tests: Likewise.
19313         * modules/unictype/ctype-cntrl-tests: Likewise.
19314         * modules/unictype/ctype-digit-tests: Likewise.
19315         * modules/unictype/ctype-graph-tests: Likewise.
19316         * modules/unictype/ctype-lower-tests: Likewise.
19317         * modules/unictype/ctype-print-tests: Likewise.
19318         * modules/unictype/ctype-punct-tests: Likewise.
19319         * modules/unictype/ctype-space-tests: Likewise.
19320         * modules/unictype/ctype-upper-tests: Likewise.
19321         * modules/unictype/ctype-xdigit-tests: Likewise.
19322         * modules/unictype/decimal-digit-tests: Likewise.
19323         * modules/unictype/digit-tests: Likewise.
19324         * modules/unictype/mirror-tests: Likewise.
19325         * modules/unictype/numeric-tests: Likewise.
19326         * modules/unictype/property-alphabetic-tests: Likewise.
19327         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
19328         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
19329         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
19330         * modules/unictype/property-bidi-block-separator-tests: Likewise.
19331         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
19332         * modules/unictype/property-bidi-common-separator-tests: Likewise.
19333         * modules/unictype/property-bidi-control-tests: Likewise.
19334         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
19335         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
19336         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
19337         * modules/unictype/property-bidi-european-digit-tests: Likewise.
19338         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
19339         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
19340         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
19341         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
19342         * modules/unictype/property-bidi-pdf-tests: Likewise.
19343         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
19344         * modules/unictype/property-bidi-whitespace-tests: Likewise.
19345         * modules/unictype/property-byname-tests: Likewise.
19346         * modules/unictype/property-combining-tests: Likewise.
19347         * modules/unictype/property-composite-tests: Likewise.
19348         * modules/unictype/property-currency-symbol-tests: Likewise.
19349         * modules/unictype/property-dash-tests: Likewise.
19350         * modules/unictype/property-decimal-digit-tests: Likewise.
19351         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
19352         * modules/unictype/property-deprecated-tests: Likewise.
19353         * modules/unictype/property-diacritic-tests: Likewise.
19354         * modules/unictype/property-extender-tests: Likewise.
19355         * modules/unictype/property-format-control-tests: Likewise.
19356         * modules/unictype/property-grapheme-base-tests: Likewise.
19357         * modules/unictype/property-grapheme-extend-tests: Likewise.
19358         * modules/unictype/property-grapheme-link-tests: Likewise.
19359         * modules/unictype/property-hex-digit-tests: Likewise.
19360         * modules/unictype/property-hyphen-tests: Likewise.
19361         * modules/unictype/property-id-continue-tests: Likewise.
19362         * modules/unictype/property-id-start-tests: Likewise.
19363         * modules/unictype/property-ideographic-tests: Likewise.
19364         * modules/unictype/property-ids-binary-operator-tests: Likewise.
19365         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
19366         * modules/unictype/property-ignorable-control-tests: Likewise.
19367         * modules/unictype/property-iso-control-tests: Likewise.
19368         * modules/unictype/property-join-control-tests: Likewise.
19369         * modules/unictype/property-left-of-pair-tests: Likewise.
19370         * modules/unictype/property-line-separator-tests: Likewise.
19371         * modules/unictype/property-logical-order-exception-tests: Likewise.
19372         * modules/unictype/property-lowercase-tests: Likewise.
19373         * modules/unictype/property-math-tests: Likewise.
19374         * modules/unictype/property-non-break-tests: Likewise.
19375         * modules/unictype/property-not-a-character-tests: Likewise.
19376         * modules/unictype/property-numeric-tests: Likewise.
19377         * modules/unictype/property-other-alphabetic-tests: Likewise.
19378         * modules/unictype/property-other-default-ignorable-code-point-tests:
19379         Likewise.
19380         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
19381         * modules/unictype/property-other-id-continue-tests: Likewise.
19382         * modules/unictype/property-other-id-start-tests: Likewise.
19383         * modules/unictype/property-other-lowercase-tests: Likewise.
19384         * modules/unictype/property-other-math-tests: Likewise.
19385         * modules/unictype/property-other-uppercase-tests: Likewise.
19386         * modules/unictype/property-paired-punctuation-tests: Likewise.
19387         * modules/unictype/property-paragraph-separator-tests: Likewise.
19388         * modules/unictype/property-pattern-syntax-tests: Likewise.
19389         * modules/unictype/property-pattern-white-space-tests: Likewise.
19390         * modules/unictype/property-private-use-tests: Likewise.
19391         * modules/unictype/property-punctuation-tests: Likewise.
19392         * modules/unictype/property-quotation-mark-tests: Likewise.
19393         * modules/unictype/property-radical-tests: Likewise.
19394         * modules/unictype/property-sentence-terminal-tests: Likewise.
19395         * modules/unictype/property-soft-dotted-tests: Likewise.
19396         * modules/unictype/property-space-tests: Likewise.
19397         * modules/unictype/property-terminal-punctuation-tests: Likewise.
19398         * modules/unictype/property-test-tests: Likewise.
19399         * modules/unictype/property-titlecase-tests: Likewise.
19400         * modules/unictype/property-unassigned-code-value-tests: Likewise.
19401         * modules/unictype/property-unified-ideograph-tests: Likewise.
19402         * modules/unictype/property-uppercase-tests: Likewise.
19403         * modules/unictype/property-variation-selector-tests: Likewise.
19404         * modules/unictype/property-white-space-tests: Likewise.
19405         * modules/unictype/property-xid-continue-tests: Likewise.
19406         * modules/unictype/property-xid-start-tests: Likewise.
19407         * modules/unictype/property-zero-width-tests: Likewise.
19408         * modules/unictype/scripts-tests: Likewise.
19409         * modules/unictype/syntax-c-ident-tests: Likewise.
19410         * modules/unictype/syntax-c-whitespace-tests: Likewise.
19411         * modules/unictype/syntax-java-ident-tests: Likewise.
19412         * modules/unictype/syntax-java-whitespace-tests: Likewise.
19413         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
19414         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
19415         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
19416         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
19417         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
19418         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
19419         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
19420         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
19421         * modules/uniname/uniname-tests: Likewise.
19422         * modules/uninorm/canonical-decomposition-tests: Likewise.
19423         * modules/uninorm/compat-decomposition-tests: Likewise.
19424         * modules/uninorm/composition-tests: Likewise.
19425         * modules/uninorm/decomposing-form-tests: Likewise.
19426         * modules/uninorm/decomposition-tests: Likewise.
19427         * modules/uninorm/filter-tests: Likewise.
19428         * modules/uninorm/nfc-tests: Likewise.
19429         * modules/uninorm/nfd-tests: Likewise.
19430         * modules/uninorm/nfkc-tests: Likewise.
19431         * modules/uninorm/nfkd-tests: Likewise.
19432         * modules/uninorm/u8-normcmp-tests: Likewise.
19433         * modules/uninorm/u8-normcoll-tests: Likewise.
19434         * modules/uninorm/u16-normcmp-tests: Likewise.
19435         * modules/uninorm/u16-normcoll-tests: Likewise.
19436         * modules/uninorm/u32-normcmp-tests: Likewise.
19437         * modules/uninorm/u32-normcoll-tests: Likewise.
19438         * modules/unistdio/u8-asnprintf-tests: Likewise.
19439         * modules/unistdio/u8-vasnprintf-tests: Likewise.
19440         * modules/unistdio/u8-vasprintf-tests: Likewise.
19441         * modules/unistdio/u8-vsnprintf-tests: Likewise.
19442         * modules/unistdio/u8-vsprintf-tests: Likewise.
19443         * modules/unistdio/u16-asnprintf-tests: Likewise.
19444         * modules/unistdio/u16-vasnprintf-tests: Likewise.
19445         * modules/unistdio/u16-vasprintf-tests: Likewise.
19446         * modules/unistdio/u16-vsnprintf-tests: Likewise.
19447         * modules/unistdio/u16-vsprintf-tests: Likewise.
19448         * modules/unistdio/u32-asnprintf-tests: Likewise.
19449         * modules/unistdio/u32-vasnprintf-tests: Likewise.
19450         * modules/unistdio/u32-vasprintf-tests: Likewise.
19451         * modules/unistdio/u32-vsnprintf-tests: Likewise.
19452         * modules/unistdio/u32-vsprintf-tests: Likewise.
19453         * modules/unistdio/ulc-asnprintf-tests: Likewise.
19454         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
19455         * modules/unistdio/ulc-vasprintf-tests: Likewise.
19456         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
19457         * modules/unistdio/ulc-vsprintf-tests: Likewise.
19458         * modules/unistr/u8-check-tests: Likewise.
19459         * modules/unistr/u8-chr-tests: Likewise.
19460         * modules/unistr/u8-cmp-tests: Likewise.
19461         * modules/unistr/u8-cmp2-tests: Likewise.
19462         * modules/unistr/u8-cpy-alloc-tests: Likewise.
19463         * modules/unistr/u8-cpy-tests: Likewise.
19464         * modules/unistr/u8-mblen-tests: Likewise.
19465         * modules/unistr/u8-mbsnlen-tests: Likewise.
19466         * modules/unistr/u8-mbtouc-tests: Likewise.
19467         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
19468         * modules/unistr/u8-mbtoucr-tests: Likewise.
19469         * modules/unistr/u8-move-tests: Likewise.
19470         * modules/unistr/u8-next-tests: Likewise.
19471         * modules/unistr/u8-prev-tests: Likewise.
19472         * modules/unistr/u8-set-tests: Likewise.
19473         * modules/unistr/u8-stpcpy-tests: Likewise.
19474         * modules/unistr/u8-stpncpy-tests: Likewise.
19475         * modules/unistr/u8-strcat-tests: Likewise.
19476         * modules/unistr/u8-strcmp-tests: Likewise.
19477         * modules/unistr/u8-strcoll-tests: Likewise.
19478         * modules/unistr/u8-strcpy-tests: Likewise.
19479         * modules/unistr/u8-strdup-tests: Likewise.
19480         * modules/unistr/u8-strlen-tests: Likewise.
19481         * modules/unistr/u8-strmblen-tests: Likewise.
19482         * modules/unistr/u8-strmbtouc-tests: Likewise.
19483         * modules/unistr/u8-strncat-tests: Likewise.
19484         * modules/unistr/u8-strncmp-tests: Likewise.
19485         * modules/unistr/u8-strncpy-tests: Likewise.
19486         * modules/unistr/u8-strnlen-tests: Likewise.
19487         * modules/unistr/u8-to-u16-tests: Likewise.
19488         * modules/unistr/u8-to-u32-tests: Likewise.
19489         * modules/unistr/u8-uctomb-tests: Likewise.
19490         * modules/unistr/u16-check-tests: Likewise.
19491         * modules/unistr/u16-chr-tests: Likewise.
19492         * modules/unistr/u16-cmp-tests: Likewise.
19493         * modules/unistr/u16-cmp2-tests: Likewise.
19494         * modules/unistr/u16-cpy-alloc-tests: Likewise.
19495         * modules/unistr/u16-cpy-tests: Likewise.
19496         * modules/unistr/u16-mblen-tests: Likewise.
19497         * modules/unistr/u16-mbsnlen-tests: Likewise.
19498         * modules/unistr/u16-mbtouc-tests: Likewise.
19499         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
19500         * modules/unistr/u16-mbtoucr-tests: Likewise.
19501         * modules/unistr/u16-move-tests: Likewise.
19502         * modules/unistr/u16-next-tests: Likewise.
19503         * modules/unistr/u16-prev-tests: Likewise.
19504         * modules/unistr/u16-set-tests: Likewise.
19505         * modules/unistr/u16-stpcpy-tests: Likewise.
19506         * modules/unistr/u16-stpncpy-tests: Likewise.
19507         * modules/unistr/u16-strcat-tests: Likewise.
19508         * modules/unistr/u16-strcmp-tests: Likewise.
19509         * modules/unistr/u16-strcoll-tests: Likewise.
19510         * modules/unistr/u16-strcpy-tests: Likewise.
19511         * modules/unistr/u16-strdup-tests: Likewise.
19512         * modules/unistr/u16-strlen-tests: Likewise.
19513         * modules/unistr/u16-strmblen-tests: Likewise.
19514         * modules/unistr/u16-strmbtouc-tests: Likewise.
19515         * modules/unistr/u16-strncat-tests: Likewise.
19516         * modules/unistr/u16-strncmp-tests: Likewise.
19517         * modules/unistr/u16-strncpy-tests: Likewise.
19518         * modules/unistr/u16-strnlen-tests: Likewise.
19519         * modules/unistr/u16-to-u32-tests: Likewise.
19520         * modules/unistr/u16-to-u8-tests: Likewise.
19521         * modules/unistr/u16-uctomb-tests: Likewise.
19522         * modules/unistr/u32-check-tests: Likewise.
19523         * modules/unistr/u32-chr-tests: Likewise.
19524         * modules/unistr/u32-cmp-tests: Likewise.
19525         * modules/unistr/u32-cmp2-tests: Likewise.
19526         * modules/unistr/u32-cpy-alloc-tests: Likewise.
19527         * modules/unistr/u32-cpy-tests: Likewise.
19528         * modules/unistr/u32-mblen-tests: Likewise.
19529         * modules/unistr/u32-mbsnlen-tests: Likewise.
19530         * modules/unistr/u32-mbtouc-tests: Likewise.
19531         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
19532         * modules/unistr/u32-mbtoucr-tests: Likewise.
19533         * modules/unistr/u32-move-tests: Likewise.
19534         * modules/unistr/u32-next-tests: Likewise.
19535         * modules/unistr/u32-prev-tests: Likewise.
19536         * modules/unistr/u32-set-tests: Likewise.
19537         * modules/unistr/u32-stpcpy-tests: Likewise.
19538         * modules/unistr/u32-stpncpy-tests: Likewise.
19539         * modules/unistr/u32-strcat-tests: Likewise.
19540         * modules/unistr/u32-strcmp-tests: Likewise.
19541         * modules/unistr/u32-strcoll-tests: Likewise.
19542         * modules/unistr/u32-strcpy-tests: Likewise.
19543         * modules/unistr/u32-strdup-tests: Likewise.
19544         * modules/unistr/u32-strlen-tests: Likewise.
19545         * modules/unistr/u32-strmblen-tests: Likewise.
19546         * modules/unistr/u32-strmbtouc-tests: Likewise.
19547         * modules/unistr/u32-strncat-tests: Likewise.
19548         * modules/unistr/u32-strncmp-tests: Likewise.
19549         * modules/unistr/u32-strncpy-tests: Likewise.
19550         * modules/unistr/u32-strnlen-tests: Likewise.
19551         * modules/unistr/u32-to-u16-tests: Likewise.
19552         * modules/unistr/u32-to-u8-tests: Likewise.
19553         * modules/unistr/u32-uctomb-tests: Likewise.
19554         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
19555         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
19556         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
19557         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
19558         * modules/uniwidth/u8-strwidth-tests: Likewise.
19559         * modules/uniwidth/u8-width-tests: Likewise.
19560         * modules/uniwidth/u16-strwidth-tests: Likewise.
19561         * modules/uniwidth/u16-width-tests: Likewise.
19562         * modules/uniwidth/u32-strwidth-tests: Likewise.
19563         * modules/uniwidth/u32-width-tests: Likewise.
19564         * modules/uniwidth/width-tests: Likewise.
19565
19566 2010-05-18  Richard Jones  <rjones@redhat.com>
19567
19568         doc: users.txt: list hivex
19569         * users.txt: Add hivex.
19570
19571 2010-05-18  Richard Jones  <rjones@redhat.com>
19572
19573         doc: users.txt: list febootstrap
19574         * users.txt: Add febootstrap.
19575
19576 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
19577
19578         bootstrap: fix an error when gnulib is not used as a git submodule
19579         * build-aux/bootstrap (gnulib_path): If its length is zero then
19580         assign "gnulib" to it.
19581         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
19582
19583 2010-05-16  Bruno Haible  <bruno@clisp.org>
19584
19585         Avoid autoconf warnings about AM_ICONV.
19586         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
19587         2.64.
19588
19589 2010-05-16  Bruno Haible  <bruno@clisp.org>
19590
19591         absolute-header: Make the macro usable in more situations.
19592         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
19593         from gl_ABSOLUTE_HEADER.
19594         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
19595
19596 2010-05-16  James Youngman  <jay@gnu.org>
19597
19598         doc: update users.txt
19599         * users.txt: Add CSSC.
19600
19601 2010-05-16  Jim Meyering  <meyering@redhat.com>
19602
19603         init.sh: fix an error in the previous change; add more comments
19604         * tests/init.sh: Compare exit code in loop against 9, not 2.
19605         Patch by Bruno Haible.
19606         Make the two tests more similar by adding an empty "then" clause.
19607         Add comments.
19608
19609         init.sh: avoid unnecessary shell re-exec
19610         * tests/init.sh: Improve the re-exec-required check to first test the
19611         current shell.  If it passes the test, do not search for a shell that
19612         does pass, and do not re-exec.  This test is particularly contorted to
19613         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
19614         of $(...) evokes a syntax error and causes immediate shell exit with
19615         status 2.  Bruno Haible reported that the re-exec made it impossible
19616         to single-step through any init.sh-using script.
19617
19618 2010-05-16  Bruno Haible  <bruno@clisp.org>
19619
19620         Fix collision between gnulib's and libintl's printf replacements.
19621         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
19622         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
19623         (printf): When using GNU C, map the __printf__ function to rpl_printf
19624         via __asm__. When not using GNU C, define rpl_printf instead of
19625         __printf__.
19626         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
19627         commit.
19628         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
19629         commit.
19630         * m4/asm-underscore.m4: New file.
19631         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
19632         * modules/stdio (Files): Add m4/asm-underscore.m4.
19633         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
19634         Reported by Ben Pfaff.
19635
19636 2010-05-16  Bruno Haible  <bruno@clisp.org>
19637
19638         verify: Avoid skipping the test on openSUSE 11.0.
19639         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
19640
19641 2010-05-13  Bruno Haible  <bruno@clisp.org>
19642
19643         Avoid useless warnings from G++.
19644         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
19645         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
19646         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19647
19648 2010-05-11  Jim Meyering  <meyering@redhat.com>
19649
19650         maint.mk: tweak preceding change
19651         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
19652         regexps tighter by anchoring at EOL, and make the new group "shy"
19653         for slightly decreased overhead.
19654
19655 2010-05-11  Eric Blake  <eblake@redhat.com>
19656
19657         maint.mk: gnulib doesn't guarantee NSIG
19658         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
19659
19660 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
19661
19662         test-pwrite.c: Remove unused variable declaration.
19663         * tests/test-pwrite.c (main): Remove read_buf declaration.
19664
19665         Remove useless test-pwrite.sh file.
19666         * tests/test-pwrite.sh: Delete file.
19667         * modules/pwrite-tests: Remove references.
19668         Reported by Bruno Haible.
19669
19670 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
19671
19672         init.sh: fix a typo
19673         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
19674
19675 2010-05-10  Jim Meyering  <meyering@redhat.com>
19676
19677         maint.mk: avoid using a temporary file in the always-defined-macros check
19678         * top/maint.mk (.re-defmac): Remove rule.
19679         (gl_trap_): Remove definition.
19680         (sc_prohibit_always-defined_macros): Rewrite not to create and
19681         depend on a temporary file.  Instead, depend on GNU grep's ability
19682         to read a list of regular expressions from stdin when given "-f -".
19683
19684 2010-05-09  Bruno Haible  <bruno@clisp.org>
19685
19686         Update to GNU gettext 0.18, part 1.
19687         * m4/gettext.m4: Update to GNU gettext 0.18.
19688         * m4/intl.m4: Likewise.
19689         * m4/po.m4: Likewise.
19690         * modules/gettext (Files): Add m4/fcntl-o.m4.
19691         (configure.ac): Require gettext infrastructure from version 0.18.
19692
19693 2010-05-09  Jim Meyering  <meyering@redhat.com>
19694
19695         init.sh: enable MALLOC_PERTURB_
19696         * tests/init.sh: Enable glibc's malloc-perturbing option.
19697
19698         maint.mk: improve sc_cross_check_PATH_usage_in_tests
19699         With my recent change in init.sh from the two-line form:
19700             -#   : ${srcdir=.}
19701             -#   . "$srcdir/init.sh"; path_prepend_ .
19702             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
19703         I noticed that using the one-line form would cause this test
19704         to fail with a false-positive, or to stop working altogether,
19705         depending on whether help-version changed or all the tests did.
19706         * top/maint.mk (_hv_regex): Remove this definition.
19707         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
19708         (_hv_regex_strong): Use a stronger regex to check for conformance.
19709         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
19710         Give a separate diagnostic for lack of conforming use.
19711
19712         maint.mk: prohibit definition of symbols defined by gnulib
19713         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
19714         definition of symbols defined by gnulib.
19715
19716 2010-05-09  Bruno Haible  <bruno@clisp.org>
19717
19718         acl: Avoid test failure on Cygwin-hosted mingw.
19719         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
19720
19721 2010-05-09  Bruno Haible  <bruno@clisp.org>
19722
19723         error: Use system's fcntl function.
19724         * lib/error.c (fcntl): Undefine.
19725
19726 2010-05-09  Jim Meyering  <meyering@redhat.com>
19727
19728         verify: adjust formatting to be more consistent
19729         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
19730         argument-list '('s, and after one comma.
19731
19732 2010-05-09  Bruno Haible  <bruno@clisp.org>
19733
19734         error: More reliable output on mingw.
19735         * lib/error.c: Include <windows.h>.
19736         (is_open): New function.
19737         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
19738         defined.
19739
19740 2010-05-09  Bruno Haible  <bruno@clisp.org>
19741
19742         vasnprintf: Fix syntax errors in libintl build on mingw.
19743         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
19744         pad_ourselves and prec_ourselves after use.
19745
19746 2010-05-08  Bruno Haible  <bruno@clisp.org>
19747
19748         * lib/config.charset: Update comments for Cygwin 1.7.
19749         * lib/localcharset.c: Likewise.
19750
19751 2010-05-07  Jim Meyering  <meyering@redhat.com>
19752
19753         init.sh: improve comments
19754         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
19755         . "${srcdir=.}/init.sh"; path_prepend_ .
19756         Add a note about path_prepend_ and the alternative of using
19757         TESTS_ENVIRONMENT.
19758
19759 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
19760
19761         exclude: Unescape hashed patterns in wildcard mode.
19762         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
19763         to the hash list.
19764         * tests/test-exclude8.sh: New test case.
19765         * modules/exclude-tests: Add new test.
19766
19767 2010-05-05  Eric Blake  <eblake@redhat.com>
19768
19769         verify: automate tests
19770         * modules/verify-tests: New module.
19771         * tests/test-verify.sh: New file.
19772         * tests/test-verify.c: Guard each negative test with a unique id.
19773         Also avoid warning about unused left hand of comma expressions.
19774
19775 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19776
19777         Further improvements to verify.h, suggested by Eric Blake.
19778         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
19779         the GL_* versions, to avoid collision with OpenGL.
19780         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
19781         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
19782         than testing merely whether it's defined.
19783
19784         Modify verify.h to pacify gcc -Wredundant_decls.
19785         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
19786         These use the prefix "GL_" since they're likely to be useful elsewhere.
19787         We may need to break them out into a different .h file.
19788         (__COUNTER__): Define to 0 if the compiler doesn't support it.
19789         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
19790         of verify_function__.
19791
19792 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
19793
19794         Tests for module pwrite.
19795         * modules/pwrite-tests: New file.
19796         * tests/test-pwrite.sh: New file.
19797         * tests/test-pwrite.c: New file.
19798
19799         New module pwrite.
19800         * lib/unistd.in.h (pwrite): New declaration.
19801         * lib/pwrite.c: New file, from glibc with modifications.
19802         * m4/pwrite.m4: New file.
19803         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
19804         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
19805         REPLACE_PWRITE.
19806         * modules/pwrite: New file.
19807         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
19808         REPLACE_PWRITE.
19809         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
19810         * doc/posix-functions/pwrite.texi: Mention the new module.
19811
19812 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
19813
19814         pread: Update documentation.
19815         * doc/posix-functions/pread.texi: Mention the 'pread' module.
19816
19817 2010-05-04  Eric Blake  <eblake@redhat.com>
19818
19819         docs: update cygwin progress
19820         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
19821         this bug.
19822         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
19823         Added in cygwin 1.7.2.
19824         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
19825         Likewise.
19826         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
19827         Likewise.
19828         * doc/glibc-functions/dup3.texi (dup3): Likewise.
19829         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
19830         * doc/glibc-functions/accept4.texi (accept4): Likewise.
19831         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
19832         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
19833         Mention nproc module.
19834         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
19835         bug in cygwin 1.7.5 addition.
19836         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
19837         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
19838         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
19839         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
19840         1.7.5.
19841         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
19842         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
19843         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
19844         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
19845         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
19846         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
19847         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
19848         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
19849         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
19850         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
19851         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
19852         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
19853         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
19854         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
19855         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
19856         Likewise.
19857         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
19858         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
19859         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
19860         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
19861         Likewise.
19862         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
19863         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
19864         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
19865         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
19866         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
19867         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
19868         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
19869         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
19870         Likewise.
19871         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
19872         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
19873         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
19874         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
19875         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
19876         Likewise.
19877         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
19878         Likewise.
19879         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
19880         Likewise.
19881         * doc/glibc-functions/xdrrec_endofrecord.texi
19882         (xdrrec_endofrecord): Likewise.
19883         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
19884         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
19885         Likewise.
19886         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
19887         Likewise.
19888
19889 2010-05-04  Jim Meyering  <meyering@redhat.com>
19890
19891         gendocs.sh: make its "-s FILE" option more useful
19892         * build-aux/gendocs.sh: When honoring the -s FILE option, update
19893         $PACKAGE to reflect the probably-different basename of "FILE".
19894
19895 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
19896
19897         bootstrap: don't ignore download_po_files failure
19898         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
19899         failure.
19900
19901 2010-05-03  Jim Meyering  <meyering@redhat.com>
19902
19903         maint.mk: allow to pass options to gendocs.sh
19904         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
19905         (gendocs_options_): New overridable variable.
19906
19907         gnu-web-doc-update: don't ignore configure or build failure
19908         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
19909
19910         announce-gen: backslash-escape '@'s in --help output
19911         * build-aux/announce-gen: Fix syntax errors.
19912
19913         maint.mk, announce-gen: allow project-specific announcement mail headers
19914         * top/maint.mk (translation_project_): Define default.
19915         (announcement_Cc_, announcement_mail_headers_): Likewise.
19916         (announcement): Invoke announce-gen with new --mail-headers option.
19917         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
19918
19919         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
19920         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
19921         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
19922         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
19923         line in the "err2" output file when running "make check" in verbose
19924         mode (i.e., with set -x enabled).
19925
19926 2010-05-03  Bruno Haible  <bruno@clisp.org>
19927
19928         wctob: Fix for weird platforms.
19929         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
19930         argument value.
19931
19932 2010-05-03  Jim Meyering  <meyering@redhat.com>
19933
19934         maint.mk: prohibit unwarranted use of <strings.h>
19935         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
19936         strings.h in a file that does not also use strcasecmp, strncasecmp,
19937         ffs or ffsll.
19938
19939         maint.mk: remove obsolete comments
19940         * top/maint.mk: Remove stale, commented-out rules.
19941
19942 2010-05-02  Bruno Haible  <bruno@clisp.org>
19943
19944         wcwidth: Declare also when it's aliased.
19945         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
19946         macro.
19947
19948 2010-05-02  Bruno Haible  <bruno@clisp.org>
19949
19950         Fix regression from 2010-04-25.
19951         * gnulib-tool (func_modules_transitive_closure): Check the status of
19952         all modules, not only of the tests that are of the form foo-tests where
19953         foo is a module.
19954
19955 2010-05-02  Bruno Haible  <bruno@clisp.org>
19956
19957         wctob: Work around nasty Cygwin 1.7.2 bug.
19958         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
19959         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
19960
19961 2010-05-01  Bruno Haible  <bruno@clisp.org>
19962
19963         fpurge: Sharper test.
19964         * tests/test-fpurge.c (main): Add one more ftell check.
19965         * modules/fpurge-tests (Depends-on): Add ftell.
19966         Suggested by Eric Blake.
19967
19968 2010-05-01  Bruno Haible  <bruno@clisp.org>
19969
19970         ftello: Another test.
19971         * tests/test-ftello3.c: New file.
19972         * modules/ftello-tests (Files): Add it.
19973         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
19974         MOSTLYCLEANFILES.
19975
19976         ftell: Another test.
19977         * tests/test-ftell3.c: New file.
19978         * modules/ftell-tests (Files): Add it.
19979         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
19980         MOSTLYCLEANFILES.
19981
19982 2010-05-01  Bruno Haible  <bruno@clisp.org>
19983
19984         ftell, ftello: Work around Solaris bug.
19985         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
19986         * lib/ftello.c: Include stdio-impl.h.
19987         (ftello): On Solaris, when _IOWRT is set, compute the result without
19988         looking at _IOREAD.
19989         * modules/ftello (Files): Add lib/stdio-impl.h.
19990         * doc/posix-functions/ftell.texi: Mention Solaris bug.
19991         * doc/posix-functions/ftello.texi: Likewise.
19992         Reported by Eric Blake.
19993
19994 2010-05-01  Bruno Haible  <bruno@clisp.org>
19995
19996         freading: Adapt to special meaning of _IOREAD flag on Solaris.
19997         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
19998         the _IOWRT flag is also set.
19999
20000 2010-05-01  Bruno Haible  <bruno@clisp.org>
20001
20002         Fix doc about a HP-UX stdio bug.
20003         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
20004         * doc/posix-functions/ftello.texi: Likewise.
20005
20006 2010-05-01  Bruno Haible  <bruno@clisp.org>
20007
20008         lseek test: Fix failure on Solaris.
20009         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
20010         output.
20011
20012 2010-04-30  Jim Meyering  <meyering@redhat.com>
20013
20014         bootstrap: don't ignore failure to generate po*/Makevars
20015         * build-aux/bootstrap (with_gettext): Don't ignore failure
20016         to create po/Makevars or runtime-po/Makevars.
20017
20018 2010-04-29  Eric Blake  <eblake@redhat.com>
20019
20020         headers: relax license to LGPLv2+
20021         * modules/fcntl-h (License): Relax license.
20022         * modules/getopt-posix (License): Likewise.
20023         * modules/locale (License): Likewise.
20024         * modules/math (License): Likewise.
20025         * modules/pty (License): Likewise.
20026         * modules/sched (License): Likewise.
20027         * modules/search (License): Likewise.
20028         * modules/spawn (License): Likewise.
20029         * modules/stdarg (License): Likewise.
20030         * modules/sysexits (License): Likewise.
20031
20032 2010-04-29  Jim Meyering  <meyering@redhat.com>
20033
20034         inttypes: relax license to LGPLv2+
20035         * modules/inttypes (License): Relax license.
20036
20037 2010-04-29  Simon Josefsson  <simon@josefsson.org>
20038
20039         * top/maint.mk (indent): Run twice to produce idempotent results.
20040
20041 2010-04-28  Bruno Haible  <bruno@clisp.org>
20042
20043         getdate: Generate getdate.c in the source directory.
20044         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
20045         MOSTLYCLEANFILES.
20046         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
20047
20048 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
20049
20050         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
20051         is not declared as a const *; avoid warnings in that case.
20052
20053 2010-04-28  Eric Blake  <eblake@redhat.com>
20054
20055         canonicalize-lgpl: avoid compiler warning
20056         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
20057         declaration' / 'extraneous semicolon' warning with some compilers.
20058         Reported by Andreas Gruenbacher.
20059
20060 2010-04-28  Jim Meyering  <meyering@redhat.com>
20061
20062         init.sh: ensure a more reliable exit status when exiting via trap
20063         * tests/init.sh (setup_): Don't rely on $? in signal handler.
20064         Inspired by patches from Dmitry V. Levin.
20065         Also trap on signal 3 (SIGQUIT).
20066
20067 2010-04-27  Bruno Haible  <bruno@clisp.org>
20068
20069         Update doc about utimes().
20070         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
20071         'utimens' module.
20072         Reported by Andreas Gruenbacher <agruen@suse.de>.
20073
20074 2010-04-27  Eric Blake  <eblake@redhat.com>
20075
20076         full-read, full-write: relax license
20077         * modules/full-read (License): Drop to LGPLv2+.
20078         * modules/full-write (License): Likewise.
20079         * modules/safe-read (License): Likewise.
20080         * modules/safe-write (License): Likewise.
20081
20082         pthread: mention library for linking
20083         * modules/pthread (Link): Mention $(LIB_PTHREAD).
20084
20085 2010-04-27  Jim Meyering  <meyering@redhat.com>
20086
20087         maint.mk: fix a bug introduced in last change
20088         * top/maint.mk (gl_assured_headers_): Now that all names are on
20089         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
20090         is not anchored to end of word, it should be adequate.
20091
20092         maint.mk: avoid side-effect in latest syntax-check
20093         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
20094         to run commands via $(shell...), and hence to incur cost only when
20095         the new rule is actually run.
20096
20097         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
20098         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
20099         and use that to create a regexp used to detect all #if HAVE_..._H uses.
20100         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
20101         (gl_assured_headers_, az_, AZ_): Define.
20102         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
20103
20104 2010-04-26  Jim Meyering  <jim@meyering.net>
20105             Bruno Haible  <bruno@clisp.org>
20106
20107         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
20108         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
20109         Prompted by an exchange with Gilles Espinasse.
20110
20111 2010-04-26  Jim Meyering  <meyering@redhat.com>
20112
20113         git-version-gen: aesthetic tweak
20114         * build-aux/git-version-gen: Use "$nl" rather than a literal,
20115         so that the command remains on a single line.
20116
20117 2010-04-26  Eric Blake  <eblake@redhat.com>
20118
20119         git-version-gen: allow use on EBCDIC hosts
20120         * build-aux/git-version-gen (dirty): Use literal rather than tying
20121         ourselves to ascii.
20122         Reported by Steve Goetze.
20123
20124 2010-04-25  Bruno Haible  <bruno@clisp.org>
20125
20126         netdb: Add support for GNULIB_POSIXCHECK.
20127         * lib/netdb.in.h: Include warn-on-use.h.
20128         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
20129         functions are used when GNULIB_POSIXCHECK is defined and the
20130         getaddrinfo module is not in use.
20131         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
20132         freeaddrinfo, gai_strerror, getnameinfo are declared.
20133         * modules/netdb (Depends-on): Add warn-on-use.
20134         (Makefile.am): Include warn-on-use.h in netdb.h.
20135
20136 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
20137
20138         build: avoid "make check" failure without .git/ directory
20139         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
20140         there is no .git/ directory.
20141
20142 2010-04-25  Bruno Haible  <bruno@clisp.org>
20143
20144         ptsname: Fix misuse of ttyname_r.
20145         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
20146         of errno.
20147
20148 2010-04-25  Bruno Haible  <bruno@clisp.org>
20149
20150         ttyname_r: Make it work on Solaris 10.
20151         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
20152         if the system function has the POSIX declaration. Test whether the
20153         function fails if the buffer is less than 128 bytes large.
20154         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
20155         system's ttyname_r function. Provide a reasonably large buffer.
20156         * modules/ttyname_r (Depends-on): Add extensions.
20157         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
20158
20159 2010-04-25  Bruno Haible  <bruno@clisp.org>
20160
20161         Use the 'extensions' module for some more functions on Solaris.
20162         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
20163         module.
20164         * doc/posix-functions/ctime_r.texi: Likewise.
20165         * doc/posix-functions/getgrgid_r.texi: Likewise.
20166         * doc/posix-functions/getgrnam_r.texi: Likewise.
20167         * doc/posix-functions/getpwnam_r.texi: Likewise.
20168         * doc/posix-functions/getpwuid_r.texi: Likewise.
20169         * doc/posix-functions/readdir_r.texi: Likewise.
20170         * doc/posix-functions/sigwait.texi: Likewise.
20171         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
20172         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
20173
20174 2010-04-25  Bruno Haible  <bruno@clisp.org>
20175
20176         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
20177         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
20178         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
20179         * lib/ttyname_r.c: Include <limits.h>.
20180         (ttyname_r): Define using the system's ttyname_r function, if it exists
20181         and not on Solaris.
20182         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
20183         set.
20184         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
20185         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
20186         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
20187         Reported by Simon Josefsson.
20188
20189 2010-04-25  Bruno Haible  <bruno@clisp.org>
20190
20191         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
20192         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
20193         * doc/posix-functions/ctime_r.texi: Likewise.
20194         * doc/posix-functions/getgrgid_r.texi: Likewise.
20195         * doc/posix-functions/getgrnam_r.texi: Likewise.
20196         * doc/posix-functions/getlogin_r.texi: Likewise.
20197         * doc/posix-functions/getpwnam_r.texi: Likewise.
20198         * doc/posix-functions/getpwuid_r.texi: Likewise.
20199         * doc/posix-functions/readdir_r.texi: Likewise.
20200         * doc/posix-functions/sigwait.texi: Likewise.
20201         * doc/posix-functions/ttyname_r.texi: Likewise.
20202         Reported by Simon Josefsson.
20203
20204 2010-04-25  Bruno Haible  <bruno@clisp.org>
20205
20206         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
20207         * gnulib-tool (func_usage): Document that --with-*-tests options apply
20208         also to --create-testdir.
20209         (func_acceptable): Don't consider the status of *-tests modules here.
20210         (func_modules_transitive_closure): Consider it here, before including a
20211         test module.
20212         (func_import, func_create_testdir): Set inc_all_direct_tests,
20213         inc_all_indirect_tests.
20214         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
20215         --create-testdir and --create-megatestdir.
20216
20217 2010-04-25  Bruno Haible  <bruno@clisp.org>
20218
20219         gnulib-tool: Add --without-*-tests options.
20220         * gnulib-tool (func_usage): Document the --without-*-tests options.
20221         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
20222         excl_unportable_tests): New variables.
20223         Fail if they are specified with --import or --update.
20224         (func_acceptable): Respect the excl_*_tests variables.
20225         (func_import): Set the excl_*_tests variables to empty.
20226
20227 2010-04-25  Simon Josefsson  <simon@josefsson.org>
20228             Bruno Haible  <bruno@clisp.org>
20229
20230         Work around a MacOS X 10.4 bug with openpty.
20231         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
20232         * tests/test-openpty.c (main): Close the master side explicitly.
20233
20234 2010-04-25  Bruno Haible  <bruno@clisp.org>
20235
20236         strnlen: Fix a C++ test error on MacOS X and Solaris.
20237         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
20238         the function is not declared.
20239         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
20240         Simon Josefsson.
20241
20242 2010-04-24  Bruno Haible  <bruno@clisp.org>
20243
20244         Avoid a gcc warning.
20245         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
20246         of correct type for %08lx directive.
20247         Reported by Eric Blake.
20248
20249 2010-04-24  Bruno Haible  <bruno@clisp.org>
20250
20251         vasnprintf: Correct errno value in case of out-of-memory.
20252         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
20253         or sprintf. Use the errno value from SNPRINTF or sprintf.
20254         Reported by Ian Beckwith <ianb@erislabs.net>.
20255
20256 2010-04-24  Bruno Haible  <bruno@clisp.org>
20257
20258         ansi-c++-opt: Find correct compiler when cross-compiling.
20259         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
20260         AC_CHECK_PROGS.
20261         Reported by Simon Josefsson.
20262
20263 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
20264
20265         vc-list-files: Add support for subversion
20266         * build-aux/vc-list-files: Use "svn list" to generate the list of
20267         files controlled by subversion.
20268
20269 2010-04-23  Jim Meyering  <meyering@redhat.com>
20270
20271         vc-list-files tests: convert to use init.sh
20272         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
20273         path_prepend_.
20274         Use Exit, not exit.
20275         Use skip_ rather than open coding it.
20276         Remove trap set-up and compare definitions.
20277         * tests/test-vc-list-files-git.sh: Likewise.
20278         * modules/vc-list-files-tests (Files): Add tests/init.sh.
20279
20280 2010-04-22  Simon Josefsson  <simon@josefsson.org>
20281
20282         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
20283         backup files.
20284
20285 2010-04-21  Simon Josefsson  <simon@josefsson.org>
20286
20287         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
20288
20289 2010-04-20  Eric Blake  <eblake@redhat.com>
20290
20291         tests: be robust to ignored SIGPIPE
20292         * tests/test-select-in.sh: Consume all output.
20293         * tests/test-lseek.sh: Check correct exit status, while avoiding
20294         EPIPE.
20295
20296 2010-04-20  Simon Josefsson  <simon@josefsson.org>
20297             Bruno Haible  <bruno@clisp.org>
20298
20299         visibility: Don't use -fvisibility if it leads to a warning.
20300         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
20301         yes, don't pretend that visibility works if it leads to a warning.
20302         Reported by Mike Gran <spk121@yahoo.com>.
20303
20304 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
20305
20306         * build-aux/bootstrap: Use "git -h" for testing for supported options
20307         instead of "git --help".  The short-form option only shows a summary,
20308         and doesn't layout the full man page.  Grep for the full option name
20309         in the summary, too.
20310
20311 2010-04-19  Bruno Haible  <bruno@clisp.org>
20312
20313         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
20314         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
20315         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
20316         mention of RELOCATABLE_STRIP.
20317         Reported by Sylvain Beucler <beuc@beuc.net>.
20318
20319 2010-04-19  Bruno Haible  <bruno@clisp.org>
20320
20321         * lib/diffseq.h: Fix typo in comment.
20322         Reported by Eric Blake.
20323
20324 2010-04-19  Bruno Haible  <bruno@clisp.org>
20325
20326         ioctl: Move autoconf macro to a .m4 file.
20327         * m4/ioctl.m4: New file, extracted from modules/ioctl.
20328         * modules/ioctl (Files): Add it.
20329         (configure.ac): Simply invoke gl_FUNC_IOCTL.
20330         Reported by Ian Beckwith <ianb@erislabs.net>.
20331
20332 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
20333             Bruno Haible  <bruno@clisp.org>
20334
20335         diffseq: Accommodate use-case with abstract arrays.
20336         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
20337         is not defined.
20338         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
20339         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
20340
20341 2010-04-18  Bruno Haible  <bruno@clisp.org>
20342
20343         * doc/posix-headers/stdbool.texi: More precise wording.
20344
20345 2010-04-17  Jim Meyering  <meyering@redhat.com>
20346
20347         maint.mk: use gnu-style indentation in an embedded perl script
20348         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
20349         Rename variable: s/two/last_two_bytes/
20350
20351 2010-04-16  Eric Blake  <eblake@redhat.com>
20352
20353         test-stdbool: skip test that fails with Solaris CC
20354         * tests/test-stdbool.c (f): Skip test that causes compilation
20355         error under buggy C++ compiler.
20356         * lib/stdbool.in.h: Document the limitation.
20357         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
20358
20359         setenv: allow compilation with C++
20360         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
20361         register keyword.
20362
20363         stdint: allow test to pass with C++
20364         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
20365
20366         getopt: allow compilation with C++
20367         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
20368         struct.
20369         * lib/getopt.c (_getopt_internal_r): Use correct type.
20370         Reported by Dagobert Michelson, via Joel E. Denny.
20371
20372 2010-04-16  Bruno Haible  <bruno@clisp.org>
20373
20374         Override netdb.h always.
20375         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
20376         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
20377         Reported by Ludovic Courtès <ludo@gnu.org>.
20378
20379 2010-04-15  Bruno Haible  <bruno@clisp.org>
20380
20381         openpty: Fix mistake from 2010-03-21.
20382         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
20383         Reported by Simon Josefsson.
20384
20385 2010-04-15  Eric Blake  <eblake@redhat.com>
20386
20387         test-forkpty: fix expected signature
20388         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
20389         Reported by Simon Josefsson.
20390
20391 2010-04-15  Jim Meyering  <meyering@redhat.com>
20392
20393         maint.mk: texinfo_suffix_re_: correct the default regexp
20394         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
20395
20396         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
20397         make it configurable via texinfo_suffix_re_.
20398
20399 2010-04-14  Eric Blake  <eblake@redhat.com>
20400
20401         strtok_r: relax license to LGPLv2+
20402         * modules/strtok_r (License): Relax license.
20403         Reported by Matthias Bolte.
20404
20405 2010-04-14  Simon Josefsson  <simon@josefsson.org>
20406
20407         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
20408         version 1.4.4 by default instead of requiring the libgcrypt
20409         version used during build.  This makes it possible to use the
20410         application with older but still binary compatible libgcrypt
20411         versions.
20412
20413 2010-04-13  Eric Blake  <eblake@redhat.com>
20414
20415         getopt-gnu: match recent glibc fixes and posix ruling
20416         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
20417         '+' handling, when requesting extensions.
20418         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
20419         'W;' handling.
20420         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
20421         * doc/posix-functions/getopt.texi (getopt): Document this.
20422         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
20423         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20424         Likewise.
20425
20426         getopt: merge bug fixes from glibc
20427         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
20428         diagnostics.  Honor '+:' correctly.  Reject ';'.
20429
20430         getopt-posix: detect MacOS bug
20431         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
20432         optind when missing a required argument.
20433         * doc/posix-functions/getopt.texi (getopt): Document the bug.
20434         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
20435         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20436         Likewise.
20437
20438         getopt-posix: avoid spurious failure on Solaris
20439         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
20440         an indicator that setting optind=1 is sufficient for reset.
20441
20442         getopt-posix: avoid spurious failure on FreeBSD
20443         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
20444         in POSIX mode, since the m4 test uses it.
20445
20446         gnulib-tool: silence warning on BSD sh
20447         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
20448
20449 2010-04-13  Jim Meyering  <meyering@redhat.com>
20450
20451         doc: users.txt: GNU patch now uses gnulib
20452         * users.txt: Add patch.
20453
20454 2010-04-12  Jim Meyering  <meyering@redhat.com>
20455
20456         maint.mk: generate more concise timing data for syntax-check rules
20457         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
20458         " done" from each line that reports a syntax-check test duration.
20459
20460 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
20461
20462         git-version-gen: use "git update-index..." rather than "git status"
20463         * build-aux/git-version-gen: Use git update-index --refresh, not
20464         "git status".  With some versions of git, "git status" would fail
20465         to update the index and result in an unwarranted "-dirty" suffix.
20466
20467 2010-04-11  Jim Meyering  <meyering@redhat.com>
20468
20469         openat: correct formatting (no semantic change)
20470         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
20471         Suggested by Bruno Haible.
20472
20473 2010-04-11  Bruno Haible  <bruno@clisp.org>
20474
20475         Stricter declaration checking in testdirs.
20476         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20477         If for_tests is true, augment AM_CPPFLAGS to define
20478         GNULIB_STRICT_CHECKING.
20479         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
20480         GNULIB_STRICT_CHECKING is defined, verify that the function is
20481         declared.
20482
20483 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
20484             Bruno Haible  <bruno@clisp.org>
20485
20486         libunistring: Improve configure output.
20487         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
20488         Don't say "consider installing GNU libunistring" when checking again
20489         with libiconv.
20490
20491 2010-04-11  Bruno Haible  <bruno@clisp.org>
20492
20493         libunistring: Correct value of $LTLIBUNISTRING.
20494         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
20495         correct the value of $LTLIBUNISTRING.
20496
20497 2010-04-11  Bruno Haible  <bruno@clisp.org>
20498
20499         havelib: Add static libraries to LIBS in the right order.
20500         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
20501         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
20502
20503 2010-04-11  Bruno Haible  <bruno@clisp.org>
20504
20505         libunistring: Detect libunistring also when it depends on libiconv.
20506         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
20507         the second AC_LIB_HAVE_LINKFLAGS invocation.
20508
20509 2010-04-11  James Youngman  <jay@gnu.org>
20510
20511         close-stream: declare local scalars to be "const"
20512         * lib/close-stream.c (close_stream): Make boolean variables const
20513         to document the fact that we set but do not change them.
20514
20515 2010-04-11  Bruno Haible  <bruno@clisp.org>
20516
20517         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
20518
20519 2010-04-11  Jim Meyering  <meyering@redhat.com>
20520
20521         maint.mk: don't include dist-check.mk
20522         * top/maint.mk: Remove bogus include directive.
20523
20524         maint.mk: improve empty-line-at-EOF check
20525         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
20526         solution, rather than tail+Perl-based one.  The latter would read
20527         a few kilobytes from the end of each file, and did not handle empty
20528         files properly.
20529
20530         maint.mk: print the elapsed time for each syntax-check rule
20531         * top/maint.mk (sc_m_rules_): Save start time in a file.
20532         (sc_z_rules_): New rules: remove temp file and print elapsed time.
20533         (local-check): Interpose the .z rules
20534
20535 2010-04-11  Jim Meyering  <meyering@redhat.com>
20536
20537         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
20538         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
20539         empty file with one that ends in an empty line.
20540
20541 2010-04-10  Bruno Haible  <bruno@clisp.org>
20542
20543         mkdir: Make it work on mingw64.
20544         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
20545         * lib/mkdir.c: Update comment.
20546         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
20547
20548 2010-04-10  Bruno Haible  <bruno@clisp.org>
20549
20550         Don't override improved macro from newer autoconf.
20551         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
20552         autoconf >= 2.62.
20553         Reported by Joel E. Denny <jdenny@clemson.edu>.
20554
20555 2010-04-10  Jim Meyering  <meyering@redhat.com>
20556
20557         maint.mk: new syntax-check rule: prohibit empty lines at end of file
20558         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
20559
20560         maint.mk: correct a diagnostic
20561         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
20562         in diagnostic; now use $prohibit.
20563
20564 2010-04-10  Bruno Haible  <address@hidden>
20565
20566         fchownat: Fix a C++ test error on Solaris 8.
20567         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
20568         the function does not exist.
20569
20570 2010-04-10  Bruno Haible  <bruno@clisp.org>
20571
20572         vasnprintf: Add more tests.
20573         * tests/test-vasnprintf-posix.c: Include <errno.h>.
20574         (test_function): Test converting an invalid wide string.
20575
20576         vasnprintf: Correct handling of unconvertible wide string arguments.
20577         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
20578         VASNPRINTF.
20579         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
20580         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
20581         smaller than the expected maximum need for the directive. Set errno to
20582         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
20583         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
20584         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
20585         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
20586         * modules/vasnprintf (Files): Add m4/printf.m4.
20587         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20588
20589 2010-04-10  Bruno Haible  <bruno@clisp.org>
20590
20591         vasnprintf: Fix crash in %ls directive.
20592         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
20593         string is passed as argument to %ls, with no precision and no width.
20594         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20595
20596 2010-04-10  Bruno Haible  <bruno@clisp.org>
20597
20598         vasnprintf: Fix multiple test failures on mingw.
20599         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
20600         _snprintf, or snwprintf, not _snwprintf.
20601
20602 2010-04-10  Bruno Haible  <bruno@clisp.org>
20603
20604         write: Fix a C++ test error on mingw.
20605         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
20606
20607 2010-04-10  Bruno Haible  <bruno@clisp.org>
20608
20609         vasnprintf test: Reduce code duplication.
20610         * tests/test-vasnprintf.c (test_function): New function, extracted from
20611         test_vasnprintf.
20612         (test_vasnprintf, test_asnprintf): Invoke it.
20613
20614 2010-04-10  Bruno Haible  <bruno@clisp.org>
20615
20616         strnlen: Fix warning in C++ mode on MacOS X.
20617         * lib/string.in.h (strnlen): Use the modern idiom.
20618         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
20619         defining strnlen as a macro already in <config.h>.
20620         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20621         REPLACE_STRNLEN.
20622         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
20623         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20624
20625 2010-04-08  James Youngman  <jay@gnu.org>
20626
20627         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
20628         the example.
20629
20630 2010-04-09  Jim Meyering  <meyering@redhat.com>
20631
20632         maint.mk: print better diagnostic when there is no $(_hv_file)
20633         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
20634         announce that when $(_hv_file) (aka help-version) does not exist.
20635
20636         init.sh: run tr in the "C" locale to avoid multibyte interpretation
20637         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
20638         not try to interpret its random input bytes.  Jarno Rajahalme reported
20639         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
20640         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
20641         (mktempd_): Likewise, just in case.
20642
20643         ftruncate: add two years to projected module removal date: 2012
20644         * m4/ftruncate.m4: Adjust comments.
20645
20646         ftruncate: mark module as obsolete; even MinGW provides it, now
20647         * modules/ftruncate (Status): Obsolete.
20648         (Notice): Say that.
20649         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
20650         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
20651
20652 2010-04-08  Bruno Haible  <bruno@clisp.org>
20653
20654         Fix side effects from tests-related modules.
20655         * modules/dprintf-posix (Comment): New section.
20656         * modules/fprintf-posix (Comment): Likewise.
20657         * modules/obstack-printf-posix (Comment): Likewise.
20658         * modules/printf-posix (Comment): Likewise.
20659         * modules/snprintf-posix (Comment): Likewise.
20660         * modules/sprintf-posix (Comment): Likewise.
20661         * modules/vasnprintf-posix (Comment): Likewise.
20662         * modules/vasprintf-posix (Comment): Likewise.
20663         * modules/vdprintf-posix (Comment): Likewise.
20664         * modules/vfprintf-posix (Comment): Likewise.
20665         * modules/vprintf-posix (Comment): Likewise.
20666         * modules/vsnprintf-posix (Comment): Likewise.
20667         * modules/vsprintf-posix (Comment): Likewise.
20668         * modules/xprintf-posix (Comment): Likewise.
20669         * modules/xvasprintf-posix (Comment): Likewise.
20670         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
20671         * modules/floorf-tests (Depends-on): Likewise.
20672         * modules/round-tests (Depends-on): Likewise.
20673         * modules/roundf-tests (Depends-on): Likewise.
20674         * modules/trunc-tests (Depends-on): Likewise.
20675         * modules/truncf-tests (Depends-on): Likewise.
20676         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
20677         'fprintf-posix' module is not present.
20678         * tests/test-floorf2.c (check): Likewise.
20679         * tests/test-trunc2.c (check): Likewise.
20680         * tests/test-truncf2.c (check): Likewise.
20681         * tests/test-round2.c (equal): Likewise.
20682         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20683
20684 2010-04-07  Karl Berry  <karl@gnu.org>
20685
20686         * config/srclist.txt,
20687         * config/srclistvars.sh,
20688         * config/srclist-update: doc fixes.
20689
20690 2010-04-07  Jim Meyering  <meyering@redhat.com>
20691
20692         maint.mk: add a PATH crosschecking syntax-check rule
20693         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
20694         Useful if you use a test like the one in help-version (coreutils,
20695         diffutils, grep, gzip) that ensures $(VERSION) matches what is
20696         printed by prog --version.
20697
20698 2010-04-06  Bruno Haible  <bruno@clisp.org>
20699
20700         Fix link error on mingw.
20701         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
20702         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
20703
20704 2010-04-06  Bruno Haible  <bruno@clisp.org>
20705
20706         Assume rmdir exists.
20707         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
20708
20709 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
20710
20711         doc: update users.txt
20712         * users.txt: Add gcal.
20713
20714 2010-04-06  Jim Meyering  <meyering@redhat.com>
20715
20716         init.sh: simply unset TMPDIR rather than risking env -i
20717         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
20718         although it probably works fine on all Unix-based systems, some
20719         systems (Cygwin?) cannot tolerate a totally cleared environment.
20720         Suggestion from Eric Blake.
20721
20722 2010-04-06  Jim Meyering  <meyering@redhat.com>
20723
20724         init.sh: portability fix: use env's POSIX-specified -i option not -u
20725         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
20726         than unportable env -u.  Solaris 5.11's env lacks support for -u.
20727
20728 2010-04-05  Bruno Haible  <bruno@clisp.org>
20729
20730         btowc: Work around Cygwin 1.7.2 bug.
20731         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
20732         does not map NUL to 0.
20733         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
20734
20735 2010-04-05  Bruno Haible  <bruno@clisp.org>
20736
20737         Make the multithread modules work on Cygwin 1.7.2.
20738         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
20739         imported symbols can be declared weak, so that it returns "no" on
20740         Cygwin 1.7.2.
20741
20742 2010-04-05  Bruno Haible  <bruno@clisp.org>
20743
20744         Use the module 'strncat'.
20745         * modules/unistr/u8-strncat (Depends-on): Add strncat.
20746
20747         Tests for module 'strncat'.
20748         * modules/strncat-tests: New file.
20749         * tests/test-strncat.c: New file.
20750
20751         New module 'strncat'.
20752         * lib/string.in.h (strncat): New declaration.
20753         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
20754         * m4/strncat.m4: New file, based on m4/memchr.m4.
20755         * modules/strncat: New file.
20756         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
20757         is declared.
20758         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
20759         REPLACE_STRNCAT.
20760         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
20761         REPLACE_STRNCAT.
20762         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
20763         module.
20764         * tests/test-string-c++.cc: Check signature of strncat.
20765
20766 2010-04-05  Jim Meyering  <meyering@redhat.com>
20767
20768         xstrtoumax-tests: convert to use init.sh
20769         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
20770         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20771         Use Exit, not exit.
20772         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20773
20774         xstrtoimax-tests: convert to use init.sh
20775         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
20776         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20777         Use Exit, not exit.
20778         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20779
20780 2010-04-05  Bruno Haible  <bruno@clisp.org>
20781
20782         sys_socket: Avoid #define replacements in C++ mode.
20783         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
20784         warning to the function if possible, rather than #defining the symbol
20785         to a dysfunctional alias.
20786
20787 2010-04-05  Bruno Haible  <bruno@clisp.org>
20788
20789         fseeko: Fix C++ test error on mingw.
20790         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
20791         gl_FUNC_FSEEKO.
20792         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
20793         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
20794         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
20795         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
20796
20797 2010-04-05  Bruno Haible  <bruno@clisp.org>
20798
20799         duplocale: Improve test output.
20800         * tests/test-duplocale.c (main): Print reason for skipped test.
20801
20802 2010-04-05  Bruno Haible  <bruno@clisp.org>
20803
20804         Assume rmdir exists.
20805         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
20806         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
20807
20808 2010-04-05  Bruno Haible  <bruno@clisp.org>
20809
20810         Fix link error on Solaris 8 with cc.
20811         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
20812
20813 2010-04-05  Bruno Haible  <bruno@clisp.org>
20814
20815         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
20816         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
20817
20818 2010-04-05  Bruno Haible  <bruno@clisp.org>
20819
20820         vasprintf: Update documentation.
20821         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
20822
20823 2010-04-05  Bruno Haible  <bruno@clisp.org>
20824
20825         ptsname: Improve test.
20826         * tests/test-ptsname.c (main): Also try the various master names of BSD
20827         systems.
20828
20829 2010-04-05  Bruno Haible  <bruno@clisp.org>
20830
20831         memchr: Avoid a possible C++ test error.
20832         * lib/string.in.h (memchr): Provide declaration if function is missing.
20833         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
20834         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
20835         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
20836         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
20837
20838 2010-04-05  Bruno Haible  <bruno@clisp.org>
20839
20840         strtok_r: Improve idiom.
20841         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
20842         AC_LIBOBJ is used.
20843
20844 2010-04-05  Bruno Haible  <bruno@clisp.org>
20845
20846         strdup: Improve idiom.
20847         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
20848         AC_LIBOBJ is used.
20849         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
20850         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
20851         when AC_LIBOBJ is used.
20852
20853 2010-04-05  Bruno Haible  <bruno@clisp.org>
20854
20855         mbsinit, mbrtowc, wcrtomb: Improve idioms.
20856         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
20857         don't set REPLACE_MBSINIT to 1.
20858         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
20859         don't set REPLACE_MBRTOWC to 1.
20860         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
20861         exist, don't set REPLACE_MBSRTOWCS to 1.
20862         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
20863         exist, don't set REPLACE_MBSNRTOWCS to 1.
20864         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
20865         don't set REPLACE_WCRTOMB to 1.
20866         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
20867         exist, don't set REPLACE_WCSRTOMBS to 1.
20868         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
20869         exist, don't set REPLACE_WCSNRTOMBS to 1.
20870
20871 2010-04-05  Bruno Haible  <bruno@clisp.org>
20872
20873         ldexpl: Improve idiom.
20874         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
20875         make sure to set HAVE_DECL_LDEXPL to 0.
20876
20877 2010-04-05  Jim Meyering  <meyering@redhat.com>
20878
20879         xstrtol-tests: convert to use init.sh
20880         * modules/xstrtol-tests (Files): Add tests/init.sh.
20881         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20882         Use Exit, not exit.
20883         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20884
20885         atexit-tests: convert to use init.sh
20886         * modules/atexit-tests (Files): Add tests/init.sh.
20887         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20888         Use Exit, not exit.
20889         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20890
20891         init.sh: fix typo
20892         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
20893
20894         init.sh: make it easier for a test script to write to the tty, ...
20895         when using automake's parallel-tests mode.
20896         * tests/init.sh (stderr_fileno_): Define overridable variable.
20897         (warn_): New function, to use it.
20898         (fail_, skip_, framework_failure_): Use warn_.
20899
20900 2010-04-04  Bruno Haible  <bruno@clisp.org>
20901
20902         btowc: Avoid warning.
20903         * lib/btowc.c: Include <stdlib.h>.
20904         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
20905
20906 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
20907             Bruno Haible  <bruno@clisp.org>
20908
20909         wchar: Port to NetBSD 1.5.
20910         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
20911         * lib/wctype.in.h (WEOF): Likewise.
20912
20913 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
20914             Bruno Haible  <bruno@clisp.org>
20915
20916         Port extended stdio to NetBSD 1.5.
20917         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
20918         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
20919         older.
20920
20921 2010-04-04  Bruno Haible  <bruno@clisp.org>
20922
20923         string: Remove unused substitution.
20924         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
20925         HAVE_DECL_STRERROR.
20926         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
20927
20928 2010-04-04  Bruno Haible  <bruno@clisp.org>
20929
20930         strtod: Avoid a possible C++ test error.
20931         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
20932         set REPLACE_STRTOD.
20933
20934 2010-04-04  Bruno Haible  <bruno@clisp.org>
20935
20936         strerror: Update documentation.
20937         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
20938
20939 2010-04-04  Bruno Haible  <bruno@clisp.org>
20940
20941         stdio: Fix some C++ test errors on Solaris 8 with GCC.
20942         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
20943         _GL_CXXALIAS_SYS_CAST.
20944
20945 2010-04-04  Bruno Haible  <bruno@clisp.org>
20946
20947         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
20948         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
20949         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
20950         REPLACE_FREXPL to 1.
20951         * doc/posix-functions/frexpl.texi: Update documentation.
20952
20953 2010-04-04  Bruno Haible  <bruno@clisp.org>
20954
20955         math: Fix some C++ test errors on Solaris 8 and Cygwin.
20956         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
20957
20958 2010-04-04  Bruno Haible  <bruno@clisp.org>
20959
20960         Implement nanosleep for native Windows.
20961         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
20962
20963 2010-04-04  Bruno Haible  <bruno@clisp.org>
20964
20965         math: Fix some C++ test errors on Solaris 8.
20966         * lib/math.in.h (truncf, trunc): Use simpler idiom.
20967
20968 2010-04-04  Bruno Haible  <bruno@clisp.org>
20969
20970         math: Fix some C++ test errors on Cygwin.
20971         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
20972         truncl): Provide declaration if the system does not have it.
20973         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
20974         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
20975         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
20976         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
20977         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
20978         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
20979         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
20980         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
20981         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
20982         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
20983         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
20984         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
20985         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
20986         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
20987         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
20988         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
20989         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
20990         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
20991         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
20992         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
20993         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
20994         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
20995
20996 2010-04-04  Bruno Haible  <bruno@clisp.org>
20997
20998         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
20999         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
21000         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
21001         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
21002         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
21003         * m4/isinf.m4 (gl_ISINF): Likewise.
21004         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21005
21006 2010-04-04  Bruno Haible  <bruno@clisp.org>
21007
21008         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
21009         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21010
21011 2010-04-04  Bruno Haible  <bruno@clisp.org>
21012
21013         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
21014         * modules/tmpfile (configure.ac): Update.
21015
21016         tmpfile: Fix C++ test error on mingw.
21017         * lib/stdio.in.h (tmpfile): New declaration.
21018         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
21019         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
21020         * modules/tmpfile (Depends-on): Add stdio.
21021         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
21022         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
21023         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
21024         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
21025         REPLACE_TMPFILE.
21026         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
21027
21028 2010-04-04  Bruno Haible  <bruno@clisp.org>
21029
21030         ioctl: Fix C++ test error on mingw.
21031         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
21032         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
21033         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
21034
21035 2010-04-03  Bruno Haible  <bruno@clisp.org>
21036
21037         wcwidth: Fix C++ test error on mingw.
21038         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
21039         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
21040         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
21041
21042 2010-04-03  Bruno Haible  <bruno@clisp.org>
21043
21044         nanosleep: Fix C++ test error on mingw.
21045         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
21046         * lib/time.in.h (nanosleep): Use modern idiom.
21047         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
21048         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
21049         REPLACE_NANOSLEEP to 1.
21050         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
21051         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
21052
21053 2010-04-03  Bruno Haible  <bruno@clisp.org>
21054
21055         strptime: Fix C++ test error on mingw.
21056         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
21057         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
21058         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
21059         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
21060         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
21061         not REPLACE_STRPTIME.
21062         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
21063         REPLACE_STRPTIME.
21064
21065 2010-04-03  Bruno Haible  <bruno@clisp.org>
21066
21067         timegm: Fix C++ test error on mingw.
21068         * lib/time.in.h (timegm): Use modern idiom.
21069         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
21070         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
21071         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
21072         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
21073
21074 2010-04-03  Bruno Haible  <bruno@clisp.org>
21075
21076         timegm: Assume declaration if function exists.
21077         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
21078         if it exists. Don't clobber ac_cv_func_timegm.
21079
21080 2010-04-03  Bruno Haible  <bruno@clisp.org>
21081
21082         time_r: Fix C++ test error on mingw.
21083         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
21084         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
21085         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
21086         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
21087         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
21088
21089 2010-04-03  Bruno Haible  <bruno@clisp.org>
21090
21091         time_r: Minor updates.
21092         * modules/time_r (Description): Mention the provided functions.
21093         * lib/time_r.c: Don't include <string.h>.
21094         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
21095         * doc/posix-functions/localtime_r.texi: Likewise.
21096
21097 2010-04-03  Bruno Haible  <bruno@clisp.org>
21098
21099         time: Fix regression introduced on 2010-03-08.
21100         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
21101         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
21102
21103 2010-04-03  Jim Meyering  <meyering@redhat.com>
21104
21105         maint.mk: don't silently disable project-specific syntax-check rules
21106         * top/maint.mk (_prohibit_regexp): Define, to help people realize
21107         that they need to convert their project-specific syntax-check rules
21108         to use the new _sc_search_regexp.
21109
21110 2010-04-03  Bruno Haible  <bruno@clisp.org>
21111
21112         fchdir: Fix regression introduced on 2010-03-08.
21113         * lib/unistd.in.h (fchdir): Fix declaration.
21114         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
21115         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
21116         REPLACE_FCHDIR.
21117         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
21118         REPLACE_FCHDIR.
21119
21120 2010-04-03  Bruno Haible  <bruno@clisp.org>
21121
21122         getpagesize: Fix C++ test error on mingw.
21123         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
21124         system does not declare the function.
21125         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
21126         declared.
21127         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21128         HAVE_DECL_GETPAGESIZE.
21129         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
21130
21131 2010-04-03  Bruno Haible  <bruno@clisp.org>
21132
21133         stdio: Make C++ tests work on mingw.
21134         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
21135         does not declare the function.
21136
21137 2010-04-03  Bruno Haible  <bruno@clisp.org>
21138
21139         ftello: Fix C++ test error on mingw.
21140         * lib/stdio.in.h (ftello): Use modern idiom.
21141         * lib/ftello.c (ftello): Renamed from rpl_ftello.
21142         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
21143         is missing and that it needs to be replaced.
21144         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
21145         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
21146         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
21147
21148 2010-04-03  Bruno Haible  <bruno@clisp.org>
21149
21150         fseeko: Fix C++ test error on mingw.
21151         * lib/stdio.in.h (fseeko): Use modern idiom.
21152         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
21153         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
21154         is missing and that it needs to be replaced.
21155         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
21156         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
21157         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
21158
21159 2010-04-03  Bruno Haible  <bruno@clisp.org>
21160
21161         mkstemp: Fix C++ test error on mingw.
21162         * lib/stdlib.in.h (mkstemp): Use modern idiom.
21163         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
21164         function is missing and that it needs to be replaced.
21165         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
21166         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
21167
21168 2010-04-03  Bruno Haible  <bruno@clisp.org>
21169
21170         stpncpy: Fix C++ test error on mingw.
21171         * lib/string.in.h (stpncpy): Use modern idiom.
21172         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
21173         function is missing and that it needs to be replaced.
21174         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21175         REPLACE_STPNCPY.
21176         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
21177
21178 2010-04-03  Bruno Haible  <bruno@clisp.org>
21179
21180         sys_stat: Fix C++ test error on mingw.
21181         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
21182         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
21183
21184 2010-04-03  Bruno Haible  <bruno@clisp.org>
21185
21186         pty: Update doc.
21187         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
21188
21189 2010-04-03  Bruno Haible  <bruno@clisp.org>
21190
21191         unistd: Fix C++ test error on mingw.
21192         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
21193
21194 2010-04-03  Bruno Haible  <bruno@clisp.org>
21195
21196         Update doc regarding mingw.
21197         * doc/glibc-functions/openpty.texi: Update regarding mingw.
21198         * doc/glibc-functions/login_tty.texi: Likewise.
21199         * doc/glibc-functions/forkpty.texi: Likewise.
21200
21201 2010-04-03  Bruno Haible  <bruno@clisp.org>
21202
21203         stdlib: Avoid compilation failure of c-strtold on mingw.
21204         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
21205
21206 2010-04-03  Bruno Haible  <bruno@clisp.org>
21207
21208         locale: Make C++ tests work on Cygwin and mingw.
21209         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
21210         cannot provide the function.
21211         Reported by Simon Josefsson.
21212
21213 2010-04-03  Bruno Haible  <bruno@clisp.org>
21214
21215         localename: Port to MacOS X 10.6.
21216         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
21217         memory layout of the locales in MacOS X 10.6 as well.
21218         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
21219
21220 2010-04-02  Bruno Haible  <bruno@clisp.org>
21221
21222         gnulib-tool: Ensure that long-running tests are executed last.
21223         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
21224         running tests after the one for the other tests.
21225
21226 2010-04-02  Bruno Haible  <bruno@clisp.org>
21227
21228         gnulib-tool: Ensure the tests in the main directory are executed first.
21229         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
21230         start with the current directory.
21231
21232 2010-04-02  Bruno Haible  <bruno@clisp.org>
21233
21234         Tests for module 'havelib', moved here from GNU gettext.
21235         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
21236         modifications.
21237         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
21238         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
21239         with modifications.
21240         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
21241         modifications.
21242         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
21243         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
21244         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
21245         with modifications.
21246         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
21247         with modifications.
21248         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
21249         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
21250         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
21251         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
21252         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
21253         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
21254         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
21255         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
21256         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
21257         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
21258         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
21259         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
21260         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
21261         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
21262         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
21263         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
21264         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
21265         with modifications.
21266         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
21267         with modifications.
21268         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
21269         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
21270         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
21271         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
21272         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
21273         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
21274         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
21275         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
21276         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
21277         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
21278         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
21279         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
21280         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
21281         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
21282         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
21283         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
21284         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
21285         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
21286         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
21287         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
21288         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
21289         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
21290         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
21291         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
21292         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
21293         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
21294         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
21295         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
21296         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
21297         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
21298         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
21299         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
21300         * tests/havelib/rpathx/rpathx.c: New file, from
21301         gettext/autoconf-lib-link.
21302         * tests/havelib/rpathx/Makefile.am: New file, from
21303         gettext/autoconf-lib-link.
21304         * tests/havelib/rpathx/configure.ac: New file, from
21305         gettext/autoconf-lib-link with modifications.
21306         * tests/havelib/rpathy/rpathy.c: New file, from
21307         gettext/autoconf-lib-link.
21308         * tests/havelib/rpathy/Makefile.am: New file, from
21309         gettext/autoconf-lib-link.
21310         * tests/havelib/rpathy/configure.ac: New file, from
21311         gettext/autoconf-lib-link with modifications.
21312         * tests/havelib/rpathz/rpathz.c: New file, from
21313         gettext/autoconf-lib-link.
21314         * tests/havelib/rpathz/Makefile.am: New file, from
21315         gettext/autoconf-lib-link.
21316         * tests/havelib/rpathz/configure.ac: New file, from
21317         gettext/autoconf-lib-link with modifications.
21318         * tests/havelib/rpathlx/usex.c: New file, from
21319         gettext/autoconf-lib-link.
21320         * tests/havelib/rpathlx/Makefile.am: New file, from
21321         gettext/autoconf-lib-link.
21322         * tests/havelib/rpathlx/configure.ac: New file, from
21323         gettext/autoconf-lib-link with modifications.
21324         * tests/havelib/rpathly/usey.c: New file, from
21325         gettext/autoconf-lib-link.
21326         * tests/havelib/rpathly/Makefile.am: New file, from
21327         gettext/autoconf-lib-link.
21328         * tests/havelib/rpathly/configure.ac: New file, from
21329         gettext/autoconf-lib-link with modifications.
21330         * tests/havelib/rpathlz/usez.c: New file, from
21331         gettext/autoconf-lib-link.
21332         * tests/havelib/rpathlz/Makefile.am: New file, from
21333         gettext/autoconf-lib-link.
21334         * tests/havelib/rpathlz/configure.ac: New file, from
21335         gettext/autoconf-lib-link with modifications.
21336         * tests/havelib/rpathlyx/usey.c: New file, from
21337         gettext/autoconf-lib-link.
21338         * tests/havelib/rpathlyx/Makefile.am: New file, from
21339         gettext/autoconf-lib-link.
21340         * tests/havelib/rpathlyx/configure.ac: New file, from
21341         gettext/autoconf-lib-link with modifications.
21342         * tests/havelib/rpathlzyx/usez.c: New file, from
21343         gettext/autoconf-lib-link.
21344         * tests/havelib/rpathlzyx/Makefile.am: New file, from
21345         gettext/autoconf-lib-link.
21346         * tests/havelib/rpathlzyx/configure.ac: New file, from
21347         gettext/autoconf-lib-link with modifications.
21348         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
21349         with modifications.
21350
21351 2010-04-02  Bruno Haible  <bruno@clisp.org>
21352
21353         gnulib-tool: Create distributed built sources also for the tests.
21354         * gnulib-tool (func_create_testdir): Also generate distributed built
21355         sources in the tests directory.
21356
21357 2010-04-02  Bruno Haible  <bruno@clisp.org>
21358
21359         gnulib-tool: Obey user's environment variables.
21360         * gnulib-tool (func_create_testdir): When creating built sources,
21361         respect the environment variables for autoconf, automake, etc. given by
21362         the user.
21363
21364 2010-04-02  Bruno Haible  <bruno@clisp.org>
21365
21366         gnulib-tool: Provide the value of --m4-base to modules.
21367         * gnulib-tool (func_import, func_create_testdir): Emit a definition
21368         of gl_m4_base.
21369
21370 2010-04-02  Eric Blake  <eblake@redhat.com>
21371
21372         maint.mk: fix some fallout
21373         * NEWS: Document the incompatible change, and its effect on cfg.mk.
21374         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
21375
21376 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
21377
21378         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
21379         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
21380         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
21381         (sc_cast_of_x_alloc_return_value): Likewise.
21382         (sc_cast_of_alloca_return_value): Likewise.
21383         (sc_space_tab): Likewise.
21384         (sc_prohibit_atoi_atof): Likewise.
21385         (sc_prohibit_magic_number_exit): Likewise.
21386         (sc_error_exit_success): Likewise.
21387         (sc_file_system): Likewise.
21388         (sc_prohibit_have_config_h): Likewise.
21389         (sc_require_config_h): Likewise.
21390         (sc_prohibit_HAVE_MBRTOWC): Likewise.
21391         (sc_obsolete_symbols): Likewise.
21392         (sc_changelog): Likewise.
21393         (sc_program_name): Likewise.
21394         (sc_the_the): Likewise.
21395         (sc_trailing_blank): Likewise.
21396         (sc_two_space_separator_in_usage): Likewise.
21397         (sc_useless_cpp_parens): Likewise.
21398         (sc_GPL_version): Likewise.
21399         (sc_GFDL_version): Likewise.
21400         (sc_texinfo_acronym): Likewise.
21401         (sc_prohibit_cvs_keyword): Likewise.
21402         (sc_prohibit_stat_st_blocks): Likewise.
21403         (sc_prohibit_S_IS_definition): Likewise.
21404         (sc_redundant_const): Likewise.
21405         (sc_makefile_TAB_only_indentation): Likewise.
21406         (sc_m4_quote_check): Likewise.
21407         (sc_makefile_path_separator_check): Likewise.
21408         (sc_copyright_check): Likewise.
21409         (sc_Wundef_boolean): Likewise.
21410         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
21411
21412         maint.mk: match 0 or more whitespace-before-function-call '('
21413         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
21414         that have zero or two-and-more spaces between the function name
21415         and the open parenthesis.
21416         (sc_error_message_warn_fatal): Likewise.
21417         (sc_error_message_uppercase): Likewise.
21418         (sc_error_message_period): Likewise.
21419
21420 2010-03-31  Eric Blake  <eblake@redhat.com>
21421
21422         maint.mk: check for [ as well as test
21423         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
21424         Based on a libvirt report by Matthias Bolte.
21425
21426         gnumakefile: don't squelch _version output
21427         * top/GNUmakefile (_version): Create one-shot dependency rather
21428         than using $(shell) when version must be regenerated.
21429         (_autoreconf): Run verbosely, by default.
21430
21431         sys_time: avoid compiler warnings
21432         * lib/sys_time.in.h (includes): Ensure gcc pragma is
21433         unconditional, fixing regression from 2010-03-29.
21434         Reported by Simon Josefsson.
21435
21436 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
21437
21438         maint.mk: s/_header_without_use/_sc_header_without_use/
21439         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
21440         (sc_prohibit_assert_without_use): Use the new name.
21441         (sc_prohibit_close_stream_without_use): Likewise.
21442         (sc_prohibit_getopt_without_use): Likewise.
21443         (sc_prohibit_quotearg_without_use): Likewise.
21444         (sc_prohibit_quote_without_use): Likewise.
21445         (sc_prohibit_long_options_without_use): Likewise.
21446         (sc_prohibit_inttostr_without_use): Likewise.
21447         (sc_prohibit_ignore_value_without_use): Likewise.
21448         (sc_prohibit_error_without_use): Likewise.
21449         (sc_prohibit_xalloc_without_use): Likewise.
21450         (sc_prohibit_hash_without_use): Likewise.
21451         (sc_prohibit_hash_pjw_without_use): Likewise.
21452         (sc_prohibit_safe_read_without_use): Likewise.
21453         (sc_prohibit_argmatch_without_use): Likewise.
21454         (sc_prohibit_canonicalize_without_use): Likewise.
21455         (sc_prohibit_root_dev_ino_without_use): Likewise.
21456         (sc_prohibit_openat_without_use): Likewise.
21457         (sc_prohibit_c_ctype_without_use): Likewise.
21458         (sc_prohibit_signal_without_use): Likewise.
21459         (sc_prohibit_intprops_without_use): Likewise.
21460
21461 2010-03-30  Eric Blake  <eblake@redhat.com>
21462
21463         maint: improve module indicators
21464         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
21465         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
21466         columns, and avoid extra macro expansion.
21467
21468         fdopendir: work around FreeBSD bug
21469         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
21470         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
21471         * modules/dirent (Makefile.am): Substitute it.
21472         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
21473         declaration.
21474         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
21475         fix.
21476         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21477
21478 2010-03-29  Bruno Haible  <bruno@clisp.org>
21479
21480         Emit #pragma system_header after the inclusion guard, not before.
21481         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
21482         guard that spans the entire file, not before. This enables an
21483         optimization in GCC's preprocessor.
21484         * lib/ctype.in.h: Likewise.
21485         * lib/dirent.in.h: Likewise.
21486         * lib/errno.in.h: Likewise.
21487         * lib/float.in.h: Likewise.
21488         * lib/getopt.in.h: Likewise.
21489         * lib/iconv.in.h: Likewise.
21490         * lib/langinfo.in.h: Likewise.
21491         * lib/locale.in.h: Likewise.
21492         * lib/math.in.h: Likewise.
21493         * lib/netdb.in.h: Likewise.
21494         * lib/netinet_in.in.h: Likewise.
21495         * lib/pty.in.h: Likewise.
21496         * lib/sched.in.h: Likewise.
21497         * lib/se-selinux.in.h: Likewise.
21498         * lib/search.in.h: Likewise.
21499         * lib/spawn.in.h: Likewise.
21500         * lib/stdarg.in.h: Likewise.
21501         * lib/stdint.in.h: Likewise.
21502         * lib/string.in.h: Likewise.
21503         * lib/strings.in.h: Likewise.
21504         * lib/sys_file.in.h: Likewise.
21505         * lib/sys_ioctl.in.h: Likewise.
21506         * lib/sys_time.in.h: Likewise.
21507         * lib/sys_times.in.h: Likewise.
21508         * lib/sys_utsname.in.h: Likewise.
21509         * lib/sys_wait.in.h: Likewise.
21510         * lib/sysexits.in.h: Likewise.
21511         * lib/wctype.in.h: Likewise.
21512
21513 2010-03-28  James Youngman  <jay@gnu.org>
21514
21515         save-cwd: don't leak a file descriptor when the caller execs.
21516         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
21517         saved file descriptor.
21518         * modules/save-cwd (Depends-on): Depend on cloexec.
21519
21520 2010-03-29  Bruno Haible  <bruno@clisp.org>
21521
21522         Remove vestiges of fts-lgpl module.
21523         * lib/fts_.h: Assume GNULIB_FTS is 1.
21524         * lib/fts.c: Likewise.
21525         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
21526
21527 2010-03-28  Bruno Haible  <bruno@clisp.org>
21528
21529         Fix definition of tests witness macro.
21530         * gnulib-tool (func_import): Fix definition of witness macro.
21531
21532 2010-03-28  Bruno Haible  <bruno@clisp.org>
21533
21534         Fix ioctl's protoype on glibc systems.
21535         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
21536         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
21537         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
21538         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
21539         signature. If not, arrange to replace the ioctl function.
21540         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
21541         REPLACE_IOCTL.
21542         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
21543         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
21544         Reported by Ludovic Courtès <ludo@gnu.org>.
21545
21546 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
21547
21548         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
21549         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
21550         made it so grep -r --include=GLOB* ... did not work.
21551
21552 2010-03-26  Jim Meyering  <meyering@redhat.com>
21553             Eric Blake  <eblake@redhat.com>
21554
21555         maint.mk: prohibit use of test's -o and -a operators
21556         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
21557
21558 2010-03-28  Bruno Haible  <bruno@clisp.org>
21559
21560         Remove unused GNULIB_XYZ macro definitions.
21561         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
21562         invocation.
21563
21564 2010-03-28  Bruno Haible  <bruno@clisp.org>
21565
21566         Mark privileged tests modules.
21567         * modules/idpriv-drop-tests (Status): New section.
21568         * modules/idpriv-droptemp-tests (Status): New section.
21569
21570 2010-03-28  Bruno Haible  <bruno@clisp.org>
21571
21572         Split C++ tests into separate tests modules.
21573         * modules/dirent-c++-tests: New file, extracted from
21574         modules/dirent-tests.
21575         * modules/dirent-tests: Depend on it.
21576         * modules/fcntl-h-c++-tests: New file, extracted from
21577         modules/fcntl-h-tests.
21578         * modules/fcntl-h-tests: Depend on it.
21579         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
21580         * modules/glob-tests: Depend on it.
21581         * modules/iconv-h-c++-tests: New file, extracted from
21582         modules/iconv-h-tests.
21583         * modules/iconv-h-tests: Depend on it.
21584         * modules/langinfo-c++-tests: New file, extracted from
21585         modules/langinfo-tests.
21586         * modules/langinfo-tests: Depend on it.
21587         * modules/locale-c++-tests: New file, extracted from
21588         modules/locale-tests.
21589         * modules/locale-tests: Depend on it.
21590         * modules/math-c++-tests: New file, extracted from modules/math-tests.
21591         * modules/math-tests: Depend on it.
21592         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
21593         * modules/pty-tests: Depend on it.
21594         * modules/search-c++-tests: New file, extracted from
21595         modules/search-tests.
21596         * modules/search-tests: Depend on it.
21597         * modules/signal-c++-tests: New file, extracted from
21598         modules/signal-tests.
21599         * modules/signal-tests: Depend on it.
21600         * modules/spawn-c++-tests: New file, extracted from
21601         modules/spawn-tests.
21602         * modules/spawn-tests: Depend on it.
21603         * modules/stdio-c++-tests: New file, extracted from
21604         modules/stdio-tests.
21605         * modules/stdio-tests: Depend on it.
21606         * modules/stdlib-c++-tests: New file, extracted from
21607         modules/stdlib-tests.
21608         * modules/stdlib-tests: Depend on it.
21609         * modules/string-c++-tests: New file, extracted from
21610         modules/string-tests.
21611         * modules/string-tests: Depend on it.
21612         * modules/sys_ioctl-c++-tests: New file, extracted from
21613         modules/sys_ioctl-tests.
21614         * modules/sys_ioctl-tests: Depend on it.
21615         * modules/sys_select-c++-tests: New file, extracted from
21616         modules/sys_select-tests.
21617         * modules/sys_select-tests: Depend on it.
21618         * modules/sys_socket-c++-tests: New file, extracted from
21619         modules/sys_socket-tests.
21620         * modules/sys_socket-tests: Depend on it.
21621         * modules/sys_stat-c++-tests: New file, extracted from
21622         modules/sys_stat-tests.
21623         * modules/sys_stat-tests: Depend on it.
21624         * modules/sys_time-c++-tests: New file, extracted from
21625         modules/sys_time-tests.
21626         * modules/sys_time-tests: Depend on it.
21627         * modules/time-c++-tests: New file, extracted from modules/time-tests.
21628         * modules/time-tests: Depend on it.
21629         * modules/unistd-c++-tests: New file, extracted from
21630         modules/unistd-tests.
21631         * modules/unistd-tests: Depend on it.
21632         * modules/wchar-c++-tests: New file, extracted from
21633         modules/wchar-tests.
21634         * modules/wchar-tests: Depend on it.
21635         * modules/wctype-c++-tests: New file, extracted from
21636         modules/wctype-tests.
21637         * modules/wctype-tests: Depend on it.
21638         Reported by Simon Josefsson.
21639
21640 2010-03-28  Bruno Haible  <bruno@clisp.org>
21641
21642         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
21643         * gnulib-tool (func_exists_module): New function, extracted from
21644         func_verify_module.
21645         (func_verify_module): Use it.
21646         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
21647         'foo' only if 'foo' exists.
21648         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
21649         module.
21650
21651 2010-03-28  Bruno Haible  <bruno@clisp.org>
21652
21653         gnulib-tool: Add support for special categories of tests.
21654         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
21655         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
21656         (func_usage): Document them.
21657         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
21658         inc_unportable_tests, inc_all_tests): New variables.
21659         (func_acceptable): Consider these variables.
21660         (func_modules_transitive_closure): Make it work when the 'Status' field
21661         consists of multiple words.
21662         (func_import): Store and restore the values of inc_cxx_tests,
21663         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
21664         inc_all_tests in gnulib-comp.m4.
21665         (func_create_testdir): Set inc_all_tests to true.
21666         * doc/gnulib.texi (Extra tests modules): New section.
21667         Suggested by Jim Meyering.
21668
21669 2010-03-28  Bruno Haible  <bruno@clisp.org>
21670
21671         ansi-c++-opt: Allow turning off the C++ build by default.
21672         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
21673         gl_CXX_CHOICE_DEFAULT_NO is defined.
21674         Requested by Eric Blake.
21675
21676 2010-03-28  Bruno Haible  <bruno@clisp.org>
21677
21678         unistd: Avoid #define replacements in C++ mode.
21679         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
21680         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
21681         setsockopt, shutdown, select): In C++, attach a warning to the function
21682         if possible, rather than #defining the symbol to a dysfunctional alias.
21683         Reported by John W. Eaton <jwe@gnu.org>.
21684
21685 2010-03-28  Bruno Haible  <bruno@clisp.org>
21686
21687         Fix link errors on mingw.
21688         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
21689         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
21690         $(LIBSOCKET).
21691         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
21692         $(LIBSOCKET).
21693
21694 2010-03-28  Bruno Haible  <bruno@clisp.org>
21695             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21696
21697         lib-ignore: Determine different options for different compilers.
21698         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
21699         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
21700         Add comments.
21701         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
21702         * NEWS: Mention the change.
21703
21704 2010-03-27  Bruno Haible  <bruno@clisp.org>
21705
21706         Remove unused GNULIB_XYZ macro definitions.
21707         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
21708         * modules/fseek (configure.ac): Likewise.
21709         * modules/ioctl (configure.ac): Likewise.
21710         * modules/open (configure.ac): Likewise.
21711         * modules/stdlib-safer (configure.ac): Likewise.
21712
21713 2010-03-27  Bruno Haible  <bruno@clisp.org>
21714
21715         Add a remark about certain modules.
21716         * modules/malloc (Comment): New section.
21717         * modules/realloc (Comment): Likewise.
21718         * modules/sigpipe (Comment): Likewise.
21719
21720 2010-03-27  Bruno Haible  <bruno@clisp.org>
21721
21722         Resolve conflict between the two kinds of module indicators.
21723         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
21724         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
21725         * modules/canonicalize (configure.ac): Invoke
21726         gl_MODULE_INDICATOR_FOR_TESTS.
21727         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
21728         GNULIB_XYZ.
21729         * tests/test-dirent-c++.cc: Likewise.
21730         * tests/test-dirent-safer.c: Likewise.
21731         * tests/test-dup2.c: Likewise.
21732         * tests/test-fchdir.c: Likewise.
21733         * tests/test-fcntl-h-c++.cc: Likewise.
21734         * tests/test-getopt.c: Likewise.
21735         * tests/test-getopt.h: Likewise.
21736         * tests/test-langinfo-c++.cc: Likewise.
21737         * tests/test-locale-c++.cc: Likewise.
21738         * tests/test-math-c++.cc: Likewise.
21739         * tests/test-pty-c++.cc: Likewise.
21740         * tests/test-search-c++.cc: Likewise.
21741         * tests/test-signal-c++.cc: Likewise.
21742         * tests/test-spawn-c++.cc: Likewise.
21743         * tests/test-stdio-c++.cc: Likewise.
21744         * tests/test-stdlib-c++.cc: Likewise.
21745         * tests/test-string-c++.cc: Likewise.
21746         * tests/test-sys_ioctl-c++.cc: Likewise.
21747         * tests/test-sys_select-c++.cc: Likewise.
21748         * tests/test-sys_socket-c++.cc: Likewise.
21749         * tests/test-sys_stat-c++.cc: Likewise.
21750         * tests/test-sys_time-c++.cc: Likewise.
21751         * tests/test-time-c++.cc: Likewise.
21752         * tests/test-unistd-c++.cc: Likewise.
21753         * tests/test-wchar-c++.cc: Likewise.
21754         * tests/uninorm/test-u8-nfc.c: Likewise.
21755         * tests/uninorm/test-u8-nfd.c: Likewise.
21756         * tests/uninorm/test-u8-nfkc.c: Likewise.
21757         * tests/uninorm/test-u8-nfkd.c: Likewise.
21758         * tests/uninorm/test-u16-nfc.c: Likewise.
21759         * tests/uninorm/test-u16-nfd.c: Likewise.
21760         * tests/uninorm/test-u16-nfkc.c: Likewise.
21761         * tests/uninorm/test-u16-nfkd.c: Likewise.
21762         * tests/uninorm/test-u32-nfc.c: Likewise.
21763         * tests/uninorm/test-u32-nfc-big.c: Likewise.
21764         * tests/uninorm/test-u32-nfd.c: Likewise.
21765         * tests/uninorm/test-u32-nfd-big.c: Likewise.
21766         * tests/uninorm/test-u32-nfkc.c: Likewise.
21767         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
21768         * tests/uninorm/test-u32-nfkd.c: Likewise.
21769         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
21770         * tests/uninorm/test-u32-normalize-big.c: Likewise.
21771
21772 2010-03-27  Bruno Haible  <bruno@clisp.org>
21773
21774         Distinguish two kinds of module indicators.
21775         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
21776         gl_MODULE_INDICATOR.
21777         (gl_MODULE_INDICATOR): New macro.
21778         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
21779         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
21780         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
21781         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
21782         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
21783         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
21784         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
21785         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
21786         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
21787         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
21788         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
21789         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
21790         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
21791         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
21792         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
21793         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
21794         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
21795         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
21796         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
21797         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
21798         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
21799         * modules/cloexec (configure.ac): Likewise.
21800         * modules/getopt-gnu (configure.ac): Likewise.
21801         * modules/uninorm/u8-normalize (configure.ac): Likewise.
21802         * modules/uninorm/u16-normalize (configure.ac): Likewise.
21803         * modules/uninorm/u32-normalize (configure.ac): Likewise.
21804         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
21805
21806 2010-03-27  Bruno Haible  <bruno@clisp.org>
21807
21808         New module description field 'Comment'.
21809         * gnulib-tool: New option --extract-comment.
21810         (func_usage): Document it.
21811         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
21812         (func_get_comment): New function.
21813         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
21814
21815 2010-03-27  Bruno Haible  <bruno@clisp.org>
21816
21817         Addendum to 2010-02-07 commit.
21818         * gnulib-tool (func_usage): Document --extract-applicability option.
21819
21820 2010-03-27  Bruno Haible  <bruno@clisp.org>
21821
21822         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
21823         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
21824         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
21825         rather than link errors.
21826
21827 2010-03-27  Bruno Haible  <bruno@clisp.org>
21828
21829         Avoid side effects from tests-related modules on the compilation of lib.
21830         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
21831         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
21832         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
21833         parameter. Emit into AM_CPPFLAGS a definition of the designated C
21834         macro.
21835         (func_import): Define a witness macro. Assign it a value that depends
21836         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
21837         tests-related modules.
21838         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
21839         Reported by Jim Meyering.
21840
21841 2010-03-27  Bruno Haible  <bruno@clisp.org>
21842
21843         Factorize common .m4 code.
21844         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
21845         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
21846         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
21847         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
21848         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
21849         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
21850         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
21851         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
21852         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
21853         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
21854         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
21855         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
21856         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
21857         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
21858         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
21859         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
21860         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
21861         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
21862         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
21863         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
21864         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
21865         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
21866         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
21867         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
21868         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
21869         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
21870         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
21871         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
21872         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
21873         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
21874         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
21875         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
21876
21877 2010-03-27  Bruno Haible  <bruno@clisp.org>
21878
21879         Fix a compilation error on Cygwin with g++ >= 4.3.
21880         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
21881         if it is undefined or if we alias it to chmod.
21882         (lstat): Don't warn about the use of this function if it is undefined
21883         or if we alias it to stat.
21884         Reported by Simon Josefsson.
21885
21886 2010-03-27  Bruno Haible  <bruno@clisp.org>
21887
21888         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
21889         * modules/getlogin (configure.ac): Update.
21890
21891         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
21892         * modules/getlogin_r (configure.ac): Update.
21893
21894         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
21895         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
21896         * modules/inet_ntop (configure.ac): Update.
21897
21898         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
21899         * modules/inet_pton (configure.ac): Update.
21900
21901         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
21902         * modules/mbslen (configure.ac): Update.
21903
21904         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
21905         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
21906         * modules/forkpty (configure.ac): Update.
21907         * modules/openpty (configure.ac): Update.
21908
21909 2010-03-26  Simon Josefsson  <simon@josefsson.org>
21910
21911         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
21912         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
21913
21914 2010-03-25  Eric Blake  <eblake@redhat.com>
21915
21916         maint: use pragma consistently across replacement headers
21917         * lib/ctype.in.h (system_header): Hoist for consistent placement.
21918         * lib/dirent.in.h (system_header): Likewise.
21919         * lib/errno.in.h (system_header): Likewise.
21920         * lib/float.in.h (system_header): Likewise.
21921         * lib/getopt.in.h (system_header): Likewise.
21922         * lib/iconv.in.h (system_header): Likewise.
21923         * lib/inttypes.in.h (system_header): Likewise.
21924         * lib/langinfo.in.h (system_header): Likewise.
21925         * lib/locale.in.h (system_header): Likewise.
21926         * lib/math.in.h (system_header): Likewise.
21927         * lib/netdb.in.h (system_header): Likewise.
21928         * lib/netinet_in.in.h (system_header): Likewise.
21929         * lib/pty.in.h (system_header): Likewise.
21930         * lib/sched.in.h (system_header): Likewise.
21931         * lib/se-selinux.in.h (system_header): Likewise.
21932         * lib/search.in.h (system_header): Likewise.
21933         * lib/spawn.in.h (system_header): Likewise.
21934         * lib/stdarg.in.h (system_header): Likewise.
21935         * lib/stdint.in.h (system_header): Likewise.
21936         * lib/string.in.h (system_header): Likewise.
21937         * lib/strings.in.h (system_header): Likewise.
21938         * lib/sys_file.in.h (system_header): Likewise.
21939         * lib/sys_ioctl.in.h (system_header): Likewise.
21940         * lib/sys_socket.in.h (system_header): Likewise.
21941         * lib/sys_times.in.h (system_header): Likewise.
21942         * lib/sys_utsname.in.h (system_header): Likewise.
21943         * lib/sys_wait.in.h (system_header): Likewise.
21944         * lib/sysexits.in.h (system_header): Likewise.
21945         * lib/unistd.in.h (system_header): Likewise.
21946         * lib/wctype.in.h (system_header): Likewise.
21947
21948         arpa/inet: fix mingw compilation warning
21949         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
21950         Reported by Matthew Bolte.
21951
21952 2010-03-25  Bruno Haible  <bruno@clisp.org>
21953
21954         Avoid collision between gnulib wrapper and libintl wrapper.
21955         * lib/printf.c (printf): Don't define if a printf wrapper is already
21956         defined in intl/printf.c.
21957         Reported by Michel Boaventura <michel@michelboaventura.com>.
21958
21959 2010-03-25  Bruno Haible  <bruno@clisp.org>
21960
21961         Use ANSI C.
21962         * lib/readutmp.h (getutent): Provide ANSI C prototype.
21963
21964 2010-03-25  Bruno Haible  <bruno@clisp.org>
21965
21966         Minor formatting changes.
21967         * lib/acosl.c: Insert space before function argument list.
21968         * lib/argz.c: Likewise.
21969         * lib/asinl.c: Likewise.
21970         * lib/expl.c: Likewise.
21971         * lib/gen-uni-tables.c: Likewise.
21972         * lib/gettext.h: Likewise.
21973         * lib/glthread/lock.h: Likewise.
21974         * lib/tanl.c: Likewise.
21975         * lib/uniname/uniname.c: Likewise.
21976         * tests/test-idpriv-drop.c: Likewise.
21977         * tests/test-idpriv-droptemp.c: Likewise.
21978         * tests/test-lock.c: Likewise.
21979         * tests/test-tls.c: Likewise.
21980         * lib/argp-help.c: Insert space before function-like macro argument
21981         list.
21982         * lib/memcmp.c: Likewise.
21983         * tests/test-base64.c: Likewise.
21984         * lib/localename.c: Insert space before sizeof's argument list.
21985         * lib/safe-alloc.h: Likewise.
21986         * lib/file-set.h: Insert space before macro argument list.
21987         * tests/test-argp.c: Likewise.
21988         * lib/argp-namefrob.h: Insert space before function parameter list.
21989         * lib/getaddrinfo.c: Likewise.
21990         * lib/netdb.in.h: Likewise.
21991         * lib/parse-duration.h: Likewise.
21992         * lib/parse-duration.c: Likewise.
21993         * lib/poll.c: Likewise.
21994         * lib/select.c: Likewise.
21995         * lib/trim.h: Likewise.
21996         * tests/test-usleep.c: Likewise.
21997         * lib/ldexpl.c: Insert space before function parameter list and before
21998         function argument list.
21999         * lib/logl.c: Likewise.
22000         * lib/sqrtl.c: Likewise.
22001         * lib/trim.c: Likewise.
22002         * lib/cosl.c: Use GNU style indentation. Insert space before function
22003         argument list.
22004         * lib/sinl.c: Likewise.
22005         * lib/tsearch.c: Insert space after 'for'.
22006         Reported by Jim Meyering.
22007
22008 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
22009
22010         * maint.mk (sc_Wundef_boolean): Check for the presence of the
22011         config header before grepping, as it's not present before
22012         autoreconf/configure are run.  Reported by Simon Josefsson.
22013
22014 2010-03-23  Bruno Haible  <bruno@clisp.org>
22015
22016         pt_chown: Make it work with automake < 1.11.
22017         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
22018         Reported by Simon Josefsson.
22019
22020 2010-03-23  Bruno Haible  <bruno@clisp.org>
22021
22022         pt_chown: Don't depend on GPLed modules.
22023         * lib/pt_chown.c: Don't include idpriv.h.
22024         (main): Don't drop privileges.
22025         * modules/pt_chown (Depends-on): Remove idpriv-drop.
22026         Reported by Simon Josefsson.
22027
22028 2010-03-24  Simon Josefsson  <simon@josefsson.org>
22029
22030         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
22031         suggestions from karl@freefriends.org (Karl Berry).
22032
22033 2010-03-22  Eric Blake  <eblake@redhat.com>
22034
22035         gethostname: further tweaks
22036         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
22037         are overriding gethostname.
22038         Suggested by Bruno Haible.
22039
22040 2010-03-21  Bruno Haible  <bruno@clisp.org>
22041
22042         Fix comments.
22043         * lib/forkpty.c (rpl_forkpty): Fix comment.
22044         * lib/openpty.c (rpl_openpty): Likewise.
22045         Reported by Eric Blake.
22046
22047 2010-03-22  Eric Blake  <eblake@redhat.com>
22048
22049         gethostname: fix build on mingw
22050         * lib/unistd.in.h (includes): Work around fact that mingw
22051         <winsock2.h> re-includes <unistd.h>, by avoiding any
22052         redeclarations if we are being included by <winsock2.h>.
22053         Reported by Matthias Bolte.
22054
22055 2010-03-21  Bruno Haible  <bruno@clisp.org>
22056
22057         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
22058         * lib/forkpty.c (forkpty): New replacement function, from glibc with
22059         modifications.
22060         * lib/pty.in.h (forkpty): Update declaration. Add comments.
22061         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
22062         provide the replacement.
22063         * modules/forkpty (Depends-on): Add openpty, login_tty.
22064         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
22065         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
22066         * doc/glibc-functions/forkpty.texi: More supported platforms.
22067         * config/srclist.txt: Add forkpty.c (commented).
22068
22069 2010-03-21  Bruno Haible  <bruno@clisp.org>
22070
22071         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
22072         (Makefile.am): Verify that PTY_LIB is defined.
22073
22074         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
22075
22076 2010-03-21  Bruno Haible  <bruno@clisp.org>
22077
22078         Tests for module 'login_tty'.
22079         * modules/login_tty-tests: New file.
22080         * tests/test-login_tty.c: New file.
22081
22082         New module 'login_tty'.
22083         * lib/login_tty.c: New file.
22084         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
22085         * modules/login_tty: New file.
22086         * doc/glibc-functions/login_tty.texi: Mention the new module.
22087
22088 2010-03-21  Bruno Haible  <bruno@clisp.org>
22089
22090         login_tty: Documentation.
22091         * doc/glibc-functions/login_tty.texi: New file.
22092         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
22093
22094 2010-03-21  Bruno Haible  <bruno@clisp.org>
22095
22096         pty: Consistent macro naming.
22097         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
22098         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
22099         * modules/pty (configure.ac): Update.
22100
22101 2010-03-21  Bruno Haible  <bruno@clisp.org>
22102
22103         Tests for openpty: Make stricter.
22104         * tests/test-openpty.c (main): Add test of canonical processing and
22105         erase.
22106         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
22107
22108         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
22109         * lib/openpty.c (openpty): New replacement function.
22110         * lib/pty.in.h: Include <termios.h>.
22111         (openpty): Update declaration. Add comments.
22112         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
22113         is not declared, arrange to provide the replacement. Check for _getpty
22114         and posix_openpt.
22115         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
22116         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
22117         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
22118         * modules/pty-tests (test_pty_c___LDADD): New variable.
22119         * doc/glibc-functions/openpty.texi: More supported platforms.
22120
22121 2010-03-21  Bruno Haible  <bruno@clisp.org>
22122
22123         setenv: Tweaks.
22124         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
22125         the test program.
22126         * doc/posix-functions/setenv.texi: Update platforms list.
22127
22128 2010-03-21  Bruno Haible  <bruno@clisp.org>
22129
22130         New module 'unlockpt'.
22131         * lib/unlockpt.c: New file, from glibc with modifications.
22132         * m4/unlockpt.m4: New file.
22133         * modules/unlockpt: New file.
22134         * lib/stdlib.in.h (unlockpt): New declaration.
22135         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
22136         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
22137         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
22138         HAVE_UNLOCKPT.
22139         * doc/posix-functions/unlockpt.texi: Mention the new module.
22140         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
22141         * config/srclist.txt: Add unlockpt.c (commented).
22142
22143 2010-03-21  Jim Meyering  <meyering@redhat.com>
22144
22145         maint.mk: prohibit inclusion of "intprops.h" without use
22146         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
22147
22148 2010-03-21  Bruno Haible  <bruno@clisp.org>
22149
22150         New module 'grantpt'.
22151         * lib/grantpt.c: New file, from glibc with modifications.
22152         * m4/grantpt.m4: New file.
22153         * modules/grantpt: New file.
22154         * lib/stdlib.in.h (grantpt): New declaration.
22155         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
22156         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
22157         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
22158         HAVE_GRANTPT.
22159         * doc/posix-functions/grantpt.texi: Mention the new module.
22160         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
22161         * config/srclist.txt: Add grantpt.c (commented).
22162
22163 2010-03-21  Bruno Haible  <bruno@clisp.org>
22164
22165         New module 'pt_chown'.
22166         * lib/pt_chown.c: New file, from glibc with modifications.
22167         * lib/pty-private.h: New file, from glibc with modifications.
22168         * modules/pt_chown: New file.
22169         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
22170
22171 2010-03-21  Bruno Haible  <bruno@clisp.org>
22172
22173         Tests for module 'ptsname'.
22174         * modules/ptsname-tests: New file.
22175         * tests/test-ptsname.c: New file.
22176
22177         New module 'ptsname'.
22178         * lib/ptsname.c: New file, from glibc with modifications.
22179         * m4/ptsname.m4: New file.
22180         * modules/ptsname: New file.
22181         * lib/stdlib.in.h (ptsname): New declaration.
22182         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
22183         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
22184         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
22185         HAVE_PTSNAME.
22186         * doc/posix-functions/ptsname.texi: Mention the new module.
22187         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
22188         * config/srclist.txt: Add ptsname.c (commented).
22189
22190 2010-03-21  Bruno Haible  <bruno@clisp.org>
22191
22192         Tests for module 'ttyname_r'.
22193         * modules/ttyname_r-tests: New file.
22194         * tests/test-ttyname_r.c: New file.
22195
22196         New module 'ttyname_r'.
22197         * lib/ttyname_r.c: New file.
22198         * m4/ttyname_r.m4: New file.
22199         * modules/ttyname_r: New file.
22200         * lib/unistd.in.h (ttyname_r): New declaration.
22201         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
22202         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
22203         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
22204         HAVE_TTYNAME_R.
22205         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
22206         * doc/posix-functions/ttyname_r.texi: Mention the new module.
22207
22208 2010-03-20  Bruno Haible  <bruno@clisp.org>
22209
22210         signal: Undefine macro definitions in C++ mode.
22211         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
22212         sigfillset): Undefine macro definitions from the system header in C++
22213         mode.
22214         Reported by John W. Eaton <jwe@gnu.org>.
22215
22216 2010-03-20  Bruno Haible  <bruno@clisp.org>
22217
22218         Ensure no #include statements inside extern "C" { ... }.
22219         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
22220         contain #include statements.
22221         * lib/time.in.h: Likewise.
22222
22223 2010-03-20  Bruno Haible  <bruno@clisp.org>
22224
22225         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
22226         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
22227         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
22228         Reported by John W. Eaton <jwe@gnu.org>.
22229
22230 2010-03-20  Bruno Haible  <bruno@clisp.org>
22231
22232         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
22233         Reported by Jim Meyering.
22234
22235 2010-03-20  Bruno Haible  <bruno@clisp.org>
22236
22237         pipe: Set errno upon failure.
22238         * lib/pipe.h: Specify that when -1 is returned, errno is set.
22239         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
22240         errno value in error message.
22241
22242 2010-03-20  Bruno Haible  <bruno@clisp.org>
22243             Jim Meyering  <meyering@redhat.com>
22244
22245         lchown: Avoid "unused variable" warning.
22246         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
22247
22248 2010-03-20  Bruno Haible  <bruno@clisp.org>
22249
22250         Work around unlink() bug on MacOS X 10.5.6.
22251         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
22252         attempting to unlink a parent directory.
22253         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
22254         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
22255         activate for the replacement function.
22256         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
22257
22258 2010-03-20  Bruno Haible  <bruno@clisp.org>
22259
22260         Fix link errors on Solaris 8.
22261         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
22262         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
22263
22264 2010-03-19  Jim Meyering  <meyering@redhat.com>
22265
22266         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
22267         The _LIBC implementation of build_range_exp correctly honors the
22268         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
22269         However, the non-_LIBC implementation would ignore that syntax-bit
22270         flag and return REG_ERANGE unconditionally.
22271         This change makes it honor that flag.
22272         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
22273         Make two pointer parameters "const".
22274         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
22275         (parse_bracket_exp): Update caller.
22276
22277         regex.m4: correct the reversed range endpoint ([b-a]) test
22278         * m4/regex.m4: When requiring that [b-a] evoke failure,
22279         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
22280         test pass once again for x86-based systems.
22281
22282 2010-03-19  Bruno Haible  <bruno@clisp.org>
22283
22284         scandir: Fix link error on Solaris 8.
22285         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
22286         macros.
22287
22288 2010-03-19  Bruno Haible  <bruno@clisp.org>
22289
22290         getusershell: Fix documentation.
22291         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
22292         module.
22293         * doc/glibc-functions/setusershell.texi: Likewise.
22294
22295         getusershell: Provide declaration, missing on Solaris 9.
22296         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
22297         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
22298         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
22299         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
22300         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22301         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
22302         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
22303         HAVE_GETUSERSHELL.
22304         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
22305
22306 2010-03-19  Bruno Haible  <bruno@clisp.org>
22307
22308         wctype: Provide iswblank function.
22309         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
22310         exists and is fine.
22311         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
22312         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
22313         * tests/test-wctype.c (main): Re-enable the iswblank tests.
22314         * doc/posix-functions/iswblank.texi: Update.
22315
22316 2010-03-19  Bruno Haible  <bruno@clisp.org>
22317
22318         Tests of module 'pty' in C++ mode.
22319         * modules/pty-tests: New file.
22320         * tests/test-pty-c++.cc: New file.
22321         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22322
22323 2010-03-19  Eric Blake  <eblake@redhat.com>
22324
22325         logb: fix documentation
22326         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
22327         1.5 declaration bug.
22328
22329         forkpty, openpty: prefer glibc's const-safe prototype
22330         * lib/forkpty.c (rpl_forkpty): New file.
22331         * lib/openpty.c (rpl_openpty): Likewise.
22332         * modules/forkpty (Files): Distribute it.
22333         * modules/openpty (Files): Likewise.
22334         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
22335         check...
22336         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
22337         replacement for for non-const BSD signature.
22338         * modules/pty (Makefile.am): Substitute witnesses.
22339         * lib/pty.in.h (forkpty, openpty): Declare replacements.
22340         * tests/test-forkpty.c: Update signature check.
22341         * tests/test-openpty.c: Likewise.
22342         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
22343         * doc/glibc-functions/openpty.texi (openpty): Likewise.
22344
22345         forkpty, openpty: split functions into new modules
22346         * modules/pty (Makefile.am): Substitute new witnesses.
22347         (Libraries): Move library detection...
22348         * modules/forkpty: ...into new module.
22349         * modules/openpty: Another new module.
22350         * modules/pty-tests: Rename and split...
22351         * modules/forkpty-tests: ...to this...
22352         * modules/openpty-tests: ...and this.
22353         * tests/test-pty.c: Rename and split...
22354         * tests/test-forkpty.c: ...to this...
22355         * tests/test-openpty.c: ...and this.
22356         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
22357         (gl_PTY): Split library searching...
22358         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
22359         (gl_FORKPTY, gl_OPENPTY): New macros.
22360         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
22361         * NEWS: Mention the split.
22362         * MODULES.html.sh (Misc): Document the modules.
22363         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
22364         * doc/glibc-functions/openpty.texi (openpty): Likewise.
22365
22366         pty: improve replacement header
22367         * lib/pty.in.h: New file.
22368         * modules/pty (Files): Ship it.
22369         (Makefile.am): Always build replacement.
22370         * m4/pty.m4: Rename...
22371         * m4/pty_h.m4: ...to this.
22372         (gl_PTY): Modernize setting of witness macros; update check of
22373         forkpty to take proper advantage of cache.
22374         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
22375
22376         getopt: avoid compiler warning
22377         * lib/getopt.c (attribute_hidden): Remove unused macro.
22378
22379 2010-03-18  Bruno Haible  <bruno@clisp.org>
22380
22381         Fix link errors on Solaris 8.
22382         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
22383         * modules/search-tests (test_search_c___LDADD): Likewise.
22384         * modules/signal-tests (test_signal_c___LDADD): Likewise.
22385         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
22386         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
22387         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
22388         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
22389         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
22390         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
22391
22392 2010-03-18  Bruno Haible  <bruno@clisp.org>
22393
22394         Fix bug introduced on 2010-03-14.
22395         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
22396         (gl_SPAWN_H): Require it.
22397         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
22398         Reported by Simon Josefsson.
22399
22400 2010-03-18  Bruno Haible  <bruno@clisp.org>
22401
22402         Fix typo introduced on 2009-12-31.
22403         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
22404         posix_spawn_file_actions_adddup2.
22405
22406 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
22407         and Eric Blake  <eblake@redhat.com>
22408
22409         test-vc-list-files-git: make more robust
22410         * tests/test-vc-list-files-git.sh: Unset problematic environment
22411         variables.  Chain commands together.
22412
22413 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
22414
22415         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
22416         `AC_CHECK_DECL' invocation.
22417
22418 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
22419
22420         * lib/inttostr.c (inttostr): Make sure the invocation of verify
22421         appears before executable statements. Suggested by Petr Sumbera
22422         <Petr.Sumbera@Sun.COM>.
22423
22424 2010-03-14  Bruno Haible  <bruno@clisp.org>
22425
22426         * tests/test-flock.c (test_exclusive): Comment out a test that causes
22427         portability problems. Instead use a simpler test.
22428         (main): Check that invalid arguments are rejected only on Linux.
22429
22430 2010-03-14  Bruno Haible  <bruno@clisp.org>
22431
22432         Fix bug introduced on 2009-12-31.
22433         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
22434         gl_PREREQ_SYS_H_WINSOCK2 always.
22435         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
22436         SYS_SOCKET_H variable.
22437         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
22438         Update comments.
22439         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
22440         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22441         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22442         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22443         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
22444
22445 2010-03-14  Bruno Haible  <bruno@clisp.org>
22446
22447         Fix values returned by sinl, cosl.
22448         * lib/trigl.h: Add specification comments.
22449         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
22450         that combines the values from the precomputed table with the values of
22451         the Chebyshev polynomials.
22452
22453 2010-03-14  Bruno Haible  <bruno@clisp.org>
22454
22455         Fix compilation error when modules 'posix_spawn[p]' are not used.
22456         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
22457         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
22458
22459 2010-03-14  Bruno Haible  <bruno@clisp.org>
22460
22461         Fix compilation error on mingw when module 'time_r' is not used.
22462         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
22463         is 1.
22464         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
22465         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
22466         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
22467         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
22468
22469 2010-03-14  Bruno Haible  <bruno@clisp.org>
22470
22471         Fix compilation error with Sun C.
22472         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
22473         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
22474         instead of GCC specific ULONG_LONG_MAX.
22475         * lib/xstrtoll.c: Likewise.
22476         * lib/xstrtoull.c: Likewise.
22477
22478 2010-03-13  Bruno Haible  <bruno@clisp.org>
22479
22480         Allow the user to disable C++ code and tests.
22481         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
22482         (gl_PROG_ANSI_CXX): Require it.
22483
22484 2010-03-13  Bruno Haible  <bruno@clisp.org>
22485
22486         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
22487         cases.
22488
22489 2010-03-13  Bruno Haible  <bruno@clisp.org>
22490
22491         Test that gnulib does not break the standard C++ headers.
22492         * tests/test-locale-c++2.cc: New file.
22493         * modules/locale-tests (Files): Add it.
22494         (Makefile.am): Compile it for test-locale-c++.
22495         * tests/test-math-c++2.cc: New file.
22496         * modules/math-tests (Files): Add it.
22497         (Makefile.am): Compile it for test-math-c++.
22498         * tests/test-signal-c++2.cc: New file.
22499         * modules/signal-tests (Files): Add it.
22500         (Makefile.am): Compile it for test-signal-c++.
22501         * tests/test-stdio-c++2.cc: New file.
22502         * modules/stdio-tests (Files): Add it.
22503         (Makefile.am): Compile it for test-stdio-c++.
22504         * tests/test-stdlib-c++2.cc: New file.
22505         * modules/stdlib-tests (Files): Add it.
22506         (Makefile.am): Compile it for test-stdlib-c++.
22507         * tests/test-string-c++2.cc: New file.
22508         * modules/string-tests (Files): Add it.
22509         (Makefile.am): Compile it for test-string-c++.
22510         * tests/test-time-c++2.cc: New file.
22511         * modules/time-tests (Files): Add it.
22512         (Makefile.am): Compile it for test-time-c++.
22513         Reported by John W. Eaton <jwe@gnu.org>.
22514
22515 2010-03-13  Bruno Haible  <bruno@clisp.org>
22516
22517         * gnulib-tool (func_usage): Clarify which options are available for
22518         --create-testdir and --create-megatestdir.
22519
22520 2010-03-13  Bruno Haible  <bruno@clisp.org>
22521
22522         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
22523         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
22524         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
22525         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
22526         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
22527         when appropriate.
22528         Reported by Jim Meyering.
22529
22530 2010-03-12  Simon Josefsson  <simon@josefsson.org>
22531
22532         * gnulib-tool (func_import): Explain origin of code.
22533
22534 2010-03-12  Bruno Haible  <bruno@clisp.org>
22535
22536         Fix problem with automake's definition of CXXLINK.
22537         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
22538         Reported by Simon Josefsson and Ludovic Courtès.
22539
22540 2010-03-12  Bruno Haible  <bruno@clisp.org>
22541
22542         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
22543         stable releases.
22544
22545 2010-03-11  Bruno Haible  <bruno@clisp.org>
22546
22547         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
22548         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
22549         whether the system provides one variant or multiple variants of the
22550         function.
22551         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
22552         C++ compilers.
22553         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
22554         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
22555         Reported by Jim Meyering.
22556
22557 2010-03-09  Simon Josefsson  <simon@josefsson.org>
22558
22559         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
22560
22561 2010-03-08  Bruno Haible  <bruno@clisp.org>
22562
22563         gnulib-tool: Add support for --libtool in --create-testdir.
22564         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
22565         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
22566
22567 2010-03-08  Eric Blake  <eblake@redhat.com>
22568
22569         gnulib-tool.texi: mention possibility of git submodule
22570         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
22571         submodules.
22572         * doc/.gitignore: Ignore another generated file.
22573
22574 2010-03-08  Karl Berry  <karl@gnu.org>
22575
22576         * doc/gnulib-tool.texi (VCS Issues): Mention third option
22577         of committing gnulib files while skipping others.
22578
22579 2010-03-07  Bruno Haible  <bruno@clisp.org>
22580
22581         Tests of module 'wctype' in C++ mode.
22582         * tests/test-wctype-c++.cc: New file.
22583         * modules/wctype-tests (Files): Add it and tests/signature.h.
22584         (Depends-on): Add ansi-c++-opt.
22585         (Makefile.am): Arrange to compile and run test-wctype-c++.
22586
22587         Tests of module 'wchar' in C++ mode.
22588         * tests/test-wchar-c++.cc: New file.
22589         * modules/wchar-tests (Files): Add it and tests/signature.h.
22590         (Depends-on): Add ansi-c++-opt.
22591         (Makefile.am): Arrange to compile and run test-wchar-c++.
22592         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
22593         gl_MODULE_INDICATOR.
22594
22595         Tests of module 'unistd' in C++ mode.
22596         * tests/test-unistd-c++.cc: New file.
22597         * modules/unistd-tests (Files): Add it and tests/signature.h.
22598         (Depends-on): Add ansi-c++-opt.
22599         (Makefile.am): Arrange to compile and run test-unistd-c++.
22600         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
22601         gl_MODULE_INDICATOR.
22602
22603         Tests of module 'time' in C++ mode.
22604         * tests/test-time-c++.cc: New file.
22605         * modules/time-tests (Files): Add it and tests/signature.h.
22606         (Depends-on): Add ansi-c++-opt.
22607         (Makefile.am): Arrange to compile and run test-time-c++.
22608         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22609
22610         Tests of module 'sys_time' in C++ mode.
22611         * tests/test-sys_time-c++.cc: New file.
22612         * modules/sys_time-tests (Files): Add it and tests/signature.h.
22613         (Depends-on): Add ansi-c++-opt.
22614         (Makefile.am): Arrange to compile and run test-sys_time-c++.
22615         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
22616         gl_MODULE_INDICATOR.
22617
22618         Tests of module 'sys_stat' in C++ mode.
22619         * tests/test-sys_stat-c++.cc: New file.
22620         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
22621         (Depends-on): Add ansi-c++-opt.
22622         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
22623         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
22624         gl_MODULE_INDICATOR.
22625
22626         Tests of module 'sys_socket' in C++ mode.
22627         * tests/test-sys_socket-c++.cc: New file.
22628         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
22629         (Depends-on): Add ansi-c++-opt.
22630         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
22631         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
22632         gl_MODULE_INDICATOR.
22633
22634         Tests of module 'sys_select' in C++ mode.
22635         * tests/test-sys_select-c++.cc: New file.
22636         * modules/sys_select-tests (Files): Add it and tests/signature.h.
22637         (Depends-on): Add ansi-c++-opt.
22638         (Makefile.am): Arrange to compile and run test-sys_select-c++.
22639         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
22640         gl_MODULE_INDICATOR.
22641
22642         Tests of module 'sys_ioctl' in C++ mode.
22643         * tests/test-sys_ioctl-c++.cc: New file.
22644         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
22645         (Depends-on): Add ansi-c++-opt.
22646         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
22647         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
22648         gl_MODULE_INDICATOR.
22649
22650         Tests of module 'string' in C++ mode.
22651         * tests/test-string-c++.cc: New file.
22652         * modules/string-tests (Files): Add it and tests/signature.h.
22653         (Depends-on): Add ansi-c++-opt.
22654         (Makefile.am): Arrange to compile and run test-string-c++.
22655         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
22656         gl_MODULE_INDICATOR.
22657
22658         Tests of module 'stdlib' in C++ mode.
22659         * tests/test-stdlib-c++.cc: New file.
22660         * modules/stdlib-tests (Files): Add it and tests/signature.h.
22661         (Depends-on): Add ansi-c++-opt.
22662         (Makefile.am): Arrange to compile and run test-stdlib-c++.
22663         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
22664         gl_MODULE_INDICATOR.
22665
22666         Tests of module 'stdio' in C++ mode.
22667         * tests/test-stdio-c++.cc: New file.
22668         * modules/stdio-tests (Files): Add it and tests/signature.h.
22669         (Depends-on): Add ansi-c++-opt.
22670         (Makefile.am): Arrange to compile and run test-stdio-c++.
22671         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
22672         gl_MODULE_INDICATOR.
22673
22674         Tests of module 'spawn' in C++ mode.
22675         * tests/test-spawn-c++.cc: New file.
22676         * modules/spawn-tests (Files): Add it and tests/signature.h.
22677         (Depends-on): Add ansi-c++-opt.
22678         (Makefile.am): Arrange to compile and run test-spawn-c++.
22679         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
22680         gl_MODULE_INDICATOR.
22681
22682         Tests of module 'signal' in C++ mode.
22683         * tests/test-signal-c++.cc: New file.
22684         * modules/signal-tests (Files): Add it and tests/signature.h.
22685         (Depends-on): Add ansi-c++-opt.
22686         (Makefile.am): Arrange to compile and run test-signal-c++.
22687         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
22688         gl_MODULE_INDICATOR.
22689
22690         Tests of module 'search' in C++ mode.
22691         * tests/test-search-c++.cc: New file.
22692         * modules/search-tests (Files): Add it and tests/signature.h.
22693         (Depends-on): Add ansi-c++-opt.
22694         (Makefile.am): Arrange to compile and run test-search-c++.
22695         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
22696         gl_MODULE_INDICATOR.
22697
22698         Tests of module 'math' in C++ mode.
22699         * tests/test-math-c++.cc: New file.
22700         * modules/math-tests (Files): Add it and tests/signature.h.
22701         (Depends-on): Add ansi-c++-opt.
22702         (Makefile.am): Arrange to compile and run test-math-c++.
22703         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22704
22705         Tests of module 'locale' in C++ mode.
22706         * tests/test-locale-c++.cc: New file.
22707         * modules/locale-tests (Files): Add it and tests/signature.h.
22708         (Depends-on): Add ansi-c++-opt.
22709         (Makefile.am): Arrange to compile and run test-locale-c++.
22710         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
22711         gl_MODULE_INDICATOR.
22712
22713         Tests of module 'langinfo' in C++ mode.
22714         * tests/test-langinfo-c++.cc: New file.
22715         * modules/langinfo-tests (Files): Add it and tests/signature.h.
22716         (Depends-on): Add ansi-c++-opt.
22717         (Makefile.am): Arrange to compile and run test-langinfo-c++.
22718         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
22719         gl_MODULE_INDICATOR.
22720
22721         Tests of module 'iconv-h' in C++ mode.
22722         * tests/test-iconv-h-c++.cc: New file.
22723         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
22724         (Depends-on): Add ansi-c++-opt.
22725         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
22726
22727         Tests of module 'glob' in C++ mode.
22728         * tests/test-glob-c++.cc: New file.
22729         * modules/glob-tests (Files): Add it.
22730         (Depends-on): Add ansi-c++-opt.
22731         (Makefile.am): Arrange to compile and run test-glob-c++.
22732
22733         Tests of module 'fcntl-h' in C++ mode.
22734         * tests/test-fcntl-h-c++.cc: New file.
22735         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
22736         (Depends-on): Add ansi-c++-opt.
22737         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
22738         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
22739         gl_MODULE_INDICATOR.
22740
22741         Tests of module 'dirent' in C++ mode.
22742         * tests/test-dirent-c++.cc: New file.
22743         * modules/dirent-tests (Files): Add it and tests/signature.h.
22744         (Depends-on): Add ansi-c++-opt.
22745         (Makefile.am): Arrange to compile and run test-dirent-c++.
22746         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
22747         gl_MODULE_INDICATOR.
22748
22749         New module 'ansi-c++-opt'.
22750         * modules/ansi-c++-opt: New file.
22751         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
22752
22753         Document C++ namespace mode.
22754         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
22755
22756         wctype: Avoid #define replacements in C++ mode.
22757         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
22758         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
22759         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
22760         In C++, define a namespaced alias symbol.
22761         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
22762         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
22763         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
22764         rule.
22765
22766         wchar: Avoid #define replacements in C++ mode.
22767         * lib/wchar.in.h: Include c++defs.h.
22768         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
22769         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
22770         symbol.
22771         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
22772         * modules/wchar (Depends-on): Add c++defs.
22773         (Makefile.am): Update wchar.h rule.
22774
22775         unistd: Avoid #define replacements in C++ mode.
22776         * lib/unistd.in.h: Include c++defs.h.
22777         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
22778         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
22779         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
22780         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
22781         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
22782         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
22783         symbol.
22784         (environ): Update.
22785         * modules/unistd (Depends-on): Add c++defs.
22786         (Makefile.am): Update unistd.h rule.
22787
22788         time: Avoid #define replacements in C++ mode.
22789         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
22790         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
22791         define a namespaced alias symbol.
22792         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
22793         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
22794         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
22795         * modules/time (Depends-on): Add c++defs, warn-on-use.
22796         (Makefile.am): Update time.h rule.
22797         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
22798         * modules/nanosleep (configure.ac): Likewise.
22799         * modules/strptime (configure.ac): Likewise.
22800         * modules/timegm (configure.ac): Likewise.
22801
22802         sys_time: Avoid #define replacements in C++ mode.
22803         * lib/sys_time.in.h: Include c++defs.h.
22804         (gettimeofday): In C++, define a namespaced alias symbol.
22805         * modules/sys_time (Depends-on): Add c++defs.
22806         (Makefile.am): Update sys/time.h rule.
22807
22808         sys_stat: Avoid #define replacements in C++ mode.
22809         * lib/sys_stat.in.h: Include c++defs.h.
22810         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
22811         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
22812         namespaced alias symbol.
22813         In C++, define a namespaced alias symbol.
22814         * modules/sys_stat (Depends-on): Add c++defs.
22815         (Makefile.am): Update sys/stat.h rule.
22816
22817         sys_socket: Avoid #define replacements in C++ mode.
22818         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
22819         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
22820         definitions also when the system has a <sys/socket.h>.
22821         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
22822         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
22823         In C++, define a namespaced alias symbol.
22824         * modules/sys_socket (Depends-on): Add c++defs.
22825         (Makefile.am): Update sys/socket.h rule.
22826
22827         sys_select: Avoid #define replacements in C++ mode.
22828         * lib/sys_select.in.h: Include c++defs.h. Enable the function
22829         definitions also when the system has a <sys/select.h>.
22830         (select): In C++, define a namespaced alias symbol.
22831         * modules/sys_select (Depends-on): Add c++defs.
22832         (Makefile.am): Update sys/select.h rule.
22833
22834         sys_ioctl: Avoid #define replacements in C++ mode.
22835         * lib/sys_ioctl.in.h: Include c++defs.h.
22836         (ioctl): In C++, define a namespaced alias symbol.
22837         * modules/sys_ioctl (Depends-on): Add c++defs.
22838         (Makefile.am): Update sys/ioctl.h rule.
22839
22840         string: Avoid #define replacements in C++ mode.
22841         * lib/string.in.h: Include c++defs.h.
22842         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
22843         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
22844         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
22845         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
22846         strsignal, strverscmp): In C++, define a namespaced alias symbol.
22847         * modules/string (Depends-on): Add c++defs.
22848         (Makefile.am): Update string.h rule.
22849
22850         stdlib: Avoid #define replacements in C++ mode.
22851         * lib/stdlib.in.h: Include c++defs.h.
22852         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
22853         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
22854         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
22855         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
22856         symbol.
22857         * modules/stdlib (Depends-on): Add c++defs.
22858         (Makefile.am): Update stdlib.h rule.
22859
22860         stdio: Avoid #define replacements in C++ mode.
22861         * lib/stdio.in.h: Include c++defs.h.
22862         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
22863         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
22864         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
22865         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
22866         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
22867         namespaced alias symbol.
22868         * modules/stdio (Depends-on): Add c++defs.
22869         (Makefile.am): Update stdio.h rule.
22870
22871         spawn: Avoid #define replacements in C++ mode.
22872         * lib/spawn.in.h: Include c++defs.h.
22873         (posix_spawn, posix_spawnp, posix_spawnattr_init,
22874         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
22875         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
22876         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
22877         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
22878         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
22879         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
22880         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
22881         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
22882         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
22883         In C++, define a namespaced alias symbol.
22884         * modules/spawn (Depends-on): Add c++defs.
22885         (Makefile.am): Update spawn.h rule.
22886
22887         signal: Avoid #define replacements in C++ mode.
22888         * lib/signal.in.h: Include c++defs.h.
22889         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
22890         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
22891         namespaced alias symbol.
22892         * modules/signal (Depends-on): Add c++defs.
22893         (Makefile.am): Update signal.h rule.
22894
22895         search: Avoid #define replacements in C++ mode.
22896         * lib/search.in.h: Include c++defs.h.
22897         (_gl_search_compar_fn, _gl_search_action_fn): New types.
22898         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
22899         symbol.
22900         * modules/search (Depends-on): Add c++defs.
22901         (Makefile.am): Update search.h rule.
22902
22903         math: Avoid #define replacements in C++ mode.
22904         * lib/math.in.h: Include c++defs.h.
22905         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
22906         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
22907         trunc, truncl): In C++, define a namespaced alias symbol.
22908         * modules/math (Depends-on): Add c++defs.
22909         (Makefile.am): Update math.h rule.
22910
22911         locale: Avoid #define replacements in C++ mode.
22912         * lib/locale.in.h: Include c++defs.h.
22913         (duplocale): In C++, define a namespaced alias symbol.
22914         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
22915         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
22916         * modules/locale (Depends-on): Add c++defs.
22917         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
22918
22919         langinfo: Avoid #define replacements in C++ mode.
22920         * lib/langinfo.in.h: Include c++defs.h.
22921         (nl_langinfo): In C++, define a namespaced alias symbol.
22922         * modules/langinfo (Depends-on): Add c++defs.
22923         (Makefile.am): Update langinfo.h rule.
22924
22925         iconv-h: Avoid #define replacements in C++ mode.
22926         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
22927         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
22928         symbol.
22929         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
22930         whenever iconv is present.
22931         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
22932         (Makefile.am): Update iconv.h rule.
22933
22934         glob: Avoid #define replacements in C++ mode.
22935         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
22936         (_gl_glob_errfunc_fn): New type.
22937         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
22938         symbol.
22939         * modules/glob (Depends-on): Add c++defs, warn-on-use.
22940         (Makefile.am): Update glob.h rule.
22941
22942         fcntl-h: Avoid #define replacements in C++ mode.
22943         * lib/fcntl.in.h: Include c++defs.h.
22944         (fcntl, open, openat): In C++, define a namespaced alias symbol.
22945         * modules/fcntl-h (Depends-on): Add c++defs.
22946         (Makefile.am): Update fcntl.h rule.
22947
22948         dirent: Avoid #define replacements in C++ mode.
22949         * lib/dirent.in.h: Include c++defs.h.
22950         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
22951         namespaced alias symbol.
22952         (dirfd): Update declaration.
22953         * modules/dirent (Depends-on): Add c++defs.
22954         (Makefile.am): Update dirent.h rule.
22955
22956         ctype: Make it usable in C++ code.
22957         * lib/ctype.in.h: Include c++defs.h.
22958         (isblank): Declare as extern "C".
22959         * modules/ctype (Depends-on): Add c++defs.
22960         (Makefile.am): Update ctype.h rule.
22961
22962         New module 'c++defs'.
22963         * modules/c++defs: New file.
22964         * build-aux/c++defs.h: New file.
22965         Reported by John W. Eaton <jwe@gnu.org>.
22966
22967 2010-03-07  Bruno Haible  <bruno@clisp.org>
22968
22969         logb: Provide missing declaration for Cygwin.
22970         * lib/math.in.h (logb): New declaration.
22971         * m4/logb.m4: New file.
22972         * modules/logb (Files): Add m4/logb.m4.
22973         (Depends-on): Add math.
22974         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
22975         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
22976         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
22977         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
22978         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
22979
22980 2010-03-07  Bruno Haible  <bruno@clisp.org>
22981
22982         Fix test-cond link error.
22983         * tests/test-cond.c: Include <stdio.h>.
22984
22985 2010-03-07  Bruno Haible  <bruno@clisp.org>
22986
22987         Fix test-dirent-safer link error.
22988         * modules/dirent-safer-tests (Makefile.am): Define
22989         test_dirent_safer_LDADD.
22990
22991 2010-03-07  Bruno Haible  <bruno@clisp.org>
22992
22993         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
22994         among default module list.
22995
22996 2010-03-07  Bruno Haible  <bruno@clisp.org>
22997
22998         Fix link error on platforms with GNU libiconv.
22999         * modules/unistr/u8-strcoll-tests (Makefile): Define
23000         test_u8_strcoll_LDADD.
23001         * modules/unistr/u16-strcoll-tests (Makefile): Define
23002         test_u16_strcoll_LDADD.
23003         * modules/unistr/u32-strcoll-tests (Makefile): Define
23004         test_u32_strcoll_LDADD.
23005
23006 2010-03-07  Bruno Haible  <bruno@clisp.org>
23007
23008         Use POSIX declarations for socket functions.
23009         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
23010         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
23011         rpl_sendto): Change declaration to match POSIX.
23012         * lib/connect.c (rpl_connect): Likewise.
23013         * lib/accept.c (rpl_accept): Likewise.
23014         * lib/bind.c (rpl_bind): Likewise.
23015         * lib/getpeername.c (rpl_getpeername): Likewise.
23016         * lib/getsockname.c (rpl_getsockname): Likewise.
23017         * lib/recv.c (rpl_recv): Likewise.
23018         * lib/send.c (rpl_send): Likewise.
23019         * lib/recvfrom.c (rpl_recvfrom): Likewise.
23020         * lib/sendto.c (rpl_sendto): Likewise.
23021
23022 2010-03-06  Bruno Haible  <bruno@clisp.org>
23023
23024         Clarify access, euidaccess, faccessat.
23025         * doc/posix-functions/faccessat.texi: Mention security problem under
23026         "Other problems", not "Portability problems".
23027         * doc/posix-functions/access.texi: Likewise. Mention a related security
23028         problem.
23029         * doc/glibc-functions/euidaccess.texi: Mention security problems.
23030         * lib/euidaccess.c: Add comments about platforms.
23031         * lib/unistd.in.h (access, euidaccess): Add warnings.
23032
23033 2010-03-07  Bruno Haible  <bruno@clisp.org>
23034
23035         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
23036         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
23037         (POSIX_SPAWN_SETSCHEDULER): Likewise.
23038         (POSIX_SPAWN_USEVFORK): Define in a way that works when
23039         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
23040         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
23041         declare when POSIX_SPAWN_SETSCHEDULER is zero.
23042         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
23043         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
23044         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
23045         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
23046         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
23047         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
23048         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
23049         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
23050         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
23051         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
23052         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
23053         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
23054         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
23055         Likewise.
23056         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
23057         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
23058         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
23059         Likewise.
23060         * tests/test-spawn.c (main): Make it work when
23061         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
23062
23063 2010-03-07  Bruno Haible  <bruno@clisp.org>
23064
23065         Fix incorrect Makefile.am generation in German locale.
23066         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23067         Execute sed command with character range in C locale.
23068
23069 2010-03-06  Bruno Haible  <bruno@clisp.org>
23070
23071         Tests for module 'iconv-h'.
23072         * modules/iconv-h-tests: New file.
23073         * tests/test-iconv-h.c: New file.
23074
23075         New module 'iconv-h'.
23076         * modules/iconv-h: New file.
23077         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
23078         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
23079         (configure.ac): Remove gl_ICONV_H.
23080         (Makefile.am): Remove rule for iconv.h.
23081
23082 2010-03-06  Bruno Haible  <bruno@clisp.org>
23083
23084         More consistent naming of *.m4 files.
23085         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
23086         * modules/wctype (Files): Update.
23087
23088         More consistent naming of *.m4 files.
23089         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
23090         * modules/wchar (Files): Update.
23091
23092 2010-03-06  Jim Meyering  <meyering@redhat.com>
23093
23094         euidaccess: relax license to LGPLv2+
23095         * modules/euidaccess (License): Relax to LGPLv2+.
23096
23097 2010-03-06  Bruno Haible  <bruno@clisp.org>
23098
23099         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
23100         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
23101         (Makefile.am): Augment lib_SOURCES instead.
23102
23103 2010-03-04  Jim Meyering  <meyering@redhat.com>
23104
23105         utime: remove obsolete module
23106         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
23107         unnecessary for years, and has been marked as obsolete for 10 months.
23108         * modules/utime: Remove file.
23109         * lib/utime.c: Remove file.
23110         * m4/utime.m4: Remove file.
23111         * m4/utimes-null.m4: Remove file.
23112         * doc/posix-functions/utime.texi (utime): Remove reference to
23113         the module.  Move the sole "fixed by gnulib" item into the
23114         "problems not fixed by Gnulib" list.
23115         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
23116
23117 2010-03-05  Simon Josefsson  <simon@josefsson.org>
23118
23119         * modules/exit (License): Relax license to LGPLv2+.
23120         (Status): Mark as obsolete.
23121         * NEWS: Mention deprecated 'exit' module.
23122         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
23123         of now obsolete 'exit'.
23124
23125 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23126
23127         fts-lgpl: remove unused module
23128         * modules/fts-lgpl: Remove.
23129         * MODULES.html.sh (func_all_modules): Adjust.
23130         * check-module (find_included_lib_files): Adjust.
23131         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
23132
23133 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
23134
23135         copy-acl: enhance Solaris ACL error handling
23136         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
23137         * lib/set-mode-acl.c (qset_acl): Likewise.
23138
23139 2010-03-02  Bruno Haible  <bruno@clisp.org>
23140
23141         spawn: Don't override the system defined values on FreeBSD 8.
23142         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
23143         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
23144         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
23145         if HAVE_POSIX_SPAWN is 1.
23146         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
23147
23148 2010-03-01  Bruno Haible  <bruno@clisp.org>
23149
23150         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
23151         regarding Automake.
23152
23153 2010-02-25  Bruno Haible  <bruno@clisp.org>
23154
23155         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
23156         * gnulib-tool: Define 'echo' as a function only before the ksh alias
23157         setting, not afterwards.
23158         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
23159
23160 2010-02-24  Eric Blake  <eblake@redhat.com>
23161
23162         bootstrap, git-version-gen: use timestamp
23163         * build-aux/git-version-gen (scriptversion): Force UTC.
23164         * build-aux/bootstrap (scriptversion): New variable.
23165
23166         bootstrap: allow older git
23167         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
23168         older than 1.6.4.  Requested by the libvirt project.
23169
23170 2010-02-23  Eric Blake  <eblake@redhat.com>
23171
23172         warn-on-use: work with old autoconf
23173         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
23174         AS_VAR semantics of autoconf 2.60.
23175         Reported by Bruno Haible.
23176
23177         bootstrap: improve some comments
23178         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
23179         clarification comments.
23180
23181         gettimeofday: provide correct function
23182         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
23183         when replacement is declared, otherwise provide gettimeofday.
23184         Reported by Michael Goffioul.
23185
23186 2010-02-23  Jim Meyering  <meyering@redhat.com>
23187
23188         lib-ignore: relax license to "unlimited", not LGPLv2+
23189         * modules/lib-ignore (License): Relax to "unlimited".
23190
23191 2010-02-23  Jim Meyering  <meyering@redhat.com>
23192
23193         lib-ignore: relax license to LGPLv2+
23194         * modules/lib-ignore (License): Relax to LGPLv2+.
23195
23196 2010-02-22  Eric Blake  <eblake@redhat.com>
23197
23198         lseek: avoid bash 3.2 broken pipe bug
23199         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
23200         warning from bash 3.2.
23201         Reported by Ben Pfaff, with analysis from Bruno Haible.
23202
23203         bootstrap: support non-FSF copyright holder
23204         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
23205         bootstrap.conf override of COPYRIGHT_HOLDER.
23206         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
23207
23208         bootstrap: interoperate with gettext 0.14.1
23209         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
23210
23211         bootstrap: allow for alternate submodule location
23212         * build-aux/bootstrap (gnulib_path): New variable; use instead of
23213         hardcoding submodule location.
23214         (gnulib_mk): Allow direct use of Makefile.am.
23215
23216         bootstrap: use GNULIB_SRCDIR to reduce disk usage
23217         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
23218         rather than reconfiguring where the submodule points.
23219
23220         gettimeofday: restore support for platforms that lack function
23221         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
23222         replacement if function is missing.
23223         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
23224         * modules/sys_time (Makefile.am): Substitute it.
23225         * lib/sys_time.in.h (gettimeofday): Check it.
23226         Reported by Michael Goffioul.
23227
23228 2010-02-21  Bruno Haible  <bruno@clisp.org>
23229
23230         * lib/stdio.in.h (obstack_printf): Fix typo.
23231
23232 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
23233
23234         vc-list-files: use bzr ls's -R option
23235         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
23236         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
23237
23238 2010-02-21  Jim Meyering  <meyering@redhat.com>
23239
23240         init.sh: fix EXEEXT shims to work also for names like test-prog
23241         * tests/init.sh: Re-exec a better shell, when needed.
23242         If the current shell lacks support for posix $(...), an init.sh-using
23243         test will now try to find a shell that supports that.  If EXEEXT is
23244         nonempty, we also require support for hyphen-in-alias-name and shell
23245         substitutions like ${var#glob}.  Failure to find such a shell results
23246         in a skipped test.
23247
23248 2010-02-21  Bruno Haible  <bruno@clisp.org>
23249
23250         Really work around around "broken pipe" error message from bash 3.2.
23251         * gnulib-tool (func_reset_sigpipe): Remove function.
23252         (echo): In bash 3.2, define to a function that uses printf.
23253         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
23254
23255 2010-02-20  Bruno Haible  <bruno@clisp.org>
23256
23257         Restore support for automake 1.9.6 with autoconf 2.61.
23258         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
23259         Reported by James Youngman <jay@gnu.org>.
23260
23261 2010-02-20  Bruno Haible  <bruno@clisp.org>
23262
23263         Improve *printf warning condition.
23264         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
23265         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
23266         and the function is overridden due to SIGPIPE emulation.
23267
23268 2010-02-20  Bruno Haible  <bruno@clisp.org>
23269
23270         * lib/stdio.in.h: Tweak comments.
23271
23272 2010-02-19  Bruno Haible  <bruno@clisp.org>
23273
23274         Make it easier to find modules. New gnulib-tool option '--find'.
23275         * gnulib-tool: New option --find.
23276         (func_usage): Document it.
23277         (func_sanitize_modulelist): New function, extracted from
23278         func_all_modules.
23279         (func_all_modules): Invoke it.
23280         * doc/gnulib-tool.texi (Which modules?): New node.
23281
23282 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
23283
23284         * lib/sys_select.in.h: Provide select replacement even if
23285         sys/select.h exists on a system, for Interix.
23286
23287 2010-02-18  Jim Meyering  <meyering@redhat.com>
23288
23289         init.sh: don't use $(...) just yet
23290         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
23291         to accommodate e.g., Solaris' /bin/sh.
23292
23293 2010-02-17  Bruno Haible  <bruno@clisp.org>
23294
23295         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
23296         Reported by Ludovic Courtès <ludo@gnu.org>.
23297
23298 2010-02-16  Simon Josefsson  <simon@josefsson.org>
23299
23300         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
23301         linking with -lintl.
23302
23303 2010-02-17  Simon Josefsson  <simon@josefsson.org>
23304
23305         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
23306         if not provided by the system's netdb.h.  Reported by
23307         ludo@gnu.org (Ludovic Courtès).
23308
23309 2010-02-15  Jim Meyering  <meyering@redhat.com>
23310
23311         init.sh: improve portability and efficiency
23312         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
23313         "dummy" in a for loop.
23314         Use '!', not '^' to select the complement of a character set used
23315         in a "case" statement.
23316         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
23317         Suggestions from Eric Blake.
23318
23319         init.sh: automatically accommodate programs with the .exe suffix
23320         Automatically arrange for an invocation of "prog" to execute the
23321         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
23322         may use the simpler "prog", yet still work when built on a system
23323         that requires specifying the added suffix.
23324         Do this by constructing a function named "prog" that invokes
23325         "prog.exe" for each .exe file in selected directories.
23326         * tests/init.sh (find_exe_basenames_): New function.
23327         (create_exe_shim_functions_): New function.
23328         (path_prepend_): Use it.
23329
23330         maint.mk: mark syntax-check sc_*.m rules as .PHONY
23331         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
23332         "make -t syntax-check" doesn't create a ton of sc_*.m files.
23333
23334 2010-02-14  Jim Meyering  <meyering@redhat.com>
23335
23336         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
23337         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
23338         (sc_prohibit_hash_pjw_without_use): New rule.
23339
23340         maint.mk: allow the default upload destination dir to be overridden
23341         * top/maint.mk (upload_dest_dir_): Define with a default that
23342         preserves the status quo.
23343         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
23344         Reported by Peter Simons.
23345
23346         maint.mk: prohibit inclusion of "hash.h" without_use
23347         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
23348
23349 2010-02-10  Jim Meyering  <meyering@redhat.com>
23350
23351         maint.mk: prohibit inclusion of "ignore-value.h" without_use
23352         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
23353
23354 2010-02-09  Eric Blake  <ebb9@byu.net>
23355         and Bruno Haible  <bruno@clisp.org>
23356
23357         obstack-printf-posix: ensure declaration
23358         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
23359         extracted from gl_FUNC_OBSTACK_PRINTF.
23360         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
23361         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
23362         Likewise.
23363         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
23364         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
23365         0.
23366
23367 2010-02-08  Bruno Haible  <bruno@clisp.org>
23368
23369         gnulib-tool: Fix typo in 2010-02-07 commit.
23370         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
23371         Reported by Eric Blake.
23372
23373 2010-02-07  Bruno Haible  <bruno@clisp.org>
23374
23375         gnulib-tool: Fix up caching patches.
23376         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
23377         option --no-cache. Use associative arrays when supported by the shell.
23378         (sed_comments): New variable.
23379         (modcache): Renamed from do_cache.
23380         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
23381         abbreviate unnecessarily.
23382         (have_associative): New variable.
23383         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
23384         way also for ksh and zsh.
23385         (func_init_sed_convert_to_cache_statements): New function, extracted
23386         from func_cache_lookup_module. Add support for associative arrays.
23387         Don't set the c_MODULE_cached variable here. Ignore all lines before
23388         the first field header. Remove only the final newline, not all trailing
23389         newlines. Support empty fields correctly. Limit the use of 'eval' to
23390         assignments.
23391         (func_get_description, func_get_status, func_get_notice,
23392         func_get_applicability, func_get_filelist, func_get_dependencies,
23393         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
23394         func_get_automake_snippet, func_get_include_directive,
23395         func_get_link_directive, func_get_license, func_get_maintainer):
23396         Update documentation. List the unoptimized code first. Add support for
23397         associative arrays. Limit the use of 'eval' to assignments.
23398         (func_get_applicability): Undo stylistic pessimisations.
23399         (func_get_automake_snippet, func_get_include_directive): Reduce code
23400         duplication.
23401         (func_modules_transitive_closure, func_modules_add_dummy,
23402         func_modules_notice, func_modules_to_filelist, func_add_file,
23403         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
23404         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
23405         func_create_testdir, func_create_megatestdir): Update documentation.
23406
23407 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23408
23409         * gnulib-tool (func_cache_lookup_module): Store the module name
23410         belonging to the cache variable; error out if two different
23411         module names map to the same cache variable name.
23412
23413 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23414
23415         gnulib-tool: Make caching optional.
23416         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
23417         Update matching short versions of --no-changelog.
23418         (func_usage): Update.
23419         (sed_extract_cache_prog): Renamed from ...
23420         (sed_extract_prog): ... this; revert to old extraction script.
23421         (func_get_description, func_get_status)
23422         (func_get_notice, func_get_applicability, func_get_filelist)
23423         (func_get_dependencies, func_get_autoconf_early_snippet)
23424         (func_get_autoconf_snippet, func_get_automake_snippet)
23425         (func_get_include_directive, func_get_link_directive)
23426         (func_get_license, func_get_maintainer): If $do_cache is false,
23427         use old, non-caching extraction scripts.
23428         Suggestion by Bruno Haible.
23429
23430 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23431
23432         gnulib-tool: cache module metainformation.
23433         * gnulib-tool (sed_extract_prog): Match newline before each
23434         header, and rewrite header to a shell variable suffix.
23435         (func_cache_var, func_cache_lookup_module): New functions,
23436         to turn a module name into a cache variable prefix, and to
23437         look up and cache module metainformation.
23438         (func_get_description, func_get_status)
23439         (func_get_notice, func_get_applicability, func_get_filelist)
23440         (func_get_dependencies, func_get_autoconf_early_snippet)
23441         (func_get_autoconf_snippet, func_get_automake_snippet)
23442         (func_get_include_directive, func_get_link_directive)
23443         (func_get_license, func_get_maintainer): Use
23444         func_cache_lookup_module.
23445
23446 2010-02-07  Bruno Haible  <bruno@clisp.org>
23447
23448         fnctl: Fix missing dependency.
23449         * modules/fcntl (Depends-on): Add getdtablesize.
23450         Reported by John W. Eaton <jwe@gnu.org>.
23451
23452 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23453
23454         Argp: fix recognition of short alias options.
23455
23456         * lib/argp-parse.c (convert_options): Fix improper use of
23457         `|' between character values.
23458         * tests/test-argp.c (group1_option): New alias option
23459         --read (-r).
23460         (group1_parser): Special handling for 'r'.
23461         (test15): New test case.
23462         (test_fun): Add test15.
23463         * tests/test-argp-2.sh: Update expected --help and --usage
23464         outputs.
23465
23466 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23467
23468         * tests/test-argp.c: Fix indentation.
23469
23470 2010-02-04  Eric Blake  <ebb9@byu.net>
23471
23472         gettimeofday: expose type of second argument
23473         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
23474         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
23475         * tests/test-gettimeofday.c: Use it to silence warning.
23476         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
23477         the issue.
23478
23479 2010-02-03  Jim Meyering  <meyering@redhat.com>
23480
23481         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
23482         * lib/regcomp.c (TYPE_SIGNED): Define.
23483         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
23484
23485         regcomp.c: avoid a new -Wshadow warning
23486         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
23487
23488 2010-02-01  Jim Meyering  <meyering@redhat.com>
23489
23490         removing useless parentheses in cpp #define directives
23491         For motivation, see commit c0221df4, "define STREQ(a,b)
23492         consistently, removing useless parentheses"
23493         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
23494         * lib/mountlist.c (MNT_IGNORE): Likewise.
23495         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
23496
23497 2010-02-01  Eric Blake  <ebb9@byu.net>
23498
23499         sys_time: use link-warning
23500         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
23501         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
23502         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
23503         * modules/sys_time (Depends-on): Add warn-on-use.
23504         (Makefile.am): Always build replacement.
23505         (configure.ac): Update substitutions.
23506         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
23507         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
23508         bother with SYS_TIME_H.
23509         * modules/gettimeofday (configure.ac): Declare indicator.
23510         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
23511         in use.
23512
23513         closein-tests: silence compiler warning
23514         * tests/test-closein.c (main): Ignore fread result.
23515         * modules/closein-tests (Depends-on): Add ignore-value.
23516
23517         tests: silence warning about system return
23518         * tests/test-areadlink-with-size.c (main): Ignore system result.
23519         * tests/test-areadlink.c (main): Likewise.
23520         * tests/test-areadlinkat-with-size.c (main): Likewise.
23521         * tests/test-areadlinkat.c (main): Likewise.
23522         * tests/test-canonicalize-lgpl.c (main): Likewise.
23523         * tests/test-canonicalize.c (main): Likewise.
23524         * tests/test-chown.c (main): Likewise.
23525         * tests/test-fchownat.c (main): Likewise.
23526         * tests/test-fdutimensat.c (main): Likewise.
23527         * tests/test-fstatat.c (main): Likewise.
23528         * tests/test-futimens.c (main): Likewise.
23529         * tests/test-lchown.c (main): Likewise.
23530         * tests/test-link.c (main): Likewise.
23531         * tests/test-linkat.c (main): Likewise.
23532         * tests/test-lstat.c (main): Likewise.
23533         * tests/test-mkdir.c (main): Likewise.
23534         * tests/test-mkdirat.c (main): Likewise.
23535         * tests/test-mkfifo.c (main): Likewise.
23536         * tests/test-mkfifoat.c (main): Likewise.
23537         * tests/test-mknod.c (main): Likewise.
23538         * tests/test-readlink.c (main): Likewise.
23539         * tests/test-remove.c (main): Likewise.
23540         * tests/test-rename.c (main): Likewise.
23541         * tests/test-renameat.c (main): Likewise.
23542         * tests/test-rmdir.c (main): Likewise.
23543         * tests/test-symlink.c (main): Likewise.
23544         * tests/test-symlinkat.c (main): Likewise.
23545         * tests/test-unlink.c (main): Likewise.
23546         * tests/test-unlinkat.c (main): Likewise.
23547         * tests/test-utimens.c (main): Likewise.
23548         * tests/test-utimensat.c (main): Likewise.
23549         * modules/areadlink-tests (Depends-on): Add ignore-value.
23550         * modules/areadlink-with-size-tests (Depends-on): Likewise.
23551         * modules/areadlinkat-tests (Depends-on): Likewise.
23552         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
23553         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
23554         * modules/canonicalize-tests (Depends-on): Likewise.
23555         * modules/chown-tests (Depends-on): Likewise.
23556         * modules/fdutimensat-tests (Depends-on): Likewise.
23557         * modules/futimens-tests (Depends-on): Likewise.
23558         * modules/lchown-tests (Depends-on): Likewise.
23559         * modules/link-tests (Depends-on): Likewise.
23560         * modules/linkat-tests (Depends-on): Likewise.
23561         * modules/lstat-tests (Depends-on): Likewise.
23562         * modules/mkdir-tests (Depends-on): Likewise.
23563         * modules/mkfifo-tests (Depends-on): Likewise.
23564         * modules/mkfifoat-tests (Depends-on): Likewise.
23565         * modules/mknod-tests (Depends-on): Likewise.
23566         * modules/openat-tests (Depends-on): Likewise.
23567         * modules/readlink-tests (Depends-on): Likewise.
23568         * modules/remove-tests (Depends-on): Likewise.
23569         * modules/rename-tests (Depends-on): Likewise.
23570         * modules/renameat-tests (Depends-on): Likewise.
23571         * modules/rmdir-tests (Depends-on): Likewise.
23572         * modules/symlink-tests (Depends-on): Likewise.
23573         * modules/symlinkat-tests (Depends-on): Likewise.
23574         * modules/unlink-tests (Depends-on): Likewise.
23575         * modules/utimens-tests (Depends-on): Likewise.
23576         * modules/utimensat-tests (Depends-on): Likewise.
23577
23578 2010-01-31  Bruno Haible  <bruno@clisp.org>
23579
23580         Perform the same test for many <math.h> functions.
23581         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
23582         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
23583         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
23584         of gl_MATHFUNC.
23585         * modules/acos (configure.ac): Likewise.
23586         * modules/asin (configure.ac): Likewise.
23587         * modules/atan (configure.ac): Likewise.
23588         * modules/atan2 (configure.ac): Likewise.
23589         * modules/cbrt (configure.ac): Likewise.
23590         * modules/copysign (configure.ac): Likewise.
23591         * modules/cos (configure.ac): Likewise.
23592         * modules/cosh (configure.ac): Likewise.
23593         * modules/erf (configure.ac): Likewise.
23594         * modules/erfc (configure.ac): Likewise.
23595         * modules/exp (configure.ac): Likewise.
23596         * modules/fmod (configure.ac): Likewise.
23597         * modules/hypot (configure.ac): Likewise.
23598         * modules/j0 (configure.ac): Likewise.
23599         * modules/j1 (configure.ac): Likewise.
23600         * modules/jn (configure.ac): Likewise.
23601         * modules/lgamma (configure.ac): Likewise.
23602         * modules/log (configure.ac): Likewise.
23603         * modules/log10 (configure.ac): Likewise.
23604         * modules/log1p (configure.ac): Likewise.
23605         * modules/pow (configure.ac): Likewise.
23606         * modules/remainder (configure.ac): Likewise.
23607         * modules/sin (configure.ac): Likewise.
23608         * modules/sinh (configure.ac): Likewise.
23609         * modules/tan (configure.ac): Likewise.
23610         * modules/tanh (configure.ac): Likewise.
23611         * modules/y0 (configure.ac): Likewise.
23612         * modules/y1 (configure.ac): Likewise.
23613         * modules/yn (configure.ac): Likewise.
23614         Suggested by Paolo Bonzini.
23615
23616 2010-01-31  Bruno Haible  <bruno@clisp.org>
23617
23618         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
23619
23620 2010-01-31  Bruno Haible  <bruno@clisp.org>
23621
23622         Work around getdelim() bug on FreeBSD 8.0.
23623         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
23624         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
23625         not work.
23626         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
23627         is 1.
23628         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
23629         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
23630         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
23631         a non-zero size.
23632         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
23633
23634 2010-01-31  Bruno Haible  <bruno@clisp.org>
23635
23636         Work around getline() bug on FreeBSD 8.0.
23637         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
23638         and a non-zero size.
23639         * tests/test-getline.c (main): Likewise.
23640         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
23641         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
23642
23643 2010-01-28  Eric Blake  <ebb9@byu.net>
23644
23645         regex: fix build failure
23646         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
23647         platforms.
23648
23649 2010-01-28  Jim Meyering  <meyering@redhat.com>
23650
23651         regex: do not ignore memory allocation failure
23652         * lib/regex_internal.c (create_cd_newstate): Detect
23653         re_node_set_init_copy failure.   Extracted from glibc commit
23654         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23655
23656         regex: sync more white-space changes from libc
23657         * lib/regex_internal.c: White-space only changes.
23658         * lib/regexec.c: Likewise.
23659
23660         regex: add many uses of __attribute_warn_unused_result__
23661         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
23662         * lib/regexec.c: Likewise.
23663         Extracted from a messy glibc commit.
23664
23665         regcomp.c: spelling and merge-artifact from glibc
23666         * lib/regcomp.c: Merge remainder of glibc's
23667         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23668
23669         regcomp.c: sync white-space changes from glibc
23670         * lib/regcomp.c: Merge to accommodate white space
23671         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23672
23673         regcomp.c: do not ignore internal return values
23674         * lib/regcomp.c: Do not ignore internal return values.
23675         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
23676         but without its white-space changes and spelling fixes.
23677
23678         regex_internal.h: define __attribute_warn_unused_result__
23679         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
23680
23681         maint: add a syntax-check rule to check for vulnerable Makefile.in
23682         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
23683
23684 2010-01-27  Jim Meyering  <meyering@redhat.com>
23685
23686         ncftpput-ftp: clean up spaces
23687         * build-aux/ncftpput-ftp: Make Copyright line consistent.
23688         Remove trailing blanks.
23689
23690 2010-01-27  Simon Josefsson  <simon@josefsson.org>
23691
23692         * build-aux/git-version-gen: Fix copyright statement.
23693         * build-aux/gnupload: Likewise.
23694         * tests/test-arcfour.c: Likewise.
23695         * tests/test-arctwo.c: Likewise.
23696         * tests/test-count-one-bits.c: Likewise.
23697         * tests/test-crc.c: Likewise.
23698         * tests/test-des.c: Likewise.
23699         * tests/test-gc-arcfour.c: Likewise.
23700         * tests/test-gc-arctwo.c: Likewise.
23701         * tests/test-gc-des.c: Likewise.
23702         * tests/test-gc-hmac-md5.c: Likewise.
23703         * tests/test-gc-hmac-sha1.c: Likewise.
23704         * tests/test-gc-md2.c: Likewise.
23705         * tests/test-gc-md4.c: Likewise.
23706         * tests/test-gc-md5.c: Likewise.
23707         * tests/test-gc-pbkdf2-sha1.c: Likewise.
23708         * tests/test-gc-rijndael.c: Likewise.
23709         * tests/test-gc-sha1.c: Likewise.
23710         * tests/test-gc.c: Likewise.
23711         * tests/test-gethostname.c: Likewise.
23712         * tests/test-gettimeofday.c: Likewise.
23713         * tests/test-hash.c: Likewise.
23714         * tests/test-hmac-md5.c: Likewise.
23715         * tests/test-hmac-sha1.c: Likewise.
23716         * tests/test-md2.c: Likewise.
23717         * tests/test-md4.c: Likewise.
23718         * tests/test-md5.c: Likewise.
23719         * tests/test-memchr.c: Likewise.
23720         * tests/test-memchr2.c: Likewise.
23721         * tests/test-memcmp.c: Likewise.
23722         * tests/test-memmem.c: Likewise.
23723         * tests/test-memrchr.c: Likewise.
23724         * tests/test-rawmemchr.c: Likewise.
23725         * tests/test-read-file.c: Likewise.
23726         * tests/test-rijndael.c: Likewise.
23727         * tests/test-sockets.c: Likewise.
23728         * tests/test-strchrnul.c: Likewise.
23729         * tests/test-strstr.c: Likewise.
23730         * tests/test-strtod.c: Likewise.
23731         * build-aux/ncftpput-ftp: Likewise.
23732
23733 2010-01-26  Eric Blake  <ebb9@byu.net>
23734
23735         ignore-value: update recommended header name
23736         * modules/ignore-value (Include): Only use <> for headers that
23737         exist in glibc.
23738
23739 2010-01-26  Jim Meyering  <meyering@redhat.com>
23740
23741         test-userspec.c: avoid compiler warnings
23742         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
23743         and "initialization discards qualifiers..." warnings.
23744         Put the first "uid" in its own scope, and make char* members "const".
23745
23746 2010-01-25  Bruno Haible  <bruno@clisp.org>
23747
23748         gnulib-tool: Make warning diagnostics consistent.
23749         * gnulib-tool (func_warning): New function.
23750         Use it everywhere where gnulib-tool produces output to stderr and it is
23751         not a fatal error.
23752
23753 2010-01-25  Bruno Haible  <bruno@clisp.org>
23754
23755         Fix test dependencies.
23756         * modules/xstrtol-tests (Depends-on): Add inttypes.
23757         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
23758
23759 2010-01-25 Pádraig Brady <P@draigBrady.com>
23760
23761         syntax-check: detect incorrect boolean macro values in config.h
23762         * modules/maintainer-makefile (configure.ac): Parameterize the location
23763         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
23764         The logic is from Eric Blake and the location indicated by Jim Meyering.
23765         Note the more natural CONFIG_HEADER name is prohibited by automake
23766         for backwards compatibility reasons.
23767         * top/maint.mk (sc_Wundef_boolean): New rule.
23768
23769 2010-01-25  Jim Meyering  <meyering@redhat.com>
23770
23771         bootstrap: detect MacOS 10.6's shasum, too
23772         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
23773         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
23774
23775 2010-01-23  Jim Meyering  <meyering@redhat.com>
23776
23777         xstrtoll: new module
23778         * modules/xstrtoll: New file.
23779         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
23780         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
23781         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
23782         ./configure fails if you use this module and lack "long long".
23783         * modules/xstrtoll-tests: New module.
23784         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
23785         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
23786         new init.sh-based test framework.
23787
23788 2010-01-24  Bruno Haible  <bruno@clisp.org>
23789
23790         Tests for module 'yn'.
23791         * modules/yn-tests: New file.
23792         * tests/test-yn.c: New file.
23793
23794         Tests for module 'y1'.
23795         * modules/y1-tests: New file.
23796         * tests/test-y1.c: New file.
23797
23798         Tests for module 'y0'.
23799         * modules/y0-tests: New file.
23800         * tests/test-y0.c: New file.
23801
23802         Tests for module 'tanh'.
23803         * modules/tanh-tests: New file.
23804         * tests/test-tanh.c: New file.
23805
23806         Tests for module 'tan'.
23807         * modules/tan-tests: New file.
23808         * tests/test-tan.c: New file.
23809
23810         Tests for module 'sqrt'.
23811         * modules/sqrt-tests: New file.
23812         * tests/test-sqrt.c: New file.
23813
23814         Tests for module 'sinh'.
23815         * modules/sinh-tests: New file.
23816         * tests/test-sinh.c: New file.
23817
23818         Tests for module 'sin'.
23819         * modules/sin-tests: New file.
23820         * tests/test-sin.c: New file.
23821
23822         Tests for module 'rint'.
23823         * modules/rint-tests: New file.
23824         * tests/test-rint.c: New file.
23825
23826         Tests for module 'remainder'.
23827         * modules/remainder-tests: New file.
23828         * tests/test-remainder.c: New file.
23829
23830         Tests for module 'pow'.
23831         * modules/pow-tests: New file.
23832         * tests/test-pow.c: New file.
23833
23834         Tests for module 'nextafter'.
23835         * modules/nextafter-tests: New file.
23836         * tests/test-nextafter.c: New file.
23837
23838         Tests for module 'modf'.
23839         * modules/modf-tests: New file.
23840         * tests/test-modf.c: New file.
23841
23842         Tests for module 'logb'.
23843         * modules/logb-tests: New file.
23844         * tests/test-logb.c: New file.
23845
23846         Tests for module 'log1p'.
23847         * modules/log1p-tests: New file.
23848         * tests/test-log1p.c: New file.
23849
23850         Tests for module 'log10'.
23851         * modules/log10-tests: New file.
23852         * tests/test-log10.c: New file.
23853
23854         Tests for module 'log'.
23855         * modules/log-tests: New file.
23856         * tests/test-log.c: New file.
23857
23858         Tests for module 'lgamma'.
23859         * modules/lgamma-tests: New file.
23860         * tests/test-lgamma.c: New file.
23861
23862         Tests for module 'ldexp'.
23863         * modules/ldexp-tests: New file.
23864         * tests/test-ldexp.c: New file.
23865
23866         Tests for module 'jn'.
23867         * modules/jn-tests: New file.
23868         * tests/test-jn.c: New file.
23869
23870         Tests for module 'j1'.
23871         * modules/j1-tests: New file.
23872         * tests/test-j1.c: New file.
23873
23874         Tests for module 'j0'.
23875         * modules/j0-tests: New file.
23876         * tests/test-j0.c: New file.
23877
23878         Tests for module 'hypot'.
23879         * modules/hypot-tests: New file.
23880         * tests/test-hypot.c: New file.
23881
23882         Tests for module 'fmod'.
23883         * modules/fmod-tests: New file.
23884         * tests/test-fmod.c: New file.
23885
23886         Tests for module 'fabs'.
23887         * modules/fabs-tests: New file.
23888         * tests/test-fabs.c: New file.
23889
23890         Tests for module 'exp'.
23891         * modules/exp-tests: New file.
23892         * tests/test-exp.c: New file.
23893
23894         Tests for module 'erfc'.
23895         * modules/erfc-tests: New file.
23896         * tests/test-erfc.c: New file.
23897
23898         Tests for module 'erf'.
23899         * modules/erf-tests: New file.
23900         * tests/test-erf.c: New file.
23901
23902         Tests for module 'cosh'.
23903         * modules/cosh-tests: New file.
23904         * tests/test-cosh.c: New file.
23905
23906         Tests for module 'cos'.
23907         * modules/cos-tests: New file.
23908         * tests/test-cos.c: New file.
23909
23910         Tests for module 'copysign'.
23911         * modules/copysign-tests: New file.
23912         * tests/test-copysign.c: New file.
23913
23914         Tests for module 'cbrt'.
23915         * modules/cbrt-tests: New file.
23916         * tests/test-cbrt.c: New file.
23917
23918         Tests for module 'atan2'.
23919         * modules/atan2-tests: New file.
23920         * tests/test-atan2.c: New file.
23921
23922         Tests for module 'atan'.
23923         * modules/atan-tests: New file.
23924         * tests/test-atan.c: New file.
23925
23926         Tests for module 'asin'.
23927         * modules/asin-tests: New file.
23928         * tests/test-asin.c: New file.
23929
23930         Tests for module 'acos'.
23931         * modules/acos-tests: New file.
23932         * tests/test-acos.c: New file.
23933
23934 2010-01-24  Bruno Haible  <bruno@clisp.org>
23935
23936         Fix tests for common <math.h> functions.
23937         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
23938         code snippet that references the function pointer, rather than merely
23939         calling the function. Substitute the FUNC_LIBM variable.
23940         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
23941         * modules/acos (configure.ac): Likewise.
23942         * modules/asin (configure.ac): Likewise.
23943         * modules/atan (configure.ac): Likewise.
23944         * modules/atan2 (configure.ac): Likewise.
23945         * modules/cbrt (configure.ac): Likewise.
23946         * modules/copysign (configure.ac): Likewise.
23947         * modules/cos (configure.ac): Likewise.
23948         * modules/cosh (configure.ac): Likewise.
23949         * modules/erf (configure.ac): Likewise.
23950         * modules/erfc (configure.ac): Likewise.
23951         * modules/exp (configure.ac): Likewise.
23952         * modules/fabs (configure.ac): Likewise.
23953         * modules/fmod (configure.ac): Likewise.
23954         * modules/hypot (configure.ac): Likewise.
23955         * modules/j0 (configure.ac): Likewise.
23956         * modules/j1 (configure.ac): Likewise.
23957         * modules/jn (configure.ac): Likewise.
23958         * modules/ldexp (configure.ac): Likewise.
23959         * modules/lgamma (configure.ac): Likewise.
23960         * modules/log (configure.ac): Likewise.
23961         * modules/log10 (configure.ac): Likewise.
23962         * modules/log1p (configure.ac): Likewise.
23963         * modules/logb (configure.ac): Likewise.
23964         * modules/modf (configure.ac): Likewise.
23965         * modules/nextafter (configure.ac): Likewise.
23966         * modules/pow (configure.ac): Likewise.
23967         * modules/remainder (configure.ac): Likewise.
23968         * modules/rint (configure.ac): Likewise.
23969         * modules/sin (configure.ac): Likewise.
23970         * modules/sinh (configure.ac): Likewise.
23971         * modules/tan (configure.ac): Likewise.
23972         * modules/tanh (configure.ac): Likewise.
23973         * modules/y0 (configure.ac): Likewise.
23974         * modules/y1 (configure.ac): Likewise.
23975         * modules/yn (configure.ac): Likewise.
23976
23977 2010-01-24  Bruno Haible  <bruno@clisp.org>
23978
23979         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
23980         * tests/test-acosl.c (x): New variable.
23981         (main): Store argument in x and fetch it from x.
23982         * tests/test-asinl.c (x): New variable.
23983         (main): Store argument in x and fetch it from x.
23984         * tests/test-atanl.c (x): New variable.
23985         (main): Store argument in x and fetch it from x.
23986         * tests/test-cosl.c (x): New variable.
23987         (main): Store argument in x and fetch it from x.
23988         * tests/test-expl.c (x): New variable.
23989         (main): Store argument in x and fetch it from x.
23990         * tests/test-logl.c (x): New variable.
23991         (main): Store argument in x and fetch it from x.
23992         * tests/test-sinl.c (x): New variable.
23993         (main): Store argument in x and fetch it from x.
23994         * tests/test-sqrtl.c (x): New variable.
23995         (main): Store argument in x and fetch it from x.
23996         * tests/test-tanl.c (x): New variable.
23997         (main): Store argument in x and fetch it from x.
23998
23999 2010-01-24  Bruno Haible  <bruno@clisp.org>
24000
24001         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
24002         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
24003         assignments to the initial TESTS_ENVIRONMENT.
24004         * doc/gnulib.texi (Unit test modules): Document it.
24005         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
24006         TESTS_ENVIRONMENT.
24007         * modules/btowc-tests (Makefile.am): Likewise.
24008         * modules/c-stack-tests (Makefile.am): Likewise.
24009         * modules/c-strcase-tests (Makefile.am): Likewise.
24010         * modules/copy-file-tests (Makefile.am): Likewise.
24011         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
24012         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
24013         * modules/mbrtowc-tests (Makefile.am): Likewise.
24014         * modules/mbscasecmp-tests (Makefile.am): Likewise.
24015         * modules/mbscasestr-tests (Makefile.am): Likewise.
24016         * modules/mbschr-tests (Makefile.am): Likewise.
24017         * modules/mbscspn-tests (Makefile.am): Likewise.
24018         * modules/mbsinit-tests (Makefile.am): Likewise.
24019         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
24020         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
24021         * modules/mbspbrk-tests (Makefile.am): Likewise.
24022         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
24023         * modules/mbsrchr-tests (Makefile.am): Likewise.
24024         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
24025         * modules/mbsspn-tests (Makefile.am): Likewise.
24026         * modules/mbsstr-tests (Makefile.am): Likewise.
24027         * modules/nl_langinfo-tests (Makefile.am): Likewise.
24028         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
24029         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
24030         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
24031         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
24032         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
24033         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
24034         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
24035         * modules/wcrtomb-tests (Makefile.am): Likewise.
24036         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
24037         * modules/wcsrtombs-tests (Makefile.am): Likewise.
24038         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
24039         assignments from TESTS_ENVIRONMENT.
24040         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
24041         augmentation.
24042         * modules/argp-version-etc-tests (Makefile.am): Likewise.
24043         * modules/atexit-tests (Makefile.am): Likewise.
24044         * modules/binary-io-tests (Makefile.am): Likewise.
24045         * modules/closein-tests (Makefile.am): Likewise.
24046         * modules/dprintf-posix-tests (Makefile.am): Likewise.
24047         * modules/exclude-tests (Makefile.am): Likewise.
24048         * modules/fflush-tests (Makefile.am): Likewise.
24049         * modules/fpending-tests (Makefile.am): Likewise.
24050         * modules/fprintf-posix-tests (Makefile.am): Likewise.
24051         * modules/freadahead-tests (Makefile.am): Likewise.
24052         * modules/freadptr-tests (Makefile.am): Likewise.
24053         * modules/freadseek-tests (Makefile.am): Likewise.
24054         * modules/fseek-tests (Makefile.am): Likewise.
24055         * modules/fseeko-tests (Makefile.am): Likewise.
24056         * modules/ftell-tests (Makefile.am): Likewise.
24057         * modules/ftello-tests (Makefile.am): Likewise.
24058         * modules/idpriv-drop-tests (Makefile.am): Likewise.
24059         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
24060         * modules/lseek-tests (Makefile.am): Likewise.
24061         * modules/parse-duration-tests (Makefile.am): Likewise.
24062         * modules/perror-tests (Makefile.am): Likewise.
24063         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
24064         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
24065         * modules/pipe-tests (Makefile.am): Likewise.
24066         * modules/pread-tests (Makefile.am): Likewise.
24067         * modules/printf-posix-tests (Makefile.am): Likewise.
24068         * modules/select-tests (Makefile.am): Likewise.
24069         * modules/sigpipe-tests (Makefile.am): Likewise.
24070         * modules/tsearch-tests (Makefile.am): Likewise.
24071         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
24072         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
24073         * modules/uniname/uniname-tests (Makefile.am): Likewise.
24074         * modules/uniwidth/width-tests (Makefile.am): Likewise.
24075         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
24076         * modules/version-etc-tests (Makefile.am): Likewise.
24077         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
24078         * modules/vprintf-posix-tests (Makefile.am): Likewise.
24079         * modules/xalloc-die-tests (Makefile.am): Likewise.
24080         * modules/xprintf-posix-tests (Makefile.am): Likewise.
24081         * modules/xstrtoimax-tests (Makefile.am): Likewise.
24082         * modules/xstrtol-tests (Makefile.am): Likewise.
24083         * modules/xstrtoumax-tests (Makefile.am): Likewise.
24084         * modules/yesno-tests (Makefile.am): Likewise.
24085         Suggested by Jim Meyering.
24086
24087 2010-01-24  Bruno Haible  <bruno@clisp.org>
24088
24089         More documentation.
24090         * doc/gnulib.texi (Writing modules): New chapter.
24091         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
24092         the new chapter.
24093
24094 2010-01-24  Jim Meyering  <meyering@redhat.com>
24095
24096         maint.mk: do not prepend "./" after filtering
24097         * top/maint.mk (_prepend_srcdir_prefix): New variable
24098         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
24099         "./" when $(srcdir) is ".".
24100
24101         define STREQ(a,b) consistently, removing useless parentheses
24102         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
24103         since the only risk is that "a" or "b" contains an unparenthesized
24104         comma, but if either did that, STREQ would have 3 or more arguments.
24105         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
24106         * lib/fts.c (STREQ): Remove unnecessary parentheses.
24107         * lib/hash-triple.c (STREQ): Likewise.
24108         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
24109         * lib/getugroups.c (STREQ): Likewise.
24110
24111 2010-01-23  Jim Meyering  <meyering@redhat.com>
24112
24113         maint.mk: fix syntax-check in a non-srcdir build directory
24114         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
24115         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
24116
24117 2010-01-22  Jim Meyering  <meyering@redhat.com>
24118
24119         userspec: add unit tests
24120         * tests/test-userspec.c: New file.
24121         * modules/userspec-tests: Likewise.
24122
24123 2010-01-21  Jim Meyering  <meyering@redhat.com>
24124
24125         maint.mk: handle source file names containing "." robustly
24126         * top/maint.mk (_dot_escaped_srcdir): Define.
24127         (VC_LIST): Use it in LHS of sed substitution.
24128
24129 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
24130
24131         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
24132         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
24133         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
24134         from a non-srcdir build.
24135
24136 2010-01-20  Eric Blake  <ebb9@byu.net>
24137
24138         warn-on-use: use instead of link-warning
24139         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
24140         * modules/unistd (Depends-on, Makefile.am): Likewise.
24141         * modules/arpa_inet (Depends-on): Replace link-warning with
24142         warn-on-use.
24143         (Makefile.am): Update rules accordingly.
24144         * modules/ctype (Depends-on, Makefile.am): Likewise.
24145         * modules/dirent (Depends-on, Makefile.am): Likewise.
24146         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
24147         * modules/inttypes (Depends-on, Makefile.am): Likewise.
24148         * modules/langinfo (Depends-on, Makefile.am): Likewise.
24149         * modules/locale (Depends-on, Makefile.am): Likewise.
24150         * modules/math (Depends-on, Makefile.am): Likewise.
24151         * modules/search (Depends-on, Makefile.am): Likewise.
24152         * modules/signal (Depends-on, Makefile.am): Likewise.
24153         * modules/spawn (Depends-on, Makefile.am): Likewise.
24154         * modules/stdlib (Depends-on, Makefile.am): Likewise.
24155         * modules/string (Depends-on, Makefile.am): Likewise.
24156         * modules/strings (Depends-on, Makefile.am): Likewise.
24157         * modules/sys_file (Depends-on, Makefile.am): Likewise.
24158         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
24159         * modules/sys_select (Depends-on, Makefile.am): Likewise.
24160         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
24161         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
24162         * modules/sys_times (Depends-on, Makefile.am): Likewise.
24163         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
24164         * modules/wchar (Depends-on, Makefile.am): Likewise.
24165         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
24166         should be poisoned.
24167         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
24168         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
24169         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
24170         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24171         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
24172         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
24173         * m4/math_h.m4 (gl_MATH_H): Likewise.
24174         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24175         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
24176         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24177         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
24178         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
24179         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
24180         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
24181         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
24182         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
24183         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24184         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24185         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
24186         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24187         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24188         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24189         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
24190         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
24191         GL_LINK_WARNING.
24192         * lib/ctype.in.h: Likewise.
24193         * lib/dirent.in.h: Likewise.
24194         * lib/fcntl.in.h: Likewise.
24195         * lib/inttypes.in.h: Likewise.
24196         * lib/langinfo.in.h: Likewise.
24197         * lib/locale.in.h: Likewise.
24198         * lib/math.in.h: Likewise.
24199         * lib/search.in.h: Likewise.
24200         * lib/signal.in.h: Likewise.
24201         * lib/spawn.in.h: Likewise.
24202         * lib/stdio.in.h: Likewise.
24203         * lib/stdlib.in.h: Likewise.
24204         * lib/string.in.h: Likewise.
24205         * lib/strings.in.h: Likewise.
24206         * lib/sys_file.in.h: Likewise.
24207         * lib/sys_ioctl.in.h: Likewise.
24208         * lib/sys_select.in.h: Likewise.
24209         * lib/sys_socket.in.h: Likewise.
24210         * lib/sys_stat.in.h: Likewise.
24211         * lib/sys_times.in.h: Likewise.
24212         * lib/sys_utsname.in.h: Likewise.
24213         * lib/unistd.in.h: Likewise.
24214         * lib/wchar.in.h: Likewise.
24215
24216 2010-01-20  Bruno Haible  <bruno@clisp.org>
24217
24218         Avoid duplicate -lm.
24219         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
24220         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
24221         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
24222         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
24223         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
24224         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
24225         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
24226         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
24227         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
24228         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
24229         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
24230         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
24231         Reported by Paolo Bonzini.
24232
24233 2010-01-19  Bruno Haible  <bruno@clisp.org>
24234
24235         langinfo, nl_langinfo: Relicense under LGPLv2+.
24236         * modules/langinfo (License): Change to LGPLv2+.
24237         * modules/nl_langinfo (License): Likewise.
24238         Patch by David Lutterkort <lutter@redhat.com>.
24239
24240 2010-01-19  Bruno Haible  <bruno@clisp.org>
24241
24242         Avoid compilation error with cc on OSF/1 5.1.
24243         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
24244         statement, not before.
24245         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24246
24247 2010-01-18  Bruno Haible  <bruno@clisp.org>
24248
24249         Avoid a link error due to the __printf__ symbol.
24250         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
24251         and 2.6.x.
24252         (__format__, __printf__): Remove definitions.
24253         * lib/argp-fmtstream.h: Likewise.
24254         * lib/argp.h: Likewise.
24255         * lib/error.h: Likewise.
24256         * lib/vasnprintf.h: Likewise.
24257         * lib/xprintf.h: Likewise.
24258         * lib/xvasprintf.h: Likewise.
24259         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24260
24261 2010-01-18  Bruno Haible  <bruno@clisp.org>
24262
24263         Tests for module 'tanl'.
24264         * modules/tanl-tests: New file.
24265         * tests/test-tanl.c: New file.
24266
24267         Tests for module 'sqrtl'.
24268         * modules/sqrtl-tests: New file.
24269         * tests/test-sqrtl.c: New file.
24270
24271         Tests for module 'sinl'.
24272         * modules/sinl-tests: New file.
24273         * tests/test-sinl.c: New file.
24274
24275         Tests for module 'logl'.
24276         * modules/logl-tests: New file.
24277         * tests/test-logl.c: New file.
24278
24279         Tests for module 'expl'.
24280         * modules/expl-tests: New file.
24281         * tests/test-expl.c: New file.
24282
24283         Tests for module 'cosl'.
24284         * modules/cosl-tests: New file.
24285         * tests/test-cosl.c: New file.
24286
24287         Tests for module 'atanl'.
24288         * modules/atanl-tests: New file.
24289         * tests/test-atanl.c: New file.
24290
24291         Tests for module 'asinl'.
24292         * modules/asinl-tests: New file.
24293         * tests/test-asinl.c: New file.
24294
24295         Tests for module 'acosl'.
24296         * modules/acosl-tests: New file.
24297         * tests/test-acosl.c: New file.
24298
24299         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
24300         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
24301         tanl): Use the standard gnulib idiom.
24302         * lib/cosl.c: Don't include trigl.c and sincosl.c.
24303         * lib/sinl.c: Likewise.
24304         * lib/tanl.c: Don't include trigl.c.
24305         (kernel_tanl): Make static.
24306         * lib/sincosl.c: Include trigl.h first.
24307         * lib/trigl.c: Likewise.
24308         * m4/acosl.m4: New file.
24309         * m4/asinl.m4: New file.
24310         * m4/atanl.m4: New file.
24311         * m4/cosl.m4: New file.
24312         * m4/expl.m4: New file.
24313         * m4/logl.m4: New file.
24314         * m4/sinl.m4: New file.
24315         * m4/sqrtl.m4: New file.
24316         * m4/tanl.m4: New file.
24317         * m4/mathl.m4: Remove file.
24318         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
24319         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
24320         Don't initialize GNULIB_MATHL.
24321         * modules/acosl: New file.
24322         * modules/asinl: New file.
24323         * modules/atanl: New file.
24324         * modules/cosl: New file.
24325         * modules/expl: New file.
24326         * modules/logl: New file.
24327         * modules/sinl: New file.
24328         * modules/sqrtl: New file.
24329         * modules/tanl: New file.
24330         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
24331         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
24332         substitute GNULIB_MATHL.
24333         * modules/mathl: Rewritten.
24334         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
24335         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
24336         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
24337         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
24338         * doc/posix-functions/expl.texi: Mention the 'expl' module.
24339         * doc/posix-functions/logl.texi: Mention the 'logl' module.
24340         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
24341         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
24342         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
24343
24344 2010-01-18  Bruno Haible  <bruno@clisp.org>
24345
24346         sqrt: Make gl_FUNC_SQRT requirable.
24347         * m4/sqrt.m4: New file.
24348         * modules/sqrt (Files): Add it.
24349         (configure.ac): Invoke gl_FUNC_SQRT.
24350
24351 2010-01-18  Bruno Haible  <bruno@clisp.org>
24352
24353         New modules for common <math.h> functions.
24354         * m4/mathfunc.m4: New file.
24355         * modules/acos: New file.
24356         * modules/asin: New file.
24357         * modules/atan: New file.
24358         * modules/atan2: New file.
24359         * modules/cbrt: New file.
24360         * modules/copysign: New file.
24361         * modules/cos: New file.
24362         * modules/cosh: New file.
24363         * modules/erf: New file.
24364         * modules/erfc: New file.
24365         * modules/exp: New file.
24366         * modules/fabs: New file.
24367         * modules/fmod: New file.
24368         * modules/hypot: New file.
24369         * modules/j0: New file.
24370         * modules/j1: New file.
24371         * modules/jn: New file.
24372         * modules/ldexp: New file.
24373         * modules/lgamma: New file.
24374         * modules/log: New file.
24375         * modules/log10: New file.
24376         * modules/log1p: New file.
24377         * modules/logb: New file.
24378         * modules/modf: New file.
24379         * modules/nextafter: New file.
24380         * modules/pow: New file.
24381         * modules/remainder: New file.
24382         * modules/rint: New file.
24383         * modules/sin: New file.
24384         * modules/sinh: New file.
24385         * modules/sqrt: New file.
24386         * modules/tan: New file.
24387         * modules/tanh: New file.
24388         * modules/y0: New file.
24389         * modules/y1: New file.
24390         * modules/yn: New file.
24391         * doc/posix-functions/acos.texi: Mention the 'acos' module.
24392         * doc/posix-functions/asin.texi: Mention the 'asin' module.
24393         * doc/posix-functions/atan.texi: Mention the 'atan' module.
24394         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
24395         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
24396         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
24397         * doc/posix-functions/cos.texi: Mention the 'cos' module.
24398         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
24399         * doc/posix-functions/erf.texi: Mention the 'erf' module.
24400         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
24401         * doc/posix-functions/exp.texi: Mention the 'exp' module.
24402         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
24403         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
24404         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
24405         * doc/posix-functions/j0.texi: Mention the 'j0' module.
24406         * doc/posix-functions/j1.texi: Mention the 'j1' module.
24407         * doc/posix-functions/jn.texi: Mention the 'jn' module.
24408         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
24409         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
24410         * doc/posix-functions/log.texi: Mention the 'log' module.
24411         * doc/posix-functions/log10.texi: Mention the 'log10' module.
24412         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
24413         * doc/posix-functions/logb.texi: Mention the 'logb' module.
24414         * doc/posix-functions/modf.texi: Mention the 'modf' module.
24415         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
24416         * doc/posix-functions/pow.texi: Mention the 'pow' module.
24417         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
24418         * doc/posix-functions/rint.texi: Mention the 'rint' module.
24419         * doc/posix-functions/sin.texi: Mention the 'sin' module.
24420         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
24421         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
24422         * doc/posix-functions/tan.texi: Mention the 'tan' module.
24423         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
24424         * doc/posix-functions/y0.texi: Mention the 'y0' module.
24425         * doc/posix-functions/y1.texi: Mention the 'y1' module.
24426         * doc/posix-functions/yn.texi: Mention the 'yn' module.
24427
24428 2010-01-18  Jim Meyering  <meyering@redhat.com>
24429
24430         ignore-value: relax license to LGPLv2+
24431         * modules/ignore-value (License): Relax to LGPLv2+.
24432
24433         getdate: don't leak when TZ contains two or more '"'s
24434         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
24435         double quote in TZ after the first one.
24436
24437         readtokens: do not leak internal token_lengths buffer
24438         * lib/readtokens.c (readtokens): Free the local, lengths,
24439         when the supplied "token_lengths" parameter is NULL.
24440
24441 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24442
24443         Fix a couple of missing LIBTHREAD link failures on AIX.
24444         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
24445         $(LIBTHREAD).
24446         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
24447
24448         Link test-poll against INET_PTON_LIB.
24449         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
24450         for inet_pton on Solaris 10.
24451
24452 2010-01-17  Bruno Haible  <bruno@clisp.org>
24453
24454         unistdio/*-sprintf: Fix typo in module description.
24455         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
24456         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
24457         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
24458         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
24459         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
24460         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
24461         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
24462         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24463
24464 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24465
24466         gnulib-tool: fix filelist for AIX, HP-UX ksh.
24467         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
24468         variables in shell case patterns, for AIX and HP-UX ksh.
24469
24470         Split large sed scripts, for HP-UX sed.
24471         * modules/stdio: Split sed scripts around 50 sed commands,
24472         to avoid HP-UX limit of 99 commands, in the near future.
24473         * modules/string: Likewise.
24474         * modules/unistd: Likewise.
24475
24476         gnulib-tool: avoid writing in the current directory.
24477         * gnulib-tool (func_emit_lib_Makefile_am)
24478         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
24479         not in the current directory, so concurrent gnulib-tool
24480         instances do not interfere.
24481
24482 2010-01-16  Jim Meyering  <meyering@redhat.com>
24483
24484         doc: update users.txt
24485         * users.txt: Add grep.
24486         (diffutils, gzip): Update URLs.
24487
24488 2010-01-12  Bruno Haible  <bruno@clisp.org>
24489
24490         posix_spawn: Avoid test failure on Cygwin.
24491         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
24492         characters.
24493         Reported by Simon Josefsson.
24494
24495 2010-01-12  Bruno Haible  <bruno@clisp.org>
24496
24497         * tests/test-cond.c (main): When skipping the test, show the reason.
24498
24499 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24500
24501         * lib/striconv.c (str_cd_iconv): Avoid if before free.
24502
24503 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24504
24505         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
24506         VC_LIST_ALWAYS_EXCLUDE_REGEX.
24507
24508 2010-01-12  Eric Blake  <ebb9@byu.net>
24509
24510         build: guarantee AS_VAR_IF
24511         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
24512         (gl_AS_VAR_IF): Move...
24513         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
24514         Reported by Simon Josefsson.
24515
24516 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24517
24518         * lib/stdio.in.h: Fix typo.
24519
24520 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24521
24522         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
24523         libgpg-error.
24524
24525 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24526
24527         * tests/test-xalloc-die.sh: Use $EXEEXT.
24528
24529 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24530             Bruno Haible  <bruno@clisp.org>
24531
24532         getlogin, getlogin_r: Avoid test failure.
24533         * tests/test-getlogin.c: Include <stdio.h>.
24534         (main): Skip the test when the function fails because stdin is not a
24535         tty.
24536         * tests/test-getlogin_r.c: Include <stdio.h>.
24537         (main): Skip the test when the function fails because stdin is not a
24538         tty.
24539
24540 2010-01-11  Eric Blake  <ebb9@byu.net>
24541
24542         tests: avoid more large file warnings
24543         * tests/test-fflush.c: Avoid warning about ftell use.
24544         * tests/test-fseek.c: Avoid warning about fseek use.
24545
24546 2010-01-10  Bruno Haible  <bruno@clisp.org>
24547
24548         nproc: Work better on Linux when /proc and /sys are not mounted.
24549         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
24550         as lower bound when, on glibc/Linux systems,
24551         sysconf (_SC_NPROCESSORS_CONF) returns 1.
24552         Suggested by Pádraig Brady <P@draigbrady.com>.
24553         Reported by Dmitry V. Levin <ldv@altlinux.org>.
24554
24555         nproc: Refactor.
24556         * lib/nproc.c (num_processors_via_affinity_mask): New function,
24557         extracted from num_processors.
24558         (num_processors): Call it.
24559
24560 2010-01-11  Jim Meyering  <meyering@redhat.com>
24561
24562         utimecmp: avoid new warning from upcoming gcc-4.5.0
24563         * lib/utimecmp.c (BILLION): Define using #define rather than an
24564         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
24565
24566 2010-01-11  Eric Blake  <ebb9@byu.net>
24567
24568         math: add portability warnings for classification macros
24569         * modules/math (Depends-on): Add warn-on-use.
24570         (Makefile.am): Provide new substitutions.
24571         * m4/math_h.m4 (gl_MATH_H): Require inline.
24572         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
24573         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
24574         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
24575         implement warnings.
24576
24577         unistd: warn on use of environ without module
24578         * modules/unistd (Depends-on): Add warn-on-use.
24579         (Makefile.am): Provide new substitutions.
24580         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
24581         * lib/unistd.in.h (environ): Wrap with a warning helper function.
24582
24583         stdio: warn on suspicious uses
24584         * modules/stdio (Depends-on): Add warn-on-use.
24585         (Makefile.am): Provide new substitutions.
24586         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
24587         fseeko.
24588         * lib/stdio.in.h (gets): Always warn on use.
24589         (fseek, ftell): Adjust when warnings are issued, and honor
24590         _GL_NO_LARGE_FILES as a way to silence the warning.
24591         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
24592         any warning about large file offsets.
24593         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
24594         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
24595         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
24596         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
24597         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
24598         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
24599         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
24600         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
24601
24602         warn-on-use: new module
24603         * modules/warn-on-use: New file.
24604         * build-aux/warn-on-use.h: Likewise.
24605         * m4/warn-on-use.m4: Likewise.
24606         * MODULES.html.sh (Support for building): Mention it.
24607
24608 2010-01-10  Bruno Haible  <bruno@clisp.org>
24609
24610         Tests for module 'unistr/u32-strdup'.
24611         * modules/unistr/u32-strdup-tests: New file.
24612         * tests/unistr/test-u32-strdup.c: New file.
24613
24614         Tests for module 'unistr/u16-strdup'.
24615         * modules/unistr/u16-strdup-tests: New file.
24616         * tests/unistr/test-u16-strdup.c: New file.
24617
24618         Tests for module 'unistr/u8-strdup'.
24619         * modules/unistr/u8-strdup-tests: New file.
24620         * tests/unistr/test-u8-strdup.c: New file.
24621         * tests/unistr/test-strdup.h: New file.
24622
24623         Tests for module 'unistr/u32-strncmp'.
24624         * modules/unistr/u32-strncmp-tests: New file.
24625         * tests/unistr/test-u32-strncmp.c: New file.
24626
24627         Tests for module 'unistr/u16-strncmp'.
24628         * modules/unistr/u16-strncmp-tests: New file.
24629         * tests/unistr/test-u16-strncmp.c: New file.
24630
24631         Tests for module 'unistr/u8-strncmp'.
24632         * modules/unistr/u8-strncmp-tests: New file.
24633         * tests/unistr/test-u8-strncmp.c: New file.
24634         * tests/unistr/test-strncmp.h: New file.
24635
24636         Tests for module 'unistr/u32-strcoll'.
24637         * modules/unistr/u32-strcoll-tests: New file.
24638         * tests/unistr/test-u32-strcoll.c: New file.
24639
24640         Tests for module 'unistr/u16-strcoll'.
24641         * modules/unistr/u16-strcoll-tests: New file.
24642         * tests/unistr/test-u16-strcoll.c: New file.
24643
24644         Tests for module 'unistr/u8-strcoll'.
24645         * modules/unistr/u8-strcoll-tests: New file.
24646         * tests/unistr/test-u8-strcoll.c: New file.
24647
24648         Tests for module 'unistr/u32-strcmp'.
24649         * modules/unistr/u32-strcmp-tests: New file.
24650         * tests/unistr/test-u32-strcmp.c: New file.
24651         * tests/unistr/test-u32-strcmp.h: New file.
24652
24653         Tests for module 'unistr/u16-strcmp'.
24654         * modules/unistr/u16-strcmp-tests: New file.
24655         * tests/unistr/test-u16-strcmp.c: New file.
24656         * tests/unistr/test-u16-strcmp.h: New file.
24657
24658         Tests for module 'unistr/u8-strcmp'.
24659         * modules/unistr/u8-strcmp-tests: New file.
24660         * tests/unistr/test-u8-strcmp.c: New file.
24661         * tests/unistr/test-u8-strcmp.h: New file.
24662         * tests/unistr/test-strcmp.h: New file.
24663
24664         Tests for module 'unistr/u32-strncat'.
24665         * modules/unistr/u32-strncat-tests: New file.
24666         * tests/unistr/test-u32-strncat.c: New file.
24667
24668         Tests for module 'unistr/u16-strncat'.
24669         * modules/unistr/u16-strncat-tests: New file.
24670         * tests/unistr/test-u16-strncat.c: New file.
24671
24672         Tests for module 'unistr/u8-strncat'.
24673         * modules/unistr/u8-strncat-tests: New file.
24674         * tests/unistr/test-u8-strncat.c: New file.
24675         * tests/unistr/test-strncat.h: New file.
24676
24677         Tests for module 'unistr/u32-strcat'.
24678         * modules/unistr/u32-strcat-tests: New file.
24679         * tests/unistr/test-u32-strcat.c: New file.
24680
24681         Tests for module 'unistr/u16-strcat'.
24682         * modules/unistr/u16-strcat-tests: New file.
24683         * tests/unistr/test-u16-strcat.c: New file.
24684
24685         Tests for module 'unistr/u8-strcat'.
24686         * modules/unistr/u8-strcat-tests: New file.
24687         * tests/unistr/test-u8-strcat.c: New file.
24688         * tests/unistr/test-strcat.h: New file.
24689
24690         Tests for module 'unistr/u32-stpncpy'.
24691         * modules/unistr/u32-stpncpy-tests: New file.
24692         * tests/unistr/test-u32-stpncpy.c: New file.
24693
24694         Tests for module 'unistr/u16-stpncpy'.
24695         * modules/unistr/u16-stpncpy-tests: New file.
24696         * tests/unistr/test-u16-stpncpy.c: New file.
24697
24698         Tests for module 'unistr/u8-stpncpy'.
24699         * modules/unistr/u8-stpncpy-tests: New file.
24700         * tests/unistr/test-u8-stpncpy.c: New file.
24701         * tests/unistr/test-stpncpy.h: New file.
24702
24703         Tests for module 'unistr/u32-strncpy'.
24704         * modules/unistr/u32-strncpy-tests: New file.
24705         * tests/unistr/test-u32-strncpy.c: New file.
24706
24707         Tests for module 'unistr/u16-strncpy'.
24708         * modules/unistr/u16-strncpy-tests: New file.
24709         * tests/unistr/test-u16-strncpy.c: New file.
24710
24711         Tests for module 'unistr/u8-strncpy'.
24712         * modules/unistr/u8-strncpy-tests: New file.
24713         * tests/unistr/test-u8-strncpy.c: New file.
24714         * tests/unistr/test-strncpy.h: New file.
24715
24716         Tests for module 'unistr/u32-stpcpy'.
24717         * modules/unistr/u32-stpcpy-tests: New file.
24718         * tests/unistr/test-u32-stpcpy.c: New file.
24719
24720         Tests for module 'unistr/u16-stpcpy'.
24721         * modules/unistr/u16-stpcpy-tests: New file.
24722         * tests/unistr/test-u16-stpcpy.c: New file.
24723
24724         Tests for module 'unistr/u8-stpcpy'.
24725         * modules/unistr/u8-stpcpy-tests: New file.
24726         * tests/unistr/test-u8-stpcpy.c: New file.
24727         * tests/unistr/test-stpcpy.h: New file.
24728
24729         Tests for module 'unistr/u32-strcpy'.
24730         * modules/unistr/u32-strcpy-tests: New file.
24731         * tests/unistr/test-u32-strcpy.c: New file.
24732
24733         Tests for module 'unistr/u16-strcpy'.
24734         * modules/unistr/u16-strcpy-tests: New file.
24735         * tests/unistr/test-u16-strcpy.c: New file.
24736
24737         Tests for module 'unistr/u8-strcpy'.
24738         * modules/unistr/u8-strcpy-tests: New file.
24739         * tests/unistr/test-u8-strcpy.c: New file.
24740         * tests/unistr/test-strcpy.h: New file.
24741
24742         Tests for module 'unistr/u32-strnlen'.
24743         * modules/unistr/u32-strnlen-tests: New file.
24744         * tests/unistr/test-u32-strnlen.c: New file.
24745
24746         Tests for module 'unistr/u16-strnlen'.
24747         * modules/unistr/u16-strnlen-tests: New file.
24748         * tests/unistr/test-u16-strnlen.c: New file.
24749
24750         Tests for module 'unistr/u8-strnlen'.
24751         * modules/unistr/u8-strnlen-tests: New file.
24752         * tests/unistr/test-u8-strnlen.c: New file.
24753         * tests/unistr/test-strnlen.h: New file.
24754
24755         Tests for module 'unistr/u32-strlen'.
24756         * modules/unistr/u32-strlen-tests: New file.
24757         * tests/unistr/test-u32-strlen.c: New file.
24758
24759         Tests for module 'unistr/u16-strlen'.
24760         * modules/unistr/u16-strlen-tests: New file.
24761         * tests/unistr/test-u16-strlen.c: New file.
24762
24763         Tests for module 'unistr/u8-strlen'.
24764         * modules/unistr/u8-strlen-tests: New file.
24765         * tests/unistr/test-u8-strlen.c: New file.
24766
24767         Tests for module 'unistr/u32-prev'.
24768         * modules/unistr/u32-prev-tests: New file.
24769         * tests/unistr/test-u32-prev.c: New file.
24770
24771         Tests for module 'unistr/u16-prev'.
24772         * modules/unistr/u16-prev-tests: New file.
24773         * tests/unistr/test-u16-prev.c: New file.
24774
24775         Tests for module 'unistr/u8-prev'.
24776         * modules/unistr/u8-prev-tests: New file.
24777         * tests/unistr/test-u8-prev.c: New file.
24778
24779         Tests for module 'unistr/u32-next'.
24780         * modules/unistr/u32-next-tests: New file.
24781         * tests/unistr/test-u32-next.c: New file.
24782
24783         Tests for module 'unistr/u16-next'.
24784         * modules/unistr/u16-next-tests: New file.
24785         * tests/unistr/test-u16-next.c: New file.
24786
24787         Tests for module 'unistr/u8-next'.
24788         * modules/unistr/u8-next-tests: New file.
24789         * tests/unistr/test-u8-next.c: New file.
24790
24791         Tests for module 'unistr/u32-strmbtouc'.
24792         * modules/unistr/u32-strmbtouc-tests: New file.
24793         * tests/unistr/test-u32-strmbtouc.c: New file.
24794
24795         Tests for module 'unistr/u16-strmbtouc'.
24796         * modules/unistr/u16-strmbtouc-tests: New file.
24797         * tests/unistr/test-u16-strmbtouc.c: New file.
24798
24799         Tests for module 'unistr/u8-strmbtouc'.
24800         * modules/unistr/u8-strmbtouc-tests: New file.
24801         * tests/unistr/test-u8-strmbtouc.c: New file.
24802
24803         Tests for module 'unistr/u32-strmblen'.
24804         * modules/unistr/u32-strmblen-tests: New file.
24805         * tests/unistr/test-u32-strmblen.c: New file.
24806
24807         Tests for module 'unistr/u16-strmblen'.
24808         * modules/unistr/u16-strmblen-tests: New file.
24809         * tests/unistr/test-u16-strmblen.c: New file.
24810
24811         Tests for module 'unistr/u8-strmblen'.
24812         * modules/unistr/u8-strmblen-tests: New file.
24813         * tests/unistr/test-u8-strmblen.c: New file.
24814
24815         Tests for module 'unistr/u32-cpy-alloc'.
24816         * modules/unistr/u32-cpy-alloc-tests: New file.
24817         * tests/unistr/test-u32-cpy-alloc.c: New file.
24818
24819         Tests for module 'unistr/u16-cpy-alloc'.
24820         * modules/unistr/u16-cpy-alloc-tests: New file.
24821         * tests/unistr/test-u16-cpy-alloc.c: New file.
24822
24823         Tests for module 'unistr/u8-cpy-alloc'.
24824         * modules/unistr/u8-cpy-alloc-tests: New file.
24825         * tests/unistr/test-u8-cpy-alloc.c: New file.
24826         * tests/unistr/test-cpy-alloc.h: New file.
24827
24828         Tests for module 'unistr/u32-mbsnlen'.
24829         * modules/unistr/u32-mbsnlen-tests: New file.
24830         * tests/unistr/test-u32-mbsnlen.c: New file.
24831
24832         Tests for module 'unistr/u16-mbsnlen'.
24833         * modules/unistr/u16-mbsnlen-tests: New file.
24834         * tests/unistr/test-u16-mbsnlen.c: New file.
24835
24836         Tests for module 'unistr/u8-mbsnlen'.
24837         * modules/unistr/u8-mbsnlen-tests: New file.
24838         * tests/unistr/test-u8-mbsnlen.c: New file.
24839
24840         Tests for module 'unistr/u32-chr'.
24841         * modules/unistr/u32-chr-tests: New file.
24842         * tests/unistr/test-u32-chr.c: New file.
24843
24844         Tests for module 'unistr/u16-chr'.
24845         * modules/unistr/u16-chr-tests: New file.
24846         * tests/unistr/test-u16-chr.c: New file.
24847
24848         Tests for module 'unistr/u8-chr'.
24849         * modules/unistr/u8-chr-tests: New file.
24850         * tests/unistr/test-u8-chr.c: New file.
24851         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
24852
24853         Tests for module 'unistr/u32-cmp2'.
24854         * modules/unistr/u32-cmp2-tests: New file.
24855         * tests/unistr/test-u32-cmp2.c: New file.
24856
24857         Tests for module 'unistr/u16-cmp2'.
24858         * modules/unistr/u16-cmp2-tests: New file.
24859         * tests/unistr/test-u16-cmp2.c: New file.
24860
24861         Tests for module 'unistr/u8-cmp2'.
24862         * modules/unistr/u8-cmp2-tests: New file.
24863         * tests/unistr/test-u8-cmp2.c: New file.
24864         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
24865
24866         Tests for module 'unistr/u32-cmp'.
24867         * modules/unistr/u32-cmp-tests: New file.
24868         * tests/unistr/test-u32-cmp.c: New file.
24869
24870         Tests for module 'unistr/u16-cmp'.
24871         * modules/unistr/u16-cmp-tests: New file.
24872         * tests/unistr/test-u16-cmp.c: New file.
24873
24874         Tests for module 'unistr/u8-cmp'.
24875         * modules/unistr/u8-cmp-tests: New file.
24876         * tests/unistr/test-u8-cmp.c: New file.
24877         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
24878
24879         Tests for module 'unistr/u32-set'.
24880         * modules/unistr/u32-set-tests: New file.
24881         * tests/unistr/test-u32-set.c: New file.
24882
24883         Tests for module 'unistr/u16-set'.
24884         * modules/unistr/u16-set-tests: New file.
24885         * tests/unistr/test-u16-set.c: New file.
24886
24887         Tests for module 'unistr/u8-set'.
24888         * modules/unistr/u8-set-tests: New file.
24889         * tests/unistr/test-u8-set.c: New file.
24890         * tests/unistr/test-set.h: New file.
24891
24892         Tests for module 'unistr/u32-move'.
24893         * modules/unistr/u32-move-tests: New file.
24894         * tests/unistr/test-u32-move.c: New file.
24895
24896         Tests for module 'unistr/u16-move'.
24897         * modules/unistr/u16-move-tests: New file.
24898         * tests/unistr/test-u16-move.c: New file.
24899
24900         Tests for module 'unistr/u8-move'.
24901         * modules/unistr/u8-move-tests: New file.
24902         * tests/unistr/test-u8-move.c: New file.
24903         * tests/unistr/test-move.h: New file.
24904
24905         Tests for module 'unistr/u32-cpy'.
24906         * modules/unistr/u32-cpy-tests: New file.
24907         * tests/unistr/test-u32-cpy.c: New file.
24908
24909         Tests for module 'unistr/u16-cpy'.
24910         * modules/unistr/u16-cpy-tests: New file.
24911         * tests/unistr/test-u16-cpy.c: New file.
24912
24913         Tests for module 'unistr/u8-cpy'.
24914         * modules/unistr/u8-cpy-tests: New file.
24915         * tests/unistr/test-u8-cpy.c: New file.
24916         * tests/unistr/test-cpy.h: New file.
24917
24918 2010-01-09  Bruno Haible  <bruno@clisp.org>
24919
24920         Tests for module 'unistr/u32-uctomb'.
24921         * modules/unistr/u32-uctomb-tests: New file.
24922         * tests/unistr/test-u32-uctomb.c: New file.
24923
24924         Tests for module 'unistr/u16-uctomb'.
24925         * modules/unistr/u16-uctomb-tests: New file.
24926         * tests/unistr/test-u16-uctomb.c: New file.
24927
24928         Tests for module 'unistr/u8-uctomb'.
24929         * modules/unistr/u8-uctomb-tests: New file.
24930         * tests/unistr/test-u8-uctomb.c: New file.
24931
24932         Tests for module 'unistr/u32-mbtoucr'.
24933         * modules/unistr/u32-mbtoucr-tests: New file.
24934         * tests/unistr/test-u32-mbtoucr.c: New file.
24935
24936         Tests for module 'unistr/u16-mbtoucr'.
24937         * modules/unistr/u16-mbtoucr-tests: New file.
24938         * tests/unistr/test-u16-mbtoucr.c: New file.
24939
24940         Tests for module 'unistr/u8-mbtoucr'.
24941         * modules/unistr/u8-mbtoucr-tests: New file.
24942         * tests/unistr/test-u8-mbtoucr.c: New file.
24943
24944         Tests for module 'unistr/u32-mbtouc'.
24945         * modules/unistr/u32-mbtouc-tests: New file.
24946         * tests/unistr/test-u32-mbtouc.c: New file.
24947
24948         Tests for module 'unistr/u16-mbtouc'.
24949         * modules/unistr/u16-mbtouc-tests: New file.
24950         * tests/unistr/test-u16-mbtouc.c: New file.
24951
24952         Tests for module 'unistr/u8-mbtouc'.
24953         * modules/unistr/u8-mbtouc-tests: New file.
24954         * tests/unistr/test-u8-mbtouc.c: New file.
24955
24956         Tests for module 'unistr/u32-mbtouc-unsafe'.
24957         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
24958         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
24959         * tests/unistr/test-u32-mbtouc.h: New file.
24960
24961         Tests for module 'unistr/u16-mbtouc-unsafe'.
24962         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
24963         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
24964         * tests/unistr/test-u16-mbtouc.h: New file.
24965
24966         Tests for module 'unistr/u8-mbtouc-unsafe'.
24967         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
24968         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
24969         * tests/unistr/test-u8-mbtouc.h: New file.
24970
24971         Tests for module 'unistr/u32-mblen'.
24972         * modules/unistr/u32-mblen-tests: New file.
24973         * tests/unistr/test-u32-mblen.c: New file.
24974
24975         Tests for module 'unistr/u16-mblen'.
24976         * modules/unistr/u16-mblen-tests: New file.
24977         * tests/unistr/test-u16-mblen.c: New file.
24978
24979         Tests for module 'unistr/u8-mblen'.
24980         * modules/unistr/u8-mblen-tests: New file.
24981         * tests/unistr/test-u8-mblen.c: New file.
24982
24983         Tests for module 'unistr/u32-to-u16'.
24984         * modules/unistr/u32-to-u16-tests: New file.
24985         * tests/unistr/test-u32-to-u16.c: New file.
24986
24987         Tests for module 'unistr/u32-to-u8'.
24988         * modules/unistr/u32-to-u8-tests: New file.
24989         * tests/unistr/test-u32-to-u8.c: New file.
24990
24991         Tests for module 'unistr/u16-to-u32'.
24992         * modules/unistr/u16-to-u32-tests: New file.
24993         * tests/unistr/test-u16-to-u32.c: New file.
24994
24995         Tests for module 'unistr/u16-to-u8'.
24996         * modules/unistr/u16-to-u8-tests: New file.
24997         * tests/unistr/test-u16-to-u8.c: New file.
24998
24999         Tests for module 'unistr/u8-to-u32'.
25000         * modules/unistr/u8-to-u32-tests: New file.
25001         * tests/unistr/test-u8-to-u32.c: New file.
25002
25003         Tests for module 'unistr/u8-to-u16'.
25004         * modules/unistr/u8-to-u16-tests: New file.
25005         * tests/unistr/test-u8-to-u16.c: New file.
25006
25007         Tests for module 'unistr/u32-check'.
25008         * modules/unistr/u32-check-tests: New file.
25009         * tests/unistr/test-u32-check.c: New file.
25010
25011         Tests for module 'unistr/u16-check'.
25012         * modules/unistr/u16-check-tests: New file.
25013         * tests/unistr/test-u16-check.c: New file.
25014
25015         Tests for module 'unistr/u8-check'.
25016         * modules/unistr/u8-check-tests: New file.
25017         * tests/unistr/test-u8-check.c: New file.
25018
25019         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
25020         (category_equals): New function.
25021         (main): Add more tests.
25022         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
25023
25024         * tests/unictype/test-bidi_byname.c (main): Add more tests.
25025
25026 2010-01-10  Bruno Haible  <bruno@clisp.org>
25027
25028         unistr/u*-strcoll: Try harder to distinguish different strings.
25029         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
25030         compare s1 and s2 to see if they are different.
25031
25032 2010-01-10  Bruno Haible  <bruno@clisp.org>
25033
25034         unistr/u*-stpncpy: Fix the return value.
25035         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
25036         description of the return value consistent with stpncpy in glibc.
25037         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
25038         written non-NUL unit.
25039
25040 2010-01-10  Bruno Haible  <bruno@clisp.org>
25041
25042         unistr/u*-next: Add missing dependencies.
25043         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
25044         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
25045         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
25046
25047 2010-01-10  Bruno Haible  <bruno@clisp.org>
25048
25049         unistr/u8-mbsnlen: Fix return value for incomplete character.
25050         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
25051         u8_mblen.
25052         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
25053         Remove unistr/u8-mblen.
25054         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
25055         u16_mblen.
25056         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
25057         Remove unistr/u16-mblen.
25058
25059 2010-01-10  Bruno Haible  <bruno@clisp.org>
25060
25061         wchar: Fix compilation error when <wchar.h> is used from coreutils.
25062         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
25063         Reported by Brian Gough <bjg@gnu.org> and
25064         Chris Clayton <chris2553@googlemail.com> via
25065         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
25066
25067 2010-01-09  Bruno Haible  <bruno@clisp.org>
25068
25069         unistr/u16-to-u32: Reject invalid input.
25070         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
25071         u16_mbtouc.
25072         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
25073         Remove unistr/u16-mbtouc.
25074
25075         unistr/u16-to-u8: Reject invalid input.
25076         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
25077         u16_mbtouc.
25078         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
25079         Remove unistr/u16-mbtouc.
25080
25081         unistr/u8-to-u32: Reject invalid input.
25082         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
25083         u8_mbtouc.
25084         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
25085         Remove unistr/u8-mbtouc.
25086
25087         unistr/u8-to-u16: Reject invalid input.
25088         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
25089         u8_mbtouc.
25090         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
25091         Remove unistr/u8-mbtouc.
25092
25093 2010-01-09  Bruno Haible  <bruno@clisp.org>
25094
25095         Tests for module 'getlogin'.
25096         * modules/getlogin-tests: New file.
25097         * tests/test-getlogin.c: New file.
25098
25099         New module 'getlogin'.
25100         * lib/unistd.in.h (getlogin): New declaration.
25101         * lib/getlogin.c: New file.
25102         * m4/getlogin.m4: New file.
25103         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
25104         HAVE_GETLOGIN.
25105         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
25106         HAVE_GETLOGIN.
25107         * modules/getlogin: New file.
25108         * doc/posix-functions/getlogin.texi: Mention the new module.
25109         Reported by John W. Eaton <jwe@gnu.org>.
25110
25111 2010-01-09  Bruno Haible  <bruno@clisp.org>
25112
25113         getlogin_r: Support for native Windows.
25114         * lib/getlogin_r.c: Include <windows.h>
25115         (getlogin_r): Implement for native Windows.
25116         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
25117         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
25118         via John W. Eaton <jwe@gnu.org>.
25119
25120 2010-01-09  Bruno Haible  <bruno@clisp.org>
25121
25122         getlogin_r: Small fixes.
25123         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
25124         succeeds.
25125         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
25126         before testing whether getlogin_r is declared. No need to set
25127         HAVE_DECL_GETLOGIN_R to 1.
25128         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
25129
25130 2010-01-09  Bruno Haible  <bruno@clisp.org>
25131
25132         * lib/unistd.in.h (getlogin_r): Add comment.
25133
25134 2010-01-09  Bruno Haible  <bruno@clisp.org>
25135
25136         Tests for module 'getlogin_r'.
25137         * modules/getlogin_r-tests: New file.
25138         * tests/test-getlogin_r.c: New file.
25139
25140 2010-01-09  Jim Meyering  <meyering@redhat.com>
25141
25142         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
25143         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
25144         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
25145
25146 2010-01-08  Simon Josefsson  <simon@josefsson.org>
25147
25148         * lib/dup2.c (rpl_dup2): Improve comment.
25149
25150 2010-01-08  Eric Blake  <ebb9@byu.net>
25151
25152         maint.mk: allow packages to add makefile @@ exceptions
25153         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
25154         (sc_makefile_check): Rename...
25155         (sc_makefile_at_at_check): ...to this, and use hook.
25156
25157         dup2: work around mingw bug
25158         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
25159         Reported by Simon Josefsson.
25160
25161 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
25162
25163         glob: Fix C++ compilation.
25164         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
25165         C++.
25166
25167 2010-01-07  Bruno Haible  <bruno@clisp.org>
25168
25169         Fix indentation of wctype.in.h, broken since 2007-01-06.
25170         * lib/wctype.in.h: Fix indentation of preprocessor directives.
25171
25172 2010-01-07  Bruno Haible  <bruno@clisp.org>
25173
25174         mbslen: Avoid collision with system function.
25175         * lib/string.in.h [MirBSD]: Include <wchar.h>.
25176         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
25177         * m4/mbslen.m4: New file.
25178         * modules/mbslen (Files): Add it.
25179         (configure.ac): Invoke gl_MBSLEN.
25180         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
25181         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
25182         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
25183         via Ian Beckwith <ianb@erislabs.net>.
25184
25185 2010-01-07  Bruno Haible  <bruno@clisp.org>
25186
25187         dirent: Document the last fix.
25188         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
25189
25190 2010-01-07  Bruno Haible  <bruno@clisp.org>
25191
25192         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
25193         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
25194         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
25195         va_list are defined.
25196         * doc/posix-headers/stdio.texi: Document the bug of missing types.
25197         Reported by Eric Blake.
25198
25199 2010-01-07  Bruno Haible  <bruno@clisp.org>
25200
25201         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
25202         * modules/xlist (Depends-on): Add 'list',
25203         * modules/xoset (Depends-on): Add 'oset'.
25204         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25205
25206 2010-01-07  Bruno Haible  <bruno@clisp.org>
25207
25208         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
25209         * doc/posix-functions/strncasecmp.texi: Likewise.
25210
25211 2010-01-07  Bruno Haible  <bruno@clisp.org>
25212
25213         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
25214
25215 2010-01-07  John W. Eaton  <jwe@octave.org>
25216
25217         wctype: allow C++ use
25218         * lib/wctype.in.h: Add extern "C" block for C++.
25219
25220 2010-01-06  Eric Blake  <ebb9@byu.net>
25221
25222         maint.mk: detect incorrect GFDL usage
25223         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
25224
25225 2010-01-06  Jim Meyering  <meyering@redhat.com>
25226         and Eric Blake  <ebb9@byu.net>
25227
25228         maint.mk: ignore multi-line copyright in NEWS
25229         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
25230
25231 2010-01-06  Eric Blake  <ebb9@byu.net>
25232
25233         select: add missing dependency
25234         * modules/select-tests (Depends-on): Move sockets dependency...
25235         * modules/select (Depends-on): ...here.
25236         Reported by Ian Beckwith.
25237
25238         doc: regenerate INSTALL
25239         * doc/INSTALL: Reflect recent autoconf update.
25240         * doc/INSTALL.ISO: Likewise.
25241         * doc/INSTALL.UTF-8: Likewise.
25242
25243         pread: fix compilation on glibc
25244         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
25245         Reported by Ralf Wildenhues.
25246
25247         dirent: fix test failure
25248         * lib/dirent.in.h (includes): Guarantee ino_t.
25249         Reported by Ralf Wildenhues.
25250
25251 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
25252
25253         linkat, renameat: avoid bad free
25254         * lib/at-func2.c (at_func2): Fix typo.
25255         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
25256
25257 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25258
25259         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
25260         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
25261         to avoid failure of symlink test later.
25262
25263 2010-01-06  Eric Blake  <ebb9@byu.net>
25264
25265         stdio, unistd: guarantee ssize_t
25266         * lib/unistd.in.h (includes): Ensure that types required by POSIX
25267         2008 are exposed when needed.
25268         * lib/stdio.in.h (includes): Likewise.
25269         Reported by Ralf Wildenhues.
25270
25271 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
25272
25273         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
25274         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
25275         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
25276
25277 2010-01-06  Jim Meyering  <meyering@redhat.com>
25278
25279         readtokens: this module *does* require xalloc.h
25280         It uses only functions that were omitted by the old syntax-check rule.
25281         * lib/readtokens.c: Include "xalloc.h" once again.
25282         * modules/readtokens (Depends-on): Add xalloc.
25283         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
25284
25285 2010-01-05  Eric Blake  <ebb9@byu.net>
25286
25287         maint: support 'make announcement' from a VPATH build
25288         * top/maint.mk (announcement): Look for correct NEWS file.
25289
25290 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
25291
25292         utimens (fdutimens): ignore a negative FD, per contract
25293         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
25294         when we have a valid file descriptor.  Otherwise, using a brand
25295         new glibc (with just-patched futimens that now fails with EBADF)
25296         would cause this function to fail with ENOSYS.
25297         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
25298         See also http://bugzilla.redhat.com/552320.
25299
25300 2010-01-05  Eric Blake  <ebb9@byu.net>
25301
25302         strcase: document what it provides
25303         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
25304         gnulib module.
25305         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
25306         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
25307
25308 2010-01-05  Jim Meyering  <meyering@redhat.com>
25309
25310         maint: remove useless inclusions of "xalloc.h"
25311         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
25312         * lib/readtokens.c: Likewise.
25313         * lib/same.c: Likewise.
25314         * modules/getloadavg (Depends-on): Remove xalloc.
25315         * modules/readtokens: Likewise.
25316         * modules/same: Likewise.
25317
25318         maint.mk: include 4 more function names in alloca.h-checking regexp
25319         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
25320         regexp.  Before, we would give a false-positive (saying alloca.h
25321         is included unnecessarily) when the only uses involved omitted symbols.
25322
25323         xalloc.h: use consistent formatting
25324         * lib/xalloc.h: Move declarations to start in the first column.
25325
25326 2010-01-05  Eric Blake  <ebb9@byu.net>
25327
25328         mkdir: avoid xalloc
25329         * lib/mkdir.c (includes): Drop unused header.
25330         Reported by John W. Eaton.
25331
25332 2010-01-04  Jim Meyering  <meyering@redhat.com>
25333
25334         nl_langinfo: avoid configure-time syntax error
25335         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
25336         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
25337         the empty string.  Don't let that provoke a shell syntax error.
25338
25339         regcomp, regexec, fnmatch: avoid array bounds read error
25340         * lib/regcomp.c (build_equiv_class): From glibc:
25341         Use only the low 24 bits of a findidx return value as an index
25342         into the weights array.  Patch by Ulrich Drepper:
25343         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
25344         * lib/regexec.c (check_node_accept_bytes): Likewise.
25345         * lib/fnmatch_loop.c (FCT): Likewise.
25346
25347         regcomp: skip collseq lookup when there are no rules
25348         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
25349         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
25350
25351         regcomp: recognize ill-formed { } expressions
25352         * lib/regcomp.c (parse_dup_op): From glibc:
25353         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
25354
25355         regcomp: fix typo in comment
25356         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
25357         s/satisfy/satisfies/.
25358
25359         regcomp: sync from glibc: remove dead store
25360         * lib/regcomp.c (duplicate_node_closure): Remove useless
25361         search_duplicated_node call and dead store.
25362
25363         regcomp: sync from glibc; always use nl_langinfo
25364         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
25365         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
25366         * modules/regex (Depends-on): Add nl_langinfo.
25367
25368 2010-01-04  Eric Blake  <ebb9@byu.net>
25369
25370         fdopendir: fix configure test
25371         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
25372
25373 2010-01-01  Bruno Haible  <bruno@clisp.org>
25374
25375         wchar: Remove unused configure check.
25376         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
25377
25378 2010-01-01  Eric Blake  <ebb9@byu.net>
25379
25380         headers: make check of system header explicit
25381         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
25382         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
25383         ourselves.
25384         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
25385         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25386         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
25387         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
25388         internals.
25389         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
25390         missing.
25391         Suggested by Bruno Haible.
25392
25393 2010-01-01  Jim Meyering  <meyering@redhat.com>
25394
25395         ChangeLog: tweak to eliminate unnecessary copyright line
25396         * ChangeLog: Remove a copyright line that was mistakenly updated
25397         by today's update-copyright run.  Reported by Eric Blake.
25398
25399         test-update-copyright: don't let envvar setting cause test failure
25400         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
25401
25402 2010-01-01  Bruno Haible  <bruno@clisp.org>
25403
25404         localename: Avoid gcc warning.
25405         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
25406         function if it is not used.
25407
25408 2010-01-01  Jim Meyering  <meyering@redhat.com>
25409
25410         update nearly all FSF copyright year lists to include 2010
25411         Use the same procedure as for 2009, outlined in
25412         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
25413
25414         version-etc: set COPYRIGHT_YEAR to 2010
25415         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
25416
25417 2009-12-31  Eric Blake  <ebb9@byu.net>
25418
25419         doc: correct availability of cygwin 1.5.x getopt
25420         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
25421         variables.
25422         * doc/posix-functions/opterr.texi (opterr): Likewise.
25423         * doc/posix-functions/optind.texi (optind): Likewise.
25424         * doc/posix-functions/optopt.texi (optopt): Likewise.
25425         * doc/posix-functions/tzname.texi (tzname): Likewise.
25426
25427         openat: update maintainer
25428         * modules/openat (Maintainer): Add myself.
25429
25430         utimens: avoid shadowing warning
25431         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
25432         buffers into one, to avoid shadowing, as well as avoiding a
25433         redundant stat.
25434         Reported by Jim Meyering.
25435
25436         test-dup2: avoid compiler warning
25437         * tests/test-dup2.c (is_inheritable): Only define if used.
25438
25439 2010-01-01  Bruno Haible  <bruno@clisp.org>
25440
25441         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
25442         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
25443         defined, use wctomb instead of wcrtomb.
25444
25445 2010-01-01  Bruno Haible  <bruno@clisp.org>
25446
25447         iconv: Reject native Solaris iconv.
25448         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
25449         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
25450
25451 2009-12-31  Bruno Haible  <bruno@clisp.org>
25452
25453         * tests/test-signal.c (main): Remove test of 'SIG'.
25454
25455 2009-12-31  Bruno Haible  <bruno@clisp.org>
25456
25457         spawn: Fix incomplete fix.
25458         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25459         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25460         warnings for GNULIB_POSIXCHECK again.
25461         Reported by Eric Blake.
25462
25463 2009-12-31  Bruno Haible  <bruno@clisp.org>
25464
25465         Avoid namespace pollution on glibc systems.
25466         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
25467         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
25468         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
25469         glibc systems.
25470
25471 2009-12-31  Bruno Haible  <bruno@clisp.org>
25472
25473         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
25474         (gl_REPLACE_WCHAR_H): Turn into a no-op.
25475         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
25476         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
25477         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
25478         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
25479         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
25480
25481 2009-12-31  Bruno Haible  <bruno@clisp.org>
25482
25483         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
25484         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
25485         afterwards.
25486
25487 2009-12-31  Bruno Haible  <bruno@clisp.org>
25488
25489         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
25490         SYS_UTSNAME_H.
25491
25492 2009-12-31  Bruno Haible  <bruno@clisp.org>
25493
25494         spawn: Fix misapplied patch.
25495         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25496         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25497         warnings for GNULIB_POSIXCHECK.
25498
25499 2009-12-31  Bruno Haible  <bruno@clisp.org>
25500
25501         times: Update after sys_times changed.
25502         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
25503         * modules/times (Files): Add it.
25504         (configure.ac): Invoke gl_FUNC_TIMES.
25505
25506 2009-12-31  Bruno Haible  <bruno@clisp.org>
25507
25508         Use AC_C_INLINE where necessary.
25509         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
25510         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
25511         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
25512         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
25513         * m4/mbfile.m4 (gl_MBFILE): Likewise.
25514         * m4/mbiter.m4 (gl_MBITER): Likewise.
25515         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
25516         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25517         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
25518         * modules/u64 (configure.ac): Likewise.
25519
25520 2009-12-31  Bruno Haible  <bruno@clisp.org>
25521
25522         Use AC_C_INLINE instead of module 'inline' where possible.
25523         * modules/inline (Description): Clarify purpose.
25524         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
25525         * modules/count-one-bits (Depends-on): Remove inline.
25526         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
25527         * modules/openat (Depends-on): Remove inline.
25528         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
25529         instead of depending on module 'inline'.
25530         * modules/filevercmp (Depends-on, configure.ac): Likewise.
25531         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
25532         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
25533         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
25534         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
25535         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
25536         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
25537         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
25538         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
25539         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
25540         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
25541         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
25542         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
25543         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
25544         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
25545         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
25546         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
25547         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
25548         Likewise.
25549         * modules/unictype/property-ascii-hex-digit (Depends-on,
25550         configure.ac): Likewise.
25551         * modules/unictype/property-bidi-arabic-digit (Depends-on,
25552         configure.ac): Likewise.
25553         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
25554         configure.ac): Likewise.
25555         * modules/unictype/property-bidi-block-separator (Depends-on,
25556         configure.ac): Likewise.
25557         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
25558         configure.ac): Likewise.
25559         * modules/unictype/property-bidi-common-separator (Depends-on,
25560         configure.ac): Likewise.
25561         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
25562         Likewise.
25563         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
25564         configure.ac): Likewise.
25565         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
25566         configure.ac): Likewise.
25567         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
25568         configure.ac): Likewise.
25569         * modules/unictype/property-bidi-european-digit (Depends-on,
25570         configure.ac): Likewise.
25571         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
25572         configure.ac): Likewise.
25573         * modules/unictype/property-bidi-left-to-right (Depends-on,
25574         configure.ac): Likewise.
25575         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
25576         configure.ac): Likewise.
25577         * modules/unictype/property-bidi-other-neutral (Depends-on,
25578         configure.ac): Likewise.
25579         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
25580         Likewise.
25581         * modules/unictype/property-bidi-segment-separator (Depends-on,
25582         configure.ac): Likewise.
25583         * modules/unictype/property-bidi-whitespace (Depends-on,
25584         configure.ac): Likewise.
25585         * modules/unictype/property-combining (Depends-on, configure.ac):
25586         Likewise.
25587         * modules/unictype/property-composite (Depends-on, configure.ac):
25588         Likewise.
25589         * modules/unictype/property-currency-symbol (Depends-on,
25590         configure.ac): Likewise.
25591         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
25592         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
25593         Likewise.
25594         * modules/unictype/property-default-ignorable-code-point (Depends-on,
25595         configure.ac): Likewise.
25596         * modules/unictype/property-deprecated (Depends-on, configure.ac):
25597         Likewise.
25598         * modules/unictype/property-diacritic (Depends-on, configure.ac):
25599         Likewise.
25600         * modules/unictype/property-extender (Depends-on, configure.ac):
25601         Likewise.
25602         * modules/unictype/property-format-control (Depends-on, configure.ac):
25603         Likewise.
25604         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
25605         Likewise.
25606         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
25607         Likewise.
25608         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
25609         Likewise.
25610         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
25611         Likewise.
25612         * modules/unictype/property-hyphen (Depends-on, configure.ac):
25613         Likewise.
25614         * modules/unictype/property-id-continue (Depends-on, configure.ac):
25615         Likewise.
25616         * modules/unictype/property-id-start (Depends-on, configure.ac):
25617         Likewise.
25618         * modules/unictype/property-ideographic (Depends-on, configure.ac):
25619         Likewise.
25620         * modules/unictype/property-ids-binary-operator (Depends-on,
25621         configure.ac): Likewise.
25622         * modules/unictype/property-ids-trinary-operator (Depends-on,
25623         configure.ac): Likewise.
25624         * modules/unictype/property-ignorable-control (Depends-on,
25625         configure.ac): Likewise.
25626         * modules/unictype/property-iso-control (Depends-on, configure.ac):
25627         Likewise.
25628         * modules/unictype/property-join-control (Depends-on, configure.ac):
25629         Likewise.
25630         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
25631         Likewise.
25632         * modules/unictype/property-line-separator (Depends-on, configure.ac):
25633         Likewise.
25634         * modules/unictype/property-logical-order-exception (Depends-on,
25635         configure.ac): Likewise.
25636         * modules/unictype/property-lowercase (Depends-on, configure.ac):
25637         Likewise.
25638         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
25639         * modules/unictype/property-non-break (Depends-on, configure.ac):
25640         Likewise.
25641         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
25642         Likewise.
25643         * modules/unictype/property-numeric (Depends-on, configure.ac):
25644         Likewise.
25645         * modules/unictype/property-other-alphabetic (Depends-on,
25646         configure.ac): Likewise.
25647         * modules/unictype/property-other-default-ignorable-code-point
25648         (Depends-on, configure.ac): Likewise.
25649         * modules/unictype/property-other-grapheme-extend (Depends-on,
25650         configure.ac): Likewise.
25651         * modules/unictype/property-other-id-continue (Depends-on,
25652         configure.ac): Likewise.
25653         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
25654         Likewise.
25655         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
25656         Likewise.
25657         * modules/unictype/property-other-math (Depends-on, configure.ac):
25658         Likewise.
25659         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
25660         Likewise.
25661         * modules/unictype/property-paired-punctuation (Depends-on,
25662         configure.ac): Likewise.
25663         * modules/unictype/property-paragraph-separator (Depends-on,
25664         configure.ac): Likewise.
25665         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
25666         Likewise.
25667         * modules/unictype/property-pattern-white-space (Depends-on,
25668         configure.ac): Likewise.
25669         * modules/unictype/property-private-use (Depends-on, configure.ac):
25670         Likewise.
25671         * modules/unictype/property-punctuation (Depends-on, configure.ac):
25672         Likewise.
25673         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
25674         Likewise.
25675         * modules/unictype/property-radical (Depends-on, configure.ac):
25676         Likewise.
25677         * modules/unictype/property-sentence-terminal (Depends-on,
25678         configure.ac): Likewise.
25679         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
25680         Likewise.
25681         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
25682         * modules/unictype/property-terminal-punctuation (Depends-on,
25683         configure.ac): Likewise.
25684         * modules/unictype/property-titlecase (Depends-on, configure.ac):
25685         Likewise.
25686         * modules/unictype/property-unassigned-code-value (Depends-on,
25687         configure.ac): Likewise.
25688         * modules/unictype/property-unified-ideograph (Depends-on,
25689         configure.ac): Likewise.
25690         * modules/unictype/property-uppercase (Depends-on, configure.ac):
25691         Likewise.
25692         * modules/unictype/property-variation-selector (Depends-on,
25693         configure.ac): Likewise.
25694         * modules/unictype/property-white-space (Depends-on, configure.ac):
25695         Likewise.
25696         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
25697         Likewise.
25698         * modules/unictype/property-xid-start (Depends-on, configure.ac):
25699         Likewise.
25700         * modules/unictype/property-zero-width (Depends-on, configure.ac):
25701         Likewise.
25702         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
25703         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
25704         Likewise.
25705
25706 2009-12-31  Bruno Haible  <bruno@clisp.org>
25707
25708         Remove unnecessary AC_C_INLINE invocation.
25709         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
25710         since 2009-08-21.
25711
25712 2009-12-31  Jim Meyering  <meyering@redhat.com>
25713
25714         maint.mk: don't require explicit gpg_key_ID in cfg.mk
25715         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
25716         With this change, we can all remove the gpg_key_ID = ... definition
25717         from our respective cfg.mk files.
25718
25719         maint.mk: create announcement template in ~/, not in /tmp
25720         * top/maint.mk (emit_upload_commands): Adjust.
25721         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
25722         Remove temporary file, .ci-msg.
25723
25724 2009-12-31  Eric Blake  <ebb9@byu.net>
25725
25726         link-warning: always build headers with link warnings
25727         * modules/arpa_inet (Makefile.am): Always build replacement
25728         header.
25729         * modules/ctype (Makefile.am): Likewise.
25730         * modules/dirent (Makefile.am): Likewise.
25731         * modules/inttypes (Makefile.am): Likewise.
25732         * modules/langinfo (Makefile.am): Likewise.
25733         * modules/locale (Makefile.am): Likewise.
25734         * modules/spawn (Makefile.am): Likewise.
25735         * modules/sys_file (Makefile.am): Likewise.
25736         * modules/sys_ioctl (Makefile.am): Likewise.
25737         * modules/sys_select (Makefile.am): Likewise.
25738         * modules/sys_socket (Makefile.am): Likewise.
25739         * modules/sys_times (Makefile.am): Likewise.
25740         * modules/sys_utsname (Makefile.am): Likewise.
25741         * modules/sys_wait (Makefile.am): Likewise.
25742         * modules/wchar (Makefile.am): Likewise.
25743         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
25744         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
25745         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
25746         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
25747         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
25748         Likewise.
25749         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25750         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25751         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
25752         Likewise.
25753         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
25754         Likewise.
25755         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
25756         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
25757         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
25758         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25759         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25760         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
25761         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
25762         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
25763         (gl_WCHAR_H_DEFAULTS): Likewise.
25764
25765 2009-12-31  Eric Blake  <ebb9@byu.net>
25766
25767         signal, spawn: use link warnings
25768         * lib/signal.in.h (sigset_t): Make unconditional.
25769         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
25770         (sigpending, sigprocmask, sigaction): Add link warnings.
25771         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
25772         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
25773         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
25774         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
25775         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
25776         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
25777         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
25778         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
25779         (posix_spawn_file_actions_destroy)
25780         (posix_spawn_file_actions_addopen)
25781         (posix_spawn_file_actions_addclose)
25782         (posix_spawn_file_actions_adddup2): Likewise.
25783         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
25784         * tests/test-signal.c (main): Enhance test.
25785
25786         spawn: improve wrapper support
25787         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
25788         (gl_SPAWN_H_DEFAULTS): New defaults.
25789         * modules/spawn (Makefile.am): Substitute them.
25790         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
25791         Only declare if missing or broken.
25792
25793         sys_times, sys_utsname: use include_next
25794         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
25795         header.
25796         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
25797         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
25798         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
25799         * modules/sys_times (Depends-on): Add include_next.
25800         (Makefile.am): Substitute additional values.
25801         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
25802         * lib/sys_times.in.h (includes): Include native header, if
25803         available.
25804         * lib/sys_utsname.in.h (includes): Likewise.
25805         * tests/test-sys_times.c (main): Enhance test.
25806
25807         fdutimensat: revert prior patch
25808         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
25809         utimens.h.
25810         Reported by Bruno Haible.
25811
25812 2009-12-30  Eric Blake  <ebb9@byu.net>
25813
25814         sys_wait: drop link-warning dependency
25815         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
25816         link-warning efforts.
25817         * lib/sys_wait.in.h: Likewise.
25818
25819         fdutimensat: remove bogus dependency
25820         * modules/fdutimensat (Depends-on): Drop inline.
25821
25822         unistd: fix typo
25823         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
25824
25825 2009-12-30  Bruno Haible  <bruno@clisp.org>
25826
25827         Fix compilation error with Solaris cc.
25828         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
25829         * lib/unicase/u16-is-invariant.c: Likewise.
25830         * lib/unicase/u32-is-invariant.c: Likewise.
25831         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
25832
25833 2009-12-30  Bruno Haible  <bruno@clisp.org>
25834
25835         Fix test crash.
25836         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
25837         locales.
25838         Reported by Simon Josefsson <simon@josefsson.org>.
25839
25840 2009-12-30  Bruno Haible  <bruno@clisp.org>
25841
25842         Fix compilation error on most platforms.
25843         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
25844         Reported by Simon Josefsson <simon@josefsson.org>
25845         and Nelson H. F. Beebe <beebe@math.utah.edu>.
25846
25847 2009-12-30  Eric Blake  <ebb9@byu.net>
25848
25849         futimens, utimensat: work around ntfs-3g bug
25850         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
25851         a ctime bug is present, and expand workaround to cover ntfs-3g.
25852         * lib/utimens.c (fdutimens, lutimens): Likewise.
25853         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
25854         (validate_timespec): Adjust return value.
25855         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
25856         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25857         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
25858
25859 2009-12-29  Eric Blake  <ebb9@byu.net>
25860
25861         link-warning: make usage consistent
25862         * modules/ctype (Depends-on): Add link-warning.
25863         (Makefile.am): Update rules accordingly.
25864         * modules/langinfo (Depends-on, Makefile.am): Likewise.
25865         * modules/locale (Depends-on, Makefile.am): Likewise.
25866         * modules/sys_file (Makefile.am): Likewise.
25867         * modules/getopt-posix (Makefile.am): Delete unused link warning
25868         efforts.
25869         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
25870         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
25871         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
25872         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
25873
25874         stdio: remove unused variables
25875         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
25876         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
25877         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25878
25879         tests: test more substitute headers
25880         * modules/ctype-tests: New file.
25881         * modules/dirent-tests: Likewise.
25882         * modules/spawn-tests: Likewise.
25883         * modules/sys_file-tests: Likewise.
25884         * modules/sys_ioctl-tests: Likewise.
25885         * modules/sys_wait-tests: Likewise.
25886         * tests/test-ctype.c: Likewise.
25887         * tests/test-dirent.c: Likewise.
25888         * tests/test-spawn.c: Likewise.
25889         * tests/test-sys_file.c: Likewise.
25890         * tests/test-sys_ioctl.c: Likewise.
25891         * tests/test-sys_wait.c: Likewise.
25892         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
25893         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
25894         whether or not flock is in use.
25895
25896         tests: remove License section from module
25897         * modules/arpa_inet-tests: Remove unneeded section.
25898         * modules/byteswap-tests: Likewise.
25899         * modules/ceilf-tests: Likewise.
25900         * modules/ceill-tests: Likewise.
25901         * modules/crypto/des-tests: Likewise.
25902         * modules/crypto/gc-arcfour-tests: Likewise.
25903         * modules/crypto/gc-arctwo-tests: Likewise.
25904         * modules/crypto/gc-des-tests: Likewise.
25905         * modules/crypto/gc-hmac-md5-tests: Likewise.
25906         * modules/crypto/gc-hmac-sha1-tests: Likewise.
25907         * modules/crypto/gc-md2-tests: Likewise.
25908         * modules/crypto/gc-md4-tests: Likewise.
25909         * modules/crypto/gc-md5-tests: Likewise.
25910         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
25911         * modules/crypto/gc-rijndael-tests: Likewise.
25912         * modules/crypto/gc-sha1-tests: Likewise.
25913         * modules/crypto/gc-tests: Likewise.
25914         * modules/crypto/md2-tests: Likewise.
25915         * modules/crypto/md4-tests: Likewise.
25916         * modules/fcntl-h-tests: Likewise.
25917         * modules/floorf-tests: Likewise.
25918         * modules/floorl-tests: Likewise.
25919         * modules/frexp-nolibm-tests: Likewise.
25920         * modules/frexp-tests: Likewise.
25921         * modules/frexpl-nolibm-tests: Likewise.
25922         * modules/frexpl-tests: Likewise.
25923         * modules/getaddrinfo-tests: Likewise.
25924         * modules/inttypes-tests: Likewise.
25925         * modules/isfinite-tests: Likewise.
25926         * modules/isinf-tests: Likewise.
25927         * modules/ldexpl-tests: Likewise.
25928         * modules/locale-tests: Likewise.
25929         * modules/math-tests: Likewise.
25930         * modules/netdb-tests: Likewise.
25931         * modules/netinet_in-tests: Likewise.
25932         * modules/printf-frexp-tests: Likewise.
25933         * modules/printf-frexpl-tests: Likewise.
25934         * modules/priv-set-tests: Likewise.
25935         * modules/random_r-tests: Likewise.
25936         * modules/round-tests: Likewise.
25937         * modules/roundf-tests: Likewise.
25938         * modules/roundl-tests: Likewise.
25939         * modules/search-tests: Likewise.
25940         * modules/select-tests: Likewise.
25941         * modules/signal-tests: Likewise.
25942         * modules/stdbool-tests: Likewise.
25943         * modules/stddef-tests: Likewise.
25944         * modules/stdint-tests: Likewise.
25945         * modules/stdio-tests: Likewise.
25946         * modules/stdlib-tests: Likewise.
25947         * modules/string-tests: Likewise.
25948         * modules/strings-tests: Likewise.
25949         * modules/sys_select-tests: Likewise.
25950         * modules/sys_socket-tests: Likewise.
25951         * modules/sys_stat-tests: Likewise.
25952         * modules/sys_time-tests: Likewise.
25953         * modules/sys_utsname-tests: Likewise.
25954         * modules/sysexits-tests: Likewise.
25955         * modules/time-tests: Likewise.
25956         * modules/trunc-tests: Likewise.
25957         * modules/truncf-tests: Likewise.
25958         * modules/truncl-tests: Likewise.
25959         * modules/tsearch-tests: Likewise.
25960         * modules/unistd-tests: Likewise.
25961         * modules/wchar-tests: Likewise.
25962         * modules/wctype-tests: Likewise.
25963
25964         tests: fix license on several tests
25965         * tests/test-des.c: Update to GPLv3+.
25966         * tests/test-flock.c: Likewise.
25967         * tests/test-fsync.c: Likewise.
25968         * tests/test-futimens.h: Likewise.
25969         * tests/test-gc-arcfour.c: Likewise.
25970         * tests/test-gc-arctwo.c: Likewise.
25971         * tests/test-gc-des.c: Likewise.
25972         * tests/test-gc-hmac-md5.c: Likewise.
25973         * tests/test-gc-hmac-sha1.c: Likewise.
25974         * tests/test-gc-md2.c: Likewise.
25975         * tests/test-gc-md4.c: Likewise.
25976         * tests/test-gc-md5.c: Likewise.
25977         * tests/test-gc-pbkdf2-sha1.c: Likewise.
25978         * tests/test-gc-rijndael.c: Likewise.
25979         * tests/test-gc-sha1.c: Likewise.
25980         * tests/test-gc.c: Likewise.
25981         * tests/test-getcwd.c: Likewise.
25982         * tests/test-link.c: Likewise.
25983         * tests/test-link.h: Likewise.
25984         * tests/test-lutimens.h: Likewise.
25985         * tests/test-md2.c: Likewise.
25986         * tests/test-md4.c: Likewise.
25987         * tests/test-mkdir.h: Likewise.
25988         * tests/test-rename.c: Likewise.
25989         * tests/test-rename.h: Likewise.
25990         * tests/test-safe-alloc.c: Likewise.
25991         * tests/test-utimens-common.h: Likewise.
25992         * tests/test-utimens.h: Likewise.
25993
25994         maint: sync license texts
25995         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
25996         * doc/gpl-3.0.texi: Revert copyright year update.
25997         * doc/lgpl-3.0.texi: Likewise.
25998
25999 2009-12-29  Jim Meyering  <meyering@redhat.com>
26000
26001         update nearly all FSF copyright year lists to include 2009
26002         The files named by the following are exempted:
26003             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
26004               test -f "$dst" && { echo "$dst"; continue; }
26005               test -d "$dst" || continue
26006               echo "$dst"/$(basename "$src")
26007             done > exempt
26008             git ls-files tests/unictype >> exempt
26009         In the remaining files, convert to all-interval notation if
26010         - there is already at least one year interval like 2000-2003
26011         - the file is maintained by me
26012         - the file is in lib/uni*/, where that style already prevails
26013         Otherwise, use update-copyright's default.
26014
26015 2009-12-29  Simon Josefsson  <simon@josefsson.org>
26016         and Eric Blake  <ebb9@byu.net>
26017
26018         tests: don't require debug system() to pass
26019         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
26020         * tests/test-rmdir.h (test_rmdir_func): Likewise.
26021         * tests/test-unlink.h (test_unlink_func): Likewise.
26022         * tests/test-fstatat.c (main): ...into callers.
26023         * tests/test-lstat.c (main): Likewise.
26024         * tests/test-rmdir.c (main): Likewise.
26025         * tests/test-unlink.c (main): Likewise.
26026         * tests/test-unlinkat.c (main): Likewise.
26027         * tests/test-areadlink-with-size.c (main): Don't require a
26028         debug-only system call to pass, aiding cross-testing to mingw.
26029         * tests/test-areadlink.c (main): Likewise.
26030         * tests/test-areadlinkat-with-size.c (main): Likewise.
26031         * tests/test-areadlinkat.c (main): Likewise.
26032         * tests/test-canonicalize-lgpl.c (main): Likewise.
26033         * tests/test-canonicalize.c (main): Likewise.
26034         * tests/test-chown.c (main): Likewise.
26035         * tests/test-fchownat.c (main): Likewise.
26036         * tests/test-lchown.c (main): Likewise.
26037         * tests/test-fdutimensat.c (main): Likewise.
26038         * tests/test-futimens.c (main): Likewise.
26039         * tests/test-link.c (main): Likewise.
26040         * tests/test-linkat.c (main): Likewise.
26041         * tests/test-mkdir.c (main): Likewise.
26042         * tests/test-mkdirat.c (main): Likewise.
26043         * tests/test-mkfifo.c (main): Likewise.
26044         * tests/test-mkfifoat.c (main): Likewise.
26045         * tests/test-mknod.c (main): Likewise.
26046         * tests/test-readlink.c (main): Likewise.
26047         * tests/test-remove.c (main): Likewise.
26048         * tests/test-rename.c (main): Likewise.
26049         * tests/test-renameat.c (main): Likewise.
26050         * tests/test-symlink.c (main): Likewise.
26051         * tests/test-symlinkat.c (main): Likewise.
26052         * tests/test-utimens.c (main): Likewise.
26053         * tests/test-utimensat.c (main): Likewise.
26054
26055 2009-12-29  Simon Josefsson  <simon@josefsson.org>
26056
26057         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
26058         on $(UNUSED_PARAMETER_H) to avoid build failure.
26059
26060 2009-12-28  Jim Meyering  <meyering@redhat.com>
26061
26062         update-copyright: you may specify a max. line length other than 72
26063         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
26064
26065         maint: use consistent FSF copyright line syntax
26066         * lib/posixtm.c: Add missing comma in FSF copyright line.
26067         * lib/posixtm.h: Likewise.
26068         * lib/getugroups.c: Add missing ", Inc.".
26069
26070         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
26071         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
26072         FSF copyright line.  Remove trailing blanks.
26073
26074 2009-12-28  Eric Blake  <ebb9@byu.net>
26075
26076         test-dup2: reduce dependencies
26077         * modules/cloexec (Configure.ac): Set witness.
26078         * modules/dup2-tests (Depends-on): Drop cloexec.
26079         * tests/test-dup2.c (main): Skip portion of test if cloexec module
26080         not present.
26081         Suggested by Bruno Haible.
26082
26083 2009-12-26  Bruno Haible  <bruno@clisp.org>
26084
26085         Remove an unneeded dependency.
26086         * modules/fseterr (Depends-on): Remove dup2.
26087
26088 2009-12-26  Eric Blake  <ebb9@byu.net>
26089
26090         tests: use macros.h in more places
26091         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
26092         (ASSERT_STREAM): Provide default of stderr.
26093         * tests/test-dirent-safer.c: Include macros.h, using alternate
26094         stream for assertions.
26095         * tests/test-dup-safer.c: Likewise.
26096         * tests/test-freopen-safer.c: Likewise.
26097         * tests/test-getopt.c: Likewise.
26098         * tests/test-openat-safer.c: Likewise.
26099         * tests/test-pipe.c: Likewise.
26100         * tests/test-popen-safer.c: Likewise.
26101         * modules/dirent-safer-tests (Files): Include macros.h.
26102         * modules/unistd-safer-tests (Files): Likewise.
26103         * modules/freopen-safer-tests (Files): Likewise.
26104         * modules/getopt-posix-tests (Files): Likewise.
26105         * modules/openat-safer-tests (Files): Likewise.
26106         * modules/pipe-tests (Files): Likewise.
26107
26108 2009-12-26  Bruno Haible  <bruno@clisp.org>
26109
26110         javacomp: Portability fix.
26111         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
26112         that it also works on Solaris.
26113
26114 2009-12-26  Bruno Haible  <bruno@clisp.org>
26115
26116         localename: Fix storage allocation of gl_locale_name_thread's result.
26117         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
26118         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
26119         all platforms that have 'uselocale'.
26120         (gl_locale_name_thread_unsafe): New function, extracted from
26121         gl_locale_name_thread.
26122         (gl_locale_name_thread): Call struniq on all platforms that have
26123         'uselocale'.
26124         * tests/test-localename.c (test_locale_name_thread): Check that the
26125         resulting strings are permanently allocated.
26126         * modules/localename-tests (Depends-on): Add strdup.
26127
26128 2009-12-26  Bruno Haible  <bruno@clisp.org>
26129
26130         * tests/test-localename.c (categories): Fill in the strings.
26131
26132 2009-12-26  Jim Meyering  <meyering@redhat.com>
26133
26134         isdir: complete the removal of m4/isdir.m4
26135         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
26136
26137         isdir: clean up, since at least grep still uses it
26138         * lib/isdir.c: Include "isdir.h".
26139         (S_ISDIR): Remove now-unneeded definition.
26140         * modules/isdir (Files): Add lib/isdir.h.
26141         * lib/isdir.h: New file, with declaration.
26142         * m4/isdir.m4: Remove file -- unneeded.
26143
26144 2009-12-25  Bruno Haible  <bruno@clisp.org>
26145
26146         selinux-h: Make generated .h files standalone.
26147         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
26148         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
26149         * lib/se-selinux.in.h: Likewise.
26150         * modules/selinux-h (Depends-on): Add unused-parameter.
26151         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
26152         selinux/selinux.h and selinux/context.h.
26153         Suggested by Eric Blake.
26154
26155 2009-12-25  Bruno Haible  <bruno@clisp.org>
26156
26157         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
26158         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
26159         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
26160         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
26161         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
26162
26163 2009-12-24  Bruno Haible  <bruno@clisp.org>
26164
26165         openat: Fix warning.
26166         * lib/openat-proc.c: Include <unistd.h>.
26167
26168 2009-12-24  Bruno Haible  <bruno@clisp.org>
26169
26170         New module 'unused-parameter'.
26171         * build-aux/unused-parameter.h: New file, extracted from earlier
26172         gnulib-common.m4.
26173         * modules/unused-parameter: New file.
26174         * lib/unistr.h: Include unused-parameter.h.
26175         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
26176         _GL_UNUSED.
26177         * modules/unistr/base (Depends-on): Add unused-parameter.
26178
26179 2009-12-24  Bruno Haible  <bruno@clisp.org>
26180
26181         Add missing dependencies to 'extensions' module.
26182         * m4/extensions.m4: Add comment.
26183         * modules/accept4 (Depends-on): Add extensions.
26184         * modules/dup3 (Depends-on): Likewise.
26185         * modules/fcntl (Depends-on): Likewise.
26186         * modules/futimens (Depends-on): Likewise.
26187         * modules/mknod (Depends-on): Likewise.
26188         * modules/pipe2 (Depends-on): Likewise.
26189         * modules/stat-time (Depends-on): Likewise.
26190         * modules/strcasestr-simple (Depends-on): Likewise.
26191         * modules/strsignal (Depends-on): Likewise.
26192         * modules/utimensat (Depends-on): Likewise.
26193         * modules/localcharset (Depends-on): Likewise. Needed because of
26194         gl_FCNTL_O_FLAGS.
26195         * modules/wcrtomb (Depends-on): Likewise. Needed because of
26196         AC_TYPE_MBSTATE_T.
26197         * modules/wcsnrtombs (Depends-on): Likewise.
26198         * modules/wcsrtombs (Depends-on): Likewise.
26199
26200 2009-12-24  Bruno Haible  <bruno@clisp.org>
26201
26202         binary-io: Avoid gcc warning due to SET_BINARY.
26203         * lib/binary-io.h (SET_BINARY): Cast the result to void.
26204         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
26205
26206 2009-12-24  Bruno Haible  <bruno@clisp.org>
26207
26208         Avoid future namespace pollution on glibc systems.
26209         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
26210         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
26211         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
26212         glibc systems.
26213
26214 2009-12-24  Bruno Haible  <bruno@clisp.org>
26215
26216         Refactor common macros used in tests.
26217         * tests/macros.h: New file.
26218         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
26219         and/or <stdlib.h>, if appropriate.
26220         (ASSERT, SIZEOF): Remove macros.
26221         * tests/test-areadlink-with-size.c: Likewise.
26222         * tests/test-areadlinkat.c: Likewise.
26223         * tests/test-areadlinkat-with-size.c: Likewise.
26224         * tests/test-argmatch.c: Likewise.
26225         * tests/test-argv-iter.c: Likewise.
26226         * tests/test-array-mergesort.c: Likewise.
26227         * tests/test-array_list.c: Likewise.
26228         * tests/test-array_oset.c: Likewise.
26229         * tests/test-avltree_list.c: Likewise.
26230         * tests/test-avltree_oset.c: Likewise.
26231         * tests/test-avltreehash_list.c: Likewise.
26232         * tests/test-base64.c: Likewise.
26233         * tests/test-binary-io.c: Likewise.
26234         * tests/test-bitrotate.c: Likewise.
26235         * tests/test-btowc.c: Likewise.
26236         * tests/test-byteswap.c: Likewise.
26237         * tests/test-c-ctype.c: Likewise.
26238         * tests/test-c-stack.c: Likewise.
26239         * tests/test-c-strcasecmp.c: Likewise.
26240         * tests/test-c-strcasestr.c: Likewise.
26241         * tests/test-c-strncasecmp.c: Likewise.
26242         * tests/test-c-strstr.c: Likewise.
26243         * tests/test-canonicalize-lgpl.c: Likewise.
26244         * tests/test-canonicalize.c: Likewise.
26245         * tests/test-carray_list.c: Likewise.
26246         * tests/test-ceilf1.c: Likewise.
26247         * tests/test-ceilf2.c: Likewise.
26248         * tests/test-ceill.c: Likewise.
26249         * tests/test-chown.c: Likewise.
26250         * tests/test-cloexec.c: Likewise.
26251         * tests/test-copy-acl.c: Likewise.
26252         * tests/test-copy-file.c: Likewise.
26253         * tests/test-count-one-bits.c: Likewise.
26254         * tests/test-dprintf-posix.c: Likewise.
26255         * tests/test-dup2.c: Likewise.
26256         * tests/test-dup3.c: Likewise.
26257         * tests/test-duplocale.c: Likewise.
26258         * tests/test-fbufmode.c: Likewise.
26259         * tests/test-fchdir.c: Likewise.
26260         * tests/test-fchownat.c: Likewise.
26261         * tests/test-fcntl-safer.c: Likewise.
26262         * tests/test-fcntl.c: Likewise.
26263         * tests/test-fdopendir.c: Likewise.
26264         * tests/test-fdutimensat.c: Likewise.
26265         * tests/test-fflush2.c: Likewise.
26266         * tests/test-file-has-acl.c: Likewise.
26267         * tests/test-filevercmp.c: Likewise.
26268         * tests/test-flock.c: Likewise.
26269         * tests/test-floorf1.c: Likewise.
26270         * tests/test-floorf2.c: Likewise.
26271         * tests/test-floorl.c: Likewise.
26272         * tests/test-fnmatch.c: Likewise.
26273         * tests/test-fopen.h: Likewise.
26274         * tests/test-fpending.c: Likewise.
26275         * tests/test-fprintf-posix.c: Likewise.
26276         * tests/test-fpurge.c: Likewise.
26277         * tests/test-freadable.c: Likewise.
26278         * tests/test-freadahead.c: Likewise.
26279         * tests/test-freading.c: Likewise.
26280         * tests/test-freadptr.c: Likewise.
26281         * tests/test-freadptr2.c: Likewise.
26282         * tests/test-freadseek.c: Likewise.
26283         * tests/test-freopen.c: Likewise.
26284         * tests/test-frexp.c: Likewise.
26285         * tests/test-frexpl.c: Likewise.
26286         * tests/test-fseek.c: Likewise.
26287         * tests/test-fseeko.c: Likewise.
26288         * tests/test-fstatat.c: Likewise.
26289         * tests/test-fstrcmp.c: Likewise.
26290         * tests/test-fsync.c: Likewise.
26291         * tests/test-ftell.c: Likewise.
26292         * tests/test-ftello.c: Likewise.
26293         * tests/test-func.c: Likewise.
26294         * tests/test-futimens.c: Likewise.
26295         * tests/test-fwritable.c: Likewise.
26296         * tests/test-fwriting.c: Likewise.
26297         * tests/test-getcwd.c: Likewise.
26298         * tests/test-getdate.c: Likewise.
26299         * tests/test-getdelim.c: Likewise.
26300         * tests/test-getdtablesize.c: Likewise.
26301         * tests/test-getgroups.c: Likewise.
26302         * tests/test-getline.c: Likewise.
26303         * tests/test-getndelim2.c: Likewise.
26304         * tests/test-glob.c: Likewise.
26305         * tests/test-hash.c: Likewise.
26306         * tests/test-i-ring.c: Likewise.
26307         * tests/test-iconv-utf.c: Likewise.
26308         * tests/test-iconv.c: Likewise.
26309         * tests/test-idpriv-drop.c: Likewise.
26310         * tests/test-idpriv-droptemp.c: Likewise.
26311         * tests/test-inet_ntop.c: Likewise.
26312         * tests/test-inet_pton.c: Likewise.
26313         * tests/test-isblank.c: Likewise.
26314         * tests/test-isfinite.c: Likewise.
26315         * tests/test-isinf.c: Likewise.
26316         * tests/test-isnan.c: Likewise.
26317         * tests/test-isnand.h: Likewise.
26318         * tests/test-isnanf.h: Likewise.
26319         * tests/test-isnanl.h: Likewise.
26320         * tests/test-lchown.c: Likewise.
26321         * tests/test-ldexpl.c: Likewise.
26322         * tests/test-link.c: Likewise.
26323         * tests/test-linkat.c: Likewise.
26324         * tests/test-linked_list.c: Likewise.
26325         * tests/test-linkedhash_list.c: Likewise.
26326         * tests/test-localename.c: Likewise.
26327         * tests/test-lseek.c: Likewise.
26328         * tests/test-lstat.c: Likewise.
26329         * tests/test-mbmemcasecmp.c: Likewise.
26330         * tests/test-mbmemcasecoll.c: Likewise.
26331         * tests/test-mbrtowc.c: Likewise.
26332         * tests/test-mbscasecmp.c: Likewise.
26333         * tests/test-mbscasestr1.c: Likewise.
26334         * tests/test-mbscasestr2.c: Likewise.
26335         * tests/test-mbscasestr3.c: Likewise.
26336         * tests/test-mbscasestr4.c: Likewise.
26337         * tests/test-mbschr.c: Likewise.
26338         * tests/test-mbscspn.c: Likewise.
26339         * tests/test-mbsinit.c: Likewise.
26340         * tests/test-mbsncasecmp.c: Likewise.
26341         * tests/test-mbsnrtowcs.c: Likewise.
26342         * tests/test-mbspbrk.c: Likewise.
26343         * tests/test-mbspcasecmp.c: Likewise.
26344         * tests/test-mbsrchr.c: Likewise.
26345         * tests/test-mbsrtowcs.c: Likewise.
26346         * tests/test-mbsspn.c: Likewise.
26347         * tests/test-mbsstr1.c: Likewise.
26348         * tests/test-mbsstr2.c: Likewise.
26349         * tests/test-mbsstr3.c: Likewise.
26350         * tests/test-memchr.c: Likewise.
26351         * tests/test-memchr2.c: Likewise.
26352         * tests/test-memcmp.c: Likewise.
26353         * tests/test-memmem.c: Likewise.
26354         * tests/test-memrchr.c: Likewise.
26355         * tests/test-mkdir.c: Likewise.
26356         * tests/test-mkdirat.c: Likewise.
26357         * tests/test-mkfifo.c: Likewise.
26358         * tests/test-mkfifoat.c: Likewise.
26359         * tests/test-mknod.c: Likewise.
26360         * tests/test-nanosleep.c: Likewise.
26361         * tests/test-nl_langinfo.c: Likewise.
26362         * tests/test-obstack-printf.c: Likewise.
26363         * tests/test-open.c: Likewise.
26364         * tests/test-openat.c: Likewise.
26365         * tests/test-pipe-filter-gi1.c: Likewise.
26366         * tests/test-pipe-filter-gi2-main.c: Likewise.
26367         * tests/test-pipe-filter-ii1.c: Likewise.
26368         * tests/test-pipe-filter-ii2-main.c: Likewise.
26369         * tests/test-pipe2.c: Likewise.
26370         * tests/test-popen.h: Likewise.
26371         * tests/test-posixtm.c: Likewise.
26372         * tests/test-pread.c: Likewise.
26373         * tests/test-printf-frexp.c: Likewise.
26374         * tests/test-printf-frexpl.c: Likewise.
26375         * tests/test-printf-posix.c: Likewise.
26376         * tests/test-priv-set.c: Likewise.
26377         * tests/test-quotearg.c: Likewise.
26378         * tests/test-random_r.c: Likewise.
26379         * tests/test-rawmemchr.c: Likewise.
26380         * tests/test-rbtree_list.c: Likewise.
26381         * tests/test-rbtree_oset.c: Likewise.
26382         * tests/test-rbtreehash_list.c: Likewise.
26383         * tests/test-readlink.c: Likewise.
26384         * tests/test-remove.c: Likewise.
26385         * tests/test-rename.c: Likewise.
26386         * tests/test-renameat.c: Likewise.
26387         * tests/test-rmdir.c: Likewise.
26388         * tests/test-round1.c: Likewise.
26389         * tests/test-roundf1.c: Likewise.
26390         * tests/test-roundl.c: Likewise.
26391         * tests/test-safe-alloc.c: Likewise.
26392         * tests/test-sameacls.c: Likewise.
26393         * tests/test-set-mode-acl.c: Likewise.
26394         * tests/test-setenv.c: Likewise.
26395         * tests/test-sigaction.c: Likewise.
26396         * tests/test-signbit.c: Likewise.
26397         * tests/test-sleep.c: Likewise.
26398         * tests/test-snprintf-posix.c: Likewise.
26399         * tests/test-snprintf.c: Likewise.
26400         * tests/test-sprintf-posix.c: Likewise.
26401         * tests/test-stat-time.c: Likewise.
26402         * tests/test-stat.c: Likewise.
26403         * tests/test-strcasestr.c: Likewise.
26404         * tests/test-strchrnul.c: Likewise.
26405         * tests/test-strerror.c: Likewise.
26406         * tests/test-striconv.c: Likewise.
26407         * tests/test-striconveh.c: Likewise.
26408         * tests/test-striconveha.c: Likewise.
26409         * tests/test-strsignal.c: Likewise.
26410         * tests/test-strstr.c: Likewise.
26411         * tests/test-strtod.c: Likewise.
26412         * tests/test-strverscmp.c: Likewise.
26413         * tests/test-symlink.c: Likewise.
26414         * tests/test-symlinkat.c: Likewise.
26415         * tests/test-trunc1.c: Likewise.
26416         * tests/test-trunc2.c: Likewise.
26417         * tests/test-truncf1.c: Likewise.
26418         * tests/test-truncf2.c: Likewise.
26419         * tests/test-truncl.c: Likewise.
26420         * tests/test-uname.c: Likewise.
26421         * tests/test-unlink.c: Likewise.
26422         * tests/test-unlinkat.c: Likewise.
26423         * tests/test-unsetenv.c: Likewise.
26424         * tests/test-usleep.c: Likewise.
26425         * tests/test-utimens.c: Likewise.
26426         * tests/test-utimensat.c: Likewise.
26427         * tests/test-vasnprintf-posix.c: Likewise.
26428         * tests/test-vasnprintf-posix2.c: Likewise.
26429         * tests/test-vasnprintf.c: Likewise.
26430         * tests/test-vasprintf-posix.c: Likewise.
26431         * tests/test-vasprintf.c: Likewise.
26432         * tests/test-vdprintf-posix.c: Likewise.
26433         * tests/test-vfprintf-posix.c: Likewise.
26434         * tests/test-vprintf-posix.c: Likewise.
26435         * tests/test-vsnprintf-posix.c: Likewise.
26436         * tests/test-vsnprintf.c: Likewise.
26437         * tests/test-vsprintf-posix.c: Likewise.
26438         * tests/test-wcrtomb.c: Likewise.
26439         * tests/test-wcsnrtombs.c: Likewise.
26440         * tests/test-wcsrtombs.c: Likewise.
26441         * tests/test-wctype.c: Likewise.
26442         * tests/test-wcwidth.c: Likewise.
26443         * tests/test-xfprintf-posix.c: Likewise.
26444         * tests/test-xmemdup0.c: Likewise.
26445         * tests/test-xprintf-posix.c: Likewise.
26446         * tests/test-xvasprintf.c: Likewise.
26447         * tests/unicase/test-locale-language.c: Likewise.
26448         * tests/unicase/test-mapping-part1.h: Likewise.
26449         * tests/unicase/test-predicate-part1.h: Likewise.
26450         * tests/unicase/test-u8-casecmp.c: Likewise.
26451         * tests/unicase/test-u8-casecoll.c: Likewise.
26452         * tests/unicase/test-u8-casefold.c: Likewise.
26453         * tests/unicase/test-u8-is-cased.c: Likewise.
26454         * tests/unicase/test-u8-is-casefolded.c: Likewise.
26455         * tests/unicase/test-u8-is-lowercase.c: Likewise.
26456         * tests/unicase/test-u8-is-titlecase.c: Likewise.
26457         * tests/unicase/test-u8-is-uppercase.c: Likewise.
26458         * tests/unicase/test-u8-tolower.c: Likewise.
26459         * tests/unicase/test-u8-totitle.c: Likewise.
26460         * tests/unicase/test-u8-toupper.c: Likewise.
26461         * tests/unicase/test-u16-casecmp.c: Likewise.
26462         * tests/unicase/test-u16-casecoll.c: Likewise.
26463         * tests/unicase/test-u16-casefold.c: Likewise.
26464         * tests/unicase/test-u16-is-cased.c: Likewise.
26465         * tests/unicase/test-u16-is-casefolded.c: Likewise.
26466         * tests/unicase/test-u16-is-lowercase.c: Likewise.
26467         * tests/unicase/test-u16-is-titlecase.c: Likewise.
26468         * tests/unicase/test-u16-is-uppercase.c: Likewise.
26469         * tests/unicase/test-u16-tolower.c: Likewise.
26470         * tests/unicase/test-u16-totitle.c: Likewise.
26471         * tests/unicase/test-u16-toupper.c: Likewise.
26472         * tests/unicase/test-u32-casecmp.c: Likewise.
26473         * tests/unicase/test-u32-casecoll.c: Likewise.
26474         * tests/unicase/test-u32-casefold.c: Likewise.
26475         * tests/unicase/test-u32-is-cased.c: Likewise.
26476         * tests/unicase/test-u32-is-casefolded.c: Likewise.
26477         * tests/unicase/test-u32-is-lowercase.c: Likewise.
26478         * tests/unicase/test-u32-is-titlecase.c: Likewise.
26479         * tests/unicase/test-u32-is-uppercase.c: Likewise.
26480         * tests/unicase/test-u32-tolower.c: Likewise.
26481         * tests/unicase/test-u32-totitle.c: Likewise.
26482         * tests/unicase/test-u32-toupper.c: Likewise.
26483         * tests/unicase/test-ulc-casecmp.c: Likewise.
26484         * tests/unicase/test-ulc-casecoll.c: Likewise.
26485         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
26486         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
26487         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
26488         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
26489         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
26490         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
26491         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
26492         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
26493         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
26494         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
26495         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
26496         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
26497         * tests/unictype/test-bidi_byname.c: Likewise.
26498         * tests/unictype/test-bidi_name.c: Likewise.
26499         * tests/unictype/test-bidi_of.c: Likewise.
26500         * tests/unictype/test-bidi_test.c: Likewise.
26501         * tests/unictype/test-block_list.c: Likewise.
26502         * tests/unictype/test-block_of.c: Likewise.
26503         * tests/unictype/test-block_test.c: Likewise.
26504         * tests/unictype/test-categ_and.c: Likewise.
26505         * tests/unictype/test-categ_and_not.c: Likewise.
26506         * tests/unictype/test-categ_byname.c: Likewise.
26507         * tests/unictype/test-categ_name.c: Likewise.
26508         * tests/unictype/test-categ_none.c: Likewise.
26509         * tests/unictype/test-categ_of.c: Likewise.
26510         * tests/unictype/test-categ_or.c: Likewise.
26511         * tests/unictype/test-categ_test_withtable.c: Likewise.
26512         * tests/unictype/test-combining.c: Likewise.
26513         * tests/unictype/test-decdigit.c: Likewise.
26514         * tests/unictype/test-digit.c: Likewise.
26515         * tests/unictype/test-mirror.c: Likewise.
26516         * tests/unictype/test-numeric.c: Likewise.
26517         * tests/unictype/test-pr_byname.c: Likewise.
26518         * tests/unictype/test-pr_test.c: Likewise.
26519         * tests/unictype/test-predicate-part1.h: Likewise.
26520         * tests/unictype/test-scripts.c: Likewise.
26521         * tests/unictype/test-sy_c_ident.c: Likewise.
26522         * tests/unictype/test-sy_java_ident.c: Likewise.
26523         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
26524         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
26525         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
26526         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
26527         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
26528         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
26529         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
26530         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
26531         * tests/uninorm/test-canonical-decomposition.c: Likewise.
26532         * tests/uninorm/test-compat-decomposition.c: Likewise.
26533         * tests/uninorm/test-composition.c: Likewise.
26534         * tests/uninorm/test-decomposing-form.c: Likewise.
26535         * tests/uninorm/test-decomposition.c: Likewise.
26536         * tests/uninorm/test-u8-nfc.c: Likewise.
26537         * tests/uninorm/test-u8-nfd.c: Likewise.
26538         * tests/uninorm/test-u8-nfkc.c: Likewise.
26539         * tests/uninorm/test-u8-nfkd.c: Likewise.
26540         * tests/uninorm/test-u8-normcmp.c: Likewise.
26541         * tests/uninorm/test-u8-normcoll.c: Likewise.
26542         * tests/uninorm/test-u16-nfc.c: Likewise.
26543         * tests/uninorm/test-u16-nfd.c: Likewise.
26544         * tests/uninorm/test-u16-nfkc.c: Likewise.
26545         * tests/uninorm/test-u16-nfkd.c: Likewise.
26546         * tests/uninorm/test-u16-normcmp.c: Likewise.
26547         * tests/uninorm/test-u16-normcoll.c: Likewise.
26548         * tests/uninorm/test-u32-nfc.c: Likewise.
26549         * tests/uninorm/test-u32-nfd.c: Likewise.
26550         * tests/uninorm/test-u32-nfkc.c: Likewise.
26551         * tests/uninorm/test-u32-nfkd.c: Likewise.
26552         * tests/uninorm/test-u32-normalize-big.c: Likewise.
26553         * tests/uninorm/test-u32-normcmp.c: Likewise.
26554         * tests/uninorm/test-u32-normcoll.c: Likewise.
26555         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
26556         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
26557         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
26558         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
26559         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
26560         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
26561         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
26562         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
26563         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
26564         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
26565         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
26566         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
26567         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
26568         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
26569         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
26570         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
26571         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
26572         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
26573         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
26574         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
26575         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
26576         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
26577         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
26578         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
26579         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
26580         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
26581         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
26582         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
26583         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
26584         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
26585         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
26586         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
26587         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
26588         * tests/uniwidth/test-u8-strwidth.c: Likewise.
26589         * tests/uniwidth/test-u8-width.c: Likewise.
26590         * tests/uniwidth/test-u16-strwidth.c: Likewise.
26591         * tests/uniwidth/test-u16-width.c: Likewise.
26592         * tests/uniwidth/test-u32-strwidth.c: Likewise.
26593         * tests/uniwidth/test-u32-width.c: Likewise.
26594         * tests/uniwidth/test-uc_width.c: Likewise.
26595         * tests/uniwidth/test-uc_width2.c: Likewise.
26596         * modules/acl-tests (Files): Add tests/macros.h.
26597         * modules/areadlink-tests (Files): Likewise.
26598         * modules/areadlink-with-size-tests (Files): Likewise.
26599         * modules/areadlinkat-tests (Files): Likewise.
26600         * modules/areadlinkat-with-size-tests (Files): Likewise.
26601         * modules/argmatch-tests (Files): Likewise.
26602         * modules/argv-iter-tests (Files): Likewise.
26603         * modules/array-list-tests (Files): Likewise.
26604         * modules/array-mergesort-tests (Files): Likewise.
26605         * modules/array-oset-tests (Files): Likewise.
26606         * modules/avltree-list-tests (Files): Likewise.
26607         * modules/avltree-oset-tests (Files): Likewise.
26608         * modules/avltreehash-list-tests (Files): Likewise.
26609         * modules/base64-tests (Files): Likewise.
26610         * modules/binary-io-tests (Files): Likewise.
26611         * modules/bitrotate-tests (Files): Likewise.
26612         * modules/btowc-tests (Files): Likewise.
26613         * modules/byteswap-tests (Files): Likewise.
26614         * modules/c-ctype-tests (Files): Likewise.
26615         * modules/c-stack-tests (Files): Likewise.
26616         * modules/c-strcase-tests (Files): Likewise.
26617         * modules/c-strcasestr-tests (Files): Likewise.
26618         * modules/c-strstr-tests (Files): Likewise.
26619         * modules/canonicalize-lgpl-tests (Files): Likewise.
26620         * modules/canonicalize-tests (Files): Likewise.
26621         * modules/carray-list-tests (Files): Likewise.
26622         * modules/ceilf-tests (Files): Likewise.
26623         * modules/ceill-tests (Files): Likewise.
26624         * modules/chown-tests (Files): Likewise.
26625         * modules/cloexec-tests (Files): Likewise.
26626         * modules/copy-file-tests (Files): Likewise.
26627         * modules/count-one-bits-tests (Files): Likewise.
26628         * modules/dprintf-posix-tests (Files): Likewise.
26629         * modules/dup2-tests (Files): Likewise.
26630         * modules/dup3-tests (Files): Likewise.
26631         * modules/duplocale-tests (Files): Likewise.
26632         * modules/fbufmode-tests (Files): Likewise.
26633         * modules/fchdir-tests (Files): Likewise.
26634         * modules/fcntl-safer-tests (Files): Likewise.
26635         * modules/fcntl-tests (Files): Likewise.
26636         * modules/fdopendir-tests (Files): Likewise.
26637         * modules/fdutimensat-tests (Files): Likewise.
26638         * modules/fflush-tests (Files): Likewise.
26639         * modules/filevercmp-tests (Files): Likewise.
26640         * modules/flock-tests (Files): Likewise.
26641         * modules/floorf-tests (Files): Likewise.
26642         * modules/floorl-tests (Files): Likewise.
26643         * modules/fnmatch-tests (Files): Likewise.
26644         * modules/fopen-safer-tests (Files): Likewise.
26645         * modules/fopen-tests (Files): Likewise.
26646         * modules/fpending-tests (Files): Likewise.
26647         * modules/fprintf-posix-tests (Files): Likewise.
26648         * modules/fpurge-tests (Files): Likewise.
26649         * modules/freadable-tests (Files): Likewise.
26650         * modules/freadahead-tests (Files): Likewise.
26651         * modules/freading-tests (Files): Likewise.
26652         * modules/freadptr-tests (Files): Likewise.
26653         * modules/freadseek-tests (Files): Likewise.
26654         * modules/freopen-tests (Files): Likewise.
26655         * modules/frexp-nolibm-tests (Files): Likewise.
26656         * modules/frexp-tests (Files): Likewise.
26657         * modules/frexpl-nolibm-tests (Files): Likewise.
26658         * modules/frexpl-tests (Files): Likewise.
26659         * modules/fseek-tests (Files): Likewise.
26660         * modules/fseeko-tests (Files): Likewise.
26661         * modules/fstrcmp-tests (Files): Likewise.
26662         * modules/fsync-tests (Files): Likewise.
26663         * modules/ftell-tests (Files): Likewise.
26664         * modules/ftello-tests (Files): Likewise.
26665         * modules/func-tests (Files): Likewise.
26666         * modules/futimens-tests (Files): Likewise.
26667         * modules/fwritable-tests (Files): Likewise.
26668         * modules/fwriting-tests (Files): Likewise.
26669         * modules/getcwd-tests (Files): Likewise.
26670         * modules/getdate-tests (Files): Likewise.
26671         * modules/getdelim-tests (Files): Likewise.
26672         * modules/getdtablesize-tests (Files): Likewise.
26673         * modules/getgroups-tests (Files): Likewise.
26674         * modules/getline-tests (Files): Likewise.
26675         * modules/getndelim2-tests (Files): Likewise.
26676         * modules/glob-tests (Files): Likewise.
26677         * modules/hash-tests (Files): Likewise.
26678         * modules/i-ring-tests (Files): Likewise.
26679         * modules/iconv-tests (Files): Likewise.
26680         * modules/iconv_open-utf-tests (Files): Likewise.
26681         * modules/idpriv-drop-tests (Files): Likewise.
26682         * modules/idpriv-droptemp-tests (Files): Likewise.
26683         * modules/inet_ntop-tests (Files): Likewise.
26684         * modules/inet_pton-tests (Files): Likewise.
26685         * modules/isblank-tests (Files): Likewise.
26686         * modules/isfinite-tests (Files): Likewise.
26687         * modules/isinf-tests (Files): Likewise.
26688         * modules/isnan-tests (Files): Likewise.
26689         * modules/isnand-nolibm-tests (Files): Likewise.
26690         * modules/isnand-tests (Files): Likewise.
26691         * modules/isnanf-nolibm-tests (Files): Likewise.
26692         * modules/isnanf-tests (Files): Likewise.
26693         * modules/isnanl-nolibm-tests (Files): Likewise.
26694         * modules/isnanl-tests (Files): Likewise.
26695         * modules/lchown-tests (Files): Likewise.
26696         * modules/ldexpl-tests (Files): Likewise.
26697         * modules/link-tests (Files): Likewise.
26698         * modules/linkat-tests (Files): Likewise.
26699         * modules/linked-list-tests (Files): Likewise.
26700         * modules/linkedhash-list-tests (Files): Likewise.
26701         * modules/localename-tests (Files): Likewise.
26702         * modules/lseek-tests (Files): Likewise.
26703         * modules/lstat-tests (Files): Likewise.
26704         * modules/mbmemcasecmp-tests (Files): Likewise.
26705         * modules/mbmemcasecoll-tests (Files): Likewise.
26706         * modules/mbrtowc-tests (Files): Likewise.
26707         * modules/mbscasecmp-tests (Files): Likewise.
26708         * modules/mbscasestr-tests (Files): Likewise.
26709         * modules/mbschr-tests (Files): Likewise.
26710         * modules/mbscspn-tests (Files): Likewise.
26711         * modules/mbsinit-tests (Files): Likewise.
26712         * modules/mbsncasecmp-tests (Files): Likewise.
26713         * modules/mbsnrtowcs-tests (Files): Likewise.
26714         * modules/mbspbrk-tests (Files): Likewise.
26715         * modules/mbspcasecmp-tests (Files): Likewise.
26716         * modules/mbsrchr-tests (Files): Likewise.
26717         * modules/mbsrtowcs-tests (Files): Likewise.
26718         * modules/mbsspn-tests (Files): Likewise.
26719         * modules/mbsstr-tests (Files): Likewise.
26720         * modules/memchr-tests (Files): Likewise.
26721         * modules/memchr2-tests (Files): Likewise.
26722         * modules/memcmp-tests (Files): Likewise.
26723         * modules/memmem-tests (Files): Likewise.
26724         * modules/memrchr-tests (Files): Likewise.
26725         * modules/mkdir-tests (Files): Likewise.
26726         * modules/mkfifo-tests (Files): Likewise.
26727         * modules/mkfifoat-tests (Files): Likewise.
26728         * modules/mknod-tests (Files): Likewise.
26729         * modules/nanosleep-tests (Files): Likewise.
26730         * modules/nl_langinfo-tests (Files): Likewise.
26731         * modules/obstack-printf-tests (Files): Likewise.
26732         * modules/open-tests (Files): Likewise.
26733         * modules/openat-tests (Files): Likewise.
26734         * modules/pipe-filter-gi-tests (Files): Likewise.
26735         * modules/pipe-filter-ii-tests (Files): Likewise.
26736         * modules/pipe2-tests (Files): Likewise.
26737         * modules/popen-safer-tests (Files): Likewise.
26738         * modules/popen-tests (Files): Likewise.
26739         * modules/posixtm-tests (Files): Likewise.
26740         * modules/pread-tests (Files): Likewise.
26741         * modules/printf-frexp-tests (Files): Likewise.
26742         * modules/printf-frexpl-tests (Files): Likewise.
26743         * modules/printf-posix-tests (Files): Likewise.
26744         * modules/priv-set-tests (Files): Likewise.
26745         * modules/quotearg-tests (Files): Likewise.
26746         * modules/random_r-tests (Files): Likewise.
26747         * modules/rawmemchr-tests (Files): Likewise.
26748         * modules/rbtree-list-tests (Files): Likewise.
26749         * modules/rbtree-oset-tests (Files): Likewise.
26750         * modules/rbtreehash-list-tests (Files): Likewise.
26751         * modules/readlink-tests (Files): Likewise.
26752         * modules/remove-tests (Files): Likewise.
26753         * modules/rename-tests (Files): Likewise.
26754         * modules/renameat-tests (Files): Likewise.
26755         * modules/rmdir-tests (Files): Likewise.
26756         * modules/round-tests (Files): Likewise.
26757         * modules/roundf-tests (Files): Likewise.
26758         * modules/roundl-tests (Files): Likewise.
26759         * modules/safe-alloc-tests (Files): Likewise.
26760         * modules/setenv-tests (Files): Likewise.
26761         * modules/sigaction-tests (Files): Likewise.
26762         * modules/signbit-tests (Files): Likewise.
26763         * modules/sleep-tests (Files): Likewise.
26764         * modules/snprintf-posix-tests (Files): Likewise.
26765         * modules/snprintf-tests (Files): Likewise.
26766         * modules/sprintf-posix-tests (Files): Likewise.
26767         * modules/stat-tests (Files): Likewise.
26768         * modules/stat-time-tests (Files): Likewise.
26769         * modules/strcasestr-tests (Files): Likewise.
26770         * modules/strchrnul-tests (Files): Likewise.
26771         * modules/strerror-tests (Files): Likewise.
26772         * modules/striconv-tests (Files): Likewise.
26773         * modules/striconveh-tests (Files): Likewise.
26774         * modules/striconveha-tests (Files): Likewise.
26775         * modules/strsignal-tests (Files): Likewise.
26776         * modules/strstr-tests (Files): Likewise.
26777         * modules/strtod-tests (Files): Likewise.
26778         * modules/strverscmp-tests (Files): Likewise.
26779         * modules/symlink-tests (Files): Likewise.
26780         * modules/symlinkat-tests (Files): Likewise.
26781         * modules/trunc-tests (Files): Likewise.
26782         * modules/truncf-tests (Files): Likewise.
26783         * modules/truncl-tests (Files): Likewise.
26784         * modules/uname-tests (Files): Likewise.
26785         * modules/unicase/cased-tests (Files): Likewise.
26786         * modules/unicase/ignorable-tests (Files): Likewise.
26787         * modules/unicase/locale-language-tests (Files): Likewise.
26788         * modules/unicase/tolower-tests (Files): Likewise.
26789         * modules/unicase/totitle-tests (Files): Likewise.
26790         * modules/unicase/toupper-tests (Files): Likewise.
26791         * modules/unicase/u8-casecmp-tests (Files): Likewise.
26792         * modules/unicase/u8-casecoll-tests (Files): Likewise.
26793         * modules/unicase/u8-casefold-tests (Files): Likewise.
26794         * modules/unicase/u8-is-cased-tests (Files): Likewise.
26795         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
26796         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
26797         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
26798         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
26799         * modules/unicase/u8-tolower-tests (Files): Likewise.
26800         * modules/unicase/u8-totitle-tests (Files): Likewise.
26801         * modules/unicase/u8-toupper-tests (Files): Likewise.
26802         * modules/unicase/u16-casecmp-tests (Files): Likewise.
26803         * modules/unicase/u16-casecoll-tests (Files): Likewise.
26804         * modules/unicase/u16-casefold-tests (Files): Likewise.
26805         * modules/unicase/u16-is-cased-tests (Files): Likewise.
26806         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
26807         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
26808         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
26809         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
26810         * modules/unicase/u16-tolower-tests (Files): Likewise.
26811         * modules/unicase/u16-totitle-tests (Files): Likewise.
26812         * modules/unicase/u16-toupper-tests (Files): Likewise.
26813         * modules/unicase/u32-casecmp-tests (Files): Likewise.
26814         * modules/unicase/u32-casecoll-tests (Files): Likewise.
26815         * modules/unicase/u32-casefold-tests (Files): Likewise.
26816         * modules/unicase/u32-is-cased-tests (Files): Likewise.
26817         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
26818         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
26819         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
26820         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
26821         * modules/unicase/u32-tolower-tests (Files): Likewise.
26822         * modules/unicase/u32-totitle-tests (Files): Likewise.
26823         * modules/unicase/u32-toupper-tests (Files): Likewise.
26824         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
26825         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
26826         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
26827         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
26828         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
26829         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
26830         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
26831         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
26832         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
26833         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
26834         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
26835         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
26836         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
26837         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
26838         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
26839         * modules/unictype/bidicategory-name-tests (Files): Likewise.
26840         * modules/unictype/bidicategory-of-tests (Files): Likewise.
26841         * modules/unictype/bidicategory-test-tests (Files): Likewise.
26842         * modules/unictype/block-list-tests (Files): Likewise.
26843         * modules/unictype/block-of-tests (Files): Likewise.
26844         * modules/unictype/block-test-tests (Files): Likewise.
26845         * modules/unictype/category-C-tests (Files): Likewise.
26846         * modules/unictype/category-Cc-tests (Files): Likewise.
26847         * modules/unictype/category-Cf-tests (Files): Likewise.
26848         * modules/unictype/category-Cn-tests (Files): Likewise.
26849         * modules/unictype/category-Co-tests (Files): Likewise.
26850         * modules/unictype/category-Cs-tests (Files): Likewise.
26851         * modules/unictype/category-L-tests (Files): Likewise.
26852         * modules/unictype/category-Ll-tests (Files): Likewise.
26853         * modules/unictype/category-Lm-tests (Files): Likewise.
26854         * modules/unictype/category-Lo-tests (Files): Likewise.
26855         * modules/unictype/category-Lt-tests (Files): Likewise.
26856         * modules/unictype/category-Lu-tests (Files): Likewise.
26857         * modules/unictype/category-M-tests (Files): Likewise.
26858         * modules/unictype/category-Mc-tests (Files): Likewise.
26859         * modules/unictype/category-Me-tests (Files): Likewise.
26860         * modules/unictype/category-Mn-tests (Files): Likewise.
26861         * modules/unictype/category-N-tests (Files): Likewise.
26862         * modules/unictype/category-Nd-tests (Files): Likewise.
26863         * modules/unictype/category-Nl-tests (Files): Likewise.
26864         * modules/unictype/category-No-tests (Files): Likewise.
26865         * modules/unictype/category-P-tests (Files): Likewise.
26866         * modules/unictype/category-Pc-tests (Files): Likewise.
26867         * modules/unictype/category-Pd-tests (Files): Likewise.
26868         * modules/unictype/category-Pe-tests (Files): Likewise.
26869         * modules/unictype/category-Pf-tests (Files): Likewise.
26870         * modules/unictype/category-Pi-tests (Files): Likewise.
26871         * modules/unictype/category-Po-tests (Files): Likewise.
26872         * modules/unictype/category-Ps-tests (Files): Likewise.
26873         * modules/unictype/category-S-tests (Files): Likewise.
26874         * modules/unictype/category-Sc-tests (Files): Likewise.
26875         * modules/unictype/category-Sk-tests (Files): Likewise.
26876         * modules/unictype/category-Sm-tests (Files): Likewise.
26877         * modules/unictype/category-So-tests (Files): Likewise.
26878         * modules/unictype/category-Z-tests (Files): Likewise.
26879         * modules/unictype/category-Zl-tests (Files): Likewise.
26880         * modules/unictype/category-Zp-tests (Files): Likewise.
26881         * modules/unictype/category-Zs-tests (Files): Likewise.
26882         * modules/unictype/category-and-not-tests (Files): Likewise.
26883         * modules/unictype/category-and-tests (Files): Likewise.
26884         * modules/unictype/category-byname-tests (Files): Likewise.
26885         * modules/unictype/category-name-tests (Files): Likewise.
26886         * modules/unictype/category-none-tests (Files): Likewise.
26887         * modules/unictype/category-of-tests (Files): Likewise.
26888         * modules/unictype/category-or-tests (Files): Likewise.
26889         * modules/unictype/category-test-withtable-tests (Files): Likewise.
26890         * modules/unictype/combining-class-tests (Files): Likewise.
26891         * modules/unictype/ctype-alnum-tests (Files): Likewise.
26892         * modules/unictype/ctype-alpha-tests (Files): Likewise.
26893         * modules/unictype/ctype-blank-tests (Files): Likewise.
26894         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
26895         * modules/unictype/ctype-digit-tests (Files): Likewise.
26896         * modules/unictype/ctype-graph-tests (Files): Likewise.
26897         * modules/unictype/ctype-lower-tests (Files): Likewise.
26898         * modules/unictype/ctype-print-tests (Files): Likewise.
26899         * modules/unictype/ctype-punct-tests (Files): Likewise.
26900         * modules/unictype/ctype-space-tests (Files): Likewise.
26901         * modules/unictype/ctype-upper-tests (Files): Likewise.
26902         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
26903         * modules/unictype/decimal-digit-tests (Files): Likewise.
26904         * modules/unictype/digit-tests (Files): Likewise.
26905         * modules/unictype/mirror-tests (Files): Likewise.
26906         * modules/unictype/numeric-tests (Files): Likewise.
26907         * modules/unictype/property-alphabetic-tests (Files): Likewise.
26908         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
26909         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
26910         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
26911         Likewise.
26912         * modules/unictype/property-bidi-block-separator-tests (Files):
26913         Likewise.
26914         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
26915         Likewise.
26916         * modules/unictype/property-bidi-common-separator-tests (Files):
26917         Likewise.
26918         * modules/unictype/property-bidi-control-tests (Files): Likewise.
26919         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
26920         Likewise.
26921         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
26922         Likewise.
26923         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
26924         Likewise.
26925         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
26926         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
26927         Likewise.
26928         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
26929         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
26930         Likewise.
26931         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
26932         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
26933         * modules/unictype/property-bidi-segment-separator-tests (Files):
26934         Likewise.
26935         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
26936         * modules/unictype/property-byname-tests (Files): Likewise.
26937         * modules/unictype/property-combining-tests (Files): Likewise.
26938         * modules/unictype/property-composite-tests (Files): Likewise.
26939         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
26940         * modules/unictype/property-dash-tests (Files): Likewise.
26941         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
26942         * modules/unictype/property-default-ignorable-code-point-tests (Files):
26943         Likewise.
26944         * modules/unictype/property-deprecated-tests (Files): Likewise.
26945         * modules/unictype/property-diacritic-tests (Files): Likewise.
26946         * modules/unictype/property-extender-tests (Files): Likewise.
26947         * modules/unictype/property-format-control-tests (Files): Likewise.
26948         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
26949         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
26950         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
26951         * modules/unictype/property-hex-digit-tests (Files): Likewise.
26952         * modules/unictype/property-hyphen-tests (Files): Likewise.
26953         * modules/unictype/property-id-continue-tests (Files): Likewise.
26954         * modules/unictype/property-id-start-tests (Files): Likewise.
26955         * modules/unictype/property-ideographic-tests (Files): Likewise.
26956         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
26957         * modules/unictype/property-ids-trinary-operator-tests (Files):
26958         Likewise.
26959         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
26960         * modules/unictype/property-iso-control-tests (Files): Likewise.
26961         * modules/unictype/property-join-control-tests (Files): Likewise.
26962         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
26963         * modules/unictype/property-line-separator-tests (Files): Likewise.
26964         * modules/unictype/property-logical-order-exception-tests (Files):
26965         Likewise.
26966         * modules/unictype/property-lowercase-tests (Files): Likewise.
26967         * modules/unictype/property-math-tests (Files): Likewise.
26968         * modules/unictype/property-non-break-tests (Files): Likewise.
26969         * modules/unictype/property-not-a-character-tests (Files): Likewise.
26970         * modules/unictype/property-numeric-tests (Files): Likewise.
26971         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
26972         * modules/unictype/property-other-default-ignorable-code-point-tests
26973         (Files): Likewise.
26974         * modules/unictype/property-other-grapheme-extend-tests (Files):
26975         Likewise.
26976         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
26977         * modules/unictype/property-other-id-start-tests (Files): Likewise.
26978         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
26979         * modules/unictype/property-other-math-tests (Files): Likewise.
26980         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
26981         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
26982         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
26983         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
26984         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
26985         * modules/unictype/property-private-use-tests (Files): Likewise.
26986         * modules/unictype/property-punctuation-tests (Files): Likewise.
26987         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
26988         * modules/unictype/property-radical-tests (Files): Likewise.
26989         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
26990         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
26991         * modules/unictype/property-space-tests (Files): Likewise.
26992         * modules/unictype/property-terminal-punctuation-tests (Files):
26993         Likewise.
26994         * modules/unictype/property-test-tests (Files): Likewise.
26995         * modules/unictype/property-titlecase-tests (Files): Likewise.
26996         * modules/unictype/property-unassigned-code-value-tests (Files):
26997         Likewise.
26998         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
26999         * modules/unictype/property-uppercase-tests (Files): Likewise.
27000         * modules/unictype/property-variation-selector-tests (Files): Likewise.
27001         * modules/unictype/property-white-space-tests (Files): Likewise.
27002         * modules/unictype/property-xid-continue-tests (Files): Likewise.
27003         * modules/unictype/property-xid-start-tests (Files): Likewise.
27004         * modules/unictype/property-zero-width-tests (Files): Likewise.
27005         * modules/unictype/scripts-tests (Files): Likewise.
27006         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
27007         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
27008         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
27009         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
27010         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
27011         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
27012         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
27013         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
27014         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
27015         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
27016         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
27017         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
27018         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
27019         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
27020         * modules/uninorm/composition-tests (Files): Likewise.
27021         * modules/uninorm/decomposing-form-tests (Files): Likewise.
27022         * modules/uninorm/decomposition-tests (Files): Likewise.
27023         * modules/uninorm/filter-tests (Files): Likewise.
27024         * modules/uninorm/nfc-tests (Files): Likewise.
27025         * modules/uninorm/nfd-tests (Files): Likewise.
27026         * modules/uninorm/nfkc-tests (Files): Likewise.
27027         * modules/uninorm/nfkd-tests (Files): Likewise.
27028         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
27029         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
27030         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
27031         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
27032         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
27033         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
27034         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
27035         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
27036         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
27037         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
27038         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
27039         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
27040         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
27041         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
27042         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
27043         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
27044         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
27045         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
27046         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
27047         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
27048         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
27049         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
27050         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
27051         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
27052         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
27053         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
27054         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
27055         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
27056         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
27057         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
27058         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
27059         * modules/uniwidth/u8-width-tests (Files): Likewise.
27060         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
27061         * modules/uniwidth/u16-width-tests (Files): Likewise.
27062         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
27063         * modules/uniwidth/u32-width-tests (Files): Likewise.
27064         * modules/uniwidth/width-tests (Files): Likewise.
27065         * modules/unlink-tests (Files): Likewise.
27066         * modules/unsetenv-tests (Files): Likewise.
27067         * modules/usleep-tests (Files): Likewise.
27068         * modules/utimens-tests (Files): Likewise.
27069         * modules/utimensat-tests (Files): Likewise.
27070         * modules/vasnprintf-posix-tests (Files): Likewise.
27071         * modules/vasnprintf-tests (Files): Likewise.
27072         * modules/vasprintf-posix-tests (Files): Likewise.
27073         * modules/vasprintf-tests (Files): Likewise.
27074         * modules/vdprintf-posix-tests (Files): Likewise.
27075         * modules/vfprintf-posix-tests (Files): Likewise.
27076         * modules/vprintf-posix-tests (Files): Likewise.
27077         * modules/vsnprintf-posix-tests (Files): Likewise.
27078         * modules/vsnprintf-tests (Files): Likewise.
27079         * modules/vsprintf-posix-tests (Files): Likewise.
27080         * modules/wcrtomb-tests (Files): Likewise.
27081         * modules/wcsnrtombs-tests (Files): Likewise.
27082         * modules/wcsrtombs-tests (Files): Likewise.
27083         * modules/wctype-tests (Files): Likewise.
27084         * modules/wcwidth-tests (Files): Likewise.
27085         * modules/xmemdup0-tests (Files): Likewise.
27086         * modules/xprintf-posix-tests (Files): Likewise.
27087         * modules/xvasprintf-tests (Files): Likewise.
27088
27089 2009-12-24  Eric Blake  <ebb9@byu.net>
27090
27091         test-nanosleep: fix typo
27092         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
27093         patch.
27094         Reported by Bruno Haible.
27095
27096 2009-12-24  Bruno Haible  <bruno@clisp.org>
27097
27098         Reduce namespace pollution on glibc systems.
27099         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
27100         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
27101         systems.
27102         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
27103         <getopt.h> on glibc systems.
27104         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
27105         systems.
27106         * lib/fcntl.c: Include <unistd.h> here instead.
27107
27108 2009-12-24  Bruno Haible  <bruno@clisp.org>
27109
27110         * lib/stdlib.in.h (includes): Fix typo in today's commit.
27111
27112 2009-12-24  Eric Blake  <ebb9@byu.net>
27113
27114         tests: add signature checks
27115         * tests/signature.h (SIGNATURE_CHECK): New file.
27116         * modules/atexit-tests (Files): Use it.
27117         * modules/btowc-tests (Files): Likewise.
27118         * modules/canonicalize-lgpl-tests (Files): Likewise.
27119         * modules/ceilf-tests (Files): Likewise.
27120         * modules/ceill-tests (Files): Likewise.
27121         * modules/chown-tests (Files): Likewise.
27122         * modules/dprintf-posix-tests (Files): Likewise.
27123         * modules/dup2-tests (Files): Likewise.
27124         * modules/dup3-tests (Files): Likewise.
27125         * modules/duplocale-tests (Files): Likewise.
27126         * modules/fchdir-tests (Files): Likewise.
27127         * modules/fcntl-tests (Files): Likewise.
27128         * modules/fdopendir-tests (Files): Likewise.
27129         * modules/fflush-tests (Files): Likewise.
27130         * modules/flock-tests (Files): Likewise.
27131         * modules/floorf-tests (Files): Likewise.
27132         * modules/floorl-tests (Files): Likewise.
27133         * modules/fnmatch-tests (Files): Likewise.
27134         * modules/fopen-tests (Files): Likewise.
27135         * modules/fprintf-posix-tests (Files): Likewise.
27136         * modules/freopen-tests (Files): Likewise.
27137         * modules/frexp-nolibm-tests (Files): Likewise.
27138         * modules/frexp-tests (Files): Likewise.
27139         * modules/frexpl-nolibm-tests (Files): Likewise.
27140         * modules/frexpl-tests (Files): Likewise.
27141         * modules/fseek-tests (Files): Likewise.
27142         * modules/fseeko-tests (Files): Likewise.
27143         * modules/fsync-tests (Files): Likewise.
27144         * modules/ftell-tests (Files): Likewise.
27145         * modules/ftello-tests (Files): Likewise.
27146         * modules/futimens-tests (Files): Likewise.
27147         * modules/getaddrinfo-tests (Files): Likewise.
27148         * modules/getcwd-tests (Files): Likewise.
27149         * modules/getdelim-tests (Files): Likewise.
27150         * modules/getdtablesize-tests (Files): Likewise.
27151         * modules/getgroups-tests (Files): Likewise.
27152         * modules/gethostname-tests (Files): Likewise.
27153         * modules/getline-tests (Files): Likewise.
27154         * modules/getopt-posix-tests (Files): Likewise.
27155         * modules/gettimeofday-tests (Files): Likewise.
27156         * modules/glob-tests (Files): Likewise.
27157         * modules/iconv-tests (Files): Likewise.
27158         * modules/inet_ntop-tests (Files): Likewise.
27159         * modules/inet_pton-tests (Files): Likewise.
27160         * modules/isblank-tests (Files): Likewise.
27161         * modules/lchown-tests (Files): Likewise.
27162         * modules/ldexpl-tests (Files): Likewise.
27163         * modules/link-tests (Files): Likewise.
27164         * modules/linkat-tests (Files): Likewise.
27165         * modules/lseek-tests (Files): Likewise.
27166         * modules/lstat-tests (Files): Likewise.
27167         * modules/mbrtowc-tests (Files): Likewise.
27168         * modules/mbsinit-tests (Files): Likewise.
27169         * modules/mbsnrtowcs-tests (Files): Likewise.
27170         * modules/mbsrtowcs-tests (Files): Likewise.
27171         * modules/memchr-tests (Files): Likewise.
27172         * modules/memcmp-tests (Files): Likewise.
27173         * modules/memmem-tests (Files): Likewise.
27174         * modules/memrchr-tests (Files): Likewise.
27175         * modules/mkdir-tests (Files): Likewise.
27176         * modules/mkfifo-tests (Files): Likewise.
27177         * modules/mkfifoat-tests (Files): Likewise.
27178         * modules/mknod-tests (Files): Likewise.
27179         * modules/nanosleep-tests (Files): Likewise.
27180         * modules/nl_langinfo-tests (Files): Likewise.
27181         * modules/obstack-printf-tests (Files): Likewise.
27182         * modules/open-tests (Files): Likewise.
27183         * modules/openat-tests (Files): Likewise.
27184         * modules/perror-tests (Files): Likewise.
27185         * modules/pipe2-tests (Files): Likewise.
27186         * modules/poll-tests (Files): Likewise.
27187         * modules/popen-tests (Files): Likewise.
27188         * modules/posix_spawn-tests (Files): Likewise.
27189         * modules/posix_spawnp-tests (Files): Likewise.
27190         * modules/pread-tests (Files): Likewise.
27191         * modules/printf-posix-tests (Files): Likewise.
27192         * modules/pty-tests (Files): Likewise.
27193         * modules/random_r-tests (Files): Likewise.
27194         * modules/rawmemchr-tests (Files): Likewise.
27195         * modules/readlink-tests (Files): Likewise.
27196         * modules/remove-tests (Files): Likewise.
27197         * modules/rename-tests (Files): Likewise.
27198         * modules/renameat-tests (Files): Likewise.
27199         * modules/rmdir-tests (Files): Likewise.
27200         * modules/round-tests (Files): Likewise.
27201         * modules/roundf-tests (Files): Likewise.
27202         * modules/roundl-tests (Files): Likewise.
27203         * modules/select-tests (Files): Likewise.
27204         * modules/setenv-tests (Files): Likewise.
27205         * modules/sigaction-tests (Files): Likewise.
27206         * modules/sleep-tests (Files): Likewise.
27207         * modules/snprintf-posix-tests (Files): Likewise.
27208         * modules/snprintf-tests (Files): Likewise.
27209         * modules/sprintf-posix-tests (Files): Likewise.
27210         * modules/stat-tests (Files): Likewise.
27211         * modules/strcasestr-tests (Files): Likewise.
27212         * modules/strchrnul-tests (Files): Likewise.
27213         * modules/strerror-tests (Files): Likewise.
27214         * modules/strsignal-tests (Files): Likewise.
27215         * modules/strstr-tests (Files): Likewise.
27216         * modules/strtod-tests (Files): Likewise.
27217         * modules/strverscmp-tests (Files): Likewise.
27218         * modules/symlink-tests (Files): Likewise.
27219         * modules/symlinkat-tests (Files): Likewise.
27220         * modules/times-tests (Files): Likewise.
27221         * modules/trunc-tests (Files): Likewise.
27222         * modules/truncf-tests (Files): Likewise.
27223         * modules/truncl-tests (Files): Likewise.
27224         * modules/tsearch-tests (Files): Likewise.
27225         * modules/uname-tests (Files): Likewise.
27226         * modules/unlink-tests (Files): Likewise.
27227         * modules/unsetenv-tests (Files): Likewise.
27228         * modules/usleep-tests (Files): Likewise.
27229         * modules/utimensat-tests (Files): Likewise.
27230         * modules/vasprintf-tests (Files): Likewise.
27231         * modules/vdprintf-posix-tests (Files): Likewise.
27232         * modules/vfprintf-posix-tests (Files): Likewise.
27233         * modules/vprintf-posix-tests (Files): Likewise.
27234         * modules/vsnprintf-posix-tests (Files): Likewise.
27235         * modules/vsnprintf-tests (Files): Likewise.
27236         * modules/vsprintf-posix-tests (Files): Likewise.
27237         * modules/wcrtomb-tests (Files): Likewise.
27238         * modules/wcsnrtombs-tests (Files): Likewise.
27239         * modules/wcsrtombs-tests (Files): Likewise.
27240         * modules/wcwidth-tests (Files): Likewise.
27241         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
27242         * tests/test-isinf.c (isinf): Likewise.
27243         * tests/test-isnan.c (isnan): Likewise.
27244         * tests/test-signbit.c (signbit): Likewise.
27245         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
27246         declaration, either as macro or with correct signature.
27247         (select): Ensure function under test is declared with correct
27248         signature in correct header.
27249         * tests/test-atexit.c (atexit): Likewise.
27250         * tests/test-btowc.c (btowc): Likewise.
27251         * tests/test-canonicalize-lgpl.c (realpath)
27252         (canonicalize_file_name): Likewise.
27253         * tests/test-ceilf1.c (ceilf): Likewise.
27254         * tests/test-ceill.c (ceill): Likewise.
27255         * tests/test-chown.c (chown): Likewise.
27256         * tests/test-dprintf-posix.c (dprintf): Likewise.
27257         * tests/test-dup2.c (dup2): Likewise.
27258         * tests/test-dup3.c (dup3): Likewise.
27259         * tests/test-duplocale.c (duplocale): Likewise.
27260         * tests/test-fchdir.c (fchdir): Likewise.
27261         * tests/test-fchownat.c (fchownat): Likewise.
27262         * tests/test-fcntl.c (fcntl): Likewise.
27263         * tests/test-fdopendir.c (fdopendir): Likewise.
27264         * tests/test-fflush.c (fflush): Likewise.
27265         * tests/test-flock.c (flock): Likewise.
27266         * tests/test-floorf1.c (floorf): Likewise.
27267         * tests/test-floorl.c (floorl): Likewise.
27268         * tests/test-fnmatch.c (fnmatch): Likewise.
27269         * tests/test-fopen.c (fopen): Likewise.
27270         * tests/test-fprintf-posix.c (fprintf): Likewise.
27271         * tests/test-freopen.c (freopen): Likewise.
27272         * tests/test-frexp.c (frexp): Likewise.
27273         * tests/test-frexpl.c (frexpl): Likewise.
27274         * tests/test-fseek.c (fseek): Likewise.
27275         * tests/test-fseeko.c (fseeko): Likewise.
27276         * tests/test-fstatat.c (fstatat): Likewise.
27277         * tests/test-fsync.c (fsync): Likewise.
27278         * tests/test-ftell.c (ftell): Likewise.
27279         * tests/test-ftello.c (ftello): Likewise.
27280         * tests/test-futimens.c (futimens): Likewise.
27281         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
27282         (gai_strerror): Likewise.
27283         * tests/test-getcwd.c (getcwd): Likewise.
27284         * tests/test-getdelim.c (getdelim): Likewise.
27285         * tests/test-getdtablesize.c (getdtablesize): Likewise.
27286         * tests/test-getgroups.c (getgroups): Likewise.
27287         * tests/test-gethostname.c (gethostname): Likewise.
27288         * tests/test-getline.c (getline): Likewise.
27289         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
27290         Likewise.
27291         * tests/test-gettimeofday.c (gettimeofday): Likewise.
27292         * tests/test-glob.c (glob, globfree): Likewise.
27293         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
27294         * tests/test-inet_ntop.c (inet_ntop): Likewise.
27295         * tests/test-inet_pton.c (inet_pton): Likewise.
27296         * tests/test-isblank.c (isblank): Likewise.
27297         * tests/test-lchown.c (lchown): Likewise.
27298         * tests/test-ldexpl.c (ldexpl): Likewise.
27299         * tests/test-link.c (link): Likewise.
27300         * tests/test-linkat.c (linkat): Likewise.
27301         * tests/test-lseek.c (lseek): Likewise.
27302         * tests/test-lstat.c (lstat): Likewise.
27303         * tests/test-mbrtowc.c (mbrtowc): Likewise.
27304         * tests/test-mbsinit.c (mbsinit): Likewise.
27305         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
27306         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
27307         * tests/test-memchr.c (memchr): Likewise.
27308         * tests/test-memcmp.c (memcmp): Likewise.
27309         * tests/test-memmem.c (memmem): Likewise.
27310         * tests/test-memrchr.c (memrchr): Likewise.
27311         * tests/test-mkdir.c (mkdir): Likewise.
27312         * tests/test-mkdirat.c (mkdirat): Likewise.
27313         * tests/test-mkfifo.c (mkfifo): Likewise.
27314         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
27315         * tests/test-mknod.c (mknod): Likewise.
27316         * tests/test-nanosleep.c (nanosleep): Likewise.
27317         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
27318         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
27319         Likewise.
27320         * tests/test-open.c (open): Likewise.
27321         * tests/test-openat.c (openat): Likewise.
27322         * tests/test-perror.c (perror): Likewise.
27323         * tests/test-pipe2.c (pipe2): Likewise.
27324         * tests/test-poll.c (poll): Likewise.
27325         * tests/test-popen.c (popen, pclose): Likewise.
27326         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
27327         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
27328         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
27329         (posix_spawn_file_actions_destroy)
27330         (posix_spawn_file_actions_addclose)
27331         (posix_spawn_file_actions_addopen)
27332         (posix_spawn_file_actions_adddup2): Likewise.
27333         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
27334         * tests/test-pread.c (pread): Likewise.
27335         * tests/test-printf-posix.c (printf): Likewise.
27336         * tests/test-pty.c (openpty, forkpty): Likewise.
27337         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
27338         (random_r): Likewise.
27339         * tests/test-rawmemchr.c (rawmemchr): Likewise.
27340         * tests/test-readlink.c (readlink): Likewise.
27341         * tests/test-remove.c (remove): Likewise.
27342         * tests/test-rename.c (rename): Likewise.
27343         * tests/test-renameat.c (renameat): Likewise.
27344         * tests/test-rmdir.c (rmdir): Likewise.
27345         * tests/test-round1.c (round): Likewise.
27346         * tests/test-roundf1.c (roundf): Likewise.
27347         * tests/test-roundl.c (roundl): Likewise.
27348         * tests/test-setenv.c (setenv): Likewise.
27349         * tests/test-sigaction.c (sigaction): Likewise.
27350         * tests/test-sleep.c (sleep): Likewise.
27351         * tests/test-snprintf.c (snprintf): Likewise.
27352         * tests/test-sprintf-posix.c (sprintf): Likewise.
27353         * tests/test-stat.c (stat): Likewise.
27354         * tests/test-stpncpy.c (stpncpy): Likewise.
27355         * tests/test-strcasestr.c (strcasestr): Likewise.
27356         * tests/test-strchrnul.c (strchrnul): Likewise.
27357         * tests/test-strerror.c (strerror): Likewise.
27358         * tests/test-strsignal.c (strsignal): Likewise.
27359         * tests/test-strstr.c (strstr): Likewise.
27360         * tests/test-strtod.c (strtod): Likewise.
27361         * tests/test-strverscmp.c (strverscmp): Likewise.
27362         * tests/test-symlink.c (symlink): Likewise.
27363         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
27364         * tests/test-times.c (times): Likewise.
27365         * tests/test-trunc1.c (trunc): Likewise.
27366         * tests/test-truncf1.c (truncf): Likewise.
27367         * tests/test-truncl.c (truncl): Likewise.
27368         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
27369         Likewise.
27370         * tests/test-uname.c (uname): Likewise.
27371         * tests/test-unlink.c (unlink): Likewise.
27372         * tests/test-unlinkat.c (unlinkat): Likewise.
27373         * tests/test-unsetenv.c (unsetenv): Likewise.
27374         * tests/test-usleep.c (usleep): Likewise.
27375         * tests/test-utimensat.c (utimensat): Likewise.
27376         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
27377         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
27378         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
27379         * tests/test-vprintf-posix.c (vprintf): Likewise.
27380         * tests/test-vsnprintf.c (vsnprintf): Likewise.
27381         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
27382         * tests/test-wcrtomb.c (wcrtomb): Likewise.
27383         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
27384         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
27385         * tests/test-wcwidth.c (wcwidth): Likewise.
27386
27387         build: pull in conditional headers during GNULIB_POSIXCHECK
27388         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
27389         definitions from any conditionally-included headers.
27390         * lib/stdlib.in.h (includes): Likewise.
27391         * lib/unistd.in.h (includes): Likewise.
27392
27393 2009-12-24  Bruno Haible  <bruno@clisp.org>
27394
27395         * tests/test-argv-iter.c: Include header file being tested immediately
27396         after config.h.
27397         * tests/test-base64.c: Likewise.
27398         * tests/test-flock.c: Likewise.
27399         * tests/test-fsync.c: Likewise.
27400         * tests/test-getdate.c: Likewise.
27401         * tests/test-getndelim2.c: Likewise.
27402         * tests/test-isfinite.c: Likewise.
27403         * tests/test-isinf.c: Likewise.
27404         * tests/test-strerror.c: Likewise.
27405         * tests/test-strsignal.c: Likewise.
27406
27407 2009-12-23  Eric Blake  <ebb9@byu.net>
27408
27409         unistd: work around cygwin bug
27410         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
27411         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
27412         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
27413
27414 2009-12-23  Bruno Haible  <bruno@clisp.org>
27415
27416         localename: More tests.
27417         * tests/test-localename.c (SIZEOF): New macro.
27418         (categories): New variable.
27419         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
27420         test_locale_name_default): Add test w.r.t. thread locale.
27421         (test_locale_name_thread): New function.
27422         (main): Invoke it.
27423
27424         localename: Make aware of thread locale.
27425         * lib/localename.h (gl_locale_name_thread): New declaration.
27426         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
27427         behaviour with respect to thread locale.
27428         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
27429         <langinfo.h>, glthread/lock.h.
27430         (SIZE_BITS): New macro.
27431         (string_hash): New function.
27432         (struct hash_node): New type.
27433         (HASH_TABLE_SIZE): New macro.
27434         (struniq_hash_table, struniq_lock): New variables.
27435         (struniq): New function.
27436         (gl_locale_name_thread): New function.
27437         (gl_locale_name): Invoke it.
27438         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
27439         * modules/localename (Depends-on): Add lock.
27440         Reported by Mike Gran <spk121@yahoo.com>.
27441
27442 2009-12-23  Eric Blake  <ebb9@byu.net>
27443
27444         va-args: new module
27445         * modules/va-args: New file.
27446         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
27447         * MODULES.html.sh (Core language properties): Mention it.
27448
27449         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
27450         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
27451         named alias for __attribute__((__unused__)).
27452         * lib/chown.c: Update client.
27453         * lib/fchmodat.c: Likewise.
27454         * lib/fts.c: Likewise.
27455         * lib/getdate.y: Likewise.
27456         * lib/getgroups.c: Likewise.
27457         * lib/getopt.c: Likewise.
27458         * lib/getugroups.c: Likewise.
27459         * lib/mkdir.c: Likewise.
27460         * lib/mkfifo.c: Likewise.
27461         * lib/mkfifoat.c: Likewise.
27462         * lib/mknod.c: Likewise.
27463         * lib/mknodat.c: Likewise.
27464         * lib/readlink.c: Likewise.
27465         * lib/se-context.in.h: Likewise.
27466         * lib/se-selinux.in.h: Likewise.
27467         * lib/sockets.c: Likewise.
27468         * lib/symlink.c: Likewise.
27469         * lib/symlinkat.c: Likewise.
27470         * lib/unicodeio.c: Likewise.
27471         * lib/unistr.h: Likewise.
27472         * tests/test-areadlink.c: Likewise.
27473         * tests/test-areadlinkat.c: Likewise.
27474         * tests/test-filenamecat.c: Likewise.
27475         * tests/test-fseeko.c: Likewise.
27476         * tests/test-ftello.c: Likewise.
27477         * tests/test-getdate.c: Likewise.
27478         * tests/test-getgroups.c: Likewise.
27479         * tests/test-gethostname.c: Likewise.
27480         * tests/test-quotearg.c: Likewise.
27481         * tests/test-version-etc.c: Likewise.
27482         * tests/test-xalloc-die.c: Likewise.
27483         * tests/test-xfprintf-posix.c: Likewise.
27484         * tests/test-xprintf-posix.c: Likewise.
27485         * tests/test-xvasprintf.c: Likewise.
27486
27487         tests: avoid compiler warnings
27488         * tests/test-fcntl.c (main): Delete unused parameters.
27489         * tests/test-freopen-safer.c (main): Likewise.
27490         * tests/test-xalloc-die.c (main): Mark unused parameters.
27491         * tests/test-fseeko.c (main): Likewise.
27492         * tests/test-ftello.c (main): Likewise.
27493         * tests/test-nanosleep.c (main): Avoid declaration warning.
27494         * tests/test-sleep.c (main): Likewise.
27495         * tests/test-unsetenv.c (main): Silence warning about string
27496         literal.
27497         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
27498
27499 2009-12-23  Bruno Haible  <bruno@clisp.org>
27500
27501         * tests/test-localename.c (test_locale_name): New function, extracted
27502         from main. Also test mixed situations.
27503         (test_locale_name_posix, test_locale_name_environ,
27504         test_locale_name_default): New functions.
27505         (main): Invoke them all.
27506         * modules/localename-tests (configure.ac): Test for newlocale.
27507
27508 2009-12-23  Bruno Haible  <bruno@clisp.org>
27509
27510         unistd: Ensure getcwd gets declared before being overridden.
27511         * lib/unistd.in.h: Conditionally include <io.h>.
27512
27513 2009-12-22  Bruno Haible  <bruno@clisp.org>
27514
27515         wchar: Diagnose broken combination of glibc and gcc versions and flags.
27516         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
27517         (gl_WCHAR_H): Invoke it.
27518         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
27519         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
27520         Reported by Karl Berry <karl@freefriends.org>.
27521
27522 2009-12-22  Eric Blake  <ebb9@byu.net>
27523
27524         math, unistd: avoid redundant includes
27525         * lib/math.in.h (isnan): No need to re-include <math.h>.
27526         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
27527
27528         getsubopt: work around cygwin bug
27529         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
27530         avoid conflicting with system getsubopt.
27531         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
27532         bug.
27533
27534         getopt: synchronize from glibc
27535         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
27536         parameter order.  Adjust all callers.
27537         (_getopt_internal_r, main): Adjust quoting in error messages.
27538         Drop considerations for outdated POSIX 1003.2 error message.
27539         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
27540         callers.
27541         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
27542
27543         test-getopt: test stderr behavior
27544         * modules/getopt-posix-tests (Depends-on): Add dup2.
27545         * tests/test-getopt.c (ASSERT): Avoid stderr.
27546         (main): Move stderr to a temporary file.
27547         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
27548         Instead, add parameter to inform caller if output occurred.
27549         (test_getopt): Adjust all existing tests to expect silence, and
27550         add new tests of leading ":".
27551         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
27552         glibc shortcomings with leading "-:" or "+:" in optstring.
27553         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27554         Likewise.
27555         * doc/posix-functions/getopt.texi (getopt): Likewise.
27556
27557         test-getopt: enhance test
27558         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
27559         supports optind=0.
27560         * tests/test-getopt.c (OPTIND_MIN): Move...
27561         * tests/test-getopt.h (OPTIND_MIN): ...here.
27562         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
27563         Require that optind=0 works, since modern BSD supports it in
27564         addition to optreset, and since coreutils expects it.
27565         (test_getopt_long_only): New test.
27566         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
27567         glibc shortcomings with 'W;', and enforcement of optind=0.
27568         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27569         Likewise.
27570
27571 2009-12-21  Bruno Haible  <bruno@clisp.org>
27572
27573         localename: Improvements for MacOS X and Cygwin.
27574         * lib/localename.h (gl_locale_name_environ): New declaration.
27575         * lib/localename.c (gl_locale_name_environ): New function, extracted from
27576         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
27577         (gl_locale_name_posix): Invoke it.
27578         (gl_locale_name_default): Add comments. Use Windows native API also on
27579         Cygwin.
27580
27581 2009-12-21  Bruno Haible  <bruno@clisp.org>
27582
27583         Update list of Win32 locale ids.
27584         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
27585         (LANG_SAMI): Renamed from LANG_SAAMI.
27586         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
27587         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
27588         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
27589         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
27590         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
27591         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
27592         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
27593         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
27594         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
27595         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
27596         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
27597         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
27598         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
27599         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
27600         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
27601         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
27602         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
27603         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
27604         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
27605         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
27606         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
27607         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
27608         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
27609         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
27610         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
27611         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
27612         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
27613         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
27614         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
27615         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
27616         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
27617         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
27618         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
27619         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
27620         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
27621         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
27622         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
27623         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
27624         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
27625         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
27626         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
27627         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
27628         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
27629         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
27630         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
27631         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
27632         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
27633         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
27634         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
27635         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
27636         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
27637         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
27638         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
27639         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
27640         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
27641         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
27642         Add more languages and countries for Sami, Sorbian. Add more countries
27643         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
27644         for Pashto. Change country for Syriac, Tswana.
27645
27646 2009-12-21  Eric Blake  <ebb9@byu.net>
27647
27648         test-utimens: avoid spurious failure
27649         * tests/test-chown.h (nap): Factor...
27650         * tests/nap.h: ...into new file.
27651         * tests/test-lchown.h (nap): Avoid duplication.
27652         * tests/test-utimens-common.h (nap): Use shared implementation,
27653         necessary on file systems with 1-second resolution.
27654         * modules/chown-tests (Files): Include new file.
27655         * modules/fdutimensat-tests (Files): Likewise.
27656         * modules/futimens-tests (Files): Likewise.
27657         * modules/lchown-tests (Files): Likewise.
27658         * modules/openat-tests (Files): Likewise.
27659         * modules/utimens-tests (Files): Likewise.
27660         * modules/utimensat-tests (Files): Likewise.
27661
27662 2009-12-19  Eric Blake  <ebb9@byu.net>
27663
27664         futimens, utimensat: work around Linux bug
27665         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
27666         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27667         * lib/utimensat.c (rpl_utimensat): Work around it.
27668         * lib/futimens.c (rpl_futimens): Adjust comment.
27669
27670         utimens: work around Linux ctime bug
27671         * lib/utimens.c (detect_ctime_bug): New helper function.
27672         (update_timespec): Differentiate between workaround needed for
27673         this bug vs. what is needed for systems that lack utimensat.
27674         (fdutimens, lutimens): Work around bug.
27675
27676         utimens: check for ctime update
27677         * tests/test-utimens-common.h (check_ctime): Define.
27678         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
27679         * tests/test-futimens.h (test_futimens): Likewise.
27680         * tests/test-lutimens.h (test_lutimens): Likewise.
27681         * doc/posix-functions/futimens.texi (futimens): Document the bug.
27682         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27683
27684 2009-12-19  Bruno Haible  <bruno@clisp.org>
27685
27686         dprintf-posix: Check against memory leak fixed on 2009-12-15.
27687         * tests/test-dprintf-posix2.sh: New file.
27688         * tests/test-dprintf-posix2.c: New file.
27689         * modules/dprintf-posix-tests (Files): Add them.
27690         (configure.ac): Check for getrlimit and setrlimit.
27691         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
27692
27693 2009-12-19  Bruno Haible  <bruno@clisp.org>
27694
27695         fprintf-posix: Check against memory leak fixed on 2009-12-15.
27696         * tests/test-fprintf-posix3.sh: New file.
27697         * tests/test-fprintf-posix3.c: New file.
27698         * modules/fprintf-posix-tests (Files): Add them.
27699         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
27700
27701 2009-12-19  Eric Blake  <ebb9@byu.net>
27702
27703         dirfd: fix prototype
27704         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
27705         * lib/dirfd.c (dirfd): Likewise.
27706
27707         canonicalize: reduce memory usage
27708         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
27709         allocation to size.
27710         Reported by Solar Designer <solar@openwall.com>.
27711
27712 2009-12-19  Bruno Haible  <bruno@clisp.org>
27713
27714         New module attribute 'Applicability'.
27715         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
27716         * gnulib-tool: New option --extract-applicability.
27717         (func_usage): Document it.
27718         (sed_extract_prog): Recognize it.
27719         (func_get_applicability): New function.
27720         (func_import): Generalize handling of 'link-warning' module.
27721         * modules/link-warning (Applicability): New section.
27722         * modules/arg-nonnull (Applicability): New section.
27723         Repoted by Simon Josefsson <simon@josefsson.org>.
27724
27725 2009-12-19  Bruno Haible  <bruno@clisp.org>
27726
27727         fflush: tweak
27728         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
27729         * lib/fseeko.c (rpl_fseeko): Likewise.
27730
27731 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
27732
27733         * lib/gl_list.h: Fix typo in comment.
27734
27735 2009-12-16  Eric Blake  <ebb9@byu.net>
27736
27737         fcntl: use to simplify other modules
27738         * modules/cloexec (Depends-on): Add fcntl.
27739         * modules/fchdir (Depends-on): Likewise.
27740         * modules/fd-safer-flag (Depends-on): Likewise.
27741         * modules/unistd-safer (Depends-on): Likewise.
27742         * modules/dup3 (configure.ac): Set module indicator.
27743         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
27744         missing.
27745         * lib/fchdir.c (_gl_register_dup): Fix comment.
27746         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
27747         * lib/dup-safer.c (dup_safer): Likewise.
27748         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
27749         * lib/dup3.c (dup3): Likewise.
27750         * tests/test-fchdir.c (main): Enhance test.
27751         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
27752
27753         fcntl: port portions of fcntl to mingw
27754         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
27755         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
27756         replacement for mingw.
27757         * modules/fcntl (Description): Update.
27758         (Depends-on): Add dup2.
27759         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
27760         * modules/fcntl-h (Makefile.am): Substitute it.
27761         * lib/fcntl.in.h (fcntl): Update declaration.
27762         (F_DUPFD, F_GETFD): New macros, when needed.
27763         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27764         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
27765         * tests/test-fcntl.c (check_flags, main): Enhance test for items
27766         we now guarantee.
27767
27768         fcntl: work around cygwin bug in F_DUPFD
27769         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
27770         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
27771         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
27772         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
27773         * doc/posix-functions/fcntl.texi (fcntl): Document it.
27774
27775         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
27776         * modules/fcntl (Files): List new files.
27777         (configure.ac): Run a test.
27778         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
27779         * lib/fcntl.c (rpl_fcntl): Likewise.
27780         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
27781         (gl_FCNTL_H): Always replace fcntl.h.
27782         * modules/fcntl-h (Makefile.am): Substitute witnesses.
27783         * lib/fcntl.in.h (fcntl): Declare replacement.
27784         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
27785         needed, plus a witness.
27786         * doc/posix-functions/fcntl.texi (fcntl): Document this.
27787         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
27788         * tests/test-fcntl.c: New file.
27789         * modules/fcntl-tests: Likewise.
27790
27791         binary-io: avoid potential compilation warning
27792         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
27793         directives.
27794
27795         fflush: avoid compilation error on NetBSD
27796         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
27797         between off_t and fpos_t, since the latter is sometimes a struct.
27798         * lib/fseeko.c (rpl_fseeko): Likewise.
27799         Reported by Alexander Nasonov <alnsn@yandex.ru>.
27800
27801 2009-12-15  Eric Blake  <ebb9@byu.net>
27802
27803         fcntl-h, stdio, sys_ioctl: fix declarations
27804         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
27805         function must not take arguments.
27806         * lib/sys_ioctl.in.h (ioctl): Likewise.
27807         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
27808         (open): Add a link warning.
27809
27810 2009-12-15  Jim Meyering  <meyering@redhat.com>
27811
27812         areadlink, areadlink-with-size: relax license to LGPLv2+
27813         * modules/areadlink (License): Relax to LGPLv2+.
27814         * modules/areadlink-with-size (License): Likewise.
27815
27816 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
27817             Bruno Haible  <bruno@clisp.org>
27818
27819         *printf: Fix memory leak.
27820         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
27821         * lib/vfprintf.c (vfprintf): Likewise.
27822         * lib/dprintf.c (dprintf): Likewise.
27823         * lib/vdprintf.c (vdprintf): Likewise.
27824
27825 2009-12-14  Eric Blake  <ebb9@byu.net>
27826
27827         accept4: adjust module dependencies
27828         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
27829
27830         utimens: one more try at avoiding compiler warning
27831         * lib/utimens.c (lutimens): Lower scope of result.
27832
27833 2009-12-13  Bruno Haible  <bruno@clisp.org>
27834
27835         Move the malloc checking from module 'list' to new module 'xlist'.
27836         * modules/xlist: New file.
27837         * lib/gl_xlist.h: New file.
27838         * lib/gl_xlist.c: New file.
27839         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
27840         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
27841         gl_list_add_last, gl_list_add_before, gl_list_add_after,
27842         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
27843         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
27844         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
27845         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
27846         gl_sortedlist_nx_add): New declarations.
27847         (struct gl_list_implementation): Rename and change methods accordingly.
27848         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
27849         (gl_list_nx_create): Renamed from gl_list_create.
27850         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
27851         (gl_list_nx_set_at): Renamed from gl_list_set_at.
27852         (gl_list_nx_add_first): Renamed from gl_list_add_first.
27853         (gl_list_nx_add_last): Renamed from gl_list_add_last.
27854         (gl_list_nx_add_before): Renamed from gl_list_add_before.
27855         (gl_list_nx_add_after): Renamed from gl_list_add_after.
27856         (gl_list_nx_add_at): Renamed from gl_list_add_at.
27857         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
27858         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
27859         gl_list_create_empty.
27860         (gl_list_nx_create): Renamed from gl_list_create.
27861         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
27862         (gl_list_nx_set_at): Renamed from gl_list_set_at.
27863         (gl_list_nx_add_first): Renamed from gl_list_add_first.
27864         (gl_list_nx_add_last): Renamed from gl_list_add_last.
27865         (gl_list_nx_add_before): Renamed from gl_list_add_before.
27866         (gl_list_nx_add_after): Renamed from gl_list_add_after.
27867         (gl_list_nx_add_at): Renamed from gl_list_add_at.
27868         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
27869         * lib/gl_array_list.c: Don't include xalloc.h.
27870         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
27871         NULL upon out-of-memory.
27872         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
27873         out-of-memory.
27874         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
27875         Change return type to 'int'.
27876         (gl_array_nx_set_at): Renamed from gl_array_set_at.
27877         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
27878         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
27879         upon out-of-memory.
27880         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
27881         upon out-of-memory.
27882         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
27883         upon out-of-memory.
27884         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
27885         upon out-of-memory.
27886         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
27887         out-of-memory.
27888         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
27889         Update.
27890         (gl_array_list_implementation): Update.
27891         * lib/gl_carray_list.c: Don't include xalloc.h.
27892         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
27893         Return NULL upon out-of-memory.
27894         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
27895         out-of-memory.
27896         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
27897         Change return type to 'int'.
27898         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
27899         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
27900         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
27901         upon out-of-memory.
27902         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
27903         upon out-of-memory.
27904         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
27905         out-of-memory.
27906         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
27907         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
27908         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
27909         Update.
27910         (gl_carray_list_implementation): Update.
27911         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
27912         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
27913         gl_linked_create_empty. Return NULL upon out-of-memory.
27914         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
27915         out-of-memory.
27916         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
27917         Change return type to 'int'. Return -1 upon out-of-memory.
27918         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
27919         out-of-memory.
27920         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
27921         upon out-of-memory.
27922         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
27923         upon out-of-memory.
27924         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
27925         NULL upon out-of-memory.
27926         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
27927         upon out-of-memory.
27928         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
27929         out-of-memory.
27930         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
27931         Update.
27932         * lib/gl_linked_list.c: Don't include xalloc.h.
27933         (gl_linked_list_implementation): Update.
27934         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
27935         (add_to_bucket): Change return type to 'int'.
27936         (gl_linkedhash_list_implementation): Update.
27937         * lib/gl_anytree_list1.h (free_subtree): New function.
27938         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
27939         gl_tree_create_empty. Return NULL upon out-of-memory.
27940         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
27941         Change return type to 'int'. Return -1 upon out-of-memory.
27942         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
27943         out-of-memory.
27944         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
27945         (gl_tree_remove_node): New function, moved here from
27946         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
27947         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
27948         Update.
27949         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
27950         malloc, not xmalloc. Return NULL upon out-of-memory.
27951         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
27952         out-of-memory.
27953         (gl_tree_remove_node_from_tree): New function, extracted from
27954         gl_tree_remove_node.
27955         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
27956         upon out-of-memory.
27957         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
27958         out-of-memory.
27959         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
27960         upon out-of-memory.
27961         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
27962         upon out-of-memory.
27963         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
27964         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
27965         not xmalloc. Return NULL upon out-of-memory.
27966         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
27967         out-of-memory.
27968         (gl_tree_remove_node_from_tree): New function, extracted from
27969         gl_tree_remove_node.
27970         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
27971         upon out-of-memory.
27972         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
27973         out-of-memory.
27974         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
27975         upon out-of-memory.
27976         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
27977         upon out-of-memory.
27978         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
27979         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
27980         gl_anytree_list1.h before gl_anyavltree_list2.h.
27981         (gl_avltree_list_implementation): Update.
27982         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
27983         gl_anytree_list1.h before gl_anyavltree_list2.h.
27984         (gl_rbtree_list_implementation): Update.
27985         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
27986         Change return type to 'int'. Return -1 upon out-of-memory. Use
27987         __builtin_expect.
27988         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
27989         (gl_avltreehash_list_implementation): Update.
27990         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
27991         (gl_rbtreehash_list_implementation): Update.
27992         * modules/array-list (Depends-on): Remove xalloc.
27993         * modules/carray-list (Depends-on): Likewise.
27994         * modules/linked-list (Depends-on): Likewise.
27995         * modules/linkedhash-list (Depends-on): Likewise.
27996         * modules/avltree-list (Depends-on): Likewise.
27997         * modules/rbtree-list (Depends-on): Likewise.
27998         * modules/avltreehash-list (Depends-on): Likewise.
27999         * modules/rbtreehash-list (Depends-on): Likewise.
28000
28001         * modules/xsublist: New file.
28002         * lib/gl_xsublist.h: New file.
28003         * lib/gl_xsublist.c: New file.
28004         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
28005         (gl_sublist_nx_create): New declaration.
28006         * lib/gl_sublist.c: Don't include xalloc.h.
28007         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
28008         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
28009         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
28010         Change return type to 'int'. Return -1 upon out-of-memory.
28011         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
28012         upon out-of-memory.
28013         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
28014         NULL upon out-of-memory.
28015         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
28016         upon out-of-memory.
28017         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
28018         NULL upon out-of-memory.
28019         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
28020         NULL upon out-of-memory.
28021         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
28022         upon out-of-memory.
28023         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
28024         (gl_sublist_list_implementation): Update.
28025         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
28026         upon out-of-memory.
28027         * modules/sublist (Depends-on): Remove xalloc.
28028
28029         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
28030         * tests/test-carray_list.c: Likewise.
28031         * tests/test-linked_list.c: Likewise.
28032         * tests/test-linkedhash_list.c: Likewise.
28033         * tests/test-avltree_list.c: Likewise.
28034         * tests/test-rbtree_list.c: Likewise.
28035         * tests/test-avltreehash_list.c: Likewise.
28036         * tests/test-rbtreehash_list.c: Likewise.
28037         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
28038         * modules/carray-list-tests (Makefile.am): Likewise.
28039         * modules/linked-list-tests (Makefile.am): Likewise.
28040         * modules/linkedhash-list-tests (Makefile.am): Likewise.
28041         * modules/avltree-list-tests (Makefile.am): Likewise.
28042         * modules/rbtree-list-tests (Makefile.am): Likewise.
28043         * modules/avltreehash-list-tests (Makefile.am): Likewise.
28044         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
28045
28046         * NEWS: Mention the changes.
28047
28048         * lib/clean-temp.c: Include gl_xlist.h.
28049         * modules/clean-temp (Depends-on): Add xlist.
28050
28051         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
28052         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
28053
28054         * tests/test-array_oset.c: Include gl_xlist.h.
28055         * modules/array-oset-tests (Depends-on): Add xlist.
28056
28057         Reported by José E. Marchesi <jemarch@gnu.org>.
28058
28059 2009-12-13  Bruno Haible  <bruno@clisp.org>
28060
28061         Move the malloc checking from module 'oset' to new module 'xoset'.
28062         * modules/xoset: New file.
28063         * lib/gl_xoset.h: New file.
28064         * lib/gl_xoset.c: New file.
28065         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
28066         declarations.
28067         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
28068         (struct gl_oset_implementation): Rename and change methods accordingly.
28069         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
28070         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
28071         'int'. Mark as __warn_unused_result__.
28072         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
28073         gl_oset_create_empty.
28074         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
28075         'int'.
28076         * lib/gl_array_oset.c: Don't include xalloc.h.
28077         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
28078         malloc, not xmalloc.
28079         (grow): Change return type to 'int'. Don't call xalloc_die.
28080         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
28081         to 'int'.
28082         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
28083         'int'.
28084         (gl_array_oset_implementation): Update.
28085         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
28086         gl_tree_create_empty.
28087         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
28088         'int'.
28089         * lib/gl_avltree_oset.c: Don't include xalloc.h.
28090         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
28091         xmalloc.
28092         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
28093         not xmalloc.
28094         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
28095         xmalloc.
28096         (gl_avltree_oset_implementation): Update.
28097         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
28098         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
28099         xmalloc.
28100         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
28101         not xmalloc.
28102         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
28103         xmalloc.
28104         (gl_rbtree_oset_implementation): Update.
28105         * modules/array-oset (Depends-on): Remove xalloc.
28106         * modules/avltree-oset (Depends-on): Likewise.
28107         * modules/rbtree-oset (Depends-on): Likewise.
28108         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
28109         * tests/test-avltree_oset.c: Likewise.
28110         * tests/test-rbtree_oset.c: Likewise.
28111         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
28112         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
28113         * modules/rbtree-oset-tests (Makefile.am): Likewise.
28114         * NEWS: Mention the change.
28115
28116 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
28117
28118         maint.mk: allow a project to override release-prep commands
28119         * top/maint.mk (alpha, beta, stable): Move release-preparatory
28120         commands into a new rule.
28121         (release-prep): New rule.
28122         (release-prep-hook): New overridable variable.
28123
28124 2009-12-13  Bruno Haible  <bruno@clisp.org>
28125
28126         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
28127
28128 2009-12-13  Jim Meyering  <meyering@redhat.com>
28129
28130         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
28131         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
28132
28133 2009-12-12  Bruno Haible  <bruno@clisp.org>
28134
28135         duplocale: Tweak.
28136         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
28137
28138 2009-12-12  Karl Berry  <karl@gnu.org>
28139
28140         * config/srclist.txt (strtoll.c): tab changes, no more sync.
28141
28142 2009-12-12  Bruno Haible  <bruno@clisp.org>
28143
28144         * m4/po.m4: Undo incorrect untabification.
28145
28146 2009-12-12  Bruno Haible  <bruno@clisp.org>
28147
28148         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
28149         * modules/c-strtod (Depends-on): Add locale.
28150         * modules/c-strtold (Depends-on): Likewise.
28151
28152 2009-12-12  Bruno Haible  <bruno@clisp.org>
28153
28154         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
28155
28156 2009-12-11  Eric Blake  <ebb9@byu.net>
28157
28158         setenv: relax requirement in light of POSIX ruling
28159         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
28160         not NULL.
28161         * tests/test-setenv.c (main): Relax test.
28162         * tests/test-unsetenv.c (main): Likewise.
28163         * doc/posix-functions/setenv.texi (setenv): Document this.
28164         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
28165
28166 2009-12-11  Bruno Haible  <bruno@clisp.org>
28167
28168         New module 'fd-safer-flag'.
28169         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
28170         * lib/dup-safer.c (dup_safer_flag): Remove function.
28171         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
28172         * lib/fd-safer.c (fd_safer_flag): Remove function.
28173         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
28174         * modules/cloexec (configure.ac): Drop indicator macro.
28175         * modules/fd-safer-flag: New file.
28176         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
28177         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
28178         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
28179
28180 2009-12-11  Bruno Haible  <bruno@clisp.org>
28181
28182         Tests for module 'nl_langinfo'.
28183         * modules/nl_langinfo-tests: New file.
28184         * tests/test-nl_langinfo.sh: New file.
28185         * tests/test-nl_langinfo.c: New file.
28186
28187         New module 'nl_langinfo'.
28188         * lib/nl_langinfo.c: New file.
28189         * m4/nl_langinfo.m4: New file.
28190         * modules/nl_langinfo: New file.
28191         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
28192
28193 2009-12-11  Bruno Haible  <bruno@clisp.org>
28194
28195         Tests for module 'langinfo'.
28196         * modules/langinfo-tests: New file.
28197         * tests/test-langinfo.c: New file.
28198
28199         New module 'langinfo'.
28200         * lib/langinfo.in.h: New file.
28201         * m4/langinfo_h.m4: New file.
28202         * modules/langinfo: New file.
28203         * doc/posix-headers/langinfo.texi: Mention the new module.
28204
28205 2009-12-11  Bruno Haible  <bruno@clisp.org>
28206
28207         * lib/config.charset: Untabify.
28208
28209 2009-12-11  Bruno Haible  <bruno@clisp.org>
28210
28211         * modules/unistd-safer (configure.ac): Drop indicator macro.
28212
28213 2009-12-11  Bruno Haible  <bruno@clisp.org>
28214
28215         Move pipe2-safer code to its own file.
28216         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
28217         * lib/pipe-safer.c (pipe2_safer): Remove function.
28218         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
28219         (Makefile.am): Add it to lib_SOURCES.
28220
28221 2009-12-10  Bruno Haible  <bruno@clisp.org>
28222
28223         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
28224
28225 2009-12-10  Bruno Haible  <bruno@clisp.org>
28226
28227         Declare which arguments expect non-NULL values, for GCC and clang.
28228         * build-aux/arg-nonnull.h: New file.
28229         * modules/arg-nonnull: New file.
28230         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
28231         (inet_ntop, inet_pton): Use it.
28232         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
28233         (closedir, dirfd, opendir, scandir, alphasort): Use it.
28234         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
28235         (open, openat): Use it.
28236         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
28237         (fnmatch): Use it.
28238         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
28239         (getopt, getopt_long, getopt_long_only): Use it.
28240         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
28241         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
28242         Use it.
28243         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
28244         (iconv_open): Use it.
28245         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
28246         (strtoimax, strtoumax): Use it.
28247         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
28248         (duplocale): Use it.
28249         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
28250         (frexp, frexpl): Use it.
28251         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
28252         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
28253         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
28254         (tsearch, tfind, tdelete, twalk): Use it.
28255         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
28256         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
28257         sigpending): Use it.
28258         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
28259         (posix_spawn, posix_spawnp, posix_spawnattr_init,
28260         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
28261         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
28262         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
28263         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
28264         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
28265         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
28266         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
28267         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
28268         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
28269         Use it.
28270         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
28271         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
28272         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
28273         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
28274         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
28275         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
28276         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
28277         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
28278         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
28279         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
28280         strtoull, unsetenv): Use it.
28281         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
28282         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
28283         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
28284         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
28285         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
28286         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
28287         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
28288         (strcasecmp, strncasecmp): Use it.
28289         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
28290         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
28291         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
28292         rpl_setsockopt): Use it.
28293         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
28294         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
28295         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
28296         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
28297         (gettimeofday): Use it.
28298         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
28299         (times): Use it.
28300         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
28301         (uname): Use it.
28302         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
28303         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
28304         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
28305         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
28306         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
28307         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
28308         unlinkat, write): Use it.
28309         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
28310         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
28311         * lib/argv-iter.h: Include arg-nonnull.h.
28312         (_ATTRIBUTE_NONNULL_): Remove macro.
28313         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
28314         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
28315         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
28316         optimization.
28317         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
28318         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
28319         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
28320         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
28321         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
28322         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
28323         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
28324         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
28325         * modules/arpa_inet (Depends-on): Add arg-nonnull.
28326         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
28327         * modules/dirent (Depends-on): Add arg-nonnull.
28328         (Makefile.am): Insert arg-nonnull.h into dirent.h.
28329         * modules/fcntl-h (Depends-on): Add arg-nonnull.
28330         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
28331         * modules/fnmatch (Depends-on): Add arg-nonnull.
28332         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
28333         * modules/getopt-posix (Depends-on): Add arg-nonnull.
28334         (Makefile.am): Insert arg-nonnull.h into getopt.h.
28335         * modules/glob (Depends-on): Add arg-nonnull.
28336         (Makefile.am): Insert arg-nonnull.h into glob.h.
28337         * modules/iconv_open (Depends-on): Add arg-nonnull.
28338         (Makefile.am): Insert arg-nonnull.h into iconv.h.
28339         * modules/inttypes (Depends-on): Add arg-nonnull.
28340         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
28341         * modules/locale (Depends-on): Add arg-nonnull.
28342         (Makefile.am): Insert arg-nonnull.h into locale.h.
28343         * modules/math (Depends-on): Add arg-nonnull.
28344         (Makefile.am): Insert arg-nonnull.h into math.h.
28345         * modules/netdb (Depends-on): Add arg-nonnull.
28346         (Makefile.am): Insert arg-nonnull.h into netdb.h.
28347         * modules/search (Depends-on): Add arg-nonnull.
28348         (Makefile.am): Insert arg-nonnull.h into search.h.
28349         * modules/signal (Depends-on): Add arg-nonnull.
28350         (Makefile.am): Insert arg-nonnull.h into signal.h.
28351         * modules/spawn (Depends-on): Add arg-nonnull.
28352         (Makefile.am): Insert arg-nonnull.h into spawn.h.
28353         * modules/stdio (Depends-on): Add arg-nonnull.
28354         (Makefile.am): Insert arg-nonnull.h into stdio.h.
28355         * modules/stdlib (Depends-on): Add arg-nonnull.
28356         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
28357         * modules/string (Depends-on): Add arg-nonnull.
28358         (Makefile.am): Insert arg-nonnull.h into string.h.
28359         * modules/strings (Depends-on): Add arg-nonnull.
28360         (Makefile.am): Insert arg-nonnull.h into strings.h.
28361         * modules/sys_socket (Depends-on): Add arg-nonnull.
28362         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
28363         * modules/sys_stat (Depends-on): Add arg-nonnull.
28364         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
28365         * modules/sys_time (Depends-on): Add arg-nonnull.
28366         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
28367         * modules/sys_times (Depends-on): Add arg-nonnull.
28368         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
28369         * modules/sys_utsname (Depends-on): Add arg-nonnull.
28370         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
28371         * modules/time (Depends-on): Add arg-nonnull.
28372         (Makefile.am): Insert arg-nonnull.h into time.h.
28373         * modules/unistd (Depends-on): Add arg-nonnull.
28374         (Makefile.am): Insert arg-nonnull.h into unistd.h.
28375         * modules/wchar (Depends-on): Add arg-nonnull.
28376         (Makefile.am): Insert arg-nonnull.h into wchar.h.
28377         * modules/argv-iter (Depends-on): Add arg-nonnull.
28378         * tests/test-canonicalize.c (null_ptr): New function.
28379         (main): Use it.
28380         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
28381         (main): Use it.
28382         * tests/test-memmem.c (null_ptr): New function.
28383         (main): Use it.
28384         Reported by Jim Meyering.
28385
28386 2009-12-10  Bruno Haible  <bruno@clisp.org>
28387
28388         Use spaces for indentation, not tabs.
28389         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
28390         * m4/*.m4: Untabify.
28391         * build-aux/*.h: Untabify.
28392         * tests/**/*.[hc]: Untabify.
28393         * README: New section "Indent with spaces, not TABs", based on
28394         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
28395         * NEWS: Mention the change.
28396
28397 2009-12-10  Bruno Haible  <bruno@clisp.org>
28398
28399         pty test: Fix link error.
28400         * modules/pty-tests (Makefile.am): Add the default LDADD value to
28401         test_pty_LDADD.
28402
28403 2009-12-07  Simon Josefsson  <simon@josefsson.org>
28404
28405         * modules/pty: New file.
28406         * modules/pty-tests: New file.
28407         * m4/pty.m4: New file.
28408         * tests/test-pty.c: New file.
28409         * doc/glibc-headers/pty.texi: Modified.
28410         * doc/glibc-functions/forkpty.texi: Modified.
28411         * doc/glibc-functions/openpty.texi: Modified.
28412
28413 2009-12-10  Bruno Haible  <bruno@clisp.org>
28414
28415         Avoid syntax error in C++ mode.
28416         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
28417
28418 2009-12-10  Bruno Haible  <bruno@clisp.org>
28419
28420         Use sed with option -e.
28421         * gnulib-tool (func_version, func_emit_copyright_notice,
28422         func_emit_initmacro_end, func_import, func_create_testdir): Pass
28423         option -e to sed.
28424         * modules/link-warning (Makefile.am): Likewise.
28425
28426 2009-12-10  Jim Meyering  <meyering@redhat.com>
28427
28428         mgetgroups: do not write bytes beyond end of malloc'd buffer
28429         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
28430         username, we call getgroups with a one-element-shorter buffer,
28431         but still told it the length was original, max_n_groups.
28432
28433 2009-12-09  Eric Blake  <ebb9@byu.net>
28434
28435         cloexec: relax license
28436         * modules/cloexec (Maintainer): Add myself.
28437         (License): Use LGPL, not GPL.
28438
28439         link-warning: optimize generation
28440         * modules/link-warning (Makefile.am): Reduce process usage.
28441
28442 2009-12-09  Bruno Haible  <bruno@clisp.org>
28443
28444         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
28445         workaround was added on 2009-11-17.
28446
28447 2009-12-09  Jim Meyering  <meyering@redhat.com>
28448             Bruno Haible  <bruno@clisp.org>
28449
28450         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
28451         * modules/link-warning (Makefile.am): Make the comment-removing sed
28452         command more robust in the face of bootstrap-prepended comment lines.
28453
28454 2009-12-09  Bruno Haible  <bruno@clisp.org>
28455
28456         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
28457         most one group.
28458
28459 2009-12-09  Simon Josefsson <simon@josefsson.org>
28460             Bruno Haible  <bruno@clisp.org>
28461
28462         * build-aux/link-warning.h: Add copyright notice.
28463         * modules/link-warning (Makefile.am): Generate link-warning.h from
28464         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
28465         * NEWS: Mention change in link-warning module.
28466         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
28467         * modules/dirent (Makefile.am): Add dependency to dirent.h.
28468         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
28469         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
28470         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
28471         * modules/math (Makefile.am): Add dependency to math.h.
28472         * modules/search (Makefile.am): Add dependency to search.h.
28473         * modules/signal (Makefile.am): Add dependency to signal.h.
28474         * modules/spawn (Makefile.am): Add dependency to spawn.h.
28475         * modules/stdio (Makefile.am): Add dependency to stdio.h.
28476         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
28477         * modules/string (Makefile.am): Add dependency to string.h.
28478         * modules/strings (Makefile.am): Add dependency to strings.h.
28479         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
28480         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
28481         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
28482         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
28483         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
28484         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
28485         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
28486         * modules/unistd (Makefile.am): Add dependency to unistd.h.
28487         * modules/wchar (Makefile.am): Add dependency to wchar.h.
28488
28489 2009-12-09  Bruno Haible  <bruno@clisp.org>
28490
28491         fchdir: Optimize away rpl_fstat when possible.
28492         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
28493         REPLACE_OPEN_DIRECTORY.
28494         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
28495
28496 2009-12-09  Bruno Haible  <bruno@clisp.org>
28497
28498         * lib/fchdir.c: Update comment.
28499
28500 2009-12-09  Bruno Haible  <bruno@clisp.org>
28501
28502         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
28503
28504 2009-12-08  Eric Blake  <ebb9@byu.net>
28505
28506         fchdir: avoid memory leak on re-registration.
28507         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
28508
28509 2009-12-08  Jim Meyering  <meyering@redhat.com>
28510
28511         init.sh: avoid Solaris 10 /bin/sh portability problem
28512         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
28513         sourced script:
28514           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
28515           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
28516           bar
28517         tests/init.sh relied on that, accepting a --set-path=DIR argument,
28518         and two tests used that idiom.
28519         * tests/init.sh: Update suggested usage comments.
28520         (path_prepend_): New function, to be used in place
28521         of the --src-path=DIR option.
28522         (setup_): Move PATH-prepending code into path_prepend_.
28523         * tests/test-pread.sh: Adapt to new usage.
28524         * tests/test-xalloc-die.sh: Likewise.
28525
28526 2009-12-08  Simon Josefsson  <simon@josefsson.org>
28527
28528         * doc/gnulib.texi (Glibc pty.h): Add.
28529         * doc/glibc-functions/forkpty.texi: Add.
28530         * doc/glibc-functions/openpty.texi: Add.
28531         Suggested by Bruno Haible.
28532
28533 2009-12-08  Eric Blake  <ebb9@byu.net>
28534
28535         fchdir: fix logic bugs
28536         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
28537         * tests/test-fchdir.c (main): Enhance test.
28538         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
28539         is in use.
28540
28541         dup2: fix logic bugs
28542         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
28543         REPLACE_DUP2 to decide when rpl_dup2 is needed.
28544         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
28545         exists.
28546         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
28547
28548 2009-12-07  Eric Blake  <ebb9@byu.net>
28549
28550         unlink: fix m4 detection
28551         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
28552
28553         unistd-safer: add unit test
28554         * modules/unistd-safer-tests: New file.
28555         * tests/test-dup-safer.c: Likewise.
28556         * tests/test-cloexec.c (setmode): Avoid compiler warning.
28557         * tests/test-dup2.c (setmode): Likewise.
28558         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
28559
28560         cloexec: preserve text vs. binary across dup_cloexec
28561         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
28562         mode.
28563         * modules/dup2-tests (Depends-on): Add binary-io.
28564         * modules/cloexec-tests (Depends-on): Likewise.
28565         * tests/test-dup2.c (setmode, is_mode): New helpers.
28566         (main): Add tests that translation mode is preserved.
28567         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
28568         Reported by Bruno Haible.
28569
28570         mgetgroups: reduce duplicate listings
28571         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
28572         resulting array.
28573         * tests/test-chown.h (test_chown): Simplify client.
28574         * tests/test-lchown.h (test_lchown): Likewise.
28575
28576 2009-12-06  Bruno Haible  <bruno@clisp.org>
28577
28578         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
28579         value.
28580
28581 2009-12-06  Bruno Haible  <bruno@clisp.org>
28582
28583         * lib/progname.c: Include stdio.h, stdlib.h.
28584         (set_program_name): Reject a NULL argument.
28585
28586 2009-12-05  Eric Blake  <ebb9@byu.net>
28587
28588         pipe2-safer: new module
28589         * modules/pipe2-safer: New file.
28590         * lib/unistd-safer.h (pipe2_safer): New prototype.
28591         * lib/unistd--.h (pipe2): New wrapper.
28592         * lib/pipe-safer.c (pipe2_safer): New function.
28593         * modules/pipe (Depends-on): Add pipe2-safer.
28594         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
28595
28596         stdlib-safer: preserve cloexec flag for mkostemp[s]
28597         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
28598         fd_safer_flag.
28599
28600         unistd-safer: allow preservation of cloexec status via flag
28601         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
28602         prototypes.
28603         * lib/dup-safer.c (dup_safer_flag): New function.
28604         * lib/fd-safer.c (fd_safer_flag): Likewise.
28605         * modules/cloexec (configure.ac): Set witness.
28606
28607         test-dup2: enhance test
28608         * modules/dup2-tests (Depends-on): Add cloexec.
28609         * tests/test-dup2.c (main): Enhance test.
28610
28611         cloexec: add dup_cloexec
28612         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
28613         header and comments.
28614         * lib/cloexec.c (set_cloexec_flag): Add comments.
28615         (dup_cloexec): New function, with mingw implementation borrowed
28616         from...
28617         * lib/w32spawn.h (dup_noinherit): ...here.
28618         * modules/execute (Depends-on): Add cloexec.
28619         * modules/pipe (Depends-on): Likewise.
28620         * modules/cloexec (Depends-on): Add dup2.
28621         * modules/cloexec-tests (Files): New file.
28622         * tests/test-cloexec.c: Likewise.
28623
28624         test-xalloc-die: fix test for mingw
28625         * modules/xalloc-die-tests (Files): Add tests/init.sh.
28626         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
28627         directory and .exe suffix off argv[0] output.
28628
28629         test-fseeko: fix test for mingw
28630         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
28631         than undefining fseek, so test will pass on mingw.
28632
28633 2009-12-05  Bruno Haible  <bruno@clisp.org>
28634
28635         * lib/progname.h (set_program_name): Clarify specification.
28636         * lib/progname.c (set_program_name): Likewise.
28637         Reported by Jim Meyering.
28638
28639 2009-12-05  Jim Meyering  <meyering@redhat.com>
28640
28641         maint.mk: backslash-escape parens in default regexp
28642         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
28643         backslash-escape the literal parentheses.
28644
28645         maint.mk: news-date-check: use grep -E
28646         * top/maint.mk (today): Define a Make variable, not a...
28647         (news-date-check): ...shell variable.
28648         (news-date-regexp): Use the Make variable.
28649         Use grep's -E option.  Change the failing diagnostic to mention
28650         the variable, $(news-date-regexp).
28651
28652 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
28653
28654         maintainer-makefile: allow customization of NEWS entry format
28655         * top/maint.mk (news-date-regexp): New overridable variable.
28656         (news-date-check): Use it.
28657
28658 2009-12-04  Eric Blake  <ebb9@byu.net>
28659
28660         mgetgroups: add xgetgroups, and avoid ENOSYS failures
28661         * lib/mgetgroups.h (xgetgroups): New prototype.
28662         * lib/mgetgroups.c (xgetgroups): New wrapper.
28663         (mgetgroups): Handle ENOSYS.
28664         * modules/mgetgroups (Depends-on): Add realloc.
28665         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
28666
28667         mgetgroups: avoid argument promotion issues with -1
28668         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
28669         for invalid gid_t.
28670         * tests/test-chown.h (getegid, test_chown): Likewise.
28671         * tests/test-lchown.h (getegid, test_lchown): Likewise.
28672
28673 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
28674
28675         exclude: Fix header file problems.
28676         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
28677
28678 2009-12-01  Jim Meyering  <meyering@redhat.com>
28679
28680         fts: fts_open: do not let an empty string cause immediate failure
28681         This is required in support of GNU rm, for which the command
28682         "rm A '' B" must process and remove both A and B, in spite of
28683         the empty string argument.
28684         * lib/fts.c (fts_open): Do not let the presence of an empty string
28685         cause fts_open to fail immediately.  Most fts-using tools must be
28686         able to process all arguments, in order, and can be expected to
28687         diagnose such arguments themselves.
28688
28689 2009-11-30  Eric Blake  <ebb9@byu.net>
28690
28691         utimens: fix compilation error
28692         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
28693         Declare variable at right scope.
28694
28695 2009-11-29  Jim Meyering  <meyering@redhat.com>
28696
28697         bootstrap: handle perl-5.11's changed --version output
28698         * build-aux/bootstrap (get_version): Handle perl separately,
28699         since perl-5.11's --version output is different.
28700
28701 2009-11-28  Jim Meyering  <meyering@redhat.com>
28702
28703         userspec: depend on the inttostr module, too
28704         * modules/userspec (Depends-on): Add inttostr.
28705
28706         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
28707         * lib/userspec.c (parse_with_separator): Do not accept a user ID
28708         number of MAXUID when it evaluates to (uid_t) -1.
28709         Likewise for group ID.  Reported by Matt McCutchen in
28710         <http://savannah.gnu.org/bugs/?28113>
28711
28712         userspec: reformat to use spaces, not TABs
28713         * lib/userspec.c: Expand TABs to spaces.
28714         Add Emacs' "indent-tabs-mode: nil" hint.
28715
28716 2009-11-27  Eric Blake  <ebb9@byu.net>
28717
28718         getopt-gnu: flush out another BSD bug
28719         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
28720         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
28721         flush out BSD bug.
28722         * tests/test-getopt.h (test_getopt): End lists with NULL.
28723         * tests/test-getopt_long.h (test_getopt_long): Likewise.
28724         (test_getopt_long_posix): Enhance test.
28725         * modules/getopt-posix-tests (Depends-on): Add stdbool.
28726         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
28727         getopt-gnu.
28728         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28729         Likewise.
28730
28731 2009-11-27  Simon Josefsson  <simon@josefsson.org>
28732
28733         * modules/idpriv-droptemp-tests (Notice): Fix text.
28734
28735 2009-11-27  Jim Meyering  <meyering@redhat.com>
28736
28737         test-xalloc-die: avoid spurious failure due to libtool argv difference
28738         In a libtool-enabled project, this test would fail due to a difference
28739         in the emitted program name, e.g.,
28740         -test-xalloc-die: memory exhausted
28741         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
28742         Use program to avoid that.
28743         * modules/xalloc-die-tests (Depends-on): Add progname.
28744         * tests/test-xalloc-die.c: Include progname.h".
28745         (program_name): Remove decl.
28746         (main): Call set_program_name.
28747         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
28748
28749 2009-11-26  Richard Jones  <rjones@redhat.com>
28750
28751         w32sock: leave win32 error in place.
28752         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
28753
28754 2009-11-26  Eric Blake  <ebb9@byu.net>
28755
28756         init.sh: suggest to use skip_ and fail_ functions in comments
28757         * tests/init.sh: Add a sentence.
28758
28759 2009-11-25  Bruno Haible  <bruno@clisp.org>
28760
28761         init.sh: add documentation in comments
28762         * tests/init.sh: Add some developer and user documentation.
28763
28764 2009-11-26  Jim Meyering  <meyering@redhat.com>
28765
28766         init.sh: accommodate even those who specify bogus srcdir manually
28767         * tests/init.sh: Normally, srcdir is guaranteed by automake and
28768         configure-time tests to be sanitized, so that there is no need to
28769         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
28770         (with no double quotes) suffices.  However, since tests may be
28771         invoked manually, and since you may explicitly set srcdir to the
28772         name of a directory containing spaces, do quote its uses here.
28773         * tests/test-pread.sh: Likewise.
28774         Suggested by Bruno Haible.
28775
28776         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
28777         * tests/test-pread.sh: Write no data into the pipe, because
28778         test-pread actually reads none.  This avoids a diagnostic,
28779         "bash: echo: write error: Broken pipe", that arises in the unusual
28780         event something is ignoring SIGPIPE, and might be interpreted
28781         as some sort of failure.  Reported by Bruno Haible.
28782
28783 2009-11-25  Jim Meyering  <meyering@redhat.com>
28784
28785         test-pread: cover failure with ESPIPE and EINVAL
28786         * tests/test-pread.c (main): Test for failure, too.
28787         * tests/test-pread.sh: Invoke with stdin on a pipe.
28788         Suggested by Eric Blake.
28789
28790         pread: improvement and fix
28791         * modules/pread (Depends-on): Depend on lseek, for portability to
28792         e.g., mingw.  Suggested by Eric Blake.
28793         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
28794
28795         unistd.in.h: correct declaration of pread
28796         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
28797         Reported by Richard W.M. Jones.
28798
28799         test-pread.sh: distribute the test script
28800         * modules/pread-tests (Files): Include test-pread.sh.
28801
28802         test-pread.sh: clean up
28803         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
28804         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
28805         That is unnecessary, since it's always ".".
28806         Suggestion from Eric Blake.
28807
28808         test-pread.sh: make executable
28809         * tests/test-pread.sh: Set executable bit.
28810         Reported by Eric Blake.
28811
28812         correct typo in test-pread.sh
28813         * tests/test-pread.sh: Add #! line.
28814
28815         test pread
28816         * tests/test-pread.c: New file.
28817         * tests/test-pread.sh: Likewise.
28818         * modules/pread-tests: Likewise.
28819
28820         pread: new module
28821         * modules/pread: New file.
28822         * lib/unistd.in.h (pread): Define/declare.
28823         * lib/pread.c (pread): New file.
28824         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
28825         * modules/unistd (Makefile.am): Substitute witnesses.
28826         * doc/posix-functions/pread.texi (pread): Update.
28827         * MODULES.html.sh: Add pread.
28828
28829 2009-11-25  Jim Meyering  <meyering@redhat.com>
28830
28831         tests/init.sh: new file to be used via most *.sh tests
28832         * tests/init.sh: New file.
28833
28834 2009-11-25  Eric Blake  <ebb9@byu.net>
28835
28836         utimens: work around older Linux failure with symlinks
28837         * lib/utimens.c (lutimensat_works_really): New variable.
28838         (fdutimens, lutimens): Use it to manage kernels that support
28839         nanosecond times on files, but not on symlinks.
28840         Reported by OndÅ™ej Vašík.
28841
28842         utimes: fix configure grammar
28843         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
28844
28845 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
28846
28847         regex: Fix fastmap for multibyte character ranges.
28848         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
28849         characters when a multibyte character range is included.
28850
28851 2009-11-22  Andy Wingo  <wingo@pobox.com>
28852
28853         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
28854         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
28855
28856 2009-11-24  Bruno Haible  <bruno@clisp.org>
28857
28858         doc: Most *_l functions exist in MacOS X 10.5.
28859         * doc/posix-functions/duplocale.texi: Update platforms list.
28860         * doc/posix-functions/freelocale.texi: Likewise.
28861         * doc/posix-functions/newlocale.texi: Likewise.
28862         * doc/posix-functions/uselocale.texi: Likewise.
28863         * doc/posix-functions/isalnum_l.texi: Likewise.
28864         * doc/posix-functions/isalpha_l.texi: Likewise.
28865         * doc/posix-functions/isblank_l.texi: Likewise.
28866         * doc/posix-functions/iscntrl_l.texi: Likewise.
28867         * doc/posix-functions/isdigit_l.texi: Likewise.
28868         * doc/posix-functions/isgraph_l.texi: Likewise.
28869         * doc/posix-functions/islower_l.texi: Likewise.
28870         * doc/posix-functions/isprint_l.texi: Likewise.
28871         * doc/posix-functions/ispunct_l.texi: Likewise.
28872         * doc/posix-functions/isspace_l.texi: Likewise.
28873         * doc/posix-functions/isupper_l.texi: Likewise.
28874         * doc/posix-functions/iswalnum_l.texi: Likewise.
28875         * doc/posix-functions/iswalpha_l.texi: Likewise.
28876         * doc/posix-functions/iswblank_l.texi: Likewise.
28877         * doc/posix-functions/iswcntrl_l.texi: Likewise.
28878         * doc/posix-functions/iswctype_l.texi: Likewise.
28879         * doc/posix-functions/iswdigit_l.texi: Likewise.
28880         * doc/posix-functions/iswgraph_l.texi: Likewise.
28881         * doc/posix-functions/iswlower_l.texi: Likewise.
28882         * doc/posix-functions/iswprint_l.texi: Likewise.
28883         * doc/posix-functions/iswpunct_l.texi: Likewise.
28884         * doc/posix-functions/iswspace_l.texi: Likewise.
28885         * doc/posix-functions/iswupper_l.texi: Likewise.
28886         * doc/posix-functions/iswxdigit_l.texi: Likewise.
28887         * doc/posix-functions/isxdigit_l.texi: Likewise.
28888         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
28889         * doc/posix-functions/strcasecmp_l.texi: Likewise.
28890         * doc/posix-functions/strcoll_l.texi: Likewise.
28891         * doc/posix-functions/strfmon_l.texi: Likewise.
28892         * doc/posix-functions/strftime_l.texi: Likewise.
28893         * doc/posix-functions/strncasecmp_l.texi: Likewise.
28894         * doc/posix-functions/strxfrm_l.texi: Likewise.
28895         * doc/posix-functions/tolower_l.texi: Likewise.
28896         * doc/posix-functions/toupper_l.texi: Likewise.
28897         * doc/posix-functions/towctrans_l.texi: Likewise.
28898         * doc/posix-functions/towlower_l.texi: Likewise.
28899         * doc/posix-functions/towupper_l.texi: Likewise.
28900         * doc/posix-functions/wcscoll_l.texi: Likewise.
28901         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
28902         * doc/posix-functions/wctrans_l.texi: Likewise.
28903         * doc/posix-functions/wctype_l.texi: Likewise.
28904         * doc/glibc-functions/strptime_l.texi: Likewise.
28905         * doc/glibc-functions/strtod_l.texi: Likewise.
28906         * doc/glibc-functions/strtof_l.texi: Likewise.
28907         * doc/glibc-functions/strtol_l.texi: Likewise.
28908         * doc/glibc-functions/strtold_l.texi: Likewise.
28909         * doc/glibc-functions/strtoll_l.texi: Likewise.
28910         * doc/glibc-functions/strtoul_l.texi: Likewise.
28911         * doc/glibc-functions/strtoull_l.texi: Likewise.
28912         * doc/glibc-functions/wcsftime_l.texi: Likewise.
28913         * doc/glibc-functions/wcstod_l.texi: Likewise.
28914         * doc/glibc-functions/wcstof_l.texi: Likewise.
28915         * doc/glibc-functions/wcstol_l.texi: Likewise.
28916         * doc/glibc-functions/wcstold_l.texi: Likewise.
28917         * doc/glibc-functions/wcstoll_l.texi: Likewise.
28918         * doc/glibc-functions/wcstoul_l.texi: Likewise.
28919         * doc/glibc-functions/wcstoull_l.texi: Likewise.
28920
28921 2009-11-24  Bruno Haible  <bruno@clisp.org>
28922
28923         duplocale: Fix logic bug.
28924         * lib/duplocale.c: Don't include <langinfo.h>.
28925         (_NL_LOCALE_NAME): Remove macro.
28926         (rpl_duplocale): Use setlocale instead of nl_langinfo.
28927         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
28928
28929 2009-11-23  Jim Meyering  <meyering@redhat.com>
28930
28931         test-update-copyright: don't hard-code /usr/bin/perl
28932         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
28933         perl to print the current year.  Gilles Espinasse reported that
28934         the replaced use of perl was hard-coded as /usr/bin/perl.
28935
28936 2009-11-23  Bruno Haible  <bruno@clisp.org>
28937
28938         duplocale: Add support for glibc 2.3.x.
28939         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
28940
28941 2009-11-22  Bruno Haible  <bruno@clisp.org>
28942
28943         vasnprintf: Tiny optimization.
28944         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
28945         MacOS X.
28946
28947 2009-11-22  Bruno Haible  <bruno@clisp.org>
28948
28949         Tests for module 'duplocale'.
28950         * modules/duplocale-tests: New file.
28951         * tests/test-duplocale.c: New file.
28952
28953         New module 'duplocale'.
28954         * m4/duplocale.m4: New file.
28955         * lib/locale.in.h (duplocale): New declaration.
28956         * lib/duplocale.c: New file.
28957         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
28958         gl_LOCALE_H_DEFAULTS): New macros.
28959         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
28960         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
28961         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
28962         REPLACE_DUPLOCALE.
28963         * modules/duplocale: New file.
28964         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
28965
28966 2009-11-22  Bruno Haible  <bruno@clisp.org>
28967
28968         * modules/locale-tests (configure.ac): Test for newlocale function.
28969         * tests/test-locale.c: When the system has extended locale functions,
28970         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
28971
28972         locale: Make locale_t available when possible.
28973         * lib/locale.in.h: Include <xlocale.h> when it exists.
28974         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
28975         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
28976         * modules/locale (Depends-on): Add extensions.
28977         (Makefile.am): Also substitute HAVE_XLOCALE_H.
28978         * doc/posix-headers/locale.texi: Document the problem with locale_t.
28979
28980 2009-11-22  Bruno Haible  <bruno@clisp.org>
28981
28982         Add comments.
28983         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
28984         invocation.
28985         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
28986         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28987         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28988
28989 2009-11-22  Bruno Haible  <bruno@clisp.org>
28990
28991         error: account for the possibility of freopen (stdout).
28992         * lib/error.c: Include <unistd.h>.
28993         (flush_stdout): New function, extracted from error and error_at_line.
28994         Determine stdout's fd dynamically.
28995         (error, error_at_line): Invoke flush_stdout.
28996         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
28997         * modules/error (Depends-on): Add unistd.
28998
28999 2009-11-22  Bruno Haible  <bruno@clisp.org>
29000
29001         diffseq: Add comment.
29002         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
29003
29004 2009-11-22  Jim Meyering  <meyering@redhat.com>
29005
29006         c-stack: avoid defining an unused static function
29007         * lib/c-stack.c (find_stack_direction): Do not define this function
29008         when it will not be used.
29009
29010         diffseq: avoid spurious gcc warnings
29011         * lib/diffseq.h (IF_LINT2): Define.
29012         (compareseq): Use it to initialize two members of "part".
29013         This avoids two used-uninitialized warnings.
29014
29015 2009-11-21  Jim Meyering  <meyering@redhat.com>
29016
29017         c-stack: avoid "ignoring return value of `write'" warning
29018         * lib/c-stack.c: Include "ignore-value.h".
29019         (die): Explicitly ignore each write return value.
29020         * modules/c-stack (Depends-on): Add ignore-value.
29021
29022 2009-11-21  Bruno Haible  <bruno@clisp.org>
29023
29024         diffseq: reduce scope of variable 'best'.
29025         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
29026         variable, earlier used for two different purposes.
29027
29028 2009-11-21  Jim Meyering  <meyering@redhat.com>
29029
29030         diffseq: remove useless assignment to "best"
29031         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
29032         assignment.  At that point "best" is already guaranteed to be zero.
29033
29034 2009-11-20  Eric Blake  <ebb9@byu.net>
29035
29036         build: mention ftp redirector in release announcements
29037         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
29038         values that used to come from cfg.mk; mention FTP redirect URL.
29039         * build-aux/announce-gen: Mention the mirror list.
29040         Suggested by Karl Berry.
29041
29042         nanosleep: improve port to mingw
29043         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
29044         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
29045         LIB_NANOSLEEP, but only when needed.
29046         * modules/select (Link): Document LIBSOCKET.
29047         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
29048         enough.
29049
29050         nanosleep: work around cygwin bug
29051         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
29052         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
29053         bug.
29054         (getnow): Delete, not needed.
29055         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
29056         LIB_CLOCK_GETTIME.
29057         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
29058         clock-time, gettime.
29059         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
29060         bug.
29061         * modules/nanosleep-tests: New test.
29062         * tests/test-nanosleep.c: New file.
29063
29064         sleep: work around cygwin bug
29065         * lib/sleep.c (rpl_sleep): Work around the bug.
29066         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
29067         (gl_PREREQ_SLEEP): Delete unused macro.
29068         * modules/sleep (Depends-on): Add verify.
29069         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
29070         * modules/unistd (Makefile.am): Substitute witness.
29071         * lib/unistd.in.h (sleep): Update prototype.
29072         * doc/posix-functions/sleep.texi (sleep): Document the bug.
29073         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
29074         * modules/sleep-tests (Depends-on): Check for alarm.
29075
29076 2009-11-20  Jim Meyering  <meyering@redhat.com>
29077
29078         maint.mk: improve sc_prohibit_magic_number_exit
29079         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
29080         so it does not match uses like System.exit(1).
29081         Add comments showing how to correct all offenders.
29082
29083 2009-11-19  Eric Blake  <ebb9@byu.net>
29084
29085         xalloc-die-tests: add missing library
29086         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
29087
29088         test-xvasprintf: silence compiler warnings
29089         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
29090         empty string from gcc.
29091
29092 2009-11-19  Jim Meyering  <meyering@redhat.com>
29093
29094         xfreopen: new module, from coreutils
29095         * modules/xfreopen: New module.
29096         * lib/xfreopen.c: New file.
29097         * lib/xfreopen.h: New file.
29098         * MODULES.html.sh (File stream based Input/Output"): Add it.
29099
29100 2009-11-19  Eric Blake  <ebb9@byu.net>
29101
29102         manywarnings: depend on warnings
29103         * modules/manywarnings (Depends-on): Add warnings.
29104
29105         build: avoid compiler warnings
29106         * lib/select.c (rpl_select): Delete unused variable.
29107         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
29108
29109 2009-11-18  Eric Blake  <ebb9@byu.net>
29110
29111         tests: avoid false negative with --with-packager
29112         * tests/test-version-etc.sh: Discard packager information.
29113         * tests/test-argp-version-etc-1.sh: Likewise.
29114         Reported by Mike Frysinger.
29115
29116         utimens: fix regression on Solaris
29117         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
29118         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
29119         can only change fd timestamps via futimesat.  Instead, use an
29120         additional witness macro to avoid BSD bug.
29121         Reported by Jim Meyering.
29122
29123 2009-11-17  Eric Blake  <ebb9@byu.net>
29124
29125         usleep: use it to simplify tests
29126         * modules/stat-time-tests (Depends-on): Add usleep.
29127         (configure.ac): Drop usleep check.
29128         * modules/chown-tests (Depends-on, configure.ac): Likewise.
29129         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
29130         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
29131         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
29132         * modules/openat-tests (Depends-on, configure.ac): Likewise.
29133         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
29134         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
29135         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
29136         Likewise.
29137         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
29138         * tests/test-lchown.h (nap): Likewise.
29139         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
29140         * tests/test-stat-time.c (nap): Likewise.
29141         * tests/test-utimens-common.h (nap): Update comments.
29142
29143         usleep: new module
29144         * modules/usleep: New file.
29145         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
29146         * lib/usleep.c (usleep): Likewise.
29147         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
29148         * modules/unistd (Makefile.am): Substitute witnesses.
29149         * lib/unistd.in.h (usleep): Add declaration.
29150         * doc/pastposix-functions/usleep.texi (usleep): Document this.
29151         * MODULES.html.sh (Date and time): Likewise.
29152         * modules/usleep-tests (Depends-on): New test.
29153         * tests/test-usleep.c: New file.
29154
29155         chown: work around OpenBSD bug
29156         * lib/chown.c (rpl_chown): Work around the bug.
29157         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
29158         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
29159         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
29160         * modules/chown (Depends-on): Add stdbool.
29161         * modules/lchown (Depends-on): Likewise.
29162         * doc/posix-functions/chown.texi (chown): Document the bug.
29163         * doc/posix-functions/lchown.texi (lchown): Likewise.
29164         * tests/test-lchown.h (test_chown): Relax test.
29165
29166         mkstemp: avoid conflict with C++ keyword template
29167         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
29168         * lib/mkostemp.c (mkostemp): Likewise.
29169         * lib/mkostemps.c (mkostemps): Likewise.
29170         * lib/mkstemp.c (mkstemp): Likewise.
29171         * lib/mkstemps.c (mkstemps): Likewise.
29172
29173         xalloc-die-tests: optimize
29174         * tests/test-xalloc-die.sh: Reduce number of processes.
29175
29176 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29177
29178         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
29179         patch from ludo@gnu.org (Ludovic Courtès).
29180
29181 2009-11-17  Jim Meyering  <meyering@redhat.com>
29182
29183         version-etc: use proper license string
29184         * modules/version-etc (License): Use LGPL, not LGPLv3+.
29185         * modules/version-etc-fsf: Likewise.
29186
29187 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29188
29189         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
29190         printed to stdout.  Deal with EOL differences.
29191
29192 2009-11-17  Eric Blake  <ebb9@byu.net>
29193
29194         unsetenv: work around Solaris bug
29195         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
29196         * lib/unsetenv.c (rpl_unsetenv): Work around it.
29197         Reported by Jim Meyering.
29198
29199         vasnprintf: avoid compiler warnings
29200         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
29201         variables.
29202         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
29203
29204 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29205
29206         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
29207         settings since xalloc-die is no longer the self test,
29208         xalloc-die.sh is.
29209
29210 2009-11-17  Jim Meyering  <meyering@redhat.com>
29211
29212         test-xalloc-die.sh: make the code agree with the commit log
29213         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
29214         at the end, just in case you happen to have a test-xalloc-die
29215         program in some other PATH directory.
29216
29217         test-xalloc-die.sh: fix a portability bug
29218         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
29219         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
29220         Otherwise, argv[0] (as often seen in diagnostics) would be too
29221         system-dependent, sometimes with, and sometimes without the leading "./".
29222
29223         version-etc-fsf: relax license to LGPLv3+
29224         * modules/version-etc-fsf (License): Relax license.
29225
29226 2009-11-16  Eric Blake  <ebb9@byu.net>
29227
29228         xalloc-die-tests: avoid printing null pointer
29229         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
29230         shell script.
29231         * tests/test-xalloc-die.c (program_name): Declare.
29232         * tests/test-xalloc-die.sh (tmpfiles): New file.
29233
29234         setenv, unsetenv: work around various bugs
29235         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
29236         (setenv) [HAVE_SETENV]: Work around bugs.
29237         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
29238         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
29239         for bugs.
29240         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
29241         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
29242         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
29243         * modules/stdlib (Makefile.am): Update substitutions.
29244         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
29245         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
29246         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
29247         * modules/setenv-tests: New test.
29248         * modules/unsetenv-tests: Likewise.
29249         * tests/test-setenv.c: New file.
29250         * tests/test-unsetenv.c: Likewise.
29251
29252 2009-11-16  Jim Meyering  <meyering@redhat.com>
29253
29254         version-etc: relax license to LGPLv3+
29255         * modules/version-etc (License): Relax license.
29256
29257         better AC_REQUIRE expanded-before-required-warning avoidance
29258         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
29259         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
29260         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
29261         which is no longer needed.
29262
29263 2009-11-16  Eric Blake  <ebb9@byu.net>
29264
29265         test-freading: clean up temporary file
29266         * tests/test-freading.c (main): Remove file on success, and use
29267         ASSERT more liberally.
29268         Reported by Jim Meyering.
29269
29270 2009-11-16  Jim Meyering  <meyering@redhat.com>
29271
29272         avoid new AC_REQUIRE expanded-before-required warnings
29273         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
29274         merely using it.
29275         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
29276         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
29277
29278 2009-11-15  Simon Josefsson  <simon@josefsson.org>
29279
29280         * tests/test-xalloc-die.c: New file.
29281         * modules/xalloc-die-tests: New file.
29282         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
29283         XFAIL_TESTS so it can be appended by modules.
29284
29285 2009-11-15  Simon Josefsson  <simon@josefsson.org>
29286
29287         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
29288         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
29289
29290 2009-11-14  Eric Blake  <ebb9@byu.net>
29291
29292         fnmatch: avoid compiler warning
29293         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
29294         to silence compiler warning about mismatch signedness in ?:.
29295         Reported by Robert Millan.
29296
29297         intprops: add double-inclusion guard
29298         * lib/intprops.h: Allow idempotent includes.
29299         Suggested by Bruce Korb.
29300
29301         openat: detect Solaris fchownat bug
29302         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
29303         penalizing glibc chownat when only lchownat is broken.
29304         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
29305         trailing slash bugs.
29306         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
29307         * modules/openat-tests (Files): Include more files.
29308         (Depends-on): Add mgetgroups, sleep, stat-time.
29309         (configure.ac): Add additional checks.
29310         (Makefile.am): Build new test.
29311         * tests/test-fchownat.c: New file.
29312
29313         lchown: detect Solaris and FreeBSD bug
29314         * lib/lchown.c (rpl_lchown): Work around bug.
29315         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
29316         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29317         * modules/unistd (Makefile.am): Populate it.
29318         * lib/unistd.in.h (lchown): Update declaration.
29319         * doc/posix-functions/lchown.texi (lchown): Document the bug.
29320         * modules/lchown-tests: New file.
29321         * tests/test-lchown.h (test_lchown): Likewise.
29322         * tests/test-lchown.c (main): Likewise.
29323
29324         chown: detect Solaris and FreeBSD bug
29325         * lib/chown.c (rpl_chown): Work around bug.
29326         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
29327         (gl_PREREQ_CHOWN): Delete.
29328         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29329         * modules/unistd (Makefile.am): Populate it.
29330         * lib/unistd.in.h (chown): Update declaration.
29331         * lib/lchown.c (chown): Update client.
29332         * modules/lchown (Depends-on): Add lstat.
29333         * doc/posix-functions/chown.texi (chown): Document the bug.
29334         * doc/posix-functions/getgroups.texi (getgroups): Document
29335         getgroups pitfall.
29336         * modules/chown-tests: New file.
29337         * tests/test-chown.h (test_chown): Likewise.
29338         * tests/test-chown.c (main): Likewise.
29339
29340 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
29341
29342         gnulib-tool: correctly detect absence of m4 directories
29343         * gnulib-tool: Avoid extra newline on data passed to wc -l.
29344
29345 2009-11-14  Jim Meyering  <meyering@redhat.com>
29346
29347         maint.mk: Prohibit inclusion of "xalloc.h" without use.
29348         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
29349
29350 2009-11-14  John W. Eaton  <jwe@gnu.org>
29351
29352         strftime.h: wrap funtion declaration in extern "C" block
29353         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
29354
29355 2009-11-13  Eric Blake  <ebb9@byu.net>
29356
29357         getgroups: avoid compiler warning
29358         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
29359
29360         getgroups: work around FreeBSD bug
29361         * lib/getgroups.c (rpl_getgroups): Work around the bug.
29362         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
29363         * doc/posix-functions/getgroups.texi (getgroups): Document it.
29364         * tests/test-getgroups.c (main): Fix buffer overrun.
29365
29366         getgroups: avoid compilation failure
29367         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
29368         * modules/getgroups (Depends-on): Add stdint.
29369
29370 2009-11-13  Jim Meyering  <meyering@redhat.com>
29371
29372         test-getgroups: avoid compilation failure
29373         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
29374
29375 2009-11-13  Eric Blake  <ebb9@byu.net>
29376
29377         mgetgroups: new module, taken from coreutils
29378         * modules/mgetgroups: New file.
29379         * lib/mgetgroups.h: Likewise.
29380         * lib/mgetgroups.c (mgetgroups): Likewise.
29381         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
29382         * MODULES.html.sh (Users and groups): Mention it.
29383
29384         getgroups: don't expose GETGROUPS_T to user
29385         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
29386         an element at a time if GETGROUPS_T is wrong size.
29387         * lib/getugroups.h (getugroups): Change signature.
29388         * lib/unistd.in.h (getgroups): Likewise.
29389         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
29390         signature needs fixing.
29391         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
29392         AC_TYPE_GETGROUPS.
29393         * modules/group-member (Depends-on): Add getgroups.
29394         * lib/group-member.c (group_info, get_group_info): Use gid_t.
29395         (group_member): Rely on getgroups replacement.
29396         * lib/getugroups.c (getugroups): Use gid_t.
29397         * tests/test-getgroups.c (main): Likewise.
29398         * NEWS: Mention the signature change.
29399         * doc/posix-functions/getgroups.texi (getgroups): Mention the
29400         problem with signature.
29401         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
29402         GETGROUPS_T is still useful for setgroups.
29403
29404         getgroups, getugroups: provide stubs for mingw
29405         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
29406         * lib/getugroups.c (getugroups): Likewise.
29407         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
29408         function.  Modernize replacement scheme.
29409         (gl_PREREQ_GETGROUPS): Delete.
29410         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
29411         * modules/getgroups (configure.ac): Declare witness.
29412         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
29413         * modules/unistd (Depends-on): Substitute witness.
29414         * lib/unistd.in.h (getgroups): Declare replacement.
29415
29416         getgroups: avoid calling exit
29417         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
29418         drop xalloc.
29419         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
29420         dependencies.
29421         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
29422         exiting, in the rare case of malloc failure.
29423
29424         getgroups: fix logic error
29425         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
29426         has more than 20 groups.
29427         * modules/getgroups-tests: New test.
29428         * tests/test-getgroups.c: New file.
29429
29430 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29431
29432         * tests/test-base64.c: Improve.
29433
29434 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29435
29436         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
29437         Blake <ebb9@byu.net>.
29438
29439 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29440
29441         * tests/test-xvasprintf.c: Add %s%s related checks.
29442
29443 2009-11-12  Eric Blake  <ebb9@byu.net>
29444
29445         version-etc: match standards.texi style
29446         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
29447         and use <> only for URLs.
29448
29449 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
29450
29451         fts: do not fail on a submount during traversal
29452         * lib/fts.c (fts_build): Read the stat info again after opening
29453         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
29454         Original report at http://bugzilla.redhat.com/501848.
29455
29456 2009-11-12  Jim Meyering  <meyering@redhat.com>
29457
29458         bootstrap: sync from coreutils
29459         * build-aux/bootstrap (bootstrap_epilogue): New function.
29460         Use git_modules_config in one more place.  This make bootstrap's
29461         --gnulib-srcdir option more useful for testing.
29462
29463         bootstrap: generalize autoheader check
29464         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
29465         AC_CONFIG_HEADERS.
29466
29467 2009-11-11  Eric Blake  <ebb9@byu.net>
29468
29469         mkfifoat: use new modules for Solaris and BSD bugs
29470         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
29471         * lib/mkfifoat.c (mknodat): Split...
29472         * lib/mknodat.c (mknodat): ...into new file.
29473         * modules/mkfifoat (Files): Ship new file.
29474         (Depends-on): Add mkfifo, mknod.
29475         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
29476         (Depends-on): Add symlink.
29477         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
29478         redundant with test_mkfifo.h.
29479         (do_mkfifoat, do_mknodat): New helpers.
29480
29481         mknod: new module
29482         * modules/mknod: New file.
29483         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
29484         * lib/mknod.c (mknod): Likewise.
29485         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29486         defaults.
29487         * modules/sys_stat (Makefile.am): Substitute them.
29488         * lib/sys_stat.in.h (mknod): Declare replacement.
29489         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29490         Document it.
29491         * doc/posix-functions/mknod.texi (mknod): Likewise.
29492         * modules/mknod-tests: New test.
29493         * tests/test-mknod.c: Likewise.
29494
29495         mkfifo: new module
29496         * modules/mkfifo: New file.
29497         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
29498         * lib/mkfifo.c (mkfifo): Likewise.
29499         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29500         defaults.
29501         * modules/sys_stat (Makefile.am): Substitute them.
29502         * lib/sys_stat.in.h (mkfifo): Declare replacement.
29503         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29504         Document it.
29505         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
29506         * modules/mkfifo-tests: New test.
29507         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
29508         from test-mkfifoat.c.
29509         * tests/test-mkfifo.c: New file.
29510
29511         readlink: detect FreeBSD bug
29512         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
29513         slash on symlink.
29514         * doc/posix-functions/readlink.texi (readlink): Document the bug.
29515         * tests/test-readlink.h (test_readlink): Enhance test.
29516
29517         symlink: detect FreeBSD bug
29518         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
29519         slash on symlink.
29520         * doc/posix-functions/symlink.texi (symlink): Document the bug.
29521         * tests/test-symlink.h (test_symlink): Enhance test.
29522
29523 2009-11-10  Eric Blake  <ebb9@byu.net>
29524
29525         link: detect FreeBSD bug
29526         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
29527         symlink.
29528         * doc/posix-functions/link.texi (link): Document the bug.
29529         * tests/test-link.h (test_link): Enhance test.
29530         * tests/test-linkat.c (main): Update caller.
29531
29532         unlink, remove: detect FreeBSD bug
29533         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
29534         slash on symlink.
29535         * doc/posix-functions/unlink.texi (unlink): Document the bug.
29536         * doc/posix-functions/remove.texi (remove): Likewise.
29537         * tests/test-unlink.h (test_unlink): Enhance test.
29538         * tests/test-remove.c (main): Likewise.
29539
29540 2009-11-09  Eric Blake  <ebb9@byu.net>
29541
29542         rename: detect FreeBSD bug
29543         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
29544         slash on symlink.
29545         * modules/renameat-tests (Depends-on): Add filenamecat.
29546         * tests/test-rename.h (test_rename): Allow one more errno.
29547         * tests/test-renameat.c (main): Likewise.
29548         * doc/posix-functions/rename.texi (rename): Document the bug.
29549
29550         open: detect FreeBSD bug
29551         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
29552         symlink.
29553         * doc/posix-functions/open.texi (open): Document the bug.
29554         * doc/posix-functions/utimes.texi (utimes): Likewise.
29555         * tests/test-open.h (test_open): Add parameters, and test symlink
29556         handling.
29557         * tests/test-open.c (main): Adjust caller.
29558         * tests/test-fcntl-safer.c (main): Likewise.
29559         * modules/open-tests (Depends-on): Add stdbool, symlink.
29560         * modules/fcntl-safer-tests (Depends-on): Likewise.
29561         * tests/test-openat.c (main): Add test-open tests.
29562
29563         stat: detect FreeBSD bug
29564         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
29565         symlink.
29566         * doc/posix-functions/stat.texi (stat): Document the bug.
29567         * tests/test-stat.h (test_stat_func): Add argument.
29568         * tests/test-stat.c (main): Adjust caller.
29569         * tests/test-fstatat.c (main): Likewise.
29570         * modules/stat-tests (Depends-on): Add stdbool, symlink.
29571         Reported by Jim Meyering.
29572
29573 2009-11-09  James Youngman  <jay@gnu.org>
29574
29575         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
29576         * lib/strftime.c: Correct placement of #include "ignore-value.h".
29577
29578 2009-11-08  Jim Meyering  <meyering@redhat.com>
29579
29580         utimens: remove invalid futimesat call
29581         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
29582         It used the file descriptor of the target file as the DIR_FD
29583         parameter and NULL as the file name.  That caused failure with
29584         errno == EFAULT on FreeBSD-8.0-rc2
29585
29586 2009-11-07  Eric Blake  <ebb9@byu.net>
29587
29588         fflush, freadseek: use fseeko, not fseek
29589         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
29590         (clear_ungetc_buffer): Avoid potential problems on large files.
29591         * lib/freadseek.c (freadseek): Likewise.
29592         * modules/freadseek (Depends-on): Add fseeko.
29593         * modules/fseek (configure.ac): Set a witness.
29594         * tests/test-fflush.c (main): Use fseeko.
29595         * tests/test-fpurge.c (fseek): Disable link warning.
29596         * tests/test-freadable.c (fseek): Likewise.
29597         * tests/test-freading.c (fseek): Likewise.
29598         * tests/test-fseeko.c (fseek): Likewise.
29599         * tests/test-ftell.c (fseek): Likewise.
29600         * tests/test-ftello.c (fseek): Likewise.
29601         * tests/test-fwritable.c (fseek): Likewise.
29602         * tests/test-fwriting.c (fseek): Likewise.
29603
29604 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29605
29606         * modules/memchr (Depends-on): Drop getpagesize dependency.
29607
29608 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29609
29610         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
29611         Reported by Ludovic Courtès.
29612         * build-aux/pmccabe2html: Improve example usage.
29613         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
29614
29615 2009-11-06  Jim Meyering  <meyering@redhat.com>
29616
29617         do-release-commit-and-tag: New module.
29618         Automate the release-commit and tag process.
29619         * build-aux/do-release-commit-and-tag: New script, from coreutils.
29620         * modules/do-release-commit-and-tag: New file.
29621         * MODULES.html.sh (Support for maintaining and releasing): Add it.
29622
29623 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29624
29625         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
29626         because test-select.c uses inet_pton.
29627
29628 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29629
29630         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
29631         GETADDRINFO_LIB.  Bump serial number.
29632         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
29633         Suggested by Eric Blake <ebb9@byu.net>.
29634
29635 2009-11-05  Eric Blake  <ebb9@byu.net>
29636
29637         strtod: detect darwin bug
29638         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
29639         Reported by Leo Davis.
29640
29641         freopen-safer: new module
29642         * modules/freopen-safer: New module.
29643         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
29644         * lib/freopen-safer.c (freopen_safer): New file.
29645         * lib/stdio-safer.h (freopen_safer): New declaration.
29646         * lib/stdio--.h (freopen): New override.
29647         * MODULES.html.sh (File stream based Input/Output): Mention it.
29648         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
29649         freopen-safer module.
29650         * doc/posix-functions/stderr.texi (stderr): Likewise.
29651         * doc/posix-functions/stdin.texi (stdin): Likewise.
29652         * doc/posix-functions/stdout.texi (stdout): Likewise.
29653         * modules/freopen-safer-tests: New test.
29654         * tests/test-reopen-safer.c: New file.
29655
29656 2009-11-05  Jim Meyering  <meyering@redhat.com>
29657
29658         maint.mk: Prohibit inclusion of "close-stream.h" without use.
29659         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
29660
29661 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29662
29663         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
29664
29665 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29666
29667         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
29668
29669 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29670
29671         Fix link error.
29672         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
29673         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29674
29675 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29676
29677         * tests/test-func.c: Also test value of __func__.
29678
29679 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29680
29681         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
29682         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
29683
29684 2009-11-05  Bruno Haible  <bruno@clisp.org>
29685
29686         Fix link error.
29687         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
29688         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29689         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
29690
29691 2009-11-05  Bruno Haible  <bruno@clisp.org>
29692
29693         Tests for module 'inet_pton'.
29694         * modules/inet_pton-tests: New file.
29695         * tests/test-inet_pton.c: New file.
29696
29697 2009-11-05  Bruno Haible  <bruno@clisp.org>
29698
29699         Tests for module 'inet_ntop'.
29700         * modules/inet_ntop-tests: New file.
29701         * tests/test-inet_ntop.c: New file.
29702
29703 2009-11-04  Eric Blake  <ebb9@byu.net>
29704
29705         stdlib-safer: wrap all mkstemp variants
29706         * modules/mkostemp (configure.ac): Set witness.
29707         * modules/mkostemps (configure.ac): Likewise.
29708         * modules/mkstemps (configure.ac): Likewise.
29709         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
29710         (mkstemps_safer): Wrap more functions.
29711         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
29712         wrapping.
29713         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
29714         (mkstemps_safer): Implement the wrappers.
29715
29716         mkstemps, mkostemps: new modules
29717         * modules/mkostemps: New module.
29718         * modules/mkstemps: Likewise.
29719         * lib/mkostemps.c (mkostemps): New file.
29720         * lib/mkstemps.c (mkstemps): Likewise.
29721         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
29722         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
29723         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
29724         * modules/stdlib (Makefile.am): Substitute them.
29725         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
29726         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
29727         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
29728         * doc/gnulib.texi (Glibc stdlib.h): Include them.
29729         * MODULES.html.sh (File system functions): Mention them.
29730
29731         tempname: resync from glibc
29732         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
29733         same values for __GT_FILE as glibc.  Abort even when assertions
29734         are disabled.
29735         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
29736         match its value otherwise.  Allow idempotent inclusion.
29737         * lib/mkdtemp.c (mkdtemp): Adjust caller.
29738         * lib/mkostemp.c (mkostemp): Likewise.
29739         * lib/mkstemp.c (mkstemp): Likewise.
29740         * lib/tmpfile.c (tmpfile): Likewise.
29741         * NEWS: Document this.
29742
29743         utimens: fix use of futimens on older Linux
29744         * lib/utimens.c (fdutimens): Use updated, rather than original,
29745         timespec to avoid bug in older Linux kernel.
29746         Reported by Simon Josefsson.
29747
29748 2009-11-04  Bruno Haible  <bruno@clisp.org>
29749
29750         Make num_processors more flexible and consistent.
29751         * lib/nproc.h (enum nproc_query): New type.
29752         (num_processors): Add a 'query' argument.
29753         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
29754         (num_processors): Add a 'query' argument. Test the value of the
29755         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
29756         mingw, count the number of CPUs available for the current process.
29757         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
29758         Check for sched_getaffinity and sched_getaffinity_np.
29759         * modules/nproc (Depends-on): Add c-ctype, extensions.
29760         * NEWS: Mention the change.
29761
29762 2009-11-03  Bruno Haible  <bruno@clisp.org>
29763
29764         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
29765
29766 2009-11-03  Jim Meyering  <meyering@redhat.com>
29767
29768         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
29769         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
29770         if it is defined.
29771
29772 2009-11-02  Eric Blake  <ebb9@byu.net>
29773
29774         mktime, timegm: share common declaration
29775         * lib/mktime-internal.h: New file.
29776         * lib/mktime.c: Use it rather than open-coding a declaration.
29777         * lib/timegm.c: Likewise.
29778         * modules/mktime (Files): Ship it.
29779         * modules/timegm (Files): Likewise.
29780         Suggested by Bruno Haible.
29781
29782         test-update-copyright: update test to match script changes
29783         * tests/test-update-copyright.sh: Avoid hard-coding perl
29784         location.  Don't update *.bak created by earlier runs.
29785
29786 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
29787             Simon Josefsson  <simon@josefsson.org>
29788             Bruno Haible  <bruno@clisp.org>
29789
29790         Fix link error on Solaris 8.
29791         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
29792         also in libnsl. Define also INET_PTON_LIB.
29793         * modules/inet_pton (Link): New section.
29794
29795 2009-11-02  Simon Josefsson  <simon@josefsson.org>
29796             Bruno Haible  <bruno@clisp.org>
29797
29798         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
29799         * modules/inet_ntop (Link): New section.
29800         Reported by Boyan Kasarov <bkasarov@gmail.com>.
29801
29802 2009-11-02  Eric Blake  <ebb9@byu.net>
29803
29804         maint: avoid compiler warnings in m4 macros
29805         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
29806         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
29807
29808 2009-11-02  Simon Josefsson  <simon@josefsson.org>
29809
29810         * m4/pmccabe2html.m4: Remove file.
29811         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
29812         function.  Change maintainer.
29813         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
29814         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
29815         Courtès).
29816
29817 2009-10-31  Eric Blake  <ebb9@byu.net>
29818
29819         fseeko: fix m4 regression
29820         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
29821         regression from 2009-10-27.
29822         Reported by Ralf Wildenhues.
29823
29824 2009-10-31  Jim Meyering  <meyering@redhat.com>
29825
29826         inttostr: aesthetics and improved (compile-time) safety
29827         Define inttype_is_signed rather than inttype_is_unsigned,
29828         since the sole use is via "#if inttype_is_signed".
29829         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
29830         inttype_is_unsigned.
29831         * lib/offtostr.c (inttype_is_signed): Likewise.
29832         * lib/uinttostr.c (inttype_is_signed): Likewise.
29833         * lib/umaxtostr.c (inttype_is_signed): Likewise.
29834         * lib/inttostr.c (inttostr): Use verify to cross-check the
29835         inttype_is_signed value and the signedness of the actual type.
29836         * modules/inttostr (Depends-on): Add verify.
29837
29838 2009-10-30  Eric Blake  <ebb9@byu.net>
29839
29840         build: avoid compiler warnings
29841         * lib/fchmodat.c (lchmod): Mark unused variables.
29842         * lib/getopt.c (_getopt_initialize): Likewise.
29843         * lib/mktime.c (__mktime_internal): Provide prototype.
29844         * lib/inttostr.c (inttostr): Avoid compiler warning even with
29845         older gcc that do not understand #pragma GCC diagnostic.
29846         * lib/uinttostr.c (inttype_is_unsigned): Define.
29847         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
29848
29849 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
29850
29851         stat: fix compilation on AIX
29852         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
29853         only see struct stat64.
29854
29855 2009-10-30  Eric Blake  <ebb9@byu.net>
29856
29857         exclude: make more robust
29858         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
29859         rather than masking a coding bug.
29860         Suggested by Bruno Haible.
29861
29862 2009-10-30  Jim Meyering  <meyering@redhat.com>
29863
29864         perl scripts: remove #!/usr/bin/perl in favor of more portable...
29865         Rather than putting #!/usr/bin/perl on the first line,
29866         start with a variant of what's recommended by "man perlrun" that
29867         invokes the first "perl" program from your shell's search path.
29868         * build-aux/gitlog-to-changelog: Replace #!... as above.
29869         Add a "Local Variables" perl mode setting.
29870         Prompted by a patch from Ludovic Courtès.
29871         Improved by Eric Blake.
29872         * build-aux/useless-if-before-free: Likewise.
29873         * build-aux/announce-gen: Likewise.
29874         * build-aux/update-copyright: Likewise.
29875
29876 2009-10-29  Eric Blake  <ebb9@byu.net>
29877
29878         filenamecat-lgpl: adjust clients
29879         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
29880         filenamecat.
29881         * modules/renameat (Depends-on): Likewise.
29882
29883         filenamecat: split into filenamecat-lgpl
29884         * modules/filenamecat-lgpl: New module.
29885         * modules/filenamecat (Files): Move library-safe files into
29886         filenamecat-lgpl.
29887         (Depends-on): Add filenamecat-lgpl.
29888         (configure.ac): Declare witness.
29889         * lib/filenamecat.h (file_name_concat): Only declare when using
29890         GPL module.
29891         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
29892         Move...
29893         * lib/filenamecat-lgpl.c: ...into new file.
29894         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
29895         (gl_FILE_NAME_CONCAT): Use it.
29896         * MODULES.html.sh (File system functions): Mention new module.
29897
29898         argp: avoid memory leak
29899         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
29900         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
29901         base_name, since the latter malloc()s and can call exit().
29902         Leak introduced 2006-07-03.
29903
29904         dirname-lgpl: adjust clients that don't need full dirname
29905         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
29906         * modules/filenamecat (Depends-on): Likewise.
29907         * modules/linkat (Depends-on): Likewise.
29908         * modules/mkancesdirs (Depends-on): Likewise.
29909         * modules/mkdir (Depends-on): Likewise.
29910         * modules/openat (Depends-on): Likewise.
29911         * modules/savewd (Depends-on): Likewise.
29912         * modules/rename (Depends-on): Likewise.
29913         (License): Relax license.
29914         * modules/mkdir-tests (Depends-on): Drop progname.
29915         (Makefile.am): Delete unneeded LDADD.
29916         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
29917
29918         dirname: split into dirname-lgpl
29919         * modules/dirname-lgpl: New module.
29920         * modules/dirname (Files): Move library-safe files into
29921         dirname-lgpl.
29922         (Depends-on): Add dirname-lgpl.
29923         (configure.ac): Declare witness.
29924         * modules/double-slash-root (License): Relax license.
29925         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
29926         module.
29927         * lib/dirname.c (dir_len, mdir_name): Move...
29928         * lib/dirname-lgpl.c: ...into new file.
29929         * lib/basename.c (last_component, base_len): Move...
29930         * lib/basename-lgpl.c: ...into new file.
29931         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
29932         (gl_DIRNAME): Use it.
29933         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
29934         Mention new module.
29935         * modules/dirname-tests (Depends-on): Add progname.
29936         * tests/test-dirname.c (program_name): Delete.
29937
29938         mkdir: make safe for libraries
29939         * modules/mkdir (Depends-on): Drop xalloc.
29940         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
29941         exit.
29942
29943         tests: avoid some compiler warnings
29944         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
29945         literals.
29946         * tests/test-memchr.c (main): Avoid type mismatch.
29947         * tests/test-arpa_inet.c (main): Avoid unused parameters.
29948         * tests/test-base64.c (main): Likewise.
29949         * tests/test-getdelim.c (main): Likewise.
29950         * tests/test-gethostname.c (main): Likewise.
29951         * tests/test-getline.c (main): Likewise.
29952         * tests/test-netinet_in.c (main): Likewise.
29953         * tests/test-select.c (open_server_socket, main): Likewise.
29954         * tests/test-select-stdin.c (main): Likewise.
29955         * tests/test-sockets.c (main): Likewise.
29956         * tests/test-strsignal.c (main): Likewise.
29957         * tests/test-sys_select.c (main): Likewise.
29958         * tests/test-sys_socket.c (main): Likewise.
29959         * tests/test-u64.c (main): Likewise.
29960         * tests/test-xfprintf-posix.c (main): Likewise.
29961         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
29962
29963         sockets: avoid compiler warning
29964         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
29965
29966         maint: detect usage(1) and other suspicious exits
29967         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
29968
29969 2009-10-29  Jim Meyering  <meyering@redhat.com>
29970
29971         timespec: long-to-int truncation could make timespec_cmp malfunction
29972         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
29973         a multiple of 2^32 nanoseconds as no difference.
29974
29975 2009-10-28  Jim Meyering  <meyering@redhat.com>
29976
29977         fprintftime: wrap macro code argument in "do {...} while(0)"
29978         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
29979         cpy macro must be a statement that can be followed by a semicolon.
29980         Now that the else clause contains a comment and is hence longer
29981         than one line, I require curly braces.  That in turn requires
29982         that we wrap this code block in the standard do...while(0).
29983
29984         fprintftime: remove stray semicolon from previous change
29985         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
29986
29987         fprintftime: avoid a warning about ignored fwrite return value
29988         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
29989         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
29990         that is unsafe.
29991         * modules/fprintftime (Depends-on): Add ignore-value.
29992
29993         exclude: avoid an unwarranted warning
29994         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
29995
29996 2009-10-27  Eric Blake  <ebb9@byu.net>
29997
29998         fseek: avoid compilation failure when fflush is replaced
29999         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
30000         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
30001         module is in use.
30002         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
30003         module is not in use; since REPLACE_FSEEK worked otherwise.
30004         (GNULIB_FTELLO): Likewise for ftell.
30005         Reported by Ian Beckwith and others.
30006
30007 2009-10-27  Bruno Haible  <bruno@clisp.org>
30008
30009         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
30010         Reported by Jim Meyering.
30011
30012 2009-10-27  Jim Meyering  <jim@meyering.net>
30013             Bruno Haible  <bruno@clisp.org>
30014
30015         Avoid warning despite dropping the return value of fwrite.
30016         * lib/unicodeio.c: Include ignore-value.h.
30017         (fwrite_success_callback): Explicitly ignore fwrite's return value.
30018         * modules/unicodeio (Depends-on): Add ignore-value.
30019
30020 2009-10-26  Eric Blake  <ebb9@byu.net>
30021
30022         areadlinkat: fix fallback path
30023         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
30024         pointer and zero.
30025
30026 2009-10-22  Pádraig Brady  <P@draigBrady.com>
30027
30028         Use a better IO block size for modern systems
30029         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
30030         * lib/md2.c: Likewise.
30031         * lib/md4.c: Likewise.
30032         * lib/md5.c: Likewise.
30033         * lib/sha1.c: Likewise.
30034         * lib/sha256.c: Likewise.
30035         * lib/sha512.c: Likewise.
30036
30037 2009-10-22  Eric Blake  <ebb9@byu.net>
30038
30039         tests: avoid several compiler warnings
30040         * tests/test-getcwd.c (main): Avoid buffer underflow.
30041         * tests/test-getdate.c (main): String literals are not safe with
30042         putenv, so use setenv.  Declare unused argument.
30043         * modules/getdate-tests (Depends-on): Add setenv.
30044         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
30045         problems with string literals in char *.
30046         * tests/test-hash.c (main): Avoid shadowing declaration.
30047         (insert_new): Treat string literals as char const *.
30048         * tests/test-getopt.h (test_getopt): Likewise.
30049         (getopt_loop): Alter types to minimize casting elsewhere.
30050         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
30051         (test_getopt_long_posix): Likewise.
30052         (do_getopt_long): Add wrapper to minimize casting.
30053         * tests/test-atexit.c (clear_temp_file): Use void.
30054         * tests/test-areadlink-with-size.c (main): Declare unused
30055         arguments.
30056         * tests/test-areadlink.c (main): Likewise.
30057         * tests/test-areadlinkat-with-size.c (main): Likewise.
30058         * tests/test-areadlinkat.c (main): Likewise.
30059         * tests/test-canonicalize-lgpl.c (main): Likewise.
30060         * tests/test-canonicalize.c (main): Likewise.
30061         * tests/test-dirent-safer.c (main): Likewise.
30062         * tests/test-dirname.c (main): Likewise.
30063         * tests/test-dup2.c (main): Likewise.
30064         * tests/test-fchdir.c (main): Likewise.
30065         * tests/test-fcntl-h.c (main): Likewise.
30066         * tests/test-fcntl-safer.c (main): Likewise.
30067         * tests/test-fdopendir.c (main): Likewise.
30068         * tests/test-fdutimensat.c (main): Likewise.
30069         * tests/test-fflush.c (main): Likewise.
30070         * tests/test-filenamecat.c (main): Likewise.
30071         * tests/test-filevercmp.c (main): Likewise.
30072         * tests/test-fopen-safer.c (main): Likewise.
30073         * tests/test-fopen.c (main): Likewise.
30074         * tests/test-fpending.c (main): Likewise.
30075         * tests/test-fpurge.c (main): Likewise.
30076         * tests/test-freading.c (main): Likewise.
30077         * tests/test-fstatat.c (main): Likewise.
30078         * tests/test-fsync.c (main): Likewise.
30079         * tests/test-futimens.c (main): Likewise.
30080         * tests/test-getndelim2.c (main): Likewise.
30081         * tests/test-gettimeofday.c (main): Likewise.
30082         * tests/test-getopt.c (main): Likewise.
30083         * tests/test-i-ring.c (main): Likewise.
30084         * tests/test-inttypes.c (main): Likewise.
30085         * tests/test-link.c (main): Likewise.
30086         * tests/test-lstat.c (main): Likewise.
30087         * tests/test-math.c (main): Likewise.
30088         * tests/test-md5.c (main): Likewise.
30089         * tests/test-memchr2.c (main): Likewise.
30090         * tests/test-memrchr.c (main): Likewise.
30091         * tests/test-mkdir.c (main): Likewise.
30092         * tests/test-mkdirat.c (main): Likewise.
30093         * tests/test-mkfifoat.c (main): Likewise.
30094         * tests/test-open.c (main): Likewise.
30095         * tests/test-openat-safer.c (main): Likewise.
30096         * tests/test-openat.c (main): Likewise.
30097         * tests/test-quotearg.c (main): Likewise.
30098         * tests/test-rawmemchr.c (main): Likewise.
30099         * tests/test-readlink.c (main): Likewise.
30100         * tests/test-remove.c (main): Likewise.
30101         * tests/test-rename.c (main): Likewise.
30102         * tests/test-renameat.c (main): Likewise.
30103         * tests/test-rmdir.c (main): Likewise.
30104         * tests/test-sha1.c (main): Likewise.
30105         * tests/test-signal.c (main): Likewise.
30106         * tests/test-sigaction.c (main): Likewise.
30107         * tests/test-stat.c (main): Likewise.
30108         * tests/test-stat-time.c (main): Likewise.
30109         * tests/test-stddef.c (main): Likewise.
30110         * tests/test-stdint.c (main): Likewise.
30111         * tests/test-stdio.c (main): Likewise.
30112         * tests/test-stdlib.c (main): Likewise.
30113         * tests/test-strchrnul.c (main): Likewise.
30114         * tests/test-strerror.c (main): Likewise.
30115         * tests/test-string.c (main): Likewise.
30116         * tests/test-strtod.c (main): Likewise.
30117         * tests/test-strverscmp.c (main): Likewise.
30118         * tests/test-symlink.c (main): Likewise.
30119         * tests/test-symlinkat.c (main): Likewise.
30120         * tests/test-sys_stat.c (main): Likewise.
30121         * tests/test-sys_time.c (main): Likewise.
30122         * tests/test-time.c (main): Likewise.
30123         * tests/test-unistd.c (main): Likewise.
30124         * tests/test-unlink.c (main): Likewise.
30125         * tests/test-unlinkat.c (main): Likewise.
30126         * tests/test-utimens.c (main): Likewise.
30127         * tests/test-utimensat.c (main): Likewise.
30128         * tests/test-version-etc.c (main): Likewise.
30129         * tests/test-wchar.c (main): Likewise.
30130         * tests/test-wctype.c (main): Likewise.
30131         * tests/test-xprintf-posix.c (main): Likewise.
30132         * tests/test-posixtm.c (main): Likewise.
30133         (STREQ): Delete unused macro.
30134         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
30135         shadowed variables.
30136         * tests/test-memchr.c (main): Likewise.
30137
30138 2009-10-21  Eric Blake  <ebb9@byu.net>
30139
30140         areadlinkat: avoid failure on older glibc
30141         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
30142         rather than mis-comparing 0 against FUNC_RESULT of char*.
30143
30144 2009-10-21  Bruno Haible  <bruno@clisp.org>
30145
30146         * modules/stpncpy (License): Relicense under LGPLv2+.
30147         Reported by David Lutterkort <lutter@redhat.com>.
30148
30149 2009-10-20  Eric Blake  <ebb9@byu.net>
30150
30151         utimensat: work around Solaris 9 bug
30152         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
30153         has trailing slash bugs.
30154         * tests/test-lutimens.h (test_lutimens): Enhance test.
30155         * tests/test-utimens.h (test_utimens): Likewise.
30156         * doc/posix-functions/utime.texi (utime): Enhance documentation.
30157         * doc/posix-functions/utimes.texi (utimes): Likewise.
30158         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30159         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
30160         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
30161         * doc/posix-functions/futimens.texi (futimens): Likewise.
30162
30163         fdutimensat: new module
30164         * modules/fdutimensat: New file.
30165         * lib/fdutimensat.c (fdutimensat): Likewise.
30166         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
30167         * MODULES.html.sh (File system functions): Mention module.
30168         * modules/fdutimensat-tests: New test.
30169         * tests/test-fdutimensat.c: Likewise.
30170
30171         doc: regenerate INSTALL
30172         * doc/INSTALL: Reflect recent autoconf update.
30173         * doc/INSTALL.ISO: Likewise.
30174         * doc/INSTALL.UTF-8: Likewise.
30175
30176 2009-10-20  Pádraig Brady  <P@draigBrady.com>
30177
30178         acl: warn if ACL support is not detected
30179         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
30180
30181 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
30182
30183         * lib/nproc.h: Add extern "C" block for C++.
30184
30185 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
30186             Bruno Haible  <bruno@clisp.org>
30187
30188         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
30189         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
30190         * doc/posix-functions/isalpha.texi: Likewise.
30191         * doc/posix-functions/isblank.texi: Likewise.
30192         * doc/posix-functions/iscntrl.texi: Likewise.
30193         * doc/posix-functions/isdigit.texi: Likewise.
30194         * doc/posix-functions/isgraph.texi: Likewise.
30195         * doc/posix-functions/islower.texi: Likewise.
30196         * doc/posix-functions/isprint.texi: Likewise.
30197         * doc/posix-functions/ispunct.texi: Likewise.
30198         * doc/posix-functions/isspace.texi: Likewise.
30199         * doc/posix-functions/isupper.texi: Likewise.
30200         * doc/posix-functions/isxdigit.texi: Likewise.
30201
30202 2009-10-18  Bruno Haible  <bruno@clisp.org>
30203
30204         Tests for module 'isblank'.
30205         * modules/isblank-tests: New file.
30206         * tests/test-isblank.c: New file.
30207
30208         New module 'isblank'.
30209         * lib/isblank.c: New file.
30210         * m4/isblank.m4: New file.
30211         * modules/isblank: New file.
30212         * doc/posix-functions/isblank.texi: Mention the new module.
30213
30214 2009-10-18  Bruno Haible  <bruno@clisp.org>
30215
30216         New module 'ctype'.
30217         * lib/ctype.in.h: New file.
30218         * m4/ctype.m4: New file.
30219         * modules/ctype: New file.
30220         * doc/posix-headers/ctype.texi: Mention the new module.
30221
30222 2009-10-18  Jim Meyering  <meyering@redhat.com>
30223
30224         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
30225         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
30226         right after its initialization, rather than farther down.
30227         Keeping these in close proximity makes it easier to ensure
30228         that each such variable is initialized.  E.g.,
30229
30230             LIB_CLOCK_GETTIME=
30231             AC_SUBST([LIB_CLOCK_GETTIME])
30232
30233         This change also increments these serial numbers.
30234         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
30235         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
30236         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30237
30238 2009-10-18  Bruno Haible  <bruno@clisp.org>
30239
30240         Don't let environment variables perturb build.
30241         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
30242         (gl_PREREQ_GETHRXTIME): ... not here.
30243
30244 2009-10-18  Bruno Haible  <bruno@clisp.org>
30245
30246         Avoid symlink attack in localcharset module.
30247         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
30248         (O_NOFOLLOW): Define fallback.
30249         (get_charset_aliases): Don't open the file if it is a symbolic link.
30250         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
30251         gl_FCNTL_H.
30252         (gl_FCNTL_H): Require it.
30253         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
30254         * modules/localcharset (Files): Add m4/fcntl_h.m4.
30255         Reported by Fergal Glynn <fglynn@veracode.com>.
30256
30257 2009-10-18  Bruno Haible  <bruno@clisp.org>
30258
30259         Implement nproc for mingw.
30260         * lib/nproc.c: Include <windows.h>
30261         (num_processors): On native Windows platforms, try GetSystemInfo.
30262
30263 2009-10-18  Bruno Haible  <bruno@clisp.org>
30264
30265         Implement nproc for IRIX.
30266         * lib/nproc.c: Include <sys/sysmp.h>.
30267         (num_processors): On IRIX systems, try sysmp.
30268         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
30269
30270 2009-10-18  Bruno Haible  <bruno@clisp.org>
30271
30272         Implement nproc for HP-UX.
30273         * lib/nproc.c: Include <sys/pstat.h>
30274         (num_processors): On HP-UX systems, try pstat_getdynamic.
30275         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
30276         pstat_getdynamic.
30277
30278 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
30279             Bruno Haible  <bruno@clisp.org>
30280
30281         Implement nproc for NetBSD, OpenBSD.
30282         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
30283         (ARRAY_SIZE): New macro.
30284         (num_processors): On BSD systems, try sysctl of HW_NCPU.
30285         * m4/nproc.m4: New file.
30286         * modules/nproc (Files): Add m4/nproc.m4.
30287         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
30288         (Makefile.am): Instead, augment lib_SOURCES.
30289
30290 2009-10-18  Bruno Haible  <bruno@clisp.org>
30291
30292         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
30293         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
30294         sys/param.h.
30295
30296 2009-10-16  Eric Blake  <ebb9@byu.net>
30297
30298         utimensat: new module
30299         * modules/utimensat: New file.
30300         * lib/utimensat.c (utimensat): Likewise.
30301         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30302         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
30303         so we can work around Linux bugs.
30304         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30305         * modules/sys_stat (Makefile.am): Substitute them.
30306         * lib/sys_stat.in.h (utimensat): Declare it.
30307         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30308         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30309         * modules/utimensat-tests: New test.
30310         * tests/test-utimensat.c: Likewise.
30311
30312         utimens: let lutimens work on non-symlinks
30313         * lib/utimens.c (lutimens): Fall back to utimens rather than
30314         failing with ENOSYS, when file is not a symlink.
30315         (utimens): Reduce redirection.
30316         * tests/test-lutimens.h (test_lutimens): Update test to cover
30317         non-symlinks.
30318         * tests/test-utimens.h (test_utimens): Update test to cover
30319         symlinks.
30320         * tests/test-utimens.c (main): Update caller.
30321
30322         utimens: cache whether utimensat syscall works
30323         * lib/utimens.c (utimensat_works_really): New cache variable.
30324         (fdutimens, lutimens): Use it to avoid failing syscall.
30325
30326         test-stat-time, test-utimens: improve portability
30327         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
30328         ext4 on alpha, and for cygwin.
30329         * tests/test-utimens-common.h: New file.
30330         (nap): Factor delays into single function.
30331         * tests/test-lutimens.h (test_lutimens): Use new header.
30332         * tests/test-futimens.h (test_futimens): Likewise.
30333         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
30334         timestamps to occur from same machine, as was done previously for
30335         test_utimens.
30336         * modules/utimens-tests (Files): Ship new file.
30337         * modules/futimens-tests (Files): Likewise.
30338         Reported in part by Jim Meyering.
30339
30340         sys_stat: sort replacement declarations
30341         * lib/sys_stat.in.h: Sort declarations.
30342         * lib/futimens.c (futimens): Fix typo.
30343
30344 2009-10-15  Jim Meyering  <meyering@redhat.com>
30345
30346         don't let environment settings perturb build
30347         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
30348         could cause a configure-time and/or build-time malfunction.
30349         Typically, a configure-time function-in-library test is performed
30350         via code like this:
30351
30352           LIB_VAR=
30353           AC_SUBST([LIB_VAR])
30354           prefix_saved_LIBS=$LIBS
30355             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
30356                        [test "$ac_cv_search_FUNC" = "none required" ||
30357                         LIB_VAR=$ac_cv_search_FUNC])
30358           LIBS=$prefix_saved_LIBS
30359
30360         However, in each of the files affected by this change, the LIB_VAR=
30361         initialization was omitted.  Thus, when set in the environment, its
30362         value would propagate into generated Makefiles when FUNC is not found
30363         in LIB_NAME.
30364         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
30365         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
30366         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30367
30368 2009-10-14  Eric Blake  <ebb9@byu.net>
30369
30370         fchdir: avoid infinite recursion in mingw
30371         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
30372         recursing.
30373
30374         test-stat-time: port to mingw
30375         * tests/test-stat-time.c (force_unlink): Return a value.
30376         (test_ctime) [W32]: Fix compilation error.
30377         (nap): Don't call usleep with too large an argument.  Use
30378         force_unlink.
30379         * doc/pastposix-functions/usleep.texi (usleep): Document the
30380         portability issue.
30381
30382 2009-10-13  Jim Meyering  <meyering@redhat.com>
30383
30384         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
30385         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
30386         * modules/pipe-filter-ii: Likewise.
30387         * modules/sys_socket-tests: Likewise.
30388         * modules/tsearch-tests: Likewise.
30389         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
30390         (check): Depend on it.
30391
30392 2009-10-12  Eric Blake  <ebb9@byu.net>
30393
30394         utimens-tests: port to NFS file systems
30395         * tests/test-utimens.h (test_utimens): Refactor utimecmp
30396         comparisons to avoid spurious failures from timestamp drift
30397         between NFS machines.
30398
30399 2009-10-12  Eric Blake  <ebb9@byu.net>
30400
30401         stat-time-tests: minor cleanups
30402         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
30403         * tests/test-stat-time.c (nap): Separate assignment from call.
30404         Suggested by Paolo Bonzini and Bruno Haible.
30405
30406         sys_stat: guarantee struct timespec
30407         * lib/sys_stat.in.h (includes): Always include <time.h>
30408         * modules/sys_stat (Depends-on): Add time.
30409         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
30410         mode_t permission values.
30411         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
30412         get at subsecond timestamps.
30413
30414 2009-10-10  Eric Blake  <ebb9@byu.net>
30415
30416         futimens: new module
30417         * modules/futimens: New file.
30418         * lib/futimens.c (futimens): Likewise.
30419         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
30420         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
30421         we can work around Linux bugs.
30422         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30423         * modules/sys_stat (Makefile.am): Substitute them.
30424         * lib/sys_stat.in.h (futimens): Declare it.
30425         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30426         * doc/posix-functions/futimens.texi (futimens): Likewise.
30427         * modules/futimens-tests: New test.
30428         * tests/test-futimens.c: Likewise.
30429
30430         utimens: introduce fdutimens
30431         * lib/utimens.h (fdutimens): New prototype.
30432         * lib/utimens.c (gl_futimens): Move guts...
30433         (fdutimens): ...to new interface.
30434         * tests/test-utimens.c (do_fdutimens): Use it.
30435
30436         utimens: add UTIME_NOW and UTIME_OMIT support
30437         * lib/utimens.c (validate_timespec, update_timespec): New helper
30438         functions.
30439         (gl_futimens, lutimens): Use them.
30440         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
30441         stdbool, sys_stat.
30442         (Link): Mention resulting library dependency.
30443         * modules/utimecmp (Link): Likewise.
30444         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
30445         (Makefile.am): Pick up library dependency.
30446         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
30447         definition.
30448         * tests/test-sys_stat.c: Test the definitions.
30449         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
30450         * NEWS: Document library dependency.
30451
30452         utimecmp: support symlink timestamps
30453         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
30454         hashing when possible.  Use pathconf when available.
30455         (SYSCALL_RESOLUTION): Recognize tighter resolution.
30456         * modules/utimecmp (Depends-on): Add lstat.
30457
30458         utimens: add lutimens interface
30459         * lib/utimens.c (lutimens): New function.
30460         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
30461         * lib/utimens.h (lutimens): Declare new interface.
30462         * tests/test-utimens.c (main): Enhance test.
30463         * tests/test-lutimens.h (test_lutimens): New file.
30464         * modules/utimens-tests (Files): Distribute it.
30465         (Depends-on): Add symlink.
30466         (configure.ac): Check for usleep.
30467
30468         utimens: validate futimens usage
30469         * lib/utimens.c (gl_futimens): Require valid fd up front, using
30470         fewer syscalls on failure later on.  Avoid compiler warning on
30471         mingw.
30472         * modules/utimens (Depends-on): Add dup2.
30473
30474         utimens: add test
30475         * modules/utimens-tests: New test.
30476         * tests/test-utimens.h: New file.
30477         * tests/test-futimens.h: Likewise.
30478         * tests/test-utimens.c: Likewise.
30479
30480         doc: mention timestamp portability issues
30481         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
30482         instead.
30483         * doc/posix-functions/utime.texi (utime): Likewise.
30484         * doc/posix-functions/utimes.texi (utimes): Likewise.
30485         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
30486         instead.
30487         * doc/posix-functions/futimens.texi (futimens): Mention utimens
30488         module.
30489         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30490         Mention weakness with symlink timestamps.
30491         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
30492         to utimensat/futimens instead.
30493         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
30494
30495         test-dup2: enhance test
30496         * tests/test-dup2.c (main): Also check AT_FDCWD.
30497
30498         test-stat-time: avoid more spurious failures
30499         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
30500         xfs; and avoid race if the two timestamps cross quantization edge.
30501
30502         relocatable: prefer 'file system' over 'filesystem'
30503         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
30504         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
30505         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
30506         * doc/relocatable.texi (Enabling Relocatability): Likewise.
30507         * lib/relocatable.c (compute_curr_prefix): Likewise.
30508
30509 2009-10-10  Jim Meyering  <meyering@redhat.com>
30510
30511         stat-time-tests: check for the usleep function
30512         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
30513
30514 2009-10-10  Bruno Haible  <bruno@clisp.org>
30515
30516         * modules/xnanosleep: Put the Link section after the Include section.
30517
30518 2009-10-09  Eric Blake  <ebb9@byu.net>
30519
30520         dup2: work around FreeBSD 6.1 bug
30521         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
30522         * doc/posix-functions/dup2.texi (dup2): Document it.
30523         Reported by Nelson H. F. Beebe and Jim Meyering.
30524
30525         test-stat-time: port to buggy NFS clients
30526         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
30527         (test_ctime): Also skip test if mtime and ctime are skewed.
30528
30529         maint: prefer 'file system' over 'filesystem'
30530         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
30531         * doc/posix-functions/lstat.texi (lstat): Likewise.
30532         * lib/file-has-acl.c (file_has_acl): Likewise.
30533         * lib/fwriteerror.c [TEST]: Likewise.
30534         * tests/test-areadlink.h (test_areadlink): Likewise.
30535         * tests/test-areadlinkat-with-size.c (main): Likewise.
30536         * tests/test-areadlinkat.c (main): Likewise.
30537         * tests/test-canonicalize-lgpl.c (main): Likewise.
30538         * tests/test-canonicalize.c (main): Likewise.
30539         * tests/test-fstatat.c (main): Likewise.
30540         * tests/test-linkat.c (main): Likewise.
30541         * tests/test-lstat.h (test_lstat_func): Likewise.
30542         * tests/test-mkdir.h (test_mkdir): Likewise.
30543         * tests/test-readlink.h (test_readlink): Likewise.
30544         * tests/test-remove.c (main): Likewise.
30545         * tests/test-rename.h (test_rename): Likewise.
30546         * tests/test-renameat.c (main): Likewise.
30547         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30548         * tests/test-symlink.h (test_symlink): Likewise.
30549         * tests/test-symlinkat.c (main): Likewise.
30550         * tests/test-unlink.h (test_unlink_func): Likewise.
30551         * tests/test-unlinkat.c (main): Likewise.
30552
30553         maint: make realtime library usage explicit
30554         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
30555         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
30556         * modules/settime (Link): Likewise.
30557         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
30558
30559         test-stat-time: speed up execution
30560         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
30561         warning on mingw.
30562         (nap): New helper function.
30563         (prepare_test): Use it to reduce sleep time.
30564         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
30565         execution.
30566         * modules/stat-time-tests (configure.ac): Check for usleep.
30567
30568 2009-10-09  Jim Meyering  <meyering@redhat.com>
30569
30570         selinux-h: always use getfilecon wrappers
30571         * lib/getfilecon.c: New file.
30572         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
30573         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
30574         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
30575         (fgetfilecon): Provide a stub.
30576         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
30577         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
30578         file unconditionally.
30579         When <selinux/selinux.h> is found, arrange to use wrappers.
30580         * modules/selinux-h (Files): Add getfilecon.c.
30581         (Makefile.am): Substitute include-next-related bits
30582         into the now-always-generated selinux/selinux.h file.
30583         * doc/glibc-functions/lgetfilecon.texi: New file.
30584         * doc/glibc-functions/fgetfilecon.texi: New file.
30585         * doc/glibc-functions/getfilecon.texi: New file.
30586         * doc/glibc-functions/getfilecon-desc.texi: New file.
30587         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
30588         which to pull in the new files.
30589         * MODULES.html.sh (Misc): Add selinux-h.
30590
30591 2009-10-08  Jim Meyering  <meyering@redhat.com>
30592
30593         unistd: fix comment typo
30594         * lib/unistd.in.h (euidaccess): Fix a comment typo.
30595
30596 2009-10-08  Eric Blake  <ebb9@byu.net>
30597
30598         areadlink: use SIZE_MAX consistently
30599         * modules/areadlink (Depends-on): Add stdint.
30600         * modules/areadlink-with-size (Depends-on): Likewise.
30601         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
30602         gives NULL; drop sys/types, since unistd gives size_t; and add
30603         stdint for SIZE_MAX.
30604         (SIZE_MAX): Rely on headers.
30605         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
30606         and add stdint.
30607         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
30608         (SIZE_MAX): Likewise.
30609         (INITIAL_BUF_SIZE): Turn into enum.
30610         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
30611
30612 2009-10-08  Jim Meyering  <meyering@redhat.com>
30613
30614         areadlinkat: avoid compilation failure
30615         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
30616         Fix typo in comment.
30617
30618 2009-10-07  Eric Blake  <ebb9@byu.net>
30619
30620         areadlinkat-with-size: new module
30621         * modules/areadlinkat-with-size: New module.
30622         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
30623         * lib/areadlink.h (areadlinkat): Declare it.
30624         * MODULES.html.sh (File system functions): Mention it.
30625         * modules/areadlinkat-with-size-tests: New test.
30626         * tests/test-areadlinkat-with-size.c: New file.
30627
30628         xreadlinkat: new module
30629         * modules/xreadlinkat: New module.
30630         * lib/xreadlinkat.c (xreadlinkat): New file.
30631         * lib/xreadlink.h (xreadlinkat): Declare it.
30632         * MODULES.html.sh (File system functions): Mention it.
30633
30634         areadlinkat: new module
30635         * lib/at-func.c (FUNC_FAIL): New define.
30636         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
30637         * modules/areadlinkat: New module.
30638         * lib/linkat.c (areadlinkat): Move...
30639         * lib/areadlinkat.c (areadlinkat): ...to new file.
30640         * lib/areadlink.h (areadlinkat): Declare it.
30641         * modules/linkat (Depends-on): Add areadlinkat.
30642         * MODULES.html.sh (File system functions): Mention it.
30643         * modules/areadlinkat-tests: New test.
30644         * tests/test-areadlinkat.c: New file.
30645
30646         areadlink, areadlink-with-size: add tests
30647         * modules/areadlink-tests: New test.
30648         * modules/areadlink-with-size-tests: Likewise.
30649         * tests/test-areadlink.h: New file.
30650         * tests/test-areadlink.c: Likewise.
30651         * tests/test-areadlink-with-size.c: Likewise.
30652
30653         maint: minor cleanups
30654         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
30655         _UNUSED_PARAMETER_ instead.
30656         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
30657         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
30658         * modules/linkat-tests (Files): Distribute test-link.h.
30659
30660         openat, utimens: whitespace cleanup
30661         * lib/openat.c: Prefer space throughout, rather than mix of 8
30662         spaces vs. tabs.
30663         * lib/at-func.c: Likewise.
30664         * lib/utimens.c: Likewise.
30665
30666         openat: avoid using wrong fd
30667         * lib/openat.c (openat_permissive): Reject user's fd if saving the
30668         working directory chooses same fd.
30669         * lib/at-func.c (AT_FUNC_NAME): Likewise.
30670
30671         mkdir, mkdirat: fix cygwin 1.5.x bug
30672         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
30673         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
30674         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
30675         bug.
30676         (gl_PREREQ_MKDIR): Delete unused macro.
30677         * modules/mkdir (Files): Track file rename.
30678         (configure.ac): Update macro name.
30679         * modules/openat (Depends-on): Add mkdir.
30680         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
30681
30682         mkdir, mkdirat: add tests
30683         * modules/mkdir-tests: New test.
30684         * tests/test-mkdir.h: New file.
30685         * tests/test-mkdir.c: Likewise.
30686         * tests/test-mkdirat.c: Likewise.
30687         * modules/openat-tests (Files): Add new files.
30688         (Makefile.am): Run new test.
30689
30690 2009-10-06  Eric Blake  <ebb9@byu.net>
30691
30692         doc: tweak *at function documentation
30693         * doc/posix-functions/faccessat.texi (faccessat): Mention
30694         known issue with replacement.
30695         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
30696         * doc/posix-functions/linkat.texi (linkat): Likewise.
30697         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
30698         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
30699         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30700         * doc/posix-functions/renameat.texi (renameat): Likewise.
30701         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30702
30703         openat: fix GNU/Hurd bug in unlinkat
30704         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
30705         broken.
30706         * doc/posix-functions/unlink.texi (unlink): Document this.
30707         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
30708
30709         fdopendir: fix GNU/Hurd bug
30710         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
30711         allowing non-directory fds.
30712         * lib/fdopendir.c (rpl_fdopendir): Work around it.
30713         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30714         * modules/dirent (Makefile.am): Substitute it.
30715         * lib/dirent.in.h (fdopendir): Declare replacement.
30716         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
30717         * tests/test-fdopendir.c (main): Test something other than
30718         /dev/null, since on Hurd that behaves like a directory.
30719
30720         test-symlink: port to GNU/Hurd
30721         * tests/test-symlink.h (test_symlink): Relax expected errno.
30722
30723         doc: tweak more cygwin information
30724         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
30725         now compatible with glibc.
30726         * doc/posix-functions/getopt.texi (getopt): Likewise.
30727
30728         getopt-gnu: add another test
30729         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
30730         guarantee behavior relied on by m4.
30731         * tests/test-getopt.c (main): Use it.
30732         * modules/getopt-posix-tests (Depends-on): Add setenv.
30733         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
30734
30735         getopt: fix compilation on darwin
30736         * lib/getopt.in.h (includes): Leave breadcrumbs during system
30737         include.
30738         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
30739         Reported by Ludovic Courtès.
30740
30741 2009-10-06  Bruno Haible  <bruno@clisp.org>
30742
30743         * modules/size_max (Description): Discourage its use.
30744         Reported by Simon Josefsson.
30745
30746 2009-10-06  Jim Meyering  <meyering@redhat.com>
30747
30748         linkat: avoid compilation failure
30749         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
30750
30751 2009-10-05  Eric Blake  <ebb9@byu.net>
30752
30753         linkat: support Linux 2.6.17
30754         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
30755         linkat on Linux, but allow cache variable override.
30756         * lib/linkat.c (rpl_linkat): Define override.
30757         * modules/linkat (Depends-on): Add symlinkat.
30758         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
30759         * modules/unistd (Makefile.am): Substitute it.
30760         * lib/unistd.in.h (linkat): Declare replacement.
30761         Reported by Pádraig Brady.
30762
30763         quotearg: port test to systems with C.UTF-8 locale
30764         * tests/test-quotearg.c (struct result_strings): Add another
30765         member, differentiating between C.ASCII and C.UTF-8 handling.
30766         (compare_strings): Add parameter.
30767         (main): Adjust all callers.
30768
30769         getopt: avoid clash with FreeBSD _getopt_internal
30770         * lib/getopt.in.h (_getopt_internal): Override the name.
30771         * lib/getopt_int.h (includes): Pick up any overrides.
30772         Reported by Reuben Thomas.
30773
30774         hash: allow C89 compilation
30775         * lib/hash.c (check_tuning): Move declaration before statement.
30776         Reported by Reuben Thomas.
30777
30778 2009-10-05  Karl Berry  <karl@gnu.org>
30779
30780         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
30781
30782 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
30783             Bruno Haible  <bruno@clisp.org>
30784
30785         * lib/uname.c (uname): Use a table-driven algorithm to compute
30786         Windows NT versions.
30787
30788 2009-10-04  Bruno Haible  <bruno@clisp.org>
30789
30790         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
30791         program_invocation_short_name.
30792         * modules/progname (configure.ac): Test for presence of
30793         program_invocation_short_name.
30794         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
30795
30796 2009-10-04  Bruno Haible  <bruno@clisp.org>
30797
30798         * lib/progname.c (set_program_name): Fix comment.
30799         Reported by Jim Meyering.
30800
30801 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
30802             Bruno Haible  <bruno@clisp.org>
30803
30804         * lib/uname.c: Include <string.h>.
30805         (uname): Do only one call to GetVersionEx in the common case.
30806
30807 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
30808             Bruno Haible  <bruno@clisp.org>
30809
30810         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
30811         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
30812         (uname): Add support for Windows CE and various non-x86 CPU types.
30813
30814 2009-10-03  Bruno Haible  <bruno@clisp.org>
30815
30816         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
30817         invocation to tests/configure.ac.
30818         Reported by Ian Beckwith <ianb@erislabs.net>.
30819
30820 2009-10-02  Eric Blake  <ebb9@byu.net>
30821
30822         fchdir: avoid compiler warning
30823         * lib/fchdir.c (canonicalize_file_name)
30824         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
30825
30826         test-open: support mingw errno values
30827         * tests/test-open.h (test_open): Relax test.
30828         * tests/test-fopen.h (test_fopen): Likewise.
30829         * tests/test-openat-safer.c (main): Likewise.
30830
30831         open: fix opening directory on mingw
30832         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
30833
30834         test-open: on GNU/Hurd, /dev/null is a directory
30835         * tests/test-fopen.h (main): Rename...
30836         (test_fopen): ...to this.  Use a guaranteed non-directory when
30837         confirming open behavior on trailing slash.
30838         * tests/test-openat-safer.c (main): Likewise.
30839         * tests/test-open.h (main): Likewise....
30840         (test_open): ...to this.
30841         * tests/test-fopen.c (main): Adjust caller.
30842         * tests/test-fopen-safer.c (main): Likewise.
30843         * tests/test-open.c (main): Likewise.
30844         * tests/test-fcntl-safer.c (main): Likewise.
30845         Reported by Samuel Thibault.
30846
30847         rename, fchdir: don't ignore chdir failure
30848         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
30849         * lib/rename.c (rpl_rename) [W32]: Likewise.
30850         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
30851         an empty destination directory if source cannot be renamed,
30852         although there is still possibility for failure.
30853         * doc/posix-functions/rename.texi (rename): Document the race.
30854         Reported by Jim Meyering.
30855
30856         maint: cleanup whitespace in recent commits
30857         * lib/rename.c (rpl_rename): Remove tabs.
30858         * tests/test-link.h (test_link): Likewise.
30859         * lib/fchdir.c (get_name): Likewise.
30860         Reported by Jim Meyering.
30861
30862 2009-10-02  Ben Pfaff  <blp@gnu.org>
30863
30864         relocatable-prog-wrapper: Add missing dependency on
30865         double-slash-root.
30866         * modules/relocatable-prog-wrapper: Add dependency.
30867         Reported by Ian Beckwith <ianb@erislabs.net>.
30868
30869 2009-10-02  Eric Blake  <ebb9@byu.net>
30870
30871         renameat: fix Solaris bugs
30872         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
30873         needed fixing.
30874         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
30875         * modules/stdio (Makefile.am): Substitute it.
30876         * lib/stdio.in.h (renameat): Declare replacement.
30877         * lib/renameat.c (rpl_renameat): Implement fix.
30878
30879         renameat: new module
30880         * modules/renameat: New file.
30881         * lib/renameat.c (renameat): Likewise.
30882         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
30883         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
30884         * modules/stdio (Makefile.am): Substitute them.
30885         * lib/stdio.in.h (renameat): Declare it.
30886         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30887         * doc/posix-functions/renameat.texi (renameat): Likewise.
30888         * modules/renameat-tests: New test.
30889         * tests/test-renameat.c: Likewise.
30890
30891         rename: fix mingw bugs
30892         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
30893         directory overwrite bugs.
30894
30895         rename: fix another cygwin 1.5 bug
30896         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
30897         checks.
30898         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
30899         unnecessary cygwin workarounds.  Also work around bug with moving
30900         full directory onto an empty one.
30901         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
30902
30903         rename-dest-slash: merge into rename module
30904         * modules/rename-dest-slash (Status): Mark obsolete.
30905         (Depends-on): Add rename.
30906         (Files): Let rename do it all.
30907         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
30908         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
30909         * m4/rename-dest-slash.m4: ...so this file can be deleted.
30910         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
30911         * lib/rename.c (rpl_rename): Update comments.
30912
30913         rename: fix cygwin 1.5.x bugs
30914         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
30915         * lib/rename.c (rpl_rename): Work around them.
30916         * modules/rename (Depends-on): Add same-inode.
30917
30918         rename: fix Solaris 10 bug
30919         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
30920         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
30921         was the only bug.
30922
30923         rename: fix Solaris 9 bug
30924         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
30925         on non-directory.  Avoid calling exit.
30926         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
30927         strdup.
30928         * modules/rename-tests (Depends-on): Drop lstat.
30929         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
30930         (gl_PREREQ_RENAME): Delete unused macro.
30931
30932         rename-dest-slash: fix NetBSD bug
30933         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
30934         links.
30935         * modules/rename-dest-slash (Depends-on): Add same-inode.
30936
30937         rename-tests: new test, exposes several platform bugs
30938         * modules/rename-tests: New file.
30939         * tests/test-rename.h: Likewise.
30940         * tests/test-rename.c: Likewise.
30941         * doc/posix-functions/rename.texi (rename): Improve documentation,
30942         including bugs that will eventually be fixed in gnulib.
30943
30944 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
30945
30946         * lib/uname.c: Include <stdlib.h>
30947         (uname): Assume version info is available.
30948
30949 2009-10-02  Jim Meyering  <meyering@redhat.com>
30950
30951         gnu-web-doc-update: correct --help output
30952         * build-aux/gnu-web-doc-update: Make --help output relevant.
30953
30954         gnu-web-doc-update: add standard options
30955         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
30956
30957         gnu-web-doc-update: New module.
30958         Use this script to automatically update the on-line web documentation
30959         for your GNU project at http://www.gnu.org/software/$pkg/manual/
30960         * modules/gnu-web-doc-update: New file, from coreutils.
30961         * build-aux/gnu-web-doc-update: New script.
30962
30963 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
30964
30965         link: LoadLibrary is not needed.
30966         * lib/link.c: Use GetModuleHandle.
30967
30968 2009-10-01  Eric Blake  <ebb9@byu.net>
30969
30970         getopt: bump serial number
30971         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
30972         change.
30973
30974         tests: tighten link, rmdir, and remove tests
30975         * tests/test-link.h (includes): No need to use <config.h> here.
30976         Clean up if directory hard link was created, otherwise test for
30977         trailing '.'.
30978         * tests/test-linkat.c (main): Simplify.
30979         * tests/test-remove.c (main): Enhance test for trailing '.'.
30980         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30981
30982 2009-10-01  Jim Meyering  <meyering@redhat.com>
30983
30984         maint.mk: requiring "make major" was annoying, for a "minor" release.
30985         What is intended is "stable", to contrast with alpha and beta,
30986         so require "make stable", not "make major".
30987         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
30988         (get_tool_versions): Likewise.
30989         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
30990
30991 2009-09-30  Ben Pfaff  <blp@gnu.org>
30992
30993         Fix broken build of replacement for Windows tmpfile().
30994         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
30995         flags argument added along with the 'mkostemp' module.
30996
30997 2009-09-28  Bruno Haible  <bruno@clisp.org>
30998
30999         Avoid identifier clash with POSIX function 'remove' defined as a macro.
31000         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
31001         to 'remove_elt'.
31002         (gl_list_remove): Update.
31003         * lib/gl_list.c (gl_list_remove): Update.
31004         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
31005         to 'remove_elt'.
31006         (gl_oset_remove): Update.
31007         * lib/gl_list.c (gl_oset_remove): Update.
31008         Reported by Eric Blake.
31009
31010 2009-09-28  Eric Blake  <ebb9@byu.net>
31011
31012         doc: mention yet more cygwin 1.7 status
31013         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
31014         cygwin.
31015         * doc/glibc-functions/execvpe.texi (execvpe): New file.
31016         * doc/gnulib.texi (Glibc unistd.h): Mention it.
31017
31018         argp: fix test failure
31019         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
31020         that are not upper-case.  Pass correct range to tolower.
31021
31022 2009-09-27  Jim Meyering  <meyering@redhat.com>
31023
31024         test-yesno: work around sparc-dash here-document infelicity
31025         Without this change, the literal \177 byte in a here document
31026         would make dash 0.5.5.1-3 access uninitialized memory.
31027         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
31028         Instead, use a marker, "@", and filter through tr to create the desired
31029         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
31030
31031 2009-09-27  Bruno Haible  <bruno@clisp.org>
31032
31033         Disable untested support for new flavours of ACLs on AIX.
31034         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
31035         progress.
31036         * lib/set-mode-acl.c (qset_acl): Likewise.
31037
31038 2008-12-07  Bruno Haible  <bruno@clisp.org>
31039
31040         Add support for new flavours of ACLs on AIX. (Untested.)
31041         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
31042         (file_has_acl): Add support for newer AIX.
31043         * lib/set-mode-acl.c (qset_acl): Likewise.
31044         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
31045         Rainer Tammer <tammer@tammer.net>.
31046
31047 2009-09-26  Eric Blake  <ebb9@byu.net>
31048
31049         argp: fix compilation of getopt
31050         * lib/getopt.in.h (includes): Use different guard than glibc.
31051         Reported by Sergey Poznyakoff.
31052
31053         doc: mention more cygwin 1.7 status
31054         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
31055         bug.
31056         * doc/posix-functions/execl.texi (execl): Likewise.
31057         * doc/posix-functions/execle.texi (execle): Likewise.
31058         * doc/posix-functions/execlp.texi (execlp): Likewise.
31059         * doc/posix-functions/execv.texi (execv): Likewise.
31060         * doc/posix-functions/execve.texi (execve): Likewise.
31061         * doc/posix-functions/execvp.texi (execvp): Likewise.
31062         * doc/glibc-functions/canonicalize_file_name.texi
31063         (canonicalize_file_name): Cygwin 1.7 now provides this.
31064         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
31065         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
31066         on AT_SYMLINK_NOFOLLOW.
31067
31068 2009-09-24  Eric Blake  <ebb9@byu.net>
31069
31070         test-linkat: make test more robust
31071         * tests/test-linkat.c (main): Avoid collision with EEXIST.
31072
31073         getopt: fix inclusion guards for cygwin
31074         * modules/getopt-posix (Depends-on): Add include-next.
31075         (Makefile.am): Substitute more items in replacement header.
31076         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
31077         <getopt.h>.
31078         * lib/getopt.in.h (includes): Use split inclusion guard, and
31079         prefer <getopt.h> over include <unistd.h> when one is present.
31080         (option): Also override name of 'struct option'.
31081
31082         same-inode: revert prior change; it is not yet ready
31083         * NEWS: Undo mention of this change.
31084         * lib/same-inode.h (same-inode.h): Undo tri-state change.
31085         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
31086         * lib/cycle-check.c (cycle_check): Likewise.
31087         * lib/same.c (same_name): Likewise.
31088         * lib/at-func2.c (at_func2): Likewise.
31089
31090 2009-09-23  Eric Blake  <ebb9@byu.net>
31091
31092         linkat: new module
31093         * modules/linkat: New file.
31094         * lib/at-func2.c (at_func2): Likewise.
31095         * lib/linkat.c (linkat): Likewise.
31096         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
31097         * lib/openat-priv.h (at_func2): Add declaration.
31098         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31099         * modules/unistd (Makefile.am): Substitute them.
31100         * lib/unistd.in.h (linkat): Declare it.
31101         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31102         * doc/posix-functions/linkat.texi (linkat): Likewise.
31103         * doc/posix-functions/link.texi (link): Tweak wording.
31104         * tests/test-link.c (main): Move guts...
31105         * tests/test-link.h (test_link): ...into new file.
31106         * modules/linkat-tests: New test.
31107         * tests/test-linkat.c: Likewise.
31108         * modules/link-tests (Files): Ship new file.
31109         (Depends-on): Add stdbool.
31110
31111         dirname: add library-safe mdir_name
31112         * lib/dirname.h (mdir_name): New prototype.
31113         * lib/dirname.c (dir_name): Move guts...
31114         (mdir_name): ...to new function that avoids xalloc_die.
31115
31116         fchdir: another mingw fix
31117         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
31118         * lib/fchdir.c (get_name): New helper method; skips canonicalize
31119         on mingw (where it has not yet been ported), and make it optional
31120         elsewhere.
31121         (_gl_register_fd): Use it.
31122
31123         same-inode: make SAME_INODE tri-state, to port to mingw
31124         * NEWS: Mention this change.
31125         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
31126         st_ino always being 0.
31127         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
31128         * lib/cycle-check.c (cycle_check): Likewise.
31129         * lib/same.c (same_name): Likewise.
31130
31131         lstat: avoid mingw compilation error
31132         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
31133         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
31134         lstat ourselves.
31135         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
31136         was adequate.
31137         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
31138         the checks for lstat.
31139         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
31140
31141         link: fix test failure on Solaris 9
31142         * lib/link.c (rpl_link): Don't assume link will catch bogus
31143         trailing slash on source.
31144
31145         test-symlinkat: enhance test
31146         * tests/test-readlink.c (main): Move guts...
31147         * tests/test-readlink.h (test_readlink): ...into new file.
31148         * tests/test-symlink.c (main): Move guts...
31149         * tests/test-symlink.h (test_symlink): ...into new file.
31150         * tests/test-symlinkat.c (main): Use new files for further
31151         coverage.
31152         (do_symlink, do_readlink): New helper functions.
31153         * modules/symlink-tests (Files): Ship new file.
31154         (Depends-on): Add stdbool.
31155         * modules/readlink-tests (Files): Ship new file.
31156         (Depends-on): Add stdbool.
31157         * modules/symlinkat-tests (Files): Use new files.
31158
31159 2009-09-23  Eric Blake  <ebb9@byu.net>
31160
31161         readlink: document portability issue with symlink length
31162         * doc/posix-functions/lstat.texi (lstat): Mention that some file
31163         systems have bogus st_size on symlinks, and mention the
31164         areadlink-with-size module.
31165         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
31166         * doc/posix-functions/readlink.texi (readlink): Mention the
31167         areadlink module, and ERANGE failure.
31168         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31169         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
31170
31171         readlink: fix Solaris 9 bug with trailing slash
31172         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
31173         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
31174         * doc/posix-functions/readlink.texi (readlink): Document this.
31175         * modules/readlink-tests: New test.
31176         * tests/test-readlink.c: Likewise.
31177
31178         readlink: fix cygwin 1.5.x bug with return type
31179         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
31180         * lib/unistd.in.h (readlink): Use ssize_t.
31181         * lib/readlink.c (readlink): Likewise.
31182         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31183         * modules/unistd (Makefile.am): Substitute it.
31184         * lib/unistd.in.h (readlink): Declare replacement.
31185         * doc/posix-functions/readlink.texi (readlink): Document this.
31186
31187         symlink: use throughout gnulib
31188         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
31189         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
31190         symlink is not used.
31191         * modules/symlinkat (Depends-on): Add symlink.
31192         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31193         * modules/canonicalize-tests (Depends-on): Likewise.
31194         * modules/lstat-tests (Depends-on): Likewise.
31195         * modules/openat-tests (Depends-on): Likewise.
31196         * modules/remove-tests (Depends-on): Likewise.
31197         * modules/rmdir-tests (Depends-on): Likewise.
31198         * modules/unlink-tests (Depends-on): Likewise.
31199         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
31200         * tests/test-canonicalize.c (symlink): Likewise.
31201         * tests/test-fstatat.c (symlink): Likewise.
31202         * tests/test-lstat.c (symlink): Likewise.
31203         * tests/test-remove.c (symlink): Likewise.
31204         * tests/test-rmdir.c (symlink): Likewise.
31205         * tests/test-unlink.c (symlink): Likewise.
31206         * tests/test-unlinkat.c (symlink): Likewise.
31207
31208         symlink: new module, for Solaris 9 bug
31209         * modules/symlink: New file.
31210         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
31211         * lib/symlink.c: Likewise.
31212         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
31213         * modules/unistd (Makefile.am): Substitute them.
31214         * lib/unistd.in.h (symlink): Declare replacement.
31215         * MODULES.html.sh (File system functions): Mention it.
31216         * doc/posix-functions/symlink.texi (symlink): Likewise.
31217         * modules/symlink-tests: New test.
31218         * tests/test-symlink.c: Likewise.
31219
31220 2009-09-23  Bruno Haible  <bruno@clisp.org>
31221
31222         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
31223         when needed.
31224         Test case: gnulib-tool --import --with-tests atexit inttypes.
31225         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
31226
31227 2009-09-23  Bruno Haible  <bruno@clisp.org>
31228
31229         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
31230         subcommand, not in a subshell.
31231
31232 2009-09-22  Eric Blake  <ebb9@byu.net>
31233
31234         unistd: sort replacement declarations
31235         * lib/unistd.in.h: Sort declarations.
31236
31237         open, openat: minor optimization
31238         * lib/open.c (open): If open succeeded, len is non-zero.
31239         * lib/openat.c (rpl_openat): Likewise.
31240
31241         link-follow: ensure correct result
31242         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
31243         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
31244         distinguish between possible failures.
31245
31246 2009-09-21  Eric Blake  <ebb9@byu.net>
31247
31248         fts: avoid compiler warning
31249         * lib/fts.c (dirent_inode_sort_may_be_useful)
31250         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
31251
31252 2009-09-19  Bruno Haible  <bruno@clisp.org>
31253
31254         * lib/progreloc.c (canonicalize_file_name): New declaration.
31255
31256 2009-09-19  Eric Blake  <ebb9@byu.net>
31257
31258         link: fix quoting
31259         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
31260
31261         openat: fix openat bugs on Solaris 9
31262         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
31263         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
31264         * modules/openat (Depends-on): Add open.
31265         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
31266         * modules/fcntl-h (Makefile.am): Substitute it.
31267         * lib/fcntl.in.h (openat): Declare replacement.
31268         * doc/posix-functions/openat.texi (openat): Document this.
31269
31270         openat: move fstatat and unlinkat into correct files
31271         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
31272         compiled.
31273         * lib/openat.c (fstatat, unlinkat): Move...
31274         * lib/fstatat.c (fstatat): ...into correct files.
31275         * lib/unlinkat.c (unlinkat): Likewise.
31276
31277         openat: fix unlinkat bugs on Solaris 9
31278         * lib/unlinkat.c (unlinkat): New file.
31279         * modules/openat (Depends-on): Add unlink.
31280         (Files): Distribute it.
31281         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
31282         trailing slash behavior is broken.
31283         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31284         * modules/unistd (Makefile.am): Substitute it.
31285         * lib/unistd.in.h (unlinkat): Declare replacement.
31286         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
31287
31288         openat: fix fstatat bugs on Solaris 9
31289         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
31290         stat.
31291         * doc/posix-functions/fstatat.texi (fstatat): Document this.
31292
31293         test-unlinkat: enhance test, to expose Solaris 9 bug
31294         * tests/test-unlink.c (main): Factor guts...
31295         * tests/test-unlink.h (test_rmdir_func): ...into new file.
31296         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
31297         * tests/test-rmdir.c (main): Adjust caller.
31298         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
31299         (unlinker): New helper function.
31300         (rmdirat): Enhance check.
31301         * modules/rmdir-tests (Depends-on): Add stdbool.
31302         * modules/unlink-tests (Depends-on): Likewise.
31303         (Files): Add test-unlink.h.
31304         * modules/openat-tests (Files): Likewise.
31305         (Depends-on): Add unlinkdir.
31306
31307         test-fstatat: new test, to expose Solaris 9 bugs
31308         * tests/test-stat.c (main): Factor guts...
31309         * tests/test-stat.h (test_stat_func): ...into new file.
31310         * tests/test-lstat.c (main): Factor guts...
31311         * tests/test-lstat.h (test_lstat_func): ...into new file.
31312         * tests/test-fstatat.c: New file.
31313         * modules/stat-tests (Files): Add test-stat.h.
31314         * modules/lstat-tests (Files): Add test-lstat.h.
31315         (Depends-on): Add stdbool.
31316         * modules/openat-tests (Depends-on): Add pathmax.
31317         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
31318         (Makefile.am): Run new test.
31319
31320         remove: new module, for mingw and Solaris 9 bugs
31321         * modules/remove: New file.
31322         * lib/remove.c: Likewise.
31323         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
31324         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
31325         * modules/stdio (Makefile.am): Use them.
31326         * lib/stdio.in.h (remove): Declare replacement.
31327         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31328         * doc/posix-functions/remove.texi (remove): Likewise.
31329         * modules/remove-tests: New test.
31330         * tests/test-remove.c: Likewise.
31331
31332         unlink: new module, for Solaris 9 bug
31333         * modules/unlink: New file.
31334         * lib/unlink.c: Likewise.
31335         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
31336         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31337         * modules/unistd (Makefile.am): Use them.
31338         * lib/unistd.in.h (stat): Declare replacement.
31339         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31340         * doc/posix-functions/unlink.texi (unlink): Likewise.
31341         * modules/unlink-tests: New test.
31342         * tests/test-unlink.c: Likewise.
31343
31344         lstat: fix Solaris 9 bug
31345         * lib/lstat.c (lstat): Also check for trailing slash on
31346         non-symlink, non-directories.  Use stat module to simplify logic.
31347         * doc/posix-functions/lstat.texi (lstat): Document it.
31348         * modules/lstat-tests (Depends-on): Add errno, same-inode.
31349         (configure.ac): Check for symlink.
31350         * tests/test-lstat.c (main): Add more tests.
31351
31352         stat: add as dependency to other modules
31353         * modules/chown (Depends-on): Add stat.
31354         * modules/euidaccess (Depends-on): Likewise.
31355         * modules/fchdir (Depends-on): Likewise.
31356         * modules/isdir (Depends-on): Likewise.
31357         * modules/link (Depends-on): Likewise.
31358         * modules/lstat (Depends-on): Likewise.
31359         * modules/mkdir-p (Depends-on): Likewise.
31360         * modules/modechange (Depends-on): Likewise.
31361         * modules/open (Depends-on): Likewise.
31362         * modules/readlink (Depends-on): Likewise.
31363         * modules/same (Depends-on): Likewise.
31364
31365         stat: fix Solaris 9 bug
31366         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
31367         slash.
31368         * lib/stat.c (rpl_stat): Work around it.
31369         * doc/posix-functions/stat.texi (stat): Update documentation.
31370
31371         stat: new module, for mingw bug
31372         * modules/stat: New file.
31373         * lib/stat.c: Likewise.
31374         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
31375         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31376         * modules/sys_stat (Makefile.am): Use them.
31377         * lib/sys_stat.in.h (stat): Declare replacement.
31378         * lib/openat.c (fstatat): Deal with lstat and stat being function
31379         macros.
31380         * modules/openat (Depends-on): Add inline.
31381         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31382         * doc/posix-functions/stat.texi (stat): Likewise.
31383         * modules/stat-tests: New test.
31384         * tests/test-stat.c: Likewise.
31385
31386 2009-09-19  Jim Meyering  <meyering@redhat.com>
31387
31388         syntax-check: detect unnecessary inclusion of canonicalize.h
31389         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
31390
31391 2009-09-19  Eric Blake  <ebb9@byu.net>
31392
31393         canonicalize-lgpl: adjust clients to use correct header
31394         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31395         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
31396         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
31397         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
31398         * lib/progreloc.c (includes): Likewise.
31399
31400 2009-09-19  Jim Meyering  <meyering@redhat.com>
31401
31402         test-posixtm.c: correct a comment
31403         * tests/test-posixtm.c: Correct first-line comment.
31404         Spotted by Eric Blake.
31405
31406 2009-09-16  Jim Meyering  <meyering@redhat.com>
31407
31408         posixtm-tests: make T const-correct; add a test case
31409         * tests/test-posixtm.c (T): Declare const.
31410         Add a test for -(2^31+1).
31411         Remove useless can-succeed-only-in-2002 test.
31412
31413         posixtm-tests: adjust the sole failing test
31414         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
31415         expected output matches what mktime now produces.  Cross-checked via
31416         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
31417
31418         posixtm: move #ifdef'd tests into a new module
31419         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
31420         * tests/test-posixtm.c: ... this new file.
31421         * modules/posixtm-tests: New module.
31422
31423 2009-09-19  Eric Blake  <ebb9@byu.net>
31424
31425         openat: simplify use of at-func.c
31426         * lib/at-func.c (includes): Include prerequisites here, to
31427         simplify requirements on client files.
31428         * lib/openat-priv.h: Add double-inclusion guard.
31429         * lib/faccessat.c (includes): Simplify.
31430         * lib/fchmodat.c (includes): Likewise.
31431         * lib/fchownat.c (includes): Likewise.
31432         * lib/mkdirat.c (includes): Likewise.
31433         * lib/mkfifoat.c (includes): Likewise.
31434         * lib/symlinkat.c (includes): Likewise.
31435
31436         openat: allow return of fd 0
31437         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
31438         * modules/save-cwd (Depends-on): Replace fcntl-safer with
31439         unistd-safer.
31440         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
31441         <fcntl.h>; this module does not leak fds.
31442         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
31443         must be allowed to return 0, leaving openat_safer to add the
31444         safety.
31445         (openat_permissive): Avoid writing to just-opened fd 2 if
31446         restoring the current directory fails.
31447         * lib/openat-die.c (openat_restore_fail): Add comment.
31448         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
31449         (save_cwd): Guarantee safe fd, but without use of open_safer.
31450         * tests/test-openat.c: New test.
31451         * modules/openat-tests (Files, Makefile.am): Distribute and build
31452         new file.
31453
31454         relocatable-prog-wrapper: fix build
31455         * modules/relocatable-prog-wrapper (Files): Update name of
31456         canonicalize m4 file, broken on 2009-09-17.
31457         Reported by emad hajjar <aleppos@hotmail.com>.
31458
31459 2009-09-19  Bruno Haible  <bruno@clisp.org>
31460
31461         * lib/safe-alloc.h: Use the standard header with GPL copyright.
31462         * lib/safe-alloc.c: Likewise.
31463         Reported by Ian Beckwith <ianb@erislabs.net>.
31464
31465 2009-09-18  Bruno Haible  <bruno@clisp.org>
31466
31467         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
31468         Reported by <erobles@sensacd.com.mx>.
31469
31470 2009-09-17  Eric Blake  <ebb9@byu.net>
31471
31472         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
31473         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
31474         slashes when checking if last component is missing.
31475         * tests/test-canonicalize.c (main): Test this.
31476
31477         canonicalize, canonicalize-lgpl: honor // if distinct from /
31478         * modules/canonicalize (Files): Add double-slash-root.m4.
31479         * modules/canonicalize-lgpl (Files): Likewise.
31480         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31481         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
31482         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
31483         fallback definition.
31484         (canonicalize_filename_mode): Use it to protect //.
31485         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
31486         (__realpath): Likewise.
31487         * tests/test-canonicalize.c (main): Test this.
31488         * tests/test-canonicalize-lgpl.c (main): Likewise.
31489         * modules/canonicalize-tests (Depends-on): Add same-inode.
31490         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31491
31492         canonicalize-lgpl: fix glibc bug with trailing slash
31493         * m4/canonicalize-lgpl.m4: Move contents...
31494         * m4/canonicalize.m4: ...here.
31495         (gl_CANONICALIZE_LGPL): Factor realpath check...
31496         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
31497         glibc 2.3.5 bug, fixed 2005-04-27.
31498         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
31499         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
31500         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
31501         * modules/canonicalize-lgpl (Files): Manage file rename.
31502         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31503         * modules/stdlib (Makefile.am): Substitute witness.
31504         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
31505         is needed.
31506         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
31507         replacement is required.
31508         * lib/canonicalize.c (canonicalize_file_name): Likewise.
31509         * doc/glibc-functions/canonicalize_file_name.texi
31510         (canonicalize_file_name): Document this.
31511         * doc/posix-functions/realpath.texi (realpath): Likewise.
31512
31513         canonicalize-lgpl: reject non-directory with trailing slash
31514         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
31515         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
31516         catches failures in glibc 2.3.5.
31517         * tests/test-canonicalize.c (main): Likewise.
31518
31519         canonicalize-lgpl: use native realpath if it works
31520         * lib/canonicalize-lgpl.c (realpath): Guard with
31521         FUNC_REALPATH_WORKS.
31522         * lib/stdlib.in.h (realpath): Make declaration optional based on
31523         HAVE_REALPATH.
31524         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
31525         native realpath works.
31526         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31527         * modules/stdlib (Makefile.am): Substitute witness.
31528
31529         canonicalize, canonicalize-lgpl: use <stdlib.h>
31530         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
31531         (Include): Mention <stdlib.h>.
31532         (configure.ac): Mention functions we provide.
31533         * modules/canonicalize (configure.ac): Likewise.
31534         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
31535         realpath if canonicalize_file_name is missing.
31536         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
31537         * modules/stdlib (Makefile.am): Substitute witnesses.
31538         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
31539         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
31540         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
31541         * NEWS: Document this.
31542         * doc/glibc-functions/canonicalize_file_name.texi
31543         (canonicalize_file_name): Likewise.
31544         * doc/posix-functions/realpath.texi (realpath): Likewise.
31545         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
31546
31547         test-canonicalize: consolidate into single C program
31548         * tests/test-canonicalize.sh: Delete; move setup into...
31549         * tests/test-canonicalize.c (main): ...the program, making it
31550         easier to run in debugger.  Add some tests.
31551         * modules/canonicalize-tests (Files): Remove unused file.
31552         (Depends-on): Add progname.
31553         (configure.ac, Makefile.am): Simplify.
31554
31555         test-canonicalize-lgpl: consolidate into single C program
31556         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
31557         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
31558         easier to run in debugger.  Add some tests.
31559         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
31560         (configure.ac, Makefile.am): Simplify.
31561
31562         canonicalize: avoid resolvepath
31563         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
31564         unnecessary checks.
31565         * lib/canonicalize.c (includes): Simplify.
31566         (canonicalize_file_name): Drop resolvepath implementation.
31567         * modules/canonicalize (Depends-on): Drop filenamecat.
31568
31569         canonicalize: don't lose errno
31570         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
31571         over calls to free.
31572
31573         canonicalize: simplify errno handling
31574         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
31575         assignment.
31576
31577         canonicalize, canonicalize-lgpl: update module dependencies
31578         * modules/canonicalize (Depends-on): Add extensions, lstat,
31579         pathmax, stdlib.
31580         (Files): Drop pathmax.h.
31581         (configure.ac): Adjust macro name.
31582         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
31583         lstat, stdlib, sys_stat.
31584         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
31585         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
31586         extensions.
31587         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
31588         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
31589         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
31590         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
31591         declaration, if available.
31592         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
31593         we can rely on the readlink module.
31594         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
31595         (includes): Use <unistd.h> unconditionally.
31596
31597 2009-09-17  Eric Blake  <ebb9@byu.net>
31598
31599         maint: make Include sections of modules consistent
31600         * modules/alloca: Use only header name; no need to list #include.
31601         * modules/alloca-opt: Likewise.
31602         * modules/arpa_inet: Likewise.
31603         * modules/canon-host: Likewise.
31604         * modules/configmake: Likewise.
31605         * modules/dirent: Likewise.
31606         * modules/eealloc: Likewise.
31607         * modules/environ: Likewise.
31608         * modules/fchdir: Likewise.
31609         * modules/fcntl: Likewise.
31610         * modules/fcntl-h: Likewise.
31611         * modules/gethrxtime: Likewise.
31612         * modules/gettime: Likewise.
31613         * modules/ignore-value: Likewise.
31614         * modules/inet_ntop: Likewise.
31615         * modules/inet_pton: Likewise.
31616         * modules/inttypes: Likewise.
31617         * modules/isnand-nolibm: Likewise.
31618         * modules/isnanf-nolibm: Likewise.
31619         * modules/mbchar: Likewise.
31620         * modules/mbfile: Likewise.
31621         * modules/mbiter: Likewise.
31622         * modules/mbuiter: Likewise.
31623         * modules/netdb: Likewise.
31624         * modules/netinet_in: Likewise.
31625         * modules/nproc: Likewise.
31626         * modules/pagealign_alloc: Likewise.
31627         * modules/poll: Likewise.
31628         * modules/printf-frexp: Likewise.
31629         * modules/pthread: Likewise.
31630         * modules/putenv: Likewise.
31631         * modules/random_r: Likewise.
31632         * modules/relocatable-prog: Likewise.
31633         * modules/search: Likewise.
31634         * modules/select: Likewise.
31635         * modules/selinux-h: Likewise.
31636         * modules/settime: Likewise.
31637         * modules/signal: Likewise.
31638         * modules/size_max: Likewise.
31639         * modules/socklen: Likewise.
31640         * modules/ssize_t: Likewise.
31641         * modules/stdarg: Likewise.
31642         * modules/stdbool: Likewise.
31643         * modules/stddef: Likewise.
31644         * modules/stdint: Likewise.
31645         * modules/stdio: Likewise.
31646         * modules/stdlib: Likewise.
31647         * modules/string: Likewise.
31648         * modules/strings: Likewise.
31649         * modules/sys_file: Likewise.
31650         * modules/sys_ioctl: Likewise.
31651         * modules/sys_select: Likewise.
31652         * modules/sys_socket: Likewise.
31653         * modules/sys_stat: Likewise.
31654         * modules/sys_time: Likewise.
31655         * modules/sys_times: Likewise.
31656         * modules/sys_utsname: Likewise.
31657         * modules/sys_wait: Likewise.
31658         * modules/sysexits: Likewise.
31659         * modules/time: Likewise.
31660         * modules/times: Likewise.
31661         * modules/tmpfile: Likewise.
31662         * modules/trim: Likewise.
31663         * modules/unistd: Likewise.
31664         * modules/wchar: Likewise.
31665         * modules/wctype: Likewise.
31666
31667 2009-09-17  Bruno Haible  <bruno@clisp.org>
31668
31669         Make getdate.y compile on QNX and NetBSD 5 / i386.
31670         * m4/getdate.m4 (gl_GETDATE): Conditionally define
31671         TIME_T_FITS_IN_LONG_INT.
31672         * lib/getdate.y (long_time_t): New type.
31673         (relative_time): Change type of 'seconds' field to long_time_t.
31674         (get_date): Update types of local variables. Check against overflow
31675         during conversion from long_time_t to time_t.
31676         Reported by Matt Kraai <kraai@ftbfs.org>
31677         and Hasso Tepper <hasso@netbsd.org>.
31678
31679 2009-09-17  Bruno Haible  <bruno@clisp.org>
31680
31681         * modules/COPYING: Update copyright years.
31682         * modules/README: Likeiwse.
31683         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
31684         Reported by Ian Beckwith <ianb@erislabs.net>.
31685
31686 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
31687
31688         * users.txt: Update references for gnuit package.
31689
31690 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
31691
31692         * m4/getdelim.m4: Fix typo in copyright line.
31693
31694 2009-09-17  Bruno Haible  <bruno@clisp.org>
31695
31696         * lib/atoll.c: Use the standard header with GPL copyright.
31697         * lib/argz.in.h: Likewise.
31698         * lib/glob.c: Likewise.
31699         * lib/glob-libc.h: Likewise.
31700         * lib/random_r.c: Likewise.
31701         * lib/siglist.h: Likewise.
31702         * lib/strsignal.c: Likewise.
31703         Reported by Ian Beckwith <ianb@erislabs.net>.
31704
31705 2009-09-17  Eric Blake  <ebb9@byu.net>
31706
31707         rmdir: ensure correct dependency order
31708         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
31709
31710 2009-09-17  Bruno Haible  <bruno@clisp.org>
31711
31712         Disable assertion that fails on NetBSD 5 / i386.
31713         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
31714         Reported by Sam Steingold <sds@gnu.org>
31715         and Hasso Tepper <hasso@netbsd.org>.
31716
31717 2009-09-16  Eric Blake  <ebb9@byu.net>
31718
31719         unlinkdir: port to mingw
31720         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
31721         on which no one can unlink a directory.
31722
31723         stdlib: sort witness names
31724         * modules/stdlib (Makefile.am): Sort replacements.
31725         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
31726         * lib/stdlib.in.h: Likewise.
31727
31728         parse-duration-tests: avoid link failure
31729         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
31730         LIBINTL.
31731         Reported by Tom G. Christensen.
31732
31733         openat-tests: ensure unlinkat behaves like rmdir
31734         * tests/test-rmdir.c (main): Factor guts...
31735         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
31736         * modules/rmdir-tests (Files): Ship new file.
31737         * modules/openat-tests: New test.
31738         * tests/test-unlinkat.c: Likewise.
31739
31740         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
31741         * modules/rmdir-errno (Status, Notice): Now obsolete.
31742
31743         rmdir: work around cygwin 1.5.x and mingw bugs
31744         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
31745         * lib/rmdir.c (rmdir): Work around it.
31746         * modules/rmdir (Status, Notice): No longer obsolete.
31747         (Files): Add dos.m4.
31748         (Depends-on): Add unistd.
31749         (configure.ac): Set witnesses.
31750         (License): Relax to LGPLv2+.
31751         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
31752         * modules/unistd (Makefile.am): Substitute witnesses.
31753         * lib/unistd.in.h (rmdir): Declare replacement.
31754         * doc/posix-functions/rmdir.texi (rmdir): Document this.
31755         * modules/rmdir-tests: New tests.
31756         * tests/test-rmdir.c: Likewise.
31757
31758 2009-09-15  Eric Blake  <ebb9@byu.net>
31759
31760         fchdir: improve use of replacement functions
31761         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
31762         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
31763         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
31764         REPLACE_CLOSEDIR.
31765         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
31766         * modules/sys_stat (Makefile.am): Substitute correct witness.
31767         * modules/dirent (Makefile.am): Likewise.
31768         * modules/unistd (Makefile.am): Likewise.
31769         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
31770         * lib/unistd.in.h (dup): Likewise.
31771         * lib/sys_stat.in.h (fstat): Likewise.
31772
31773         maint: ignore gnulib-tool temp files
31774         * .gitignore: Ignore files created during gnulib-tool --test.
31775
31776 2009-09-13  Jim Meyering  <meyering@redhat.com>
31777
31778         posixtm: don't reject a time that specify "60" as the number of seconds
31779         * lib/posixtm.c (posixtime): The code to reject invalid dates
31780         would also reject a time specified with the .60 suffix.
31781         But POSIX allows that, in order to accommodate leap seconds.
31782         So don't reject it.
31783         (main): Adjust tests accordingly.
31784         * modules/posixtm (Depends-on): Add stpcpy.
31785
31786 2009-09-11  Jim Meyering  <meyering@redhat.com>
31787
31788         announce-gen: include [$release_type] in emitted Subject:
31789         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
31790         e.g., [stable] in the emitted Subject: line.
31791
31792 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31793
31794         Remove obsolete macros from several modules.
31795         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
31796         obsolete Autoconf macros with their modern counterparts.
31797         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
31798         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
31799         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
31800         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
31801         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
31802         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31803         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
31804         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
31805         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
31806         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
31807         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
31808         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
31809         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
31810         * m4/sockets.m4 (gl_SOCKETS): Likewise.
31811         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
31812         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
31813         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
31814         * m4/time_r.m4 (gl_TIME_R): Likewise.
31815         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
31816         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
31817         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
31818
31819         Fix copyright header in build-aux scripts.
31820         * build-aux/git-version-gen: Fix copyright header to match GPLv3
31821         recommendation.
31822         * build-aux/ncftpput-ftp: Likewise.
31823         * build-aux/update-copyright: Likewise.
31824
31825 2009-09-09  Eric Blake  <ebb9@byu.net>
31826
31827         test-link: allow Linux choice of errno
31828         * tests/test-link.c (main): Relax test for alternate error.
31829
31830         strndup: fix improper m4 caching
31831         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
31832         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
31833         (gl_PREREQ_STRNDUP): Delete.
31834         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
31835         * modules/string (Makefile.am): Substitute it.
31836         * lib/string.in.h (strndup): Modernize prototype.
31837
31838         getcwd: port to mingw
31839         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
31840         different from the POSIX assumptions made throughout the getcwd
31841         module; fortunately, the mingw getcwd does not need replacement.
31842         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
31843         * modules/getcwd-tests: New test.
31844         * tests/test-getcwd.c: Likewise.
31845
31846         link: fix platform bugs
31847         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
31848         * lib/link.c (link): Work around them.  Fix related mingw bug.
31849         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
31850         * modules/unistd (Makefile.am): Substitute it.
31851         * lib/unistd.in.h (link): Declare replacement.
31852         * doc/posix-functions/link.texi (link): Document this.
31853         * modules/link (Depends-on): Add strdup-posix, sys_stat.
31854
31855         test-link: consolidate into single C program, test more cases
31856         * tests/test-link.sh: Delete.
31857         * tests/test-link.c: Test more error conditions.  Exposes bugs on
31858         at least Cygwin and Solaris.
31859         * modules/link-tests (Files): Remove unused file.
31860         (Depends-on): Add errno, sys_stat.
31861         (Makefile.am): Simplify.
31862
31863 2009-09-08  Bruno Haible  <bruno@clisp.org>
31864
31865         Work around towlower, towupper bug on mingw.
31866         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
31867         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
31868         * doc/posix-functions/towlower.texi: Mention the mingw bug.
31869         * doc/posix-functions/towupper.texi: Likewise.
31870         Reported by Eric Blake.
31871
31872 2009-09-08  Jim Meyering  <meyering@redhat.com>
31873
31874         build: don't try to run autoheader if we don't use it
31875         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
31876         is not used in configure.ac.
31877
31878 2009-09-08  Eric Blake  <ebb9@byu.net>
31879
31880         euidaccess: fix compilation error
31881         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
31882
31883         rawmemchr: relax license
31884         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
31885         okay.
31886         Reported by Jim Meyering.
31887
31888         mkfifoat: new module
31889         * modules/mkfifoat: New file.
31890         * lib/mkfifoat.c: Likewise.
31891         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
31892         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31893         * modules/sys_stat (Makefile.am): Use them.
31894         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
31895         * MODULES.html.sh (File system functions): Mention module.
31896         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
31897         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
31898         * modules/mkfifoat-tests: New test.
31899         * tests/test-mkfifoat.c: Likewise.
31900
31901         strchrnul: relax license
31902         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
31903         okay.
31904         Reported by Jim Meyering.
31905
31906 2009-09-08  Eric Blake  <ebb9@byu.net>
31907
31908         fstatat: fix compilation on Solaris
31909         * lib/fstatat.c (includes): Add fcntl.h.
31910         Reported by Pádraig Brady.
31911
31912 2009-09-07  Eric Blake  <ebb9@byu.net>
31913
31914         rename: modernize replacement
31915         * modules/rename (Depends-on): Add stdio.
31916         (configure.ac): Declare witness.
31917         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
31918         stdio take care of replacement.
31919         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
31920         * modules/stdio (Makefile.am): Substitute them.
31921         * lib/stdio.in.h (rename): Declare replacement.
31922         * lib/rename.c (includes): Allow cross-compilation to non-windows
31923         machines.
31924         * doc/posix-functions/rename.texi (rename): Improve
31925         documentation.
31926
31927         stdio: sort witness names
31928         * modules/stdio (Makefile.am): Sort replacements.
31929         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31930         * lib/stdio.in.h: Likewise.
31931
31932         getcwd: minor cleanups
31933         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
31934         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
31935
31936         openat: provide more convenience names
31937         * modules/faccessat (configure.ac): Add C witness.
31938         * lib/unistd.in.h (readlinkat): Fix typo.
31939         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
31940         convenience wrappers.
31941         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
31942         wrappers in syntax checks.
31943
31944 2009-09-06  Eric Blake  <ebb9@byu.net>
31945
31946         doc: fix comments in recent patches
31947         * lib/faccessat.c: Mention correct function.
31948         * lib/fchmodat.c: Likewise.
31949         * lib/fchownat.c: Likewise.
31950         * lib/symlinkat.c: Likewise.
31951         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
31952         constants.
31953
31954         faccessat, symlinkat: continue cleanup of previous patch
31955         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
31956         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
31957         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
31958         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
31959         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
31960         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
31961         set.
31962
31963 2009-09-06  Bruno Haible  <bruno@clisp.org>
31964
31965         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
31966         (fstatat): Declare if GNULIB_FSTATAT is set.
31967         (mkdirat): Declare if GNULIB_MKDIRAT is set.
31968         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
31969         (unlinkat): Declare if GNULIB_UNLINKAT is set.
31970         * modules/fcntl-h (Files): Remove m4/openat.m4.
31971         * modules/sys_stat (Files): Remove m4/openat.m4.
31972         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
31973         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
31974         * modules/unistd (Files): Remove m4/openat.m4.
31975         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
31976         GNULIB_OPENAT.
31977         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
31978         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
31979         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
31980         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
31981         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
31982         gl_OPENAT_DEFAULTS.
31983         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
31984         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
31985         Don't require gl_OPENAT_DEFAULTS.
31986         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
31987         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
31988         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
31989         (gl_OPENAT_DEFAULTS): Remove macro.
31990
31991 2009-09-06  Bruno Haible  <bruno@clisp.org>
31992
31993         * modules/openat (configure.ac): Remove unneeded witness.
31994
31995 2009-09-06  Bruno Haible  <bruno@clisp.org>
31996
31997         Set errno to ENOSYS when a function is entirely unsupported.
31998         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
31999         EOPNOTSUPP.
32000         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
32001         * modules/chown (Depends-on): Remove errno.
32002
32003 2009-09-06  Bruno Haible  <bruno@clisp.org>
32004
32005         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
32006
32007 2009-09-06  Bruno Haible  <bruno@clisp.org>
32008
32009         * lib/sys_stat.in.h: Fix preprocessor command indentation.
32010
32011 2009-09-06  Ben Pfaff  <blp@gnu.org>
32012             Bruno Haible  <bruno@clisp.org>
32013
32014         Work around a glibc bug in strtok_r.
32015         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
32016         Undefine if UNDEFINE_STRTOK_R is set.
32017         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
32018         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32019         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
32020         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
32021         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
32022         UNDEFINE_STRTOK_R.
32023         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
32024
32025 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
32026
32027         exclude: minor fix
32028         * lib/exclude.c: Include wctype.h
32029
32030 2009-09-06  Akim Demaille  <demaille@gostai.com>
32031
32032         bootstrap: improve error message
32033         * build-aux/bootstrap (find_tool): Upon failure, report the list
32034         of candidates.
32035         Honor the initial value of the envvar.
32036
32037 2009-09-05  Eric Blake  <ebb9@byu.net>
32038
32039         symlinkat: new module
32040         * modules/symlinkat: New file.
32041         * lib/symlinkat.c: Likewise.
32042         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
32043         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
32044         * modules/unistd (Makefile.am): Use them.
32045         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
32046         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
32047         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
32048         * MODULES.html.sh (File system functions): Mention module.
32049         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
32050         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32051         * modules/symlinkat-tests: New test.
32052         * tests/test-symlinkat.c: Likewise.
32053
32054         test-openat-safer: add more checks
32055         * tests/test-openat-safer.c (main): Check more code paths.
32056
32057 2009-09-05  Jim Meyering  <meyering@redhat.com>
32058
32059         syntax-check: detect unnecessary inclusion of openat.h
32060         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
32061
32062 2009-09-05  Bruno Haible  <bruno@clisp.org>
32063
32064         Support towlower, towupper.
32065         * doc/posix-functions/towlower.texi: Mention module wctype.
32066         * doc/posix-functions/towupper.texi: Likewise.
32067         * lib/wctype.in.h (towlower, towupper): New functions.
32068         * tests/test-wctype.c: Include stdio.h, stdlib.h.
32069         (ASSERT): New macro.
32070         (e): New variable.
32071         (main): Test also towlower, towupper. Test WEOF argument.
32072         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32073
32074 2009-09-05  Bruno Haible  <bruno@clisp.org>
32075
32076         Fix conversion behaviour when the input is invalid.
32077         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
32078         mark occurring in first pass of indirect conversion.
32079         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
32080         input.
32081         Found by clang's static analyzer.
32082
32083 2009-09-05  Bruno Haible  <bruno@clisp.org>
32084
32085         * tests/test-striconveh.c (main): Test indirect conversion on platforms
32086         where direct conversion is possible.
32087
32088 2009-09-04  Eric Blake  <ebb9@byu.net>
32089
32090         openat: fail with ENOENT on empty name
32091         * lib/openat-proc.c (openat_proc_name): Special-case the empty
32092         buffer.
32093
32094         link-follow: fix logic bug in prior patch
32095         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
32096         reversed sense of yes and no in prior patch.  Avoid confusing
32097         compilation failure with desired semantics.
32098
32099         link-follow: accomodate mingw and cross-compilation
32100         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
32101         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
32102         cross-compilation results to -1, to make linkat easier to
32103         implement when cross-compiling.  Trivially support mingw.
32104         * modules/link-follow (configure.ac): Call new name.
32105         * NEWS: Mention this.
32106
32107 2009-09-03  Eric Blake  <ebb9@byu.net>
32108
32109         faccessat: compile replacement
32110         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
32111         needed.
32112
32113         fts: fix compilation error
32114         * lib/fts.c (includes): Re-add "openat.h", for
32115         openat_needs_fchdir.
32116
32117         faccessat: new module
32118         * modules/faccessat: New file.
32119         * lib/faccessat.c: Likewise.
32120         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
32121         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32122         * modules/unistd (Makefile.am): Use it.
32123         * lib/unistd.in.h (faccessat): Declare it.
32124         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
32125         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
32126         * MODULES.html.sh (File system functions): Mention it.
32127         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
32128         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
32129
32130         euidaccess: prefer POSIX over non-standard implementation
32131         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
32132         * lib/euidaccess.c (euidaccess): Use it if available.
32133
32134         openat: make template easier to use
32135         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
32136         AT_FUNC_F2 to be undefined.
32137         (VALIDATE_FLAG): New macro; use it to reject bad flags.
32138         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
32139         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
32140         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
32141         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
32142         Likewise.
32143         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
32144         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
32145         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
32146         Likewise.
32147
32148         openat: declare in POSIX headers
32149         * NEWS: Mention this.
32150         * modules/openat (configure.ac): Declare witnesses.
32151         (Depends-on): Add fcntl-h, sys_stat, unistd.
32152         (Include): Mention correct headers.
32153         * modules/fcntl-h (Depends-on): Add link-warning.
32154         (Files): Add openat.m4.
32155         (Makefile.am): Substitute witnesses.
32156         * modules/sys_stat (Files, Makefile.am): Likewise.
32157         * modules/unistd (Files, Makefile.am): Likewise.
32158         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
32159         (gl_OPENAT_DEFAULTS): New macro.
32160         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
32161         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
32162         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
32163         (SYS_STAT_H): Remove unused variable.
32164         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
32165         * lib/fcntl--.h (includes): Remove unneeded header.
32166         * lib/openat-safer.c (includes): Likewise.
32167         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
32168         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
32169         appropriate headers.
32170         (__OPENAT_PREFIX): Delete.
32171         * lib/fcntl.in.h (openat): Provide declaration.
32172         (AT_FDCWD): Fix Solaris bug.
32173         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
32174         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
32175         * lib/fchmodat.c (includes):  Adjust to find declaration.
32176         * lib/fchownat.c (includes): Likewise.
32177         * lib/mkdirat.c (includes): Likewise.
32178         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
32179         still visible.
32180
32181 2009-09-02  Eric Blake  <ebb9@byu.net>
32182
32183         errno: use consistently
32184         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
32185         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
32186         * lib/canonicalize.c (ELOOP): Likewise.
32187         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
32188         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
32189         * lib/lchown.c (EOPNOTSUPP): Likewise.
32190         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
32191         * lib/savewd.c (ESTALE): Likewise.
32192         * lib/settime.c (ENOSYS): Likewise.
32193         * lib/utimens.c (ENOSYS): Likewise.
32194         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
32195         * lib/chdir-safer.c (ELOOP): Likewise.
32196         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
32197         * modules/c-stack (Depends-on): Add errno.
32198         * modules/canonicalize (Depends-on): Likewise.
32199         * modules/chdir-safer (Depends-on): Likewise.
32200         * modules/fdopendir (Depends-on): Likewise.
32201         * modules/inet_ntop (Depends-on): Likewise.
32202         * modules/inet_pton (Depends-on): Likewise.
32203         * modules/lchown (Depends-on): Likewise.
32204         * modules/openat (Depends-on): Likewise.
32205         * modules/savewd (Depends-on): Likewise.
32206         * modules/settime (Depends-on): Likewise.
32207         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
32208
32209         fts: avoid leaking fds
32210         * modules/fts (Depends-on): Add cloexec.
32211         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
32212         flag.
32213
32214         fts: make directory fds more robust
32215         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
32216         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
32217
32218         backupfile, chdir-long, fts, savedir: make safer
32219         * lib/backupfile.c (includes): Use "dirent--.h", since
32220         numbered_backup can write to stderr during readdir.
32221         * lib/savedir.c (includes): Likewise.
32222         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
32223         emulation can write to stderr on failure.
32224         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
32225         * lib/getcwd.c: Document why opendir_safer is unused.
32226         * lib/glob.c: Likewise.
32227         * lib/scandir.c: Likewise.
32228         * lib/openat-proc.c: Likewise, for open_safer.
32229         * modules/backupfile (Depends-on): Add dirent-safer.
32230         * modules/savedir (Depends-on): Likewise.
32231         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
32232         * modules/chdir-long (Depends-on): Add openat-safer.
32233
32234         openat-safer: new module
32235         * modules/openat-safer: New file.
32236         * lib/openat-safer.c: Likewise.
32237         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
32238         * lib/fcntl-safer.h (openat_safer): Declare.
32239         * lib/fcntl--.h (openat): Override.
32240         * MODULES.html.sh (File descriptor based I/O): Mention it.
32241         * lib/openat.h: Add double-inclusion guards.
32242         * lib/openat.c (includes): Only include "fcntl-safer.h", not
32243         "fcntl--.h", so we can implement openat.
32244         * modules/openat-safer-tests: New test.
32245         * tests/test-openat-safer.c: New file.
32246
32247         dirent-safer: new module
32248         * modules/dirent-safer: New file.
32249         * lib/dirent--.h: Likewise.
32250         * lib/dirent-safer.h: Likewise.
32251         * lib/opendir-safer.c: Likewise.
32252         * m4/dirent-safer.m4: Likewise.
32253         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
32254         * modules/dirent-safer-tests: New test.
32255         * tests/test-dirent-safer.c: New file.
32256         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
32257
32258         fdopendir: optimize on mingw
32259         * lib/unistd.in.h (_gl_directory_name): New prototype.
32260         * lib/fchdir.c (_gl_directory_name): Implement it.
32261         (fchdir): Use it to simplify implementation.
32262         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
32263         fchdir, when available, to avoid calling [f]chdir().
32264
32265         fdopendir: split into its own module
32266         * lib/openat.c (fdopendir): Move...
32267         * lib/fdopendir.c: ...into new file.
32268         * modules/fdopendir: New module.
32269         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
32270         * modules/openat (Depends-on): Add fdopendir.
32271         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
32272         fdopendir here.
32273         * modules/savedir (Depends-on): Only need fdopendir, not full
32274         openat.
32275         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
32276         * lib/openat.h (fdopendir): Drop prototype.
32277         * lib/dirent.in.h (fdopendir): Provide prototype.
32278         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
32279         * modules/dirent (Makefile.am): Substitute them.
32280         * MODULES.html.sh (File system functions): Mention it.
32281         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
32282         * modules/fdopendir-tests: New file.
32283         * tests/test-fdopendir.c: Likewise.
32284
32285         fchdir: use more consistent macro convention
32286         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
32287         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
32288         REPLACE_FCHDIR, rather than relying on config.h macros.
32289         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
32290         inside a single make-time REPLACE_FCHDIR block, rather than using
32291         the config.h FCHDIR_REPLACEMENT.
32292         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
32293         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
32294         Manage fstat replacement.
32295         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
32296         REPLACE_FCHDIR.
32297         * modules/sys_stat (Files): Add m4/unistd_h.m4.
32298         (Makefile.am): Substitute REPLACE_FCHDIR.
32299         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
32300         FCHDIR_REPLACEMENT.
32301         * lib/dup-safer.c (dup_safer): Likewise.
32302         * lib/dup2.c (rpl_dup2): Likewise.
32303         * lib/dup3.c (rpl_dup3): Likewise.
32304         * lib/open.c (rpl_open): Likewise.
32305
32306         fchdir: simplify error handling, and support dup3
32307         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
32308         stdbool, malloc-posix, realloc-posix.
32309         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
32310         (ensure_dirs_slot): Return false on allocation failure.
32311         (rpl_dup2): Delete.
32312         (_gl_register_dup): New function.
32313         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
32314         (_gl_register_fd): Close fd on allocation failure.
32315         * lib/fcntl.in.h (_gl_register_fd): Update signature.
32316         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
32317         prototype.
32318         (rpl_dup2_fchdir): Delete prototype.
32319         * lib/open.c (open): Update caller.
32320         * lib/dup2.c (dup2): Track fchdir metadata.
32321         * lib/dup3.c (dup3): Likewise.
32322         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
32323         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
32324
32325 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32326
32327         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
32328         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
32329         don't pass arguments to AC_OUTPUT.
32330
32331 2009-09-02  Bruno Haible  <bruno@clisp.org>
32332
32333         * modules/mkdtemp (License): Relicense under LGPLv2+.
32334         Reported by Paolo Bonzini.
32335
32336 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32337
32338         Replace uses of obsolete autoconf macros in Jim's modules.
32339         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
32340         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
32341         can evoke a warning from autoconf when run with -Wobsolete
32342         enabled.  They were declared obsolete for good reasons (see
32343         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
32344         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
32345         should not continue using the deprecated macros.
32346         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
32347         obsolete Autoconf macros with modern counterparts.
32348         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
32349         * m4/dos.m4 (gl_AC_DOS): Likewise.
32350         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
32351         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
32352         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
32353         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
32354         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
32355         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
32356         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
32357         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
32358         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
32359         Likewise.
32360         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
32361         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
32362         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
32363         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
32364         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
32365         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
32366
32367 2009-09-01  Eric Blake  <ebb9@byu.net>
32368
32369         fchdir: fix off-by-one bug in previous patch
32370         * lib/fchdir.c (rpl_fstat): Use correct bounds.
32371         (_gl_unregister_fd): Delete useless if.
32372
32373 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
32374
32375         maint.mk: sort the list of syntax-check rules
32376         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
32377         easier to get a sense of progress when the rules are run sequentially
32378         and take a long time.
32379
32380 2009-09-01  Simon Josefsson  <simon@josefsson.org>
32381
32382         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
32383         * modules/netinet_in: Likewise.
32384         * modules/sys_file: Likewise.
32385         * modules/sys_ioctl: Likewise.
32386         * modules/sys_select: Likewise.
32387         * modules/sys_socket: Likewise.
32388         * modules/sys_stat: Likewise.
32389         * modules/sys_time: Likewise.
32390         * modules/sys_times: Likewise.
32391         * modules/sys_utsname: Likewise.
32392         * modules/sys_wait: Likewise.
32393
32394 2009-09-01  Jim Meyering  <meyering@redhat.com>
32395
32396         fts: help ensure that return values are not ignored
32397         * lib/fts_.h (__GNUC_PREREQ): Define.
32398         (__attribute_warn_unused_result__): Define.
32399         (fts_children, fts_close, fts_open, fts_read): Declare with
32400         __attribute_warn_unused_result__.
32401
32402         fts: fts_close now fails also when closing a dir file descriptor fails
32403         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
32404         and propagate to caller, along with errno.
32405
32406         announce-gen: correct formatting in --help output
32407         * build-aux/announce-gen (usage): Move the one-line description in
32408         --help output "up", to where it belongs, just after Usage:.
32409
32410 2009-08-31  Eric Blake  <ebb9@byu.net>
32411
32412         fchdir: port to mingw
32413         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
32414         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
32415         opened, then use a substitute.
32416         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
32417         replacement.
32418         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
32419         (_gl_register_fd): No need to check stat if open already filters
32420         all directories.
32421         (fchdir): Fix error condition to match POSIX.
32422         * modules/fchdir (Depends-on): Add sys_stat.
32423         * doc/posix-functions/open.texi (open): Document the limitation.
32424         * modules/fchdir-tests: New file.
32425         * tests/test-fchdir.c: Likewise.
32426
32427         canonicalize: allow cross-testing from cygwin to mingw
32428         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
32429         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
32430         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
32431         Likewise.
32432         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
32433         target does not support symlinks.
32434         * tests/test-canonicalize-lgpl.sh: Likewise.
32435
32436         chown: avoid compilation warning on mingw
32437         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
32438         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
32439         mingw.
32440         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
32441         * modules/chown (Depends-on): Add errno.
32442
32443 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
32444
32445         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
32446         command.
32447
32448 2009-08-31  Jim Meyering  <meyering@redhat.com>
32449
32450         canonicalize: remove useless initialization
32451         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
32452         initialization of local, "end".
32453
32454 2009-08-30  Bruno Haible  <bruno@clisp.org>
32455
32456         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
32457         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
32458         ENOSYS.
32459
32460 2009-08-30  Bruno Haible  <bruno@clisp.org>
32461
32462         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
32463         /usr/xpg4/bin/tr when it exists.
32464         * tests/test-pipe-filter-gi1.sh: Likewise.
32465
32466 2009-08-30  Bruno Haible  <bruno@clisp.org>
32467
32468         Work around deficient /usr/bin/id program on Solaris.
32469         * tests/test-file-has-acl.sh (ID): New variable.
32470         * tests/test-set-mode-acl.sh (ID): Likewise.
32471         * tests/test-copy-acl.sh (ID): Likewise.
32472         * tests/test-copy-file.sh (ID): Likewise.
32473
32474 2009-08-30  Bruno Haible  <bruno@clisp.org>
32475
32476         New module 'xstriconveh'.
32477         * lib/xstriconveh.h: New file.
32478         * lib/xstriconveh.c: New file.
32479         * modules/xstriconveh: New file.
32480
32481 2009-08-30  Bruno Haible  <bruno@clisp.org>
32482
32483         Make it easier to use mem_cd_iconveh.
32484         * lib/striconveh.h (iconveh_t): New type.
32485         (iconveh_open, iconveh_close): New declarations.
32486         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32487         with a single 'const iconveh_t *' argument.
32488         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
32489         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32490         with a single 'const iconveh_t *' argument.
32491         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
32492         * tests/test-striconveh.c (main): Update.
32493         * NEWS: Mention the change.
32494
32495 2009-08-30  Bruno Haible  <bruno@clisp.org>
32496
32497         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
32498         problem.
32499
32500 2009-08-30  Bruno Haible  <bruno@clisp.org>
32501
32502         Work around iconv_open problem on Solaris.
32503         * lib/iconv_open-solaris.gperf: New file.
32504         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
32505         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
32506         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
32507         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
32508         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
32509         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
32510
32511 2009-08-29  Jim Meyering  <meyering@redhat.com>
32512
32513         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
32514         * top/maint.mk (cvs-check): Remove target; it was just an alias
32515         to the better-named vc-diff-check.
32516         (maintainer-distcheck): Remove rule.  It was used only from
32517         the (alpha/beta/major) target, and all of its commands but one
32518         were coreutils-specific.
32519         (vc-dist): Remove rule.
32520         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
32521         Run vc-diff-check, not vc-dist.
32522         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
32523
32524 2009-08-27  Bruno Haible  <bruno@clisp.org>
32525
32526         * tests/test-bitrotate.c (main): Remove test that uses a shift count
32527         of 0.
32528
32529 2009-08-27  Bruno Haible  <bruno@clisp.org>
32530
32531         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
32532         compilers.
32533         * doc/func.texi: Document the SunPRO C bug.
32534
32535 2009-08-27  Bruno Haible  <bruno@clisp.org>
32536
32537         Fix link error on Solaris.
32538         * tests/test-parse-duration.c (xstrdup): Remove function.
32539
32540 2009-08-26  Pádraig Brady  <P@draigbrady.com>
32541
32542         ignore-value: handle pointer types, too
32543         * lib/ignore-value.h (__attribute__): Remove definition.
32544         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
32545         of a more concise and more-often effective "(void) i" statement.
32546         (ignore_ptr): New function to suppress warnings from functions that
32547         return pointers, and to make it explicit that one function doesn't
32548         handle all cases.
32549
32550 2009-08-25  Bruno Haible  <bruno@clisp.org>
32551
32552         dup2: work around a Linux bug.
32553         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
32554         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
32555         * doc/posix-functions/dup2.texi: Mention the Linux bug.
32556         Reported by Simon Josefsson.
32557
32558 2009-08-25  Jim Meyering  <meyering@redhat.com>
32559
32560         libguestfs uses gnulib
32561         * users.txt: Add libguestfs.
32562
32563 2009-08-24  Eric Blake  <ebb9@byu.net>
32564
32565         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
32566         * lib/pipe2.c (includes): Add binary-io.h.
32567         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
32568
32569 2009-08-24  Bruno Haible  <bruno@clisp.org>
32570
32571         Tolerate declared but missing accept4 syscall.
32572         * lib/accept4.c (accept4): Invoke original accept4 function first, if
32573         available.
32574         * lib/sys_socket.in.h (accept4): If the function is already present,
32575         override it.
32576         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
32577         * modules/accept4 (Makefile.am): Compile accept4.c always.
32578         Reported by Paolo Bonzini and Eric Blake.
32579
32580 2009-08-23  Bruno Haible  <bruno@clisp.org>
32581
32582         New module 'accept4'.
32583         * lib/sys_socket.in.h (accept4): New declaration.
32584         * lib/accept4.c: New file.
32585         * m4/accept4.m4: New file.
32586         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
32587         GNULIB_ACCEPT4, HAVE_ACCEPT4.
32588         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
32589         HAVE_ACCEPT4.
32590         * modules/accept4: New file.
32591         * doc/glibc-functions/accept4.texi: Mention the new module.
32592
32593 2009-08-24  Jim Meyering  <meyering@redhat.com>
32594
32595         progname: also set global program_invocation_name, when possible
32596         Before this change, a libtool-enabled program that calls glibc's
32597         error function would report the program name as
32598         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
32599         * modules/progname (configure.ac): Check for a declaration of
32600         program_invocation_name.
32601         * lib/progname.c:  Include <errno.h>.
32602         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
32603         Set program_invocation_name.
32604
32605 2009-08-23  Bruno Haible  <bruno@clisp.org>
32606
32607         * lib/dup3.c: Include <string.h>.
32608
32609 2009-08-23  Bruno Haible  <bruno@clisp.org>
32610
32611         * lib/dup3.c (dup3): Test only once whether the system actually exists.
32612         * lib/pipe2.c (pipe2): Likewise.
32613         Suggested by Eric Blake.
32614
32615 2009-08-23  Bruno Haible  <bruno@clisp.org>
32616
32617         Tolerate declared but missing dup3 syscall.
32618         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
32619         * lib/unistd.in.h (dup3): If the function is already present,
32620         override it.
32621         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
32622         * modules/dup3 (Makefile.am): Compile dup3.c always.
32623         Reported by Paolo Bonzini.
32624
32625 2009-08-23  Bruno Haible  <bruno@clisp.org>
32626
32627         Tolerate declared but missing pipe2 syscall.
32628         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
32629         available.
32630         * lib/unistd.in.h (pipe2): If the function is already present,
32631         override it.
32632         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
32633         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
32634         Reported by Paolo Bonzini.
32635
32636 2009-08-23  Bruno Haible  <bruno@clisp.org>
32637
32638         * lib/pipe2.c (pipe2): Move #ifs inside function.
32639
32640 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32641
32642         quotearg: document limitations of quote_these_too
32643         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
32644         those limitations are created.
32645         * lib/quotearg.h (set_char_quoting): Document that digits and
32646         letters that are special after backslash are not permitted.
32647         (quotearg_char): Cross-reference set_char_quoting documentation.
32648
32649 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
32650
32651         quotearg: implement custom_quoting_style
32652         * lib/quotearg.c: (struct quoting_options): Add left_quote and
32653         right_quote fields.
32654         (set_custom_quoting): New public function.
32655         (quotearg_buffer_restyled): Add left_quote and right_quote
32656         arguments, handle them very much like locale quoting, and update
32657         all uses.
32658         (quotearg_n_custom): New public function.
32659         (quotearg_n_custom_mem): New public function.
32660         (quotearg_custom): New public function.
32661         (quotearg_custom_mem): New public function.
32662         * lib/quotearg.h: Prototype and document new public functions.
32663         (enum quoting_style): For escape_quoting_style and
32664         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
32665         ignored even though they're otherwise like c_quoting_style.
32666         Add custom_quoting_style member and document with comparison to
32667         clocale_quoting_style.
32668         * tests/test-quotearg.c (custom_quotes): New array.
32669         (custom_results): New array.
32670         (main): Extend to test custom quoting.
32671
32672 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32673
32674         quotearg: fix right quote escaping when it's in quote_these_too
32675         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
32676         quote, be sure to prepend only one backslash.
32677         * tests/test-quotearg.c (use_quote_double_quotes): New function.
32678         (main): Test it.
32679
32680 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32681
32682         quotearg-tests: test escaping of embedded locale quotes
32683         * tests/test-quotearg.c (struct result_strings): Add member for
32684         new input.
32685         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
32686         (inputs): Add new input.
32687         (results_g): Add expected results.
32688         (flag_results): Likewise.
32689         (locale_results): Likewise.
32690         (compare_strings): Check those.
32691
32692 2009-08-23  Bruno Haible  <bruno@clisp.org>
32693
32694         Tests for module 'dup3'.
32695         * modules/dup3-tests: New file.
32696         * tests/test-dup3.c: New file.
32697
32698         New module 'dup3'.
32699         * lib/unistd.in.h (dup3): New declaration.
32700         * lib/dup3.c: New file.
32701         * m4/dup3.m4: New file.
32702         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
32703         HAVE_DUP3.
32704         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
32705         * modules/dup3: New file.
32706         * doc/glibc-functions/dup3.texi: Mention the new module.
32707
32708 2009-08-23  Bruno Haible  <bruno@clisp.org>
32709
32710         Tweak the dup2 test.
32711         * tests/test-dup2.c (main): Create the test file empty. Verify that an
32712         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
32713         the test file is still empty. Fix argument order of lseek.
32714
32715 2009-08-23  Bruno Haible  <bruno@clisp.org>
32716
32717         Avoid test link errors when the modules getopt-gnu, gettext are used.
32718         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
32719         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32720
32721 2009-08-23  Bruno Haible  <bruno@clisp.org>
32722
32723         Fix getdtablesize() on mingw.
32724         * lib/getdtablesize.c (getdtablesize): Implement differently.
32725         * lib/unistd.in.h (getdtablesize): Improve comment.
32726
32727 2009-08-23  Bruno Haible  <bruno@clisp.org>
32728
32729         New module 'mkostemp'.
32730         Based on Ulrich Drepper's 2007-08-10 change in glibc.
32731         * lib/stdlib.in.h (mksotemp): New declaration.
32732         * lib/mkostemp.c: New file, from glibc with modifications.
32733         * lib/tempname.h (GT_FILE): Remove outdated comment.
32734         (gen_tempname): Add flags argument.
32735         * lib/tempname.c (__GT_BIGFILE): Remove macro.
32736         (__GT_FILE): Map to 1.
32737         (small_open, large_open): Remove macros.
32738         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
32739         * lib/mkstemp.c (mkstemp): Update.
32740         * lib/mkdtemp.c (mkdtemp): Likewise.
32741         * m4/mkostemp.m4: New file.
32742         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
32743         HAVE_MKOSTEMP.
32744         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
32745         HAVE_MKOSTEMP.
32746         * modules/mkostemp: New file, based on modules/mkstemp.
32747         * doc/glibc-functions/mkostemp.texi: Mention the new module.
32748         * NEWS: Mention the change.
32749
32750 2009-08-23  Bruno Haible  <bruno@clisp.org>
32751
32752         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
32753         Reported by Eric Blake.
32754
32755 2009-08-23  Bruno Haible  <bruno@clisp.org>
32756
32757         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
32758         Reported by Eric Blake.
32759
32760 2009-08-23  Bruno Haible  <bruno@clisp.org>
32761
32762         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
32763         * modules/pipe2 (Depends-on): Likewise.
32764
32765 2009-08-23  Eric Blake  <ebb9@byu.net>
32766
32767         fcntl-h: add O_TTY_INIT support
32768         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
32769         * tests/test-fcntl-h.c (o): Test it.
32770         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32771
32772         fcntl-h: rename from fcntl, in preparation for fcntl(2)
32773         * modules/fcntl: Move <fcntl.h> header replacement...
32774         * modules/fcntl-h: ...to new name, so as not to collide with
32775         like-named function.
32776         * tests/test-fcntl.c: Rename...
32777         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
32778         * modules/fcntl-tests: Rename...
32779         * modules/fcntl-h-tests: ...to this.  Update test file name.
32780         * modules/chdir-long (Depends-on): Update clients.
32781         * modules/chdir-safer (Depends-on): Likewise.
32782         * modules/fcntl-safer (Depends-on): Likewise.
32783         * modules/fts (Depends-on): Likewise.
32784         * modules/mkancesdirs (Depends-on): Likewise.
32785         * modules/mkdir-p (Depends-on): Likewise.
32786         * modules/open (Depends-on): Likewise.
32787         * modules/savewd (Depends-on): Likewise.
32788         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
32789         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32790
32791 2009-08-22  Bruno Haible  <bruno@clisp.org>
32792
32793         * modules/binary-io (License): Relicense under LGPL.
32794         * modules/pipe2 (License): Likewise.
32795
32796 2009-08-22  Bruno Haible  <bruno@clisp.org>
32797
32798         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
32799         return value.
32800         * lib/pipe-filter-gi.c (filter_init): Likewise.
32801         Reported by Eric Blake.
32802
32803 2009-08-22  Bruno Haible  <bruno@clisp.org>
32804
32805         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
32806         * modules/pipe (Depends-on): Add pipe2.
32807
32808 2009-08-22  Bruno Haible  <bruno@clisp.org>
32809
32810         Tests for module 'pipe2'.
32811         * modules/pipe2-tests: New file.
32812         * tests/test-pipe2.c: New file.
32813
32814         New module 'pipe2'.
32815         * lib/unistd.in.h (pipe2): New declaration.
32816         * lib/pipe2.c: New file.
32817         * m4/pipe2.m4: New file.
32818         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
32819         HAVE_PIPE2.
32820         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
32821         * modules/pipe2: New file.
32822         * doc/glibc-functions/pipe2.texi: Mention the new module.
32823
32824 2009-08-22  Bruno Haible  <bruno@clisp.org>
32825
32826         Reference some new glibc functions.
32827         * doc/glibc-functions/accept4.texi: New file.
32828         * doc/glibc-functions/dup3.texi: New file.
32829         * doc/glibc-functions/mkostemp.texi: New file.
32830         * doc/glibc-functions/pipe2.texi: New file.
32831         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
32832         (Glibc sys/socket.h): Refer to accept4.
32833         (Glibc unistd.h): Refer to dup3, pipe2.
32834         Reported by Eric Blake.
32835
32836 2009-08-22  Jim Meyering  <meyering@redhat.com>
32837             Bruno Haible  <bruno@clisp.org>
32838
32839         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
32840         This makes it so packages using automake-1.11's silent-rules option
32841         can print e.g., a single "GEN    configmake.h" line, rather than
32842         the 30+ statements that perform the job.  If you want to see the
32843         actual commands, you can still run "make V=1".
32844         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
32845         so that make output is abbreviated when those variables are defined
32846         appropriately.
32847         * modules/argz: Likewise.
32848         * modules/arpa_inet: Likewise.
32849         * modules/byteswap: Likewise.
32850         * modules/configmake: Likewise.
32851         * modules/dirent: Likewise.
32852         * modules/errno: Likewise.
32853         * modules/fcntl: Likewise.
32854         * modules/float: Likewise.
32855         * modules/fnmatch: Likewise.
32856         * modules/getopt-posix: Likewise.
32857         * modules/glob: Likewise.
32858         * modules/iconv_open: Likewise.
32859         * modules/inttypes: Likewise.
32860         * modules/localcharset: Likewise.
32861         * modules/locale: Likewise.
32862         * modules/math: Likewise.
32863         * modules/netdb: Likewise.
32864         * modules/netinet_in: Likewise.
32865         * modules/poll: Likewise.
32866         * modules/posix_spawnp-tests: Likewise.
32867         * modules/sched: Likewise.
32868         * modules/search: Likewise.
32869         * modules/selinux-h: Likewise.
32870         * modules/signal: Likewise.
32871         * modules/spawn: Likewise.
32872         * modules/stdarg: Likewise.
32873         * modules/stdbool: Likewise.
32874         * modules/stddef: Likewise.
32875         * modules/stdint: Likewise.
32876         * modules/stdio: Likewise.
32877         * modules/stdlib: Likewise.
32878         * modules/string: Likewise.
32879         * modules/strings: Likewise.
32880         * modules/sys_file: Likewise.
32881         * modules/sys_ioctl: Likewise.
32882         * modules/sys_select: Likewise.
32883         * modules/sys_socket: Likewise.
32884         * modules/sys_stat: Likewise.
32885         * modules/sys_time: Likewise.
32886         * modules/sys_times: Likewise.
32887         * modules/sys_utsname: Likewise.
32888         * modules/sys_wait: Likewise.
32889         * modules/sysexits: Likewise.
32890         * modules/time: Likewise.
32891         * modules/unistd: Likewise.
32892         * modules/wchar: Likewise.
32893         * modules/wctype: Likewise.
32894
32895 2009-08-22  Jim Meyering  <meyering@redhat.com>
32896
32897         announce-gen: detect write failure
32898         * build-aux/announce-gen: Add Coda at end.
32899         Remove equivalent-but-more-verbose block at top.
32900
32901 2009-08-19  Akim Demaille  <demaille@gostai.com>
32902
32903         bootstrap: --help to stdout.
32904         * bootstrap (usage): Don't send --help to stderr.
32905         Use a here doc instead of a long string.
32906
32907 2009-08-21  Eric Blake  <ebb9@byu.net>
32908
32909         test-popen-safer: split from test-popen
32910         * tests/test-popen.c (main): Move...
32911         * tests/test-popen.h: ...into new file.
32912         * tests/test-popen-safer2.c: New file.
32913         * modules/popen-tests (Files): Add test-popen.h.
32914         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
32915         Suggested by Bruno Haible.
32916
32917         test-fcntl-safer: split from test-open
32918         * tests/test-open.c (main): Move...
32919         * tests/test-open.h: ...into new file.
32920         * tests/test-fcntl-safer.c: New file.
32921         * modules/open-tests (Files): Add test-open.h.
32922         * modules/fcntl-safer-tests: New file.
32923         Suggested by Bruno Haible.
32924
32925         test-fopen-safer: split from test-fopen
32926         * tests/test-fopen.c (main): Move...
32927         * tests/test-fopen.h: ...into new file.
32928         * tests/test-fopen-safer.c: New file.
32929         * modules/fopen-tests (Files): Add test-fopen.h.
32930         * modules/fopen-safer-tests: New file.
32931         Suggested by Bruno Haible.
32932
32933 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
32934
32935         popen-safer: test O_CLOEXEC at run-time.
32936         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
32937
32938 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
32939
32940         fcntl: move more flags to the header
32941         * lib/cloexec.c: Do not define FD_CLOEXEC here.
32942         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
32943         * lib/fcntl.in.h: Do both things here.
32944
32945 2009-08-21  Jim Meyering  <meyering@redhat.com>
32946
32947         consistently remove $@-t before redirecting to it
32948         * modules/argz: Remove $@-t and $@ before redirecting to the former.
32949         * modules/alloca-opt: Likewise.
32950         * modules/byteswap: Likewise.
32951         * modules/fnmatch: Likewise.
32952         * modules/getopt-posix: Likewise.
32953         * modules/glob: Likewise.
32954         * modules/poll: Likewise.
32955         * modules/posix_spawnp-tests: Likewise.
32956         * modules/sys_socket: Likewise.
32957         * modules/sysexits: Likewise.
32958
32959 2009-08-21  Eric Blake  <ebb9@byu.net>
32960
32961         popen: simplify access to original popen
32962         * lib/popen.c (rpl_popen): No need to worry about popen being a
32963         macro.
32964         Reported by Bruno Haible.
32965
32966 2009-08-20  Eric Blake  <ebb9@byu.net>
32967
32968         build: avoid some compiler warnings
32969         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
32970         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
32971         type.
32972         (new_exclude_segment, excluded_file_pattern_p)
32973         (excluded_file_name_p): Reduce scope.
32974         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
32975         old-style declaration.
32976
32977 2009-08-20  Simon Josefsson  <simon@josefsson.org>
32978
32979         * tests/test-exclude1.sh: Handle Windows EOL.
32980         * tests/test-exclude2.sh: Likewise.
32981         * tests/test-exclude3.sh: Likewise.
32982         * tests/test-exclude4.sh: Likewise.
32983         * tests/test-exclude5.sh: Likewise.
32984         * tests/test-exclude6.sh: Likewise.
32985         * tests/test-exclude7.sh: Likewise.
32986
32987 2009-08-19  Akim Demaille  <demaille@gostai.com>
32988
32989         bootstrap: find sha1sum when named gsha1sum.
32990         * bootstrap (find_tool): New.
32991         ($SHA1SUM): New.
32992         Use it.
32993
32994 2009-08-20  Jim Meyering  <meyering@redhat.com>
32995
32996         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
32997         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
32998         expression that converts "." in a file name to "\." in the resulting
32999         regexp.  Start with a dummy statement, so that prior shell variable
33000         definitions are expanded portably.  Reported by Simon Josefsson.
33001
33002 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
33003
33004         Fix polling for writeability of a screen buffer.
33005         * lib/poll.c: Distinguish input and screen buffers for the
33006         Win32 implementation.
33007         * lib/select.c: Likewise.
33008
33009 2009-08-19  Eric Blake  <ebb9@byu.net>
33010
33011         popen-safer: prevent popen from clobbering std descriptors
33012         * modules/popen-safer: New file.
33013         * lib/popen-safer.c: Likewise.
33014         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
33015         * lib/stdio--.h (popen): Provide override.
33016         * lib/stdio-safer.h (popen_safer): Provide declaration.
33017         * tests/test-popen.c (includes): Partially test this.
33018         * modules/popen-safer-tests: New file, for more tests.
33019         * tests/test-popen-safer.c: Likewise.
33020         * MODULES.html.sh (file stream based Input/Output): Mention it.
33021
33022         tests: test some of the *-safer modules
33023         * modules/fopen-safer (Depends-on): Add fopen.
33024         * modules/fcntl-safer (Depends-on): Add fcntl.
33025         * modules/stdlib-safer (Depends-on): Add stdlib.
33026         (configure.ac): Set indicator.
33027         * modules/unistd-safer (configure.ac): Likewise.
33028         * modules/tmpfile-safer (configure.ac): Likewise.
33029         (Depends-on): Add tmpfile.
33030         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
33031         active.
33032         * tests/test-fopen.c (includes): Test safer versions when they are
33033         in use.
33034         * tests/test-open.c (includes): Likewise.
33035
33036         popen: fix cygwin 1.5 bug when stdin closed
33037         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
33038         * modules/popen: New file.
33039         * modules/popen-tests: Likewise.
33040         * tests/test-popen.c: Likewise.
33041         * m4/popen.m4: Likewise.
33042         * lib/popen.c: Likewise.
33043         * lib/stdio.in.h (popen): New declaration.
33044         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
33045         * modules/stdio (Makefile.am): Likewise.
33046         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
33047
33048 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
33049
33050         maint.mk: give full control over update-copyright exclusions
33051         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
33052         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
33053         (update-copyright): Don't force inclusion of top-level
33054         ChangeLog.  Don't force exclusion of all COPYING files, but make
33055         them the default exclusion instead.
33056
33057 2009-08-16  Bruno Haible  <bruno@clisp.org>
33058
33059         Fix test failures on Solaris 10.
33060         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
33061         tests when Solaris iconv() is used.
33062         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
33063         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
33064         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
33065         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
33066         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
33067
33068 2009-08-16  Bruno Haible  <bruno@clisp.org>
33069
33070         Fix test failures on Solaris 10.
33071         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
33072         'tr' program and pass it as first argument.
33073         * tests/test-pipe-filter-gi1.sh: Likewise.
33074         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
33075         program as first argument.
33076         * tests/test-pipe-filter-gi1.c (main): Likewise.
33077
33078 2009-08-16  Eric Blake  <ebb9@byu.net>
33079
33080         fpurge: fix previous commits
33081         * modules/fpurge (Makefile.am): Make replacement conditional,
33082         partially reverting 2007-04-29 change; missed in previous
33083         attempt.
33084         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
33085         is missing.
33086
33087 2009-08-16  Bruno Haible  <bruno@clisp.org>
33088
33089         Clarify fpurge's effect on the file position.
33090         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
33091         * tests/test-fpurge.c (main): Make a second pass for checking the file
33092         position.
33093
33094 2009-08-16  Bruno Haible  <bruno@clisp.org>
33095
33096         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
33097         declaration of fpurge is missing.
33098         * tests/test-fpurge.c (main): Check that the file has not more contents
33099         than expected. Close the file before removing it.
33100
33101 2009-08-15  Eric Blake  <ebb9@byu.net>
33102
33103         fpurge: don't wrap working cygwin implementation
33104         * lib/fpurge.c (fpurge): Fix comment typo.
33105         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
33106         1.7 to avoid replacement.
33107         * tests/test-fpurge.c (main): Enhance test.
33108
33109 2009-08-15  Eric Blake  <ebb9@byu.net>
33110         and Jim Meyering  <meyering@redhat.com>
33111
33112         test-update-copyright: skip if perl is insufficient
33113         * tests/test-update-copyright.sh: Failure to run maintainer tool
33114         should not cause testsuite failure on cygwin 1.5.
33115
33116 2009-08-14  Eric Blake  <ebb9@byu.net>
33117
33118         doc: mention more functions added in cygwin 1.7.0
33119         * doc/posix-headers/limits.texi (limits.h): Update for recent
33120         cygwin additions.
33121         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
33122         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
33123         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
33124         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
33125         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
33126
33127 2009-08-14  Eric Blake  <ebb9@byu.net>
33128
33129         maint.mk: simplify update-copyright rule
33130         * top/maint.mk (update-copyright-local): Delete, and document how
33131         to do it in cfg.mk instead.
33132         (update-copyright-exclude-regexp): Delete, and document how to do
33133         it in .x-update-copyright instead.
33134         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
33135         exclude ChangeLog.
33136
33137 2009-08-14  Bruno Haible  <bruno@clisp.org>
33138
33139         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
33140
33141 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33142
33143         maint.mk: support update-copyright-env
33144         * top/maint.mk (update-copyright-env): Define place-holder.
33145         (update-copyright): Expand $(update-copyright-env) before
33146         invoking update-copyright.
33147
33148 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33149
33150         update-copyright: implement forced reformatting
33151         * build-aux/update-copyright: Implement and document
33152         UPDATE_COPYRIGHT_FORCE.
33153         * tests/test-update-copyright.sh: Test it.
33154
33155 2009-08-14  Eric Blake  <ebb9@byu.net>
33156         and Bruno Haible  <bruno@clisp.org>
33157
33158         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
33159         * tests/test-locale.c: Revert previous patch related to NULL.
33160         * tests/test-stdio.c: Likewise.
33161         * tests/test-stdlib.c: Likewise.
33162         * tests/test-string.c: Likewise.
33163         * tests/test-unistd.c: Likewise.
33164         * modules/time-tests (Depends-on): Add verify.
33165         * modules/wchar-tests (Depends-on): Likewise.
33166         * tests/test-time.c: Test for NULL compliance.
33167         * tests/test-wchar.c: Likewise.
33168         * modules/locale (Depends-on): Add stddef.
33169         * modules/stdio (Depends-on): Likewise.
33170         * modules/stdlib (Depends-on): Likewise.
33171         * modules/string (Depends-on): Likewise.
33172         * modules/time (Depends-on): Likewise.
33173         * modules/unistd (Depends-on): Likewise.
33174         * modules/wchar (Depends-on): Likewise.
33175         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
33176         * lib/stdlib.in.h (includes): Likewise.
33177         * lib/string.in.h (includes): Likewise.
33178         * lib/time.in.h (includes): Likewise.
33179         * lib/unistd.in.h (includes): Likewise.
33180         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
33181         replaced.
33182         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33183         * m4/stddef_h.m4: New file.
33184         * modules/stddef: Likewise.
33185         * lib/stddef.in.h: Likewise.
33186         * modules/stddef-tests: Likewise.
33187         * tests/test-stddef.c: Likewise.
33188         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
33189         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
33190         * doc/posix-headers/locale.texi (locale.h): Likewise.
33191         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
33192         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
33193         * doc/posix-headers/string.texi (string.h): Likewise.
33194         * doc/posix-headers/time.texi (time.h): Likewise.
33195         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
33196         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
33197
33198 2009-08-14  Eric Blake  <ebb9@byu.net>
33199
33200         doc: improve git diff of texinfo files
33201         * .gitattributes: Add rule for *.texi files, with hint on how to
33202         use it.
33203         Copied from m4, and based on a report by Bruno Haible.
33204
33205 2009-08-14  Bruno Haible  <bruno@clisp.org>
33206
33207         Disable multithread support by default on Cygwin 1.5.x for real.
33208         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
33209
33210 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33211
33212         update-copyright: much ado about intervals
33213         * build-aux/update-copyright: Implement and document
33214         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
33215         of copyright year intervals.
33216         Also, document UPDATE_COPYRIGHT_YEAR.
33217         * tests/test-update-copyright.sh: Test it.
33218
33219         update-copyright: convert 2-digit to 4-digit years
33220         * build-aux/update-copyright: Implement and document.
33221         * tests/test-update-copyright.sh: Update.
33222
33223 2009-08-14  Jim Meyering  <meyering@redhat.com>
33224
33225         test-exclude: avoid coreutils "make check" failure
33226         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
33227         just as in test-argmatch.c.
33228
33229 2009-08-13  Eric Blake  <ebb9@byu.net>
33230
33231         test-dup2: fix bad assumption
33232         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
33233         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
33234
33235         test-version-etc: fix CRLF portability issue
33236         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
33237         recognize \r.
33238         * tests/test-argp-version-etc-1.sh: Likewise.
33239
33240         getopt: update client modules
33241         * modules/argp (Depends-on): Use getopt-gnu.
33242         * modules/git-merge-changelog (Depends-on): Likewise.
33243         * modules/long-options (Depends-on): Likewise.
33244         * modules/xstrtol (Depends-on): Likewise.
33245
33246 2009-08-13  Simon Josefsson  <simon@josefsson.org>
33247
33248         * tests/test-version-etc.sh: Don't fail on different
33249         project/version.  Don't fail on CRLF differences.  Rewrite to use
33250         multiple -e instead of multiple sed forks, suggested by Eric Blake
33251         <ebb9@byu.net>.
33252         * tests/test-argp-version-etc-1.sh: Likewise.
33253
33254 2009-08-13  Simon Josefsson  <simon@josefsson.org>
33255
33256         * tests/test-version-etc.sh: Don't fail on different
33257         project/version.
33258
33259 2009-08-12  Bruno Haible  <bruno@clisp.org>
33260
33261         Tests for modules 'getopt-posix', 'getopt-gnu'.
33262         * modules/getopt-posix-tests: New file.
33263         * tests/test-getopt.c: New file.
33264         * tests/test-getopt.h: New file.
33265         * tests/test-getopt_long.h: New file.
33266
33267         New modules 'getopt-posix', 'getopt-gnu'.
33268         * modules/getopt-gnu: New file, renamed from modules/getopt.
33269         * modules/getopt-posix: New file.
33270         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
33271         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
33272         (gl_GETOPT): Remove macro.
33273         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
33274         Disable the test against BSD systems that declare optreset. Test
33275         against mingw bug. Test against lack of support of optional arguments
33276         on many platforms.
33277         * doc/glibc-headers/getopt.texi: Update module name and list of
33278         relevant platforms.
33279         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
33280         'getopt-gnu' and more portability problems.
33281         * NEWS: Mention the changes.
33282
33283 2009-08-12  Bruno Haible  <bruno@clisp.org>
33284
33285         Ensure that optarg etc. get declared by <unistd.h>.
33286         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
33287         AC_USE_SYSTEM_EXTENSIONS.
33288         * modules/getopt (Depends-on): Add 'extensions'.
33289
33290 2009-08-12  Bruno Haible  <bruno@clisp.org>
33291
33292         Avoid test link errors.
33293         * modules/pipe-filter-ii-tests (Makefile.am): Define
33294         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
33295         * modules/pipe-filter-gi-tests (Makefile.am): Define
33296         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
33297         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33298
33299 2009-08-12  Bruno Haible  <bruno@clisp.org>
33300
33301         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
33302         gl_GETOPT_SUBSTITUTE before.
33303         (gl_GETOPT): Use it.
33304         * m4/argp.m4 (gl_ARGP): Update.
33305         Reported by Sergey Poznyakoff.
33306
33307         * m4/getopt.m4: Reorder macros.
33308         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
33309         (gl_GETOPT_SUBSTITUTE): Remove macro.
33310
33311 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33312
33313         Minor improvement in gitlog-to-changelog
33314
33315         * build-aux/gitlog-to-changelog: New option `--format' makes
33316         output format string configurable.
33317
33318 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33319
33320         Optimize exclude: use hash tables for non-wildcard patterns.
33321
33322         * lib/exclude.c: Include hash.h and mbuiter.h
33323         (struct exclude_pattern, exclude_segment): New data types.
33324         (struct exclude): Rewrite.
33325         (fnmatch_pattern_has_wildcards): New function.
33326         (new_exclude_segment, free_exclude_segment): New functions.
33327         (excluded_file_pattern_p, excluded_file_name_p): New functions.
33328         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
33329         * lib/exclude.h (is_fnmatch_pattern): New prototype.
33330         * modules/exclude: Depend on hash and mbuiter.
33331
33332         * modules/exclude-tests: New file.
33333         * tests/test-exclude.c: New file.
33334         * tests/test-exclude1.sh: New file.
33335         * tests/test-exclude2.sh: New file.
33336         * tests/test-exclude3.sh: New file.
33337         * tests/test-exclude4.sh: New file.
33338         * tests/test-exclude5.sh: New file.
33339         * tests/test-exclude6.sh: New file.
33340         * tests/test-exclude7.sh: New file.
33341
33342 2009-08-12  Bruno Haible  <bruno@clisp.org>
33343
33344         Ensure that getopt() gets declared by <unistd.h>.
33345         * lib/unistd.in.h: Conditionally include getopt.h.
33346         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
33347         Set GNULIB_UNISTD_H_GETOPT.
33348         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33349         GNULIB_UNISTD_H_GETOPT.
33350         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
33351
33352 2009-08-12  Bruno Haible  <bruno@clisp.org>
33353
33354         Clarify logic.
33355         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
33356         gl_replace_getopt instead of GETOPT_H.
33357
33358 2009-08-12  Bruno Haible  <bruno@clisp.org>
33359
33360         * m4/getopt.m4: Add comments.
33361
33362 2009-08-12  Bruno Haible  <bruno@clisp.org>
33363
33364         Disable multithread support by default on Cygwin 1.5.x.
33365         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
33366         set gl_use_threads=no if not specified otherwise.
33367
33368 2009-08-11  Bruno Haible  <bruno@clisp.org>
33369
33370         Avoid compilation error on NetBSD 5.0.
33371         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
33372         * tests/test-stdio.c: Likewise.
33373         * tests/test-stdlib.c: Likewise.
33374         * tests/test-string.c: Likewise.
33375         * tests/test-unistd.c: Likewise.
33376         Reported by Greg Troxel <gdt@ir.bbn.com>
33377         at <https://savannah.gnu.org/support/?106973>.
33378
33379 2009-08-11  Bruno Haible  <bruno@clisp.org>
33380
33381         * modules/dup2-tests (Depends-on): Remove close.
33382
33383         Undo 2009-07-19 commit.
33384         * modules/acl-tests (Depends-on): Remove close.
33385         * modules/binary-io-tests (Depends-on): Likewise.
33386         * modules/closein-tests (Depends-on): Likewise.
33387         * modules/flock-tests (Depends-on): Likewise.
33388         * modules/fsync-tests (Depends-on): Likewise.
33389         * modules/lseek-tests (Depends-on): Likewise.
33390         * modules/pipe-tests (Depends-on): Likewise.
33391         * modules/posix_spawn-tests (Depends-on): Likewise.
33392         * modules/posix_spawnp-tests (Depends-on): Likewise.
33393         * modules/stat-time-tests (Depends-on): Likewise.
33394         * modules/yesno-tests (Depends-on): Likewise.
33395
33396 2009-08-10  Bruno Haible  <bruno@clisp.org>
33397
33398         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
33399
33400 2009-08-10  Bruno Haible  <bruno@clisp.org>
33401
33402         Fix a gcc warning.
33403         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
33404
33405 2009-08-10  Bruno Haible  <bruno@clisp.org>
33406
33407         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
33408         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
33409         not only the first time.
33410         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
33411         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
33412         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
33413         is 1, not only the the first time.
33414
33415 2009-08-10  Bruno Haible  <bruno@clisp.org>
33416
33417         Make it possible to use module 'gethostname' without module 'close'.
33418         * lib/unistd.in.h (close): Evoke a link error only if
33419         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
33420         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33421         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33422         * modules/unistd (Makefile.am): Substitute
33423         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33424         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
33425         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
33426         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
33427         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33428         * modules/sys_ioctl (Makefile.am): Substitute
33429         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33430         * modules/socket (configure.ac): On native Windows, set
33431         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
33432         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33433         Reported by Sam Steingold <sds@gnu.org>.
33434
33435 2009-08-10  Bruno Haible  <bruno@clisp.org>
33436
33437         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
33438         * modules/ioctl (configure.ac): Likewise.
33439
33440 2009-08-10  Bruno Haible  <bruno@clisp.org>
33441
33442         Avoid collision between gnulib wrapper and libintl wrapper.
33443         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
33444         already defined in intl/printf.c.
33445         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
33446         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
33447
33448 2009-08-09  Bruno Haible  <bruno@clisp.org>
33449
33450         Make <sys/select.h> really self-contained, also on Solaris 10.
33451         * lib/sys_select.in.h: Include <string.h>.
33452         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
33453         Solaris 10 problem.
33454         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
33455         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
33456         Reported by Jim Meyering.
33457
33458 2009-08-09  Bruno Haible  <bruno@clisp.org>
33459
33460         Avoid warnings from 'aclocal' that are due to a use of macro name
33461         AM_XGETTEXT_OPTION that is not defined in automake.
33462         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
33463         automake.
33464         * modules/error (configure.ac): Likewise.
33465         * modules/propername (configure.ac): Likewise.
33466         * modules/vasprintf (configure.ac): Likewise.
33467         * modules/verror (configure.ac): Likewise.
33468         * modules/xprintf (configure.ac): Likewise.
33469         * modules/xvasprintf (configure.ac): Likewise.
33470
33471 2009-08-08  Bruno Haible  <bruno@clisp.org>
33472
33473         Avoid compilation error in C++ mode.
33474         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
33475         Reported by Sam Steingold <sds@gnu.org>.
33476
33477 2009-08-08  Bruno Haible  <bruno@clisp.org>
33478
33479         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
33480         for the various Unix platforms.
33481         * doc/posix-headers/limits.texi: Update platforms list regarding
33482         HOST_NAME_MAX.
33483         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33484
33485 2009-08-07  Jim Meyering  <meyering@redhat.com>
33486
33487         selinux-at: fix typo in a comment
33488         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
33489         Spotted by Paolo Bonzini.
33490
33491         selinux-at: remove redundant m4 code, add documentation
33492         * modules/selinux-at (configure.ac): Remove redundant code.
33493         LIB_SELINUX is already set via the dependent module, selinux-h.
33494         (Include): Add quotes around selinux-at.h.
33495         * lib/selinux-at.h: Add documentation.
33496         Reported by Bruno Haible in
33497         http://marc.info/?l=gnulib-bug&m=124958988300749
33498
33499 2009-08-07  Bruno Haible  <bruno@clisp.org>
33500
33501         Avoid link error on MacOS X 10.3 and 10.4.
33502         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
33503         on non-ELF systems.
33504         * lib/argp-pv.c (argp_program_version): Likewise.
33505         Reported by Simon Josefsson.
33506
33507 2009-08-07  Simon Josefsson  <simon@josefsson.org>
33508
33509         * tests/test-version-etc.sh: Use $EXEEXT.
33510
33511 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
33512
33513         update-copyright: update documentation to point to maint.mk
33514         * build-aux/update-copyright: Here.
33515
33516 2009-08-06  Jim Meyering  <meyering@redhat.com>
33517
33518         maint.mk: support update-copyright-local
33519         * top/maint.mk (update-copyright-local): Define place-holder.
33520         (update-copyright): Depend on $(update-copyright-local).
33521
33522 2009-08-06  Jim Meyering  <meyering@redhat.com>
33523
33524         selinux-at: new module
33525         Initially written for coreutils, this module will soon be
33526         used by findutils, too.
33527         * MODULES.html.sh [Misc]: Add selinux-at.
33528         * lib/selinux-at.h: New file, from coreutils.
33529         * lib/selinux-at.c: Likewise.
33530         * modules/selinux-at: Likewise.
33531         (License): Change from LGPL to GPL, since it depends
33532         on the GPL'd openat module.
33533
33534         doc: update README
33535         * README: Remove references to cogito.
33536         Remove cvs-repo-updating instructions from 2007.
33537         Don't imply that CVS is better if you have limited disk space.
33538
33539 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33540
33541         update-copyright: support C-style comments
33542         * build-aux/update-copyright: Implement and document.
33543         * tests/test-update-copyright.sh: Test.
33544
33545 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33546
33547         update-copyright: support omitted "(C)"
33548         * build-aux/update-copyright: Implement and document.  Also,
33549         allow variable whitespace before "(C)".
33550         * tests/test-update-copyright.sh: Test.
33551
33552 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33553
33554         update-copyright: don't trip on non-FSF copyright statements
33555         * build-aux/update-copyright: Fix so that the first correctly
33556         formatted FSF copyright statement is recognized no matter what
33557         appears before it.  Update documentation.
33558         * tests/test-update-copyright.sh: Test that.
33559
33560 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33561
33562         update-copyright: clean up code a little
33563         * build-aux/update-copyright: Append "_re" to the name of any
33564         variable holding a regular expression.
33565         Replace "old" and "new" with "stmt" in variable names.
33566         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
33567         handled correctly.
33568         Format code more consistently.
33569
33570 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33571
33572         update-copyright-tests: improve portability
33573         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
33574         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
33575
33576 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
33577
33578         update-copyright: support @copyright{} and &copy;
33579         * build-aux/update-copyright: Implement and document.
33580         * tests/test-update-copyright.sh: Test.
33581
33582 2009-08-04  Jim Meyering  <meyering@redhat.com>
33583
33584         update-copyright-tests: correctly test EOL=\r\n handling
33585         * tests/test-update-copyright.sh: Put \r at the end of some lines
33586         for the dos-eol tests.  Based on a patch by Joel E. Denny.
33587
33588         maint.mk: make update-copyright exclusion list more configurable
33589         * top/maint.mk (update-copyright): Default to excluding COPYING,
33590         but allow an override, in case someone does want to update that file.
33591
33592         maint.mk: don't update copyright date in COPYING
33593         * top/maint.mk (update-copyright): Exclude COPYING.
33594
33595         maint.mk: add a copyright-updating rule
33596         * top/maint.mk (update-copyright): New rule.
33597         Derived from coreutils/Makefile.am.
33598
33599         update-copyright: rename some variables
33600         * build-aux/update-copyright: Rename a few variables for clarity.
33601         Tweak syntax.  List Joel E. Denny as coauthor.
33602
33603 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
33604
33605         update-copyright: fix bug for 2-digit last year and add tests
33606         * build-aux/update-copyright: Fix bug.
33607         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
33608         specified.
33609         * modules/update-copyright-tests: New
33610         * tests/test-update-copyright.sh: New.
33611
33612 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33613
33614         update-copyright: handle leading tabs in line prefix
33615         * build-aux/update-copyright: Count leading tabs as 8 spaces
33616         when computing margin.  This helps with the formatting of
33617         ChangeLogs, for example.
33618         Fix documentation a little.
33619
33620 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33621
33622         update-copyright: support EOL=\r\n
33623         * build-aux/update-copyright: Implement that.
33624
33625 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33626
33627         update-copyright: automatically format copyright statements
33628         * build-aux/update-copyright: Implement that.
33629         Also, be a little more predictable and safer by always failing
33630         when the full copyright format is not perfectly recognized as an
33631         unbroken whole.  Discussed at
33632         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
33633         Rewrite documentation.
33634
33635 2009-08-03  Bruno Haible  <bruno@clisp.org>
33636
33637         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
33638
33639 2009-08-02  Bruno Haible  <bruno@clisp.org>
33640
33641         Tests for module 'uname'.
33642         * modules/uname-tests: New file.
33643         * tests/test-uname.c: New file.
33644
33645         New module 'uname'.
33646         * lib/uname.c: New file.
33647         * m4/uname.m4: New file.
33648         * modules/uname: New file.
33649         * doc/posix-functions/uname.texi: Mention the new module.
33650
33651 2009-08-02  Bruno Haible  <bruno@clisp.org>
33652
33653         Tests for module 'sys_utsname'.
33654         * modules/sys_utsname-tests: New file.
33655         * tests/test-sys_utsname.c: New file.
33656
33657         New module 'sys_utsname'.
33658         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
33659         * m4/sys_utsname_h.m4: New file.
33660         * modules/sys_utsname: New file.
33661         * doc/posix-headers/sys_utsname.texi: Mention the new module.
33662
33663 2009-08-02  Bruno Haible  <bruno@clisp.org>
33664
33665         Implicitly initialize the sockets library.
33666         * lib/gethostname.c: Include sockets.h.
33667         (rpl_gethostname): Invoke gl_sockets_startup.
33668         * lib/socket.c: Include sockets.h.
33669         (rpl_socket): Invoke gl_sockets_startup.
33670         * modules/gethostname (Depends-on): Add sockets.
33671         * modules/socket (Depends-on): Likewise.
33672         * tests/test-poll.c: Don't include sockets.h.
33673         (main): Don't invoke gl_sockets_startup.
33674         * tests/test-select.c: Don't include sockets.h.
33675         (main): Don't invoke gl_sockets_startup.
33676
33677 2009-08-02  Bruno Haible  <bruno@clisp.org>
33678
33679         Allow multiple calls to gl_sockets_startup.
33680         * lib/sockets.c (initialized_sockets_version): New variable.
33681         (gl_sockets_startup): Do nothing if already called for this or a higher
33682         version.
33683         (gl_sockets_cleanup): Reset initialized_sockets_version.
33684
33685 2009-08-03  Simon Josefsson  <simon@josefsson.org>
33686
33687         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
33688         different project/version.
33689
33690 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
33691             Bruno Haible  <bruno@clisp.org>
33692
33693         Tests for module 'pipe-filter-gi'.
33694         * modules/pipe-filter-gi-tests: New file.
33695         * tests/test-pipe-filter-gi1.sh: New file.
33696         * tests/test-pipe-filter-gi1.c: New file.
33697         * tests/test-pipe-filter-gi2.sh: New file.
33698         * tests/test-pipe-filter-gi2-main.c: New file.
33699         * tests/test-pipe-filter-gi2-child.c: New file.
33700
33701         New module 'pipe-filter-gi'.
33702         * lib/pipe-filter-gi.c: New file.
33703         * modules/pipe-filter-gi: New file.
33704
33705 2009-08-02  Bruno Haible  <bruno@clisp.org>
33706             Paolo Bonzini  <bonzini@gnu.org>
33707
33708         Tests for module 'pipe-filter-ii'.
33709         * modules/pipe-filter-ii-tests: New file.
33710         * tests/test-pipe-filter-ii1.sh: New file.
33711         * tests/test-pipe-filter-ii1.c: New file.
33712         * tests/test-pipe-filter-ii2.sh: New file.
33713         * tests/test-pipe-filter-ii2-main.c: New file.
33714         * tests/test-pipe-filter-ii2-child.c: New file.
33715
33716         New module 'pipe-filter-ii'.
33717         * lib/pipe-filter.h: New file.
33718         * lib/pipe-filter-ii.c: New file.
33719         * lib/pipe-filter-aux.h: New file.
33720         * modules/pipe-filter-ii: New file.
33721
33722 2009-08-02  Simon Josefsson  <simon@josefsson.org>
33723
33724         * lib/gc-libgcrypt.c: Change copyright to FSF.
33725         * lib/gc-gnulib.c: Likewise.
33726
33727 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
33728
33729         * lib/gethostname.c: Include limits.h.
33730
33731 2009-08-02  Simon Josefsson  <simon@josefsson.org>
33732             Bruno Haible  <bruno@clisp.org>
33733
33734         Ensure HOST_NAME_MAX as part of the gethostname module.
33735         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
33736         define also HOST_NAME_MAX.
33737         * tests/test-gethostname.c: Include <limits.h>.
33738         (main): Check also HOST_NAME_MAX.
33739         * doc/posix-headers/limits.texi: Document the mingw problem.
33740
33741 2009-08-02  Bruno Haible  <bruno@clisp.org>
33742
33743         * lib/gethostname.c (gethostname): Fix handling of large len argument.
33744         Add comments.
33745
33746 2009-03-31  Simon Josefsson  <simon@josefsson.org>
33747
33748         * lib/gethostname.c: Add Windows wrapper.
33749         * m4/gethostname.m4: Look for gethostname in -lws2_32.
33750         * modules/gethostname: Depend on sys_socket & errno, for also
33751         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
33752         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
33753
33754 2009-07-31  Jim Meyering  <meyering@redhat.com>
33755
33756         getloadavg: fix symbol name in comment
33757         * lib/getloadavg.c: Correct a typo I introduced when adding
33758         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
33759         Matt Kraai spotted the problem.
33760
33761 2009-07-29  Matt Kraai  <mkraai@beckman.com>
33762
33763         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
33764         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
33765         code also if ! defined N_NAME_POINTER.
33766         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
33767         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
33768         but the n_name member is a 12-byte array.
33769
33770 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
33771
33772         update-copyright: generalize comment handling
33773         * build-aux/update-copyright: Handle copyright statements
33774         within more comment styles.
33775         Document usage.
33776         Report any file with an external copyright holder or parse failure.
33777
33778 2009-07-29  Jim Meyering  <meyering@redhat.com>
33779
33780         mktime: correct setting of REPLACE_MKTIME
33781         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
33782
33783         update-copyright: new module
33784         * modules/update-copyright: New file.
33785         * build-aux/update-copyright: New file.
33786         * MODULES.html.sh (maint+release support): Add update-copyright.
33787
33788 2009-07-27  Bruno Haible  <bruno@clisp.org>
33789
33790         Fix compilation error when <ctime> is used and mktime is replaced.
33791         * lib/time.in.h (mktime): New declaration.
33792         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
33793         REPLACE_MKTIME instead of defining mktime in config.h.
33794         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
33795         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
33796         Reported by Ross McFarland <rwmcfa1@neces.com>.
33797
33798 2009-07-27  Bruno Haible  <bruno@clisp.org>
33799
33800         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
33801         Reported by Matt Kraai <mkraai@beckman.com>.
33802
33803 2009-07-25  Jim Meyering  <meyering@redhat.com>
33804
33805         maint.mk: avoid warnings about missing files
33806         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
33807         diagnostic when .prev-version does not exist.
33808         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
33809         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
33810         nonexistent cfg.mk.
33811         Suggestions from Simon Josefsson.
33812
33813 2009-07-25  Bruno Haible  <bruno@clisp.org>
33814
33815         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
33816         defined as macros. Needed on QNX 6.4.1.
33817         Reported by Matt Kraai <mkraai@beckman.com>.
33818
33819 2009-07-23  Jim Meyering  <meyering@redhat.com>
33820
33821         maint.mk: invoke "make dist" with a working value of XZ_OPT
33822         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
33823
33824 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
33825
33826         Make fseeko.c compile on QNX.
33827         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
33828
33829 2009-07-22  Peter Simons  <simons@cryp.to>
33830
33831         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
33832         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
33833         * lib/md4.h: Likewise.
33834         * lib/md5.h: Likewise.
33835         * lib/sha1.h: Likewise.
33836         * lib/sha256.h: Likewise.
33837         * lib/sha512.h: Likewise.
33838
33839         tests-sha1: don't assign literal string to 'char *' variable
33840         * tests/test-sha1.c (main): Declare locals with "const" to match
33841         attributes of the right hand side.
33842
33843 2009-07-21  Eric Blake  <ebb9@byu.net>
33844
33845         dup2: fix more mingw problems
33846         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
33847         fd to itself.
33848         * doc/posix-functions/dup2.texi (dup2): Document the bug.
33849         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
33850         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
33851         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
33852         care of mingw bugs.
33853
33854 2009-07-21  Jim Meyering  <meyering@redhat.com>
33855
33856         vc-list-files: avoid failure when /bin/sh is dash
33857         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
33858         On some Debian based systems, /bin/sh is a symlink to dash, and running
33859         this command would omit the "/" following each 'tests' prefix:
33860           dash -x build-aux/vc-list-files -C . tests
33861         That is because bash and dash work differently:
33862           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
33863           bash ok
33864           dash odd
33865
33866 2009-07-21  Eric Blake  <ebb9@byu.net>
33867
33868         dup2-tests: test previous patch
33869         * modules/dup2-tests: New file.
33870         * tests/test-dup2.c: Likewise.
33871         * tests/test-open.c (main): Avoid unspecified behavior.
33872         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
33873         test.
33874
33875         dup2: work around mingw and cygwin 1.5 bug
33876         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
33877         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33878         * modules/unistd (Makefile.am): Substitute it.
33879         * lib/unistd.in.h (dup2): Declare the replacement.
33880         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
33881         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
33882         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
33883         * modules/execute (Depends-on): Add dup2.
33884         * modules/fseterr (Depends-on): Likewise.
33885         * modules/pipe (Depends-on): Likewise.
33886         * modules/posix_spawn-internal (Depends-on): Likewise.
33887
33888 2009-07-21  Bruno Haible  <bruno@clisp.org>
33889
33890         * modules/.gitattributes: New file.
33891
33892 2009-07-20  Bruno Haible  <bruno@clisp.org>
33893
33894         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
33895         (main): Use it.
33896
33897 2009-07-20  Eric Blake  <ebb9@byu.net>
33898
33899         test-pipe: make a bit more robust.
33900         * tests/test-pipe.c (myerr): Allow error messages regardless of
33901         what we do to stderr.
33902         (test_pipe): Rearrange to avoid deadlock.
33903         (child_main): Try a larger read, to ensure we avoided deadlock.
33904         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
33905         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
33906         if misused.
33907
33908 2009-07-19  Jim Meyering  <meyering@redhat.com>
33909
33910         fts: avoid false-positive cycle-detection
33911         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
33912         for each new command line argument.
33913
33914 2009-07-19  Bruno Haible  <bruno@clisp.org>
33915
33916         Fix build error on mingw with the modules sys_select and unistd.
33917         * modules/acl-tests (Depends-on): Add close.
33918         * modules/binary-io-tests (Depends-on): Likewise.
33919         * modules/closein-tests (Depends-on): Likewise.
33920         * modules/flock-tests (Depends-on): Likewise.
33921         * modules/fsync-tests (Depends-on): Likewise.
33922         * modules/lseek-tests (Depends-on): Likewise.
33923         * modules/pipe-tests (Depends-on): Likewise.
33924         * modules/posix_spawn-tests (Depends-on): Likewise.
33925         * modules/posix_spawnp-tests (Depends-on): Likewise.
33926         * modules/stat-time-tests (Depends-on): Likewise.
33927         * modules/yesno-tests (Depends-on): Likewise.
33928
33929 2009-07-19  Bruno Haible  <bruno@clisp.org>
33930
33931         Unify conditionals.
33932         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
33933         macros, not at the compiler macros.
33934         * lib/pipe.c: Likewise.
33935         * lib/execute.c: Likewise.
33936         * lib/spawni.c: Likewise.
33937
33938 2009-07-19  Bruno Haible  <bruno@clisp.org>
33939
33940         Fix handling of closed stdin/stdout/stderr on mingw.
33941         * lib/w32spawn.h: Include unistd.h.
33942         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
33943         file descriptor with O_NOINHERIT flag.
33944         (fd_safer_noinherit): New function, based on fd-safer.c.
33945         (dup_safer_noinherit): New function, based on dup-safer.c.
33946         (undup_safer_noinherit): New function.
33947         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
33948         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
33949         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
33950         instead of fd_safer.
33951         * tests/test-pipe.c: Include <windows.h>.
33952         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
33953         result.
33954
33955         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
33956         from main.
33957         (test_pipe): Pass an extra argument for disambiguation.
33958         (main): Invoke parent_main or child_main.
33959
33960         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
33961         consistently.
33962
33963 2009-07-18  Eric Blake  <ebb9@byu.net>
33964
33965         test-pipe: fix mingw build
33966         * tests/test-pipe.c (main): Avoid fcntl on mingw.
33967
33968 2009-07-18  Bruno Haible  <bruno@clisp.org>
33969
33970         * modules/pipe-tests (Makefile.am): Fix typo.
33971
33972 2009-07-18  Eric Blake  <ebb9@byu.net>
33973
33974         error: fix mingw build
33975         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
33976         Reported by Bruno Haible.
33977
33978         error: avoid undefined use of stdout
33979         * lib/error.c (error, error_at_line): Check that fd 1 is open
33980         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
33981         is handling faults and the close_stdout module wants to report the
33982         detection of closed stdout as an error.
33983
33984 2009-07-17  Eric Blake  <ebb9@byu.net>
33985
33986         pipe: be robust in face of closed fds
33987         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
33988         should cause child to misbehave.
33989         * modules/pipe-tests: New module.
33990         * tests/test-pipe.c: New file.
33991         * tests/test-pipe.sh: New file.
33992         Reported by Akim Demaille.
33993
33994 2009-07-14  Bruno Haible  <bruno@clisp.org>
33995
33996         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
33997         Reported by anonymous kc.
33998
33999 2009-07-07  Jim Meyering  <meyering@redhat.com>
34000
34001         maint.mk: don't look for translatable strings in *.m4 or *.mk
34002         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
34003         when searching for translatable strings.
34004
34005 2009-07-05  Jim Meyering  <meyering@redhat.com>
34006
34007         remove superfluous parentheses in STREQ definition
34008         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
34009         * lib/getugroups.c (STREQ): Likewise.
34010         * lib/fnmatch.c (STREQ): Likewise.
34011         Spotted by Bruno Haible.
34012
34013 2009-07-04  Jim Meyering  <meyering@redhat.com>
34014
34015         argv-iter: new module
34016         * MODULES.html.sh: Add argv-iter.
34017         * lib/argv-iter.c, lib/argv-iter.h: New files.
34018         * modules/argv-iter: New file.
34019         * modules/argv-iter-tests: New file.
34020         * tests/test-argv-iter.c: Test it.
34021
34022 2009-07-04  Bruno Haible  <bruno@clisp.org>
34023
34024         Fix assertion.
34025         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
34026         contains more exact copies of a given entry than file2, leave the extra
34027         copies unpaired rather than aborting.
34028         Reported by Eric Blake.
34029
34030 2009-07-02  Bruno Haible  <bruno@clisp.org>
34031
34032         Speedup git-merge-changelog for git cherry-pick.
34033         * lib/git-merge-changelog.c (struct entries_mapping): New type.
34034         (entries_mapping_get): New function, extracted from compute_mapping.
34035         (entries_mapping_reverse_get): New function.
34036         (compute_mapping): Add a 'full' argument. Return the result in a
34037         'struct entries_mapping'.
34038         (main): Update. Access the mappings through entries_mapping_get.
34039         Reported by Eric Blake.
34040
34041 2009-07-02  Bruno Haible  <bruno@clisp.org>
34042
34043         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
34044         best_i.
34045
34046 2009-07-02  Bruno Haible  <bruno@clisp.org>
34047
34048         Speed up approximate search for matching ChangeLog entries.
34049         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
34050         argument. Call fstrcmp_bounded instead of fstrcmp.
34051         (compute_mapping, try_split_merged_entry, main): Update callers.
34052
34053 2009-07-02  Bruno Haible  <bruno@clisp.org>
34054
34055         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
34056
34057 2009-06-30  Bruno Haible  <bruno@clisp.org>
34058
34059         Reduce the number of uc_is_cased calls.
34060         * lib/unicase.h (casing_suffix_context_t): Add
34061         'first_char_except_ignorable' field.
34062         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
34063         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
34064         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
34065         Update initializer.
34066         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
34067         case-ignorable characters.
34068         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
34069         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
34070         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
34071         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
34072         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
34073
34074 2009-06-30  Bruno Haible  <bruno@clisp.org>
34075
34076         Tests for module 'unicase/ignorable'.
34077         * modules/unicase/ignorable-tests: New file.
34078         * tests/unicase/test-ignorable.c: New file, generated by
34079         gen-uni-tables.
34080
34081         Tests for module 'unicase/cased'.
34082         * modules/unicase/cased-tests: New file.
34083         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
34084         * tests/unicase/test-predicate-part1.h: New file, derived from
34085         tests/unictype/test-predicate-part1.h.
34086         * tests/unicase/test-predicate-part2.h: New file, same as
34087         tests/unictype/test-predicate-part2.h.
34088
34089         Fix evaluation of "Before C" condition of FINAL_SIGMA.
34090         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
34091         (output_casing_properties): New function.
34092         (main): Call it.
34093         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
34094         * lib/unicase/cased.c: Include unictype/bitmap.h.
34095         (uc_is_cased): Define through a bitmap lookup.
34096         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
34097         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
34098         (uc_is_case_ignorable): Define through a bitmap lookup.
34099         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
34100         lib/unictype/bitmap.h.
34101         (Depends-on): Add inline. Clean up.
34102         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
34103         lib/unictype/bitmap.h.
34104         (Depends-on): Add inline. Clean up.
34105         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
34106         recognition.
34107         * tests/unicase/test-u16-tolower.c (main): Likewise.
34108         * tests/unicase/test-u32-tolower.c (main): Likewise.
34109
34110 2009-06-30  Bruno Haible  <bruno@clisp.org>
34111
34112         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
34113         * lib/unicase/u16-casemap.c: Likewise.
34114         * lib/unicase/u32-casemap.c: Likewise.
34115
34116 2009-06-29  Bruno Haible  <bruno@clisp.org>
34117
34118         Define u32_casefold as a wrapper around u32_ct_casefold.
34119         * lib/unicase/u32-casefold.c: Update.
34120         * modules/unicase/u32-casefold (Depends-on): Add
34121         unicase/u32-ct-casefold, unicase/empty-prefix-context,
34122         unicase/empty-suffix-context. Clean up.
34123
34124         Define u16_casefold as a wrapper around u16_ct_casefold.
34125         * lib/unicase/u16-casefold.c: Update.
34126         * modules/unicase/u16-casefold (Depends-on): Add
34127         unicase/u16-ct-casefold, unicase/empty-prefix-context,
34128         unicase/empty-suffix-context. Clean up.
34129
34130         Define u8_casefold as a wrapper around u8_ct_casefold.
34131         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
34132         * lib/unicase/u8-casefold.c: Update.
34133         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
34134         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34135
34136         Define u32_totitle as a wrapper around u32_ct_totitle.
34137         * lib/unicase/u32-totitle.c: Update.
34138         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
34139         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34140
34141         Define u16_totitle as a wrapper around u16_ct_totitle.
34142         * lib/unicase/u16-totitle.c: Update.
34143         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
34144         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34145
34146         Define u8_totitle as a wrapper around u8_ct_totitle.
34147         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
34148         functions.
34149         (FUNC): Delegate to U_CT_TOTITLE.
34150         * lib/unicase/u8-totitle.c: Update.
34151         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
34152         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34153
34154         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
34155         invocation.
34156         * modules/unicase/u32-tolower (Depends-on): Add
34157         unicase/empty-prefix-context, unicase/empty-suffix-context.
34158
34159         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
34160         invocation.
34161         * modules/unicase/u16-tolower (Depends-on): Add
34162         unicase/empty-prefix-context, unicase/empty-suffix-context.
34163
34164         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
34165         * modules/unicase/u8-tolower (Depends-on): Add
34166         unicase/empty-prefix-context, unicase/empty-suffix-context.
34167
34168         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
34169         invocation.
34170         * modules/unicase/u32-toupper (Depends-on): Add
34171         unicase/empty-prefix-context, unicase/empty-suffix-context.
34172
34173         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
34174         invocation.
34175         * modules/unicase/u16-toupper (Depends-on): Add
34176         unicase/empty-prefix-context, unicase/empty-suffix-context.
34177
34178         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
34179         * modules/unicase/u8-toupper (Depends-on): Add
34180         unicase/empty-prefix-context, unicase/empty-suffix-context.
34181
34182         New module 'unicase/u32-ct-casefold'.
34183         * lib/unicase/u32-ct-casefold.c: New file.
34184         * modules/unicase/u32-ct-casefold: New file.
34185
34186         New module 'unicase/u16-ct-casefold'.
34187         * lib/unicase/u16-ct-casefold.c: New file.
34188         * modules/unicase/u16-ct-casefold: New file.
34189
34190         New module 'unicase/u8-ct-casefold'.
34191         * lib/unicase/u8-ct-casefold.c: New file.
34192         * lib/unicase/u-ct-casefold.h: New file, derived from
34193         lib/unicase/u-casefold.h.
34194         * modules/unicase/u8-ct-casefold: New file.
34195
34196         New module 'unicase/u32-ct-totitle'.
34197         * lib/unicase/u32-ct-totitle.c: New file.
34198         * modules/unicase/u32-ct-totitle: New file.
34199
34200         New module 'unicase/u16-ct-totitle'.
34201         * lib/unicase/u16-ct-totitle.c: New file.
34202         * modules/unicase/u16-ct-totitle: New file.
34203
34204         New module 'unicase/u8-ct-totitle'.
34205         * lib/unicase/u8-ct-totitle.c: New file.
34206         * lib/unicase/u-ct-totitle.h: New file, derived from
34207         lib/unicase/u-totitle.h.
34208         * modules/unicase/u8-ct-totitle: New file.
34209
34210         New module 'unicase/u32-ct-tolower'.
34211         * lib/unicase/u32-ct-tolower.c: New file.
34212         * modules/unicase/u32-ct-tolower: New file.
34213
34214         New module 'unicase/u16-ct-tolower'.
34215         * lib/unicase/u16-ct-tolower.c: New file.
34216         * modules/unicase/u16-ct-tolower: New file.
34217
34218         New module 'unicase/u8-ct-tolower'.
34219         * lib/unicase/u8-ct-tolower.c: New file.
34220         * modules/unicase/u8-ct-tolower: New file.
34221
34222         New module 'unicase/u32-ct-toupper'.
34223         * lib/unicase/u32-ct-toupper.c: New file.
34224         * modules/unicase/u32-ct-toupper: New file.
34225
34226         New module 'unicase/u16-ct-toupper'.
34227         * lib/unicase/u16-ct-toupper.c: New file.
34228         * modules/unicase/u16-ct-toupper: New file.
34229
34230         New module 'unicase/u8-ct-toupper'.
34231         * lib/unicase/u8-ct-toupper.c: New file.
34232         * modules/unicase/u8-ct-toupper: New file.
34233
34234         Add context arguments to u*_casemap functions.
34235         * lib/unicase/unicasemap.h: Include unicase.h.
34236         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
34237         suffix_context arguments.
34238         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
34239         functions.
34240         (FUNC): Add prefix_context and suffix_context arguments. Use
34241         uc_is_cased and uc_is_case_ignorable.
34242         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
34243         * lib/unicase/u16-casemap.c: Likewise.
34244         * lib/unicase/u32-casemap.c: Likewise.
34245         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
34246         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34247         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
34248         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34249         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
34250         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34251
34252         New module 'unicase/u32-suffix-context'.
34253         * lib/unicase/u32-suffix-context.c: New file.
34254         * modules/unicase/u32-suffix-context: New file.
34255
34256         New module 'unicase/u16-suffix-context'.
34257         * lib/unicase/u16-suffix-context.c: New file.
34258         * modules/unicase/u16-suffix-context: New file.
34259
34260         New module 'unicase/u8-suffix-context'.
34261         * lib/unicase/u8-suffix-context.c: New file.
34262         * lib/unicase/u-suffix-context.h: New file.
34263         * modules/unicase/u8-suffix-context: New file.
34264
34265         New module 'unicase/empty-suffix-context'.
34266         * lib/unicase/empty-suffix-context.c: New file.
34267         * modules/unicase/empty-suffix-context: New file.
34268
34269         New module 'unicase/u32-prefix-context'.
34270         * lib/unicase/u32-prefix-context.c: New file.
34271         * modules/unicase/u32-prefix-context: New file.
34272
34273         New module 'unicase/u16-prefix-context'.
34274         * lib/unicase/u16-prefix-context.c: New file.
34275         * modules/unicase/u16-prefix-context: New file.
34276
34277         New module 'unicase/u8-prefix-context'.
34278         * lib/unicase/u8-prefix-context.c: New file.
34279         * lib/unicase/u-prefix-context.h: New file.
34280         * lib/unicase/context.h: New file.
34281         * modules/unicase/u8-prefix-context: New file.
34282
34283         New module 'unicase/empty-prefix-context'.
34284         * lib/unicase/empty-prefix-context.c: New file.
34285         * modules/unicase/empty-prefix-context: New file.
34286
34287         New module 'unicase/ignorable'.
34288         * lib/unicase/ignorable.c: New file.
34289         * modules/unicase/ignorable: New file.
34290
34291         New module 'unicase/cased'.
34292         * lib/unicase/caseprop.h: New file.
34293         * lib/unicase/cased.c: New file.
34294         * modules/unicase/cased: New file.
34295
34296         New functions for case mapping of substrings.
34297         * lib/unicase.h (casing_prefix_context_t): New type.
34298         (unicase_empty_prefix_context): New variable.
34299         (u8_casing_prefix_context, u16_casing_prefix_context,
34300         u32_casing_prefix_context, u8_casing_prefixes_context,
34301         u16_casing_prefixes_context, u32_casing_prefixes_context): New
34302         declarations.
34303         (casing_suffix_context_t): New type.
34304         (unicase_empty_suffix_context): New variable.
34305         (u8_casing_suffix_context, u16_casing_suffix_context,
34306         u32_casing_suffix_context, u8_casing_suffixes_context,
34307         u16_casing_suffixes_context, u32_casing_suffixes_context,
34308         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
34309         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
34310         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
34311         declarations.
34312
34313 2009-06-28  Jim Meyering  <meyering@redhat.com>
34314
34315         boostrap: indent only with spaces
34316         * build-aux/bootstrap: Indent only with spaces, never TABs.
34317
34318         bootstrap: split long lines
34319         * build-aux/bootstrap: Keep line length < 80.
34320
34321         bootstrap: sync from coreutils
34322         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
34323         just as autoreconf does.  Verify a list of prerequisite
34324         package-name,version-number pairs if defined in bootstrap.conf.
34325         Refer to README-prereq, if prerequisites are not satisfied.
34326
34327 2009-06-27  Eric Blake  <ebb9@byu.net>
34328
34329         tests: add test for bogus NULL definition
34330         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
34331         * tests/test-stdlib.c: Likewise.
34332         * tests/test-string.c: Likewise.
34333         * tests/test-locale.c: Likewise.
34334         * tests/test-unistd.c: Likewise.
34335         * modules/stdio-tests (Depends-on): Add verify.
34336         * modules/stdlib-tests (Depends-on): Likewise.
34337         * modules/string-tests (Depends-on): Likewise.
34338         * modules/locale-tests (Depends-on): Likewise.
34339         * modules/unistd-tests (Depends-on): Likewise.
34340
34341 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
34342
34343         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
34344         self-explaining comment.
34345         * m4/selinux-selinux-h: Update serial.
34346         (gl_LIBSELINUX): New macro, adding a warning for missing development
34347         packages to code extracted from...
34348         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
34349         Add warning for missing development packages here, too.
34350
34351 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
34352
34353         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
34354
34355 2009-06-25  Eric Blake  <ebb9@byu.net>
34356
34357         version-etc: fix regression
34358         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
34359         gcc.
34360         (version_etc): Use it, to catch bugs with trailing NULL.
34361         * lib/version-etc.c (version_etc_arn): Delete unused argument.
34362         (version_etc_va): Fix logic bug.
34363         * modules/version-etc-tests: Add test.
34364         * tests/test-version-etc.c: New file.
34365         * tests/test-version-etc.sh: Likewise.
34366
34367 2009-06-25  Sam Steingold  <sds@gnu.org>
34368
34369         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
34370         mbtowc declaration.
34371
34372 2009-06-25  Eric Blake  <ebb9@byu.net>
34373
34374         fpurge: migrate into <stdio.h>
34375         * lib/fpurge.h: Delete...
34376         * lib/stdio.in.h (fpurge): ...and declare here, instead.
34377         * lib/fpurge.c (fpurge): Change declaring header.
34378         * modules/fpurge (Files): Drop deleted file.
34379         (Depends-on): Add stdio.
34380         (configure.ac): Set witness.
34381         * modules/stdio (Makefile.am): Support fpurge macros.
34382         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34383         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
34384         * lib/fflush.c: Update client.
34385         * tests/test-fpurge.c: Likewise.
34386         * NEWS: Mention the change.
34387
34388 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34389
34390         * lib/argp-version-etc.c (program_authors): Add const
34391         qualifier.
34392         * lib/version-etc.c: Fix typos in the comments.
34393         * modules/argp-version-etc: Depends on version-etc.
34394
34395 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34396
34397         argp-version-etc: new module.
34398
34399         * lib/argp-version-etc.c: New file.
34400         * lib/argp-version-etc.h: New file.
34401         * modules/argp-version-etc: New file.
34402         * modules/argp-version-etc-tests: New file.
34403         * tests/test-argp-version-etc.c: New test.
34404         * tests/test-argp-version-etc-1.sh: New test.
34405
34406 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34407
34408         Provide additional interfaces and documentation for version-etc
34409         module.
34410
34411         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
34412         interfaces.
34413         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
34414         prototypes.
34415
34416 2009-06-24  Bruno Haible  <bruno@clisp.org>
34417
34418         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
34419         HAVE_LIB${NAME} macro.
34420         Reported by Sam Steingold <sds@gnu.org>.
34421
34422 2009-06-23  Simon Josefsson  <simon@josefsson.org>
34423
34424         * modules/hash-tests (test_hash_LDADD): Link to libintl when
34425         needed.
34426
34427 2009-06-21  Bruno Haible  <bruno@clisp.org>
34428
34429         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
34430         work.
34431         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
34432         together with LIB${NAME}, LTLIB${NAME}.
34433         Reported by Sam Steingold <sds@gnu.org>.
34434
34435 2009-06-20  Jim Meyering  <meyering@redhat.com>
34436
34437         tests: make sc_require_test_exit_idiom more generic
34438         * top/maint.mk (Exit_witness_file): New overridable variable.
34439         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
34440         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
34441
34442 2009-06-19  Jim Meyering  <meyering@redhat.com>
34443
34444         hash: reverse order of src/dst parameters in an internal interface
34445         * lib/hash.c (transfer_entries): Reverse order of parameters to
34446         put DST before SRC.  Adjust callers.
34447
34448         tests: test-hash: avoid wholesale duplication
34449         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
34450         Instead, use a loop and add a single conditional.
34451
34452         tests: test-hash: allow seed selection via a command line argument
34453         * tests/test-hash.c (get_seed): New function.
34454         (main): Use it.
34455
34456 2009-06-19  Eric Blake  <ebb9@byu.net>
34457
34458         hash: avoid memory leak on allocation failure
34459         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
34460         failure.  Factor repeated algorithm...
34461         (transfer_entries): ...into new helper routine.
34462         (hash_delete): React to hash_rehash return value.
34463
34464         hash: reduce memory pressure in hash_rehash no-op case
34465         * lib/hash.c (next_prime): Avoid overflow.
34466         (hash_initialize): Factor bucket size computation...
34467         (compute_bucket_size): ...into new helper function.
34468         (hash_rehash): Use new function and open coding to reduce memory
34469         pressure, and avoid a memory leak in USE_OBSTACK code.
34470         Reported by Jim Meyering.
34471
34472 2009-06-18  Eric Blake  <ebb9@byu.net>
34473
34474         hash: make rotation more obvious
34475         * modules/hash (Depends-on): Add bitrotate and stdint.
34476         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
34477         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
34478         (SIZE_MAX): Rely on headers for definition.
34479         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
34480         (raw_hasher): Use rotr_sz.
34481         Suggested by Jim Meyering.
34482
34483         hash: fix memory leak in last patch
34484         * lib/hash.c (hash_rehash): Avoid memory leak.
34485
34486         hash: avoid no-op rehashing
34487         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
34488
34489         hash: provide default callback functions
34490         * lib/hash.c (raw_hasher, raw_comparator): New functions.
34491         (hash_initialize): Use them as defaults.
34492         * tests/test-hash.c (main): Test this.
34493
34494         hash: minor optimization
34495         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
34496         when possible.
34497         (hash_initialize): Document this promise.
34498         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
34499         * tests/test-hash.c (hash_compare_strings): Test this.
34500
34501 2009-06-18  Bruno Haible  <bruno@clisp.org>
34502
34503         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
34504         going to be replaced anyway.
34505
34506 2009-06-18  Bruno Haible  <bruno@clisp.org>
34507
34508         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
34509         in one place.
34510         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
34511         be replaced anyway.
34512
34513 2009-06-18  Eric Blake  <ebb9@byu.net>
34514
34515         hash: check for resize before insertion
34516         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
34517         threshold before insertion, so that a pathological hash_rehash
34518         that fills every bucket can still trigger another rehash.
34519
34520 2009-06-18  Jim Meyering  <meyering@redhat.com>
34521
34522         hash-tests: add a loop around the small tests
34523         * tests/test-hash.c (main): Repeat small tests with selected
34524         small initial table sizes.
34525
34526 2009-06-17  Eric Blake  <ebb9@byu.net>
34527
34528         hash: minor cleanups
34529         * lib/hash.h (hash_entry): Make opaque, by moving...
34530         * lib/hash.c (hash_entry): ...here.
34531         (hash_insert): Clarify restrictions on what can be inserted.
34532         (hash_get_next): Clarify when it is safe to remove an element
34533         during traversal.
34534         (check_tuning): Skip verification when tuning is known safe.
34535         (hash_initialize): Clarify restrictions on tuning.
34536
34537 2009-06-17  Jim Meyering  <jim@meyering.net>
34538         and Eric Blake  <ebb9@byu.net>
34539
34540         hash-tests: new module
34541         * modules/hash-tests: New file.
34542         * tests/test-hash.c: New file.
34543
34544 2009-06-17  Eric Blake  <ebb9@byu.net>
34545
34546         strstr-simple: document new module
34547         * MODULES.html.sh: Document new module.
34548
34549         strstr, strcasestr: replace on platforms with broken memchr
34550         * modules/strstr: Split into...
34551         * modules/strstr-simple: ...new module that does not care about
34552         performance, but does care about glibc bug.
34553         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
34554         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
34555         if platform memchr is broken, per Debian bug 521737.
34556         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
34557         memchr.
34558         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
34559         * doc/posix-functions/strstr.texi (strstr): Document the fix.
34560         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
34561         * modules/mountlist (Depends-on): Add strstr-simple.
34562         * modules/gen-uni-tables (Depends-on): Likewise.
34563         * modules/argz (Depends-on): Add strstr.
34564
34565 2009-06-17  Bruno Haible  <bruno@clisp.org>
34566
34567         * modules/posix_spawn-internal (Depends-on): Add errno.
34568
34569 2009-06-17  Bruno Haible  <bruno@clisp.org>
34570
34571         Define missing ESTALE on Interix 3.5.
34572         * lib/errno.in.h (ESTALE): Assign a value if missing.
34573         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
34574         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
34575         missing.
34576         * doc/posix-headers/errno.texi: Mention the Interix bug.
34577         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
34578
34579 2009-06-15  Eric Blake  <ebb9@byu.net>
34580
34581         memchr, memchr2: add valgrind exception
34582         * lib/memchr.valgrind: New file.
34583         * lib/memchr2.valgrind: New file.
34584         * modules/memchr (Files): Distribute valgrind file.
34585         * modules/memchr2 (Files): Likewise.
34586
34587         docs: memchr is no longer obsolete
34588         * MODULES.html.sh: Move memchr from obsolete to string.h section.
34589         * lib/string.in.h (memchr): Simplify logic.
34590
34591 2009-06-14  Jim Meyering  <meyering@redhat.com>
34592
34593         link-follow: fix the "checking..." message to not mention trailing slash
34594         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
34595         never considered trailing slashes.
34596
34597 2009-06-14  Bruno Haible  <bruno@clisp.org>
34598
34599         * m4/memchr.m4: Mention also the bug on IA-64.
34600         * doc/posix-functions/memchr.texi: Likewise.
34601
34602 2009-06-12  Eric Blake  <ebb9@byu.net>
34603
34604         memchr: detect broken x86_64 and alpha implementations
34605         * modules/memchr-tests (Depends-on): Move mmap detection...
34606         * modules/memchr (Depends-on): ...here.
34607         (configure.ac): Set indicator.
34608         * lib/string.in.h (memchr): Declare replacement.
34609         * modules/string (Makefile.am): Trigger replacement.
34610         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
34611         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
34612         bugs.
34613         * doc/posix-functions/memchr.texi (memchr): Document the bug.
34614         * modules/getpagesize (License): Relax license.
34615
34616 2009-06-11  Bruno Haible  <bruno@clisp.org>
34617
34618         * lib/idpriv.h: Add more references.
34619
34620 2009-06-08  Bruno Haible  <bruno@clisp.org>
34621
34622         Tests for module 'idpriv-droptemp'.
34623         * modules/idpriv-droptemp-tests: New file.
34624         * tests/test-idpriv-droptemp.sh: New file.
34625         * tests/test-idpriv-droptemp.su.sh: New file.
34626         * tests/test-idpriv-droptemp.c: New file.
34627
34628         New module 'idpriv-droptemp'.
34629         * lib/idpriv-droptemp.c: New file.
34630         * modules/idpriv-droptemp: New file.
34631
34632 2009-06-08  Bruno Haible  <bruno@clisp.org>
34633
34634         Tests for module 'idpriv-drop'.
34635         * modules/idpriv-drop-tests: New file.
34636         * tests/test-idpriv-drop.sh: New file.
34637         * tests/test-idpriv-drop.su.sh: New file.
34638         * tests/test-idpriv-drop.c: New file.
34639
34640         New module 'idpriv-drop'.
34641         * lib/idpriv.h: New file.
34642         * lib-idpriv-drop.c: New file.
34643         * m4/idpriv.m4: New file.
34644         * modules/idpriv-drop: New file.
34645
34646 2009-06-08  Bruno Haible  <bruno@clisp.org>
34647
34648         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
34649         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34650         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34651         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34652         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34653         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34654         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34655
34656 2009-06-08  Eric Blake  <ebb9@byu.net>
34657
34658         test-strstr: use memory fence, when possible
34659         * tests/test-strstr.c (main): Use memory fence, in order to be
34660         more likely to trigger Debian bug 521737.
34661         * modules/strstr-tests (Files): Pull in additional files.
34662
34663         memchr: no longer obsolete, for wider field testing
34664         * modules/memchr (Status, Notice): Delete, this module is no
34665         longer obsolete.
34666         * modules/vasnprintf (Depends-on): Add memchr.
34667
34668 2009-06-07  Jim Meyering  <meyering@redhat.com>
34669
34670         hash: declare some functions with the warn_unused_result attribute
34671         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
34672
34673 2009-06-07  Bruno Haible  <bruno@clisp.org>
34674
34675         * tests/test-alignof.c: Don't test int64_t if it does not exist.
34676         Reported by Eric Blake.
34677
34678 2009-06-06  Eric Blake  <ebb9@byu.net>
34679
34680         test-alignof: fix typo with long double
34681         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
34682         compiler error.
34683
34684 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
34685
34686         Escape non-texinfo { and }s.
34687         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
34688         markup error.
34689
34690 2009-06-04  Jim Meyering  <meyering@redhat.com>
34691
34692         gitlog-to-changelog: don't infloop on an empty commit log
34693         * build-aux/gitlog-to-changelog: Warn about an empty log message.
34694         Reported by Boris Petersen <transacid@centerim.org>.
34695
34696 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
34697
34698         version-etc: extend for packagers
34699         Add three new configure options, intended for packagers:
34700           --with-packager="packager name"
34701           --with-packager-version="packager-specific version"
34702           --with-packager-bug-reports="packager bug reporting"
34703         An example with coreutils:
34704           $ ./configure \
34705             --with-packager=Gentoo \
34706             --with-packager-bug-report=http://bugs.gentoo.org/ \
34707             --with-packager-version="patchset 1.6"
34708           $ ./src/ls --version | head -n2
34709           ls (GNU coreutils) 7.1-dirty
34710           Packaged by Gentoo (patchset 1.6)
34711         Note that the bug reporting info via --help doesn't show up because
34712         coreutils uses its own custom emit_bug_reporting_address() implementation
34713         in src/system.h.  If it didn't, it'd look like:
34714           $ ./src/ls --help | tail -n4
34715           Report bugs to <bug-coreutils@gnu.org>.
34716           Report Gentoo bugs to <http://bugs.gentoo.org/>.
34717           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
34718           General help using GNU software: <http://www.gnu.org/gethelp/>.
34719         * lib/version-etc.c: Print new information, if provided.
34720         * m4/version-etc.m4: New file.
34721         * modules/version-etc (Files): Add m4/version-etc.m4.
34722         (configure.ac): Add gl_VERSION_ETC.
34723
34724 2009-05-31  Bruno Haible  <bruno@clisp.org>
34725
34726         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
34727         and 'int64_t'.
34728         * modules/alignof-tests (Dependencies): Add stdint.
34729         Reported by Eric Blake.
34730
34731 2009-05-31  Bruno Haible  <bruno@clisp.org>
34732
34733         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
34734         restriction due to compiler bugs.
34735         Reported by Eric Blake.
34736
34737 2009-05-31  Simon Josefsson  <simon@josefsson.org>
34738             Bruno Haible  <bruno@clisp.org>
34739
34740         Fix test-alignof failure.
34741         * lib/alignof.h (alignof_slot): New macro.
34742         (alignof_type): New macro, with the same semantics as the previous
34743         'alignof'.
34744         (alignof): Alias to alignof_slot.
34745         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
34746         check that the results are usable as constant expressions.
34747
34748 2009-05-31  Bruno Haible  <bruno@clisp.org>
34749
34750         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
34751         * tests/test-memchr.c (main): Check that memchr does not read past the
34752         first occurrence of the byte.
34753         * tests/test-strstr.c (main): Update comment.
34754         Suggested by Eric Blake.
34755
34756 2009-05-30  Bruno Haible  <bruno@clisp.org>
34757
34758         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
34759         detail how to use dumpbin.
34760         Reported by David Byron <dbyron@dbyron.com>.
34761
34762 2009-06-02  Simon Josefsson  <simon@josefsson.org>
34763
34764         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
34765
34766 2009-06-02  Simon Josefsson  <simon@josefsson.org>
34767
34768         * m4/manywarnings.m4: Add GCC 4.4 warnings.
34769
34770 2009-05-28  Bruno Haible  <bruno@clisp.org>
34771
34772         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
34773         build-aux/ files.
34774
34775 2009-05-28  Simon Josefsson  <simon@josefsson.org>
34776
34777         * gnulib-tool (func_import): Transform license on build-aux/ files too.
34778
34779 2009-05-27  Simon Josefsson  <simon@josefsson.org>
34780
34781         * gnulib-tool (sed_transform_main_lib_file)
34782         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
34783         regexps.
34784
34785 2009-05-26  Simon Josefsson  <simon@josefsson.org>
34786
34787         * tests/test-strstr.c: Add another self-test.
34788         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
34789         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
34790
34791 2009-05-23  Bruno Haible  <bruno@clisp.org>
34792
34793         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
34794         change.
34795
34796 2009-05-21  Bruno Haible  <bruno@clisp.org>
34797
34798         Simplify use of mode_t varargs.
34799         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
34800         uses 'mode_t' or 'int'.
34801         * lib/openat.c (openat): Likewise.
34802         * lib/open-safer.c (open_safer): Likewise.
34803         * m4/mode_t.m4: New file.
34804         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
34805         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
34806         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
34807         * modules/open (Files): Add m4/mode_t.m4.
34808         * modules/openat (Files): Likewise.
34809         * modules/fcntl-safer (Files): Likewise.
34810         Suggested by Eric Blake.
34811
34812 2009-05-21  Pádraig Brady  <P@draigbrady.com>
34813
34814         * doc/glibc-functions/fallocate.texi: New file.
34815         * doc/gnulib.texi: Include it.
34816
34817 2009-05-21  Eric Blake  <ebb9@byu.net>
34818             Bruno Haible  <bruno@clisp.org>
34819
34820         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
34821         invocations.
34822         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
34823
34824 2009-05-21  Eric Blake  <ebb9@byu.net>
34825             Bruno Haible  <bruno@clisp.org>
34826
34827         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
34828         include_next. Fix of 2008-11-20 commit.
34829         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
34830         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
34831         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
34832         NEXT_MATH_H.
34833         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
34834         instead of NEXT_MATH_H.
34835
34836 2009-05-21  Bruno Haible  <bruno@clisp.org>
34837
34838         Avoid redefinition warnings for SIZE_MAX.
34839         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
34840         Reported by Simon Josefsson.
34841
34842 2009-05-21  Bruno Haible  <bruno@clisp.org>
34843
34844         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
34845         AC_CACHE_VAL.
34846
34847 2009-05-20  Bruno Haible  <bruno@clisp.org>
34848
34849         Make zeroptr.h work on mingw.
34850         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
34851         mprotect.
34852         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
34853         * modules/memchr2-tests (configure.ac): Likewise.
34854         * modules/memcmp-tests (configure.ac): Likewise.
34855         * modules/memmem-tests (configure.ac): Likewise.
34856         * modules/memrchr-tests (configure.ac): Likewise.
34857         Reported by Simon Josefsson.
34858
34859 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34860
34861         * tests/test-glob.c: Include string.h for strcmp prototype.
34862
34863 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34864
34865         * modules/getdelim (Depends-on): Add explicit stdint, although it
34866         was implicitly already pulled in via realloc-posix.
34867         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
34868
34869 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34870
34871         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
34872         G. Christensen" <tgc@jupiterrise.com>.
34873         * m4/sys_socket_h.m4: Check for sa_family_t.
34874         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
34875         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
34876         * tests/test-sys_socket.c: Check that sa_family_t works.
34877
34878 2009-05-18  Eric Blake  <ebb9@byu.net>
34879
34880         maint.mk: allow gnulib_dir in VPATH build
34881         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
34882
34883 2009-05-15  Jim Meyering  <meyering@redhat.com>
34884
34885         maint.mk: Give gnulib_dir a default definition.
34886         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
34887         Thus, most packages no longer need to specify this variable in cfg.mk
34888
34889 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
34890
34891         rename.m4: fix typos that would make non-mingw cross-configure fail
34892         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
34893
34894 2009-05-13  Eric Blake  <ebb9@byu.net>
34895
34896         mmap-anon: avoid out-of-order autoconf expansion
34897         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
34898         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
34899         * modules/memchr-tests (Depends-on): Add extensions.
34900         * modules/memchr2-tests (Depends-on): Add extensions.
34901         * modules/memcmp-tests (Depends-on): Add extensions.
34902         * modules/memmem-tests (Depends-on): Add extensions.
34903         * modules/memrchr-tests (Depends-on): Add extensions.
34904
34905 2009-05-13  Bruno Haible  <bruno@clisp.org>
34906
34907         Make some tests ISO C 99 compliant.
34908         * tests/zerosize-ptr.h: New file.
34909         * tests/test-memchr.c: Include zerosize-ptr.h.
34910         (main): Use a zero-size object pointer instead of NULL.
34911         * tests/test-memchr2.c: Include zerosize-ptr.h.
34912         (main): Use a zero-size object pointer instead of NULL.
34913         * tests/test-memcmp.c: Include zerosize-ptr.h.
34914         (main): Use a zero-size object pointer instead of NULL.
34915         * tests/test-memmem.c: Include zerosize-ptr.h.
34916         (main): Use a zero-size object pointer instead of NULL.
34917         * tests/test-memrchr.c: Include zerosize-ptr.h.
34918         (main): Use a zero-size object pointer instead of NULL.
34919         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
34920         m4/mmap-anon.m4.
34921         (Depends-on): Add getpagesize.
34922         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34923         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
34924         m4/mmap-anon.m4.
34925         (Depends-on): Add getpagesize.
34926         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34927         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
34928         m4/mmap-anon.m4.
34929         (Depends-on): Add getpagesize.
34930         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34931         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
34932         m4/mmap-anon.m4.
34933         (Depends-on): Add getpagesize.
34934         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34935         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
34936         m4/mmap-anon.m4.
34937         (Depends-on): Add getpagesize.
34938         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34939
34940 2009-05-12  Bruno Haible  <bruno@clisp.org>
34941
34942         Tests for module 'alignof'.
34943         * modules/alignof-tests: New file.
34944         * tests/test-alignof.c: New file.
34945
34946 2009-05-12  Bruno Haible  <bruno@clisp.org>
34947
34948         Fix alignof macro.
34949         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
34950         vendor compilers that are always correct.
34951
34952 2009-05-12  Bruno Haible  <bruno@clisp.org>
34953
34954         Make the MAP_ANONYMOUS detection work on HP-UX 11.
34955         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
34956         not whether its fully works.
34957
34958 2009-05-12  Bruno Haible  <bruno@clisp.org>
34959
34960         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
34961
34962 2009-05-12  Jim Meyering  <meyering@redhat.com>
34963
34964         * top/maint.mk: Adjust backslash alignment.
34965
34966 2009-05-11  Simon Josefsson  <simon@josefsson.org>
34967
34968         * top/maint.mk: Make $(srcdir)/build-aux configurable.
34969
34970 2009-05-11  Eric Blake  <ebb9@byu.net>
34971
34972         argp: avoid undefined behavior
34973         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
34974         macros.
34975
34976 2009-05-08  Simon Josefsson  <simon@josefsson.org>
34977
34978         * tests/test-vc-list-files-git.sh: Do git config of user.email and
34979         user.name to prevent git commit from complaining.
34980
34981 2009-05-10  Bruno Haible  <bruno@clisp.org>
34982
34983         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
34984         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
34985         it rewrites every file name only once.
34986         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
34987
34988 2009-05-08  Bruno Haible  <bruno@clisp.org>
34989
34990         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
34991         instead of 'max'.
34992
34993 2009-05-08  Simon Josefsson  <simon@josefsson.org>
34994
34995         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
34996         sockaddr_storage test.
34997
34998 2009-05-07  Simon Josefsson  <simon@josefsson.org>
34999
35000         * modules/sys_socket (Makefile.am): Substitute
35001         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
35002         * m4/sys_socket_h.m4: Check for sockaddr_storage.
35003         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
35004         * tests/test-sys_socket.c: Check sockaddr_storage.
35005
35006 2009-05-08  Bruno Haible  <bruno@clisp.org>
35007
35008         New module 'alignof'.
35009         * lib/alignof.h: New file.
35010         * modules/alignof: New file.
35011
35012 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35013             Bruno Haible  <bruno@clisp.org>
35014
35015         Fix test-file-has-acl on FreeBSD.
35016         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
35017         mask is implicitly added.
35018         * tests/test-file-has-acl.c: Include <signal.h>.
35019         (main): Terminate the test after 5 seconds.
35020         * modules/acl-tests (configure.ac): Check for alarm function.
35021
35022 2009-05-04  Bruno Haible  <bruno@clisp.org>
35023
35024         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
35025         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
35026         * modules/errno (configure.ac): Drop AC_REQUIRE.
35027         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
35028         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
35029
35030 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35031
35032         * modules/glob-tests: New module.
35033         * tests/test-glob.c: Add.
35034
35035 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35036
35037         * modules/fnmatch-tests: New module.
35038         * tests/test-fnmatch.c: Add.
35039
35040 2009-05-04  Eric Blake  <ebb9@byu.net>
35041
35042         maint: make the new no-submodule-changes rule VPATH-safe
35043         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
35044
35045 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35046             Bruno Haible  <bruno@clisp.org>
35047
35048         acl: Fix infinite loop on FreeBSD.
35049         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
35050         of return value from acl_get_entry.
35051         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
35052         Likewise.
35053
35054 2009-05-03  Bruno Haible  <bruno@clisp.org>
35055
35056         * lib/acl-internal.h (acl_entries): Clarify return value.
35057         * lib/acl_entries.c (acl_entries): Likewise.
35058
35059 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35060
35061         Bug fix in acl module.
35062         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
35063
35064 2009-05-03  Bruno Haible  <bruno@clisp.org>
35065
35066         Create gperf-generated file in the source dir, not in the build dir.
35067         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
35068         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
35069         * modules/unicase/locale-language (unicase/locale-languages.h):
35070         Likewise.
35071         * modules/unicase/special-casing (unicase/special-casing-table.h):
35072         Likewise.
35073         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
35074         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
35075         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
35076         Reported by Ralf Wildenhues.
35077
35078 2009-05-03  Bruno Haible  <bruno@clisp.org>
35079
35080         * modules/fnmatch (Description, configure.ac): Taken from
35081         fnmatch-posix.
35082         * modules/fnmatch-posix: Turn into a symbolic reference to the
35083         'fnmatch' module, and deprecate.
35084         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
35085
35086 2009-05-03  Bruno Haible  <bruno@clisp.org>
35087
35088         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
35089         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
35090         Reported by Ralf Wildenhues.
35091
35092 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35093
35094         * m4/fnmatch.m4: Fix fnmatch re-define.
35095
35096 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35097
35098         priv-set: new module and tests; adapt write-any-file
35099         * lib/priv-set.c: New file.
35100         * lib/priv-set.h: New file.
35101         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
35102         * lib/write-any-file.c: Simplify by using priv-set module.
35103         * m4/priv-set.m4: New file.
35104         * modules/priv-set: New file.
35105         * modules/unlinkdir: Add dependency on priv-set module.
35106         * modules/write-any-file: Likewise.
35107
35108         Tests for module 'priv-set'.
35109         * modules/priv-set-tests: New file.
35110         * tests/test-priv-set.c: New file.
35111
35112 2009-05-03  Jim Meyering  <meyering@redhat.com>
35113             Bruno Haible  <bruno@clisp.org>
35114
35115         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
35116         use the converted UTF-8 variant of the name instead.
35117
35118 2009-05-03  Jim Meyering  <meyering@redhat.com>
35119
35120         tests: tighten some getdate tests
35121         * tests/test-getdate.c (main): Tighten tests: require equality,
35122         not just greater than.  Set TZ envvar to UTC0.
35123
35124 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
35125
35126         getdate: correctly interpret "next monday" when run on a Monday
35127         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
35128         that e.g., "next tues" (when run on a tuesday) results in a date
35129         that is one week in the future, and not today's date.
35130         I.e., add a week when the wday is the same as the current one.
35131         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
35132         and earlier by Martin Bernreuther and Jan Minář.
35133         * tests/test-getdate.c (main): Check that "next DAY" is always in
35134         the future and that "last DAY" is always in the past.
35135
35136 2009-05-02  Jim Meyering  <meyering@redhat.com>
35137
35138         build: ensure that a release build fails when a submodule is unclean
35139         * top/maint.mk (no-submodule-changes): New rule.
35140         (alpha beta major): Depend on it.
35141
35142 2009-05-02  Bruno Haible  <bruno@clisp.org>
35143
35144         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
35145         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
35146         shell variable gl_fnmatch_required to detect which variant is
35147         requested.
35148         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
35149         gl_FUNC_FNMATCH_POSIX.
35150         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
35151         exclude fnmatch-posix.
35152
35153 2009-05-02  Bruno Haible  <bruno@clisp.org>
35154
35155         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
35156         * modules/mbsrtowcs (License): Change to LGPLv2+.
35157         * modules/strnlen1 (License): Likewise.
35158         Reported by Simon Josefsson.
35159
35160 2009-05-02  Bruno Haible  <bruno@clisp.org>
35161
35162         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
35163         "cross".
35164         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
35165         gnulib-tool was called with option --source-base=lib.
35166
35167 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35168
35169         Use automake *-local hooks without commands, for extensibility.
35170         * modules/localcharset (Makefile.am): Rename install-exec-local
35171         rule to install-exec-localcharset, and make it a prerequisite of
35172         install-exec-local.  Likewise, rename the uninstall-local rule to
35173         uninstall-localcharset, and make it a prerequisite of the former.
35174
35175 2009-05-01  Bruno Haible  <bruno@clisp.org>
35176
35177         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
35178         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
35179         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
35180         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
35181         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
35182         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
35183         m4/locale-zh.m4, m4/codeset.m4.
35184
35185         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
35186         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
35187         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
35188         m4/locale-zh.m4.
35189
35190         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
35191         REPLACE_WCRTOMB if mbstate_t must be replaced.
35192         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
35193         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
35194
35195 2009-05-01  Bruno Haible  <bruno@clisp.org>
35196
35197         Avoid compiler warnings when redefining macros defined by <libintl.h>.
35198         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
35199         dngettext, dcngettext, textdomain, bindtextdomain,
35200         bind_textdomain_codeset): Undefine before redefining.
35201
35202 2009-04-30  Bruno Haible  <bruno@clisp.org>
35203
35204         Fix bug introduced on 2009-04-25.
35205         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
35206         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
35207         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
35208         is defined.
35209         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
35210         is defined.
35211         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
35212         is defined.
35213         Reported by Elbert_Pol <elbert.pol@gmail.com>.
35214
35215 2009-04-28  Bruno Haible  <bruno@clisp.org>
35216
35217         Comment tweaks.
35218         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
35219         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
35220         * lib/unicase.h (u*_casexfrm): Likewise.
35221         Reported by Paolo Bonzini.
35222
35223 2009-04-28  Bruno Haible  <bruno@clisp.org>
35224
35225         Fix a compilation error.
35226         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
35227         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
35228         Reported by Jim Meyering.
35229
35230 2009-04-27  Bruno Haible  <bruno@clisp.org>
35231
35232         New module 'libunistring'.
35233         * modules/libunistring: New file.
35234         * m4/libunistring.m4: New file.
35235         * MODULES.html.sh (Unicode string functions): Add it.
35236
35237 2009-04-27  Eric Blake  <ebb9@byu.net>
35238
35239         maint.mk: allow package-specific header to provide <config.h>
35240         * top/maint.mk (sc_require_config_h): New variable.
35241         (sc_require_config_h, sc_require_config_h_first): Use it.
35242
35243 2009-04-27  Simon Josefsson  <simon@josefsson.org>
35244
35245         * top/maint.mk (sc_avoid_if_before_free): Except
35246         useless-if-before-free script.
35247
35248 2009-04-27  Eric Blake  <ebb9@byu.net>
35249
35250         maintainer-makefile: depend on all required helper scripts
35251         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
35252         useless-if-before-free.
35253         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
35254         version, rather than assuming gnulib checkout is available.
35255         Reported by Simen Josefsson.
35256
35257 2009-04-26  Bruno Haible  <bruno@clisp.org>
35258
35259         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
35260         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
35261         "../" or "..".
35262
35263 2009-04-26  Bruno Haible  <bruno@clisp.org>
35264
35265         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
35266         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
35267         AC_LIB_HAVE_LINKFLAGS.
35268
35269 2009-04-26  Bruno Haible  <bruno@clisp.org>
35270
35271         Simplify calling convention of u*_conv_from_encoding.
35272         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
35273         u32_conv_from_encoding): Expect a resultbuf argument and return the
35274         result directly as a pointer.
35275         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
35276         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
35277         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
35278         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
35279         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
35280         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
35281         Update.
35282         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
35283         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
35284         * lib/vasnprintf.c (VASNPRINTF): Update.
35285         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
35286         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
35287         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
35288         * NEWS: Mention the change.
35289
35290 2009-04-26  Bruno Haible  <bruno@clisp.org>
35291
35292         Simplify calling convention of u*_conv_to_encoding.
35293         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
35294         u32_conv_to_encoding): Expect a resultbuf argument and return the
35295         result directly as a pointer.
35296         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
35297         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
35298         freeing scaled_offsets if mem_iconveha failed.
35299         * lib/unicase/u-casexfrm.h (FUNC): Update.
35300         * lib/uninorm/u-normxfrm.h (FUNC): Update.
35301         * lib/vasnprintf.c (VASNPRINTF): Update.
35302         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
35303         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
35304         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
35305         * NEWS: Mention the change.
35306
35307 2009-04-26  Bruno Haible  <bruno@clisp.org>
35308
35309         Avoid test failures on AIX and OSF/1.
35310         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
35311         malloc(0).
35312         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
35313         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
35314         Likewise.
35315         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
35316         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
35317         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
35318         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
35319         * doc/posix-functions/malloc.texi: Document the portability problem
35320         related to malloc(0).
35321
35322 2009-04-26  Bruno Haible  <bruno@clisp.org>
35323
35324         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
35325         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
35326         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
35327
35328 2009-04-25  Bruno Haible  <bruno@clisp.org>
35329
35330         Avoid link error when creating a namespace clean library.
35331         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
35332         as macro with arguments if already defined as an alias.
35333         * lib/signbitf.c (gl_signbitf): Don't undefine.
35334         * lib/signbitd.c (gl_signbitd): Don't undefine.
35335         * lib/signbitl.c (gl_signbitl): Don't undefine.
35336
35337 2009-04-25  Jim Meyering  <meyering@redhat.com>
35338
35339         vc-list-files: fix another quoting bug
35340         * build-aux/vc-list-files: Avoid sed backslash expansion
35341         of pathological directory names.
35342
35343 2009-04-25  Eric Blake  <ebb9@byu.net>
35344
35345         vc-list-files: fix shell quoting error
35346         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
35347         timestamp.
35348
35349 2009-04-25  Jim Meyering  <meyering@redhat.com>
35350
35351         vc-list-files: restore lost functionality with subdir argument
35352         * build-aux/vc-list-files: When given a non-"." sub-directory
35353         argument, substitute the $dir/ prefix back onto each resulting name.
35354         Otherwise, coreutils' root_tests check would fail.
35355
35356 2009-04-24  Eric Blake  <ebb9@byu.net>
35357
35358         vc-list-files: ignore git symlinks
35359         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
35360         than ls-files, to ignore git symlinks.
35361
35362         maint.mk: import improvements from m4
35363         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
35364         (move_if_change): Delete unused macro.
35365         (news-date-check, vc-diff-check): Support VPATH builds.
35366         (announcement): Likewise.  Split --bootstrap-tools list...
35367         (boostrap-tools): ...into separate list, which can be overridden
35368         in cfg.mk.
35369         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
35370         requiring dependency on useless-if-before-free module.
35371         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
35372         Support VPATH builds.
35373
35374 2009-04-24  Jim Meyering  <meyering@redhat.com>
35375
35376         maint.mk: remove coreutils-specific rules and variables
35377         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
35378         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
35379         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
35380
35381         maint.mk: remove obsolete rule
35382         * top/maint.mk (rel-check): Remove rule.
35383         (WGET, WGETFLAGS): Remove now-unused variables.
35384
35385 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35386
35387         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
35388         consistency.
35389
35390         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
35391         '$(PATH_SEPARATOR)' instead of ':'.
35392
35393 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35394
35395         * lib/getopt1.c (main): Use 'const' for static array.
35396
35397 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35398
35399         * top/maint.mk: Sync with coreutils.
35400         * NEWS: Explain incompatibilities.
35401
35402 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35403             Bruno Haible  <bruno@clisp.org>
35404
35405         Fix cross-compilation results.
35406         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
35407         statement, as third argument of AC_TRY_RUN.
35408         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
35409         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
35410         Likewise.
35411         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
35412         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
35413         Likewise.
35414         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
35415         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
35416         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
35417
35418 2009-04-20  Bruno Haible  <bruno@clisp.org>
35419
35420         Avoid test failure on mingw.
35421         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
35422
35423 2009-04-20  Bruno Haible  <bruno@clisp.org>
35424
35425         Avoid compilation error on mingw.
35426         * modules/localename-tests (Depends-on): Add locale.
35427
35428 2009-04-19  Bruno Haible  <bruno@clisp.org>
35429
35430         Support for building a shared library on Windows platforms.
35431         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
35432         (main): Test the presence of UNINORM_NFC here.
35433         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
35434         (main): Test the presence of UNINORM_NFD here.
35435         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
35436         (main): Test the presence of UNINORM_NFKC here.
35437         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
35438         (main): Test the presence of UNINORM_NFKD here.
35439
35440 2009-04-19  Bruno Haible  <bruno@clisp.org>
35441
35442         Avoid a compiler warning.
35443         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
35444         Change type of variable 'sequence'.
35445
35446 2009-04-19  Bruno Haible  <bruno@clisp.org>
35447
35448         * modules/configmake (Makefile.am): When the contents of configmake.h
35449         does not change, arrange to preserve its modification time.
35450
35451 2009-04-17  Simon Josefsson  <simon@josefsson.org>
35452
35453         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
35454         gettext domain.
35455
35456 2009-04-16  Jim Meyering  <meyering@redhat.com>
35457
35458         useless-if-before-free: improve conversion code
35459         * build-aux/useless-if-before-free: Adjust code-in-comment to match
35460         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
35461
35462 2009-04-14  Bruno Haible  <bruno@clisp.org>
35463
35464         * modules/fcntl (Depends-on): Add extensions.
35465         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
35466
35467 2009-04-12  Ben Pfaff  <blp@gnu.org>
35468
35469         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
35470         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
35471
35472 2009-03-20  Ben Pfaff  <blp@gnu.org>
35473
35474         Make rename replace existing destinations on Windows.
35475         * m4/rename.m4: Add test for Mingw.
35476         * lib/rename.c: Add rename replacement that uses MoveFileEx with
35477         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
35478         * doc/posix-functions/rename.texi: Document.
35479
35480 2009-04-10  Bruno Haible  <bruno@clisp.org>
35481
35482         New include file "iconveh.h".
35483         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
35484         * lib/striconveh.h: Include it.
35485         (enum iconv_ilseq_handler): Remove definition.
35486         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
35487         striconveh.h.
35488         * lib/striconveha.c: Include striconveh.h.
35489         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
35490         * modules/striconveh (Files): Add lib/iconveh.h.
35491         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
35492         lib/striconveh.h.
35493
35494 2009-04-10  Bruno Haible  <bruno@clisp.org>
35495
35496         * lib/uniconv.h: Update comment.
35497
35498 2009-04-10  Bruno Haible  <bruno@clisp.org>
35499
35500         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
35501         always.
35502         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
35503         * lib/unistr/u16-mbtouc-aux.c: Likewise.
35504         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
35505         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
35506         "unistring-notinline.h", so that the function gets defined always.
35507         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
35508         * lib/unistr/u8-uctomb.c: Likewise.
35509         * lib/unistr/u16-mbtouc.c: Likewise.
35510         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
35511         * lib/unistr/u16-uctomb.c: Likewise.
35512         * lib/unistr/u32-mbtouc.c: Likewise.
35513         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
35514         * lib/unistr/u32-uctomb.c: Likewise.
35515
35516 2009-04-10  Bruno Haible  <bruno@clisp.org>
35517
35518         Mark 'utime' obsolete.
35519         * modules/utime (Status, Notice): New sections.
35520         Suggested by Jim Meyering.
35521
35522         Fix cross-compile guess for utime test.
35523         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
35524         autoconf.
35525         * doc/posix-functions/utime.texi: Give more precisions.
35526         Reported by Jan <ipif@ymail.com>.
35527
35528 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
35529
35530         filevercmp: correct today's change
35531         * lib/filevercmp.c: Also handle coreutils' test inputs.
35532         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
35533
35534         Fix regression in 'filevercmp' module. Thanks Sven Joachim
35535         for reporting it.
35536         * lib/filevercmp.c: Special handle for "", "." and "..".
35537         * tests/test-filevercmp.c: Enlarge the set suite.
35538
35539 2009-04-07  Jim Meyering  <meyering@redhat.com>
35540
35541         useless-if-before-free: show how to remove braced useless free, too
35542         * build-aux/useless-if-before-free: still only in a comment, though.
35543
35544 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
35545
35546         maint.mk: import changes to syntax-check macros from coreutils
35547         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
35548         Use them in the relevant macros.
35549
35550 2009-04-06  Bruno Haible  <bruno@clisp.org>
35551
35552         Fix unportable use of bit-fields.
35553         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
35554         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
35555         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
35556
35557 2009-04-06  Bruno Haible  <bruno@clisp.org>
35558
35559         Avoid test failures on AIX and OSF/1.
35560         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
35561         that malloc(0) = NULL.
35562         * tests/unicase/test-u8-tolower.c (check): Likewise.
35563         * tests/unicase/test-u8-totitle.c (check): Likewise.
35564         * tests/unicase/test-u8-toupper.c (check): Likewise.
35565         * tests/unicase/test-u16-casefold.c (check): Likewise.
35566         * tests/unicase/test-u16-tolower.c (check): Likewise.
35567         * tests/unicase/test-u16-totitle.c (check): Likewise.
35568         * tests/unicase/test-u16-toupper.c (check): Likewise.
35569         * tests/unicase/test-u32-casefold.c (check): Likewise.
35570         * tests/unicase/test-u32-tolower.c (check): Likewise.
35571         * tests/unicase/test-u32-totitle.c (check): Likewise.
35572         * tests/unicase/test-u32-toupper.c (check): Likewise.
35573         * tests/uninorm/test-u8-nfc.c (check): Likewise.
35574         * tests/uninorm/test-u8-nfd.c (check): Likewise.
35575         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
35576         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
35577         * tests/uninorm/test-u16-nfc.c (check): Likewise.
35578         * tests/uninorm/test-u16-nfd.c (check): Likewise.
35579         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
35580         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
35581         * tests/uninorm/test-u32-nfc.c (check): Likewise.
35582         * tests/uninorm/test-u32-nfd.c (check): Likewise.
35583         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
35584         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
35585
35586 2009-04-05  Bruno Haible  <bruno@clisp.org>
35587
35588         Work around an autoconf limitation.
35589         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
35590         comment line if it would be longer than 3 KB.
35591
35592 2009-04-05  Bruno Haible  <bruno@clisp.org>
35593
35594         Avoid test failure with libiconv-1.13.
35595         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
35596         of the expected test results.
35597
35598 2009-04-05  Bruno Haible  <bruno@clisp.org>
35599
35600         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
35601         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
35602         that it should be installed.
35603
35604 2009-04-05  Bruno Haible  <bruno@clisp.org>
35605
35606         * gnulib-tool: New option --copy-file.
35607         (func_usage): Document it.
35608         (func_dest_tmpfilename): Moved out of func_import.
35609         (func_add_file, func_update_file): New functions, extracted from
35610         func_import.
35611         (func_import): Update.
35612
35613 2009-04-05  Karl Berry  <karl@gnu.org>
35614
35615         * README: prominently mention gnulib-tool.
35616         Rearrange sections so getting the code is near the top.
35617
35618 2009-04-05  Bruno Haible  <bruno@clisp.org>
35619
35620         * lib/unicase.h: Mention u*_cmp2.
35621         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
35622         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
35623         * lib/unicase/ulc-casecmp.c: Likewise.
35624         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
35625         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
35626         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
35627         unistr/u8-cmp.
35628         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
35629         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
35630         unistr/u16-cmp.
35631         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
35632         unistr/u32-cmp.
35633
35634         * lib/uninorm.h: Mention u*_cmp2.
35635         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
35636         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
35637         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
35638         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
35639         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
35640         unistr/u8-cmp.
35641         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
35642         unistr/u16-cmp.
35643         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
35644         unistr/u32-cmp.
35645
35646         New module 'unistr/u32-cmp2'.
35647         * lib/unistr/u32-cmp2.c: New file.
35648         * modules/unistr/u32-cmp2: New file.
35649
35650         New module 'unistr/u16-cmp2'.
35651         * lib/unistr/u16-cmp2.c: New file.
35652         * modules/unistr/u16-cmp2: New file.
35653
35654         New module 'unistr/u8-cmp2'.
35655         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
35656         * lib/unistr/u8-cmp2.c: New file.
35657         * lib/unistr/u-cmp2.h: New file.
35658         * modules/unistr/u8-cmp2: New file.
35659
35660 2009-04-05  Bruno Haible  <bruno@clisp.org>
35661
35662         * lib/unictype.h (uc_property_is_valid): New macro.
35663         * tests/unictype/test-pr_byname.c (main): Use it.
35664
35665         * lib/unistr.h: Doc fixes.
35666         * lib/uniconv.h: Doc fixes.
35667         * lib/unictype.h: Doc fixes.
35668
35669 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
35670
35671         Port coreutils 7.2 to Solaris 8.
35672
35673         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
35674         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
35675         for Solaris 8.  This is a bit of a hack, as it means it's the
35676         caller's responsibility to add -lnsl if needed, but most likely it
35677         won't be needed since only getaddrinfo uses this and getaddrinfo
35678         isn't needed on Solaris 8.
35679
35680         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
35681         problem to Solaris 8 encountered with coreutils 7.2, which
35682         resulted in a message "fnmatch.c:292: warning: passing argument 4
35683         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
35684         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
35685
35686 2009-04-03  Simon Josefsson  <simon@josefsson.org>
35687
35688         * m4/ld-version-script.m4: Add FIXME comment.
35689
35690 2009-04-02  Simon Josefsson  <simon@josefsson.org>
35691
35692         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
35693         SOVERSION variable.
35694
35695 2009-04-02  Bruno Haible  <bruno@clisp.org>
35696
35697         * Makefile (info, html, dvi, pdf): Combine the rules.
35698         Suggested by Jim Meyering.
35699
35700 2009-04-01  Bruno Haible  <bruno@clisp.org>
35701
35702         * Makefile (info, html, dvi, pdf): New targets.
35703         Reported by Reuben Thomas <rrt@sc3d.org>.
35704
35705 2009-04-01  Bruno Haible  <bruno@clisp.org>
35706
35707         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
35708         can be put into PATH.
35709         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
35710
35711 2009-04-01  Bruno Haible  <bruno@clisp.org>
35712
35713         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
35714
35715 2009-04-01  Bruno Haible  <bruno@clisp.org>
35716
35717         Rename module 'visibility'.
35718         * modules/lib-symbol-visibility: Renamed from modules/visibility.
35719         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
35720         * doc/gnulib.texi: Update.
35721         * MODULES.html.sh (Misc): Update.
35722         * NEWS: Mention the change.
35723
35724 2009-04-01  Simon Josefsson  <simon@josefsson.org>
35725
35726         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
35727         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
35728         Eric Blake <ebb9@byu.net> for review.
35729         * MODULES.html.sh: Add lib-msvc-compat.
35730         * doc/gnulib.texi: Link to new section.
35731         * m4/ld-output-def.m4: New file.
35732         * doc/ld-output-def.texi: New file.
35733
35734 2009-04-01  Simon Josefsson  <simon@josefsson.org>
35735
35736         Rename ld-version-script to lib-symbol-versions.  Suggested by
35737         Bruno Haible <bruno@clisp.org>.
35738         * modules/ld-version-script: Renamed to lib-symbol-versions.
35739         * doc/ld-version-script.texi: Fix module name.
35740         * MODULES.html.sh: Add lib-symbol-versions.
35741
35742 2009-03-31  Simon Josefsson  <simon@josefsson.org>
35743
35744         * modules/u64-tests: New file.
35745         * tests/test-u64.c: New file.
35746
35747 2009-03-04  Simon Josefsson  <simon@josefsson.org>
35748
35749         * MODULES.html.sh: Mention u64.
35750         * modules/u64: New module.
35751         * modules/crypto/sha512: Depend on u64 module instead of providing
35752         u64.h.
35753
35754 2009-03-27  Eric Blake  <ebb9@byu.net>
35755
35756         test-strerror: make debugging EAI_SYSTEM easier
35757         * modules/getaddrinfo-tests (Depends-on): Add strerror.
35758         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
35759         failure was EAI_SYSTEM.
35760
35761 2009-03-25  Bruno Haible  <bruno@clisp.org>
35762
35763         Fix a problem with --enable-relocatable on Solaris 7.
35764         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
35765         since 2008-02-24.
35766
35767 2009-03-25  Eric Blake  <ebb9@byu.net>
35768
35769         test-sockets: avoid gcc warning
35770         * tests/test-sockets.c (main): Silence compiler warning.
35771
35772 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
35773
35774         New modules nproc, pthread, contributed by Glen Lenker.
35775
35776         * MODULES.html.sh: Add pthread, nproc.
35777         * lib/nproc.c: New file.
35778         * lib/nproc.h: New file.
35779         * lib/pthread.in.h: New file.
35780         * m4/pthread.m4: New file.
35781         * modules/nproc: New file.
35782         * modules/pthread: New file.
35783
35784 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35785
35786         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
35787         New variable.
35788
35789 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
35790
35791         filevercmp: handle simple~ and numbered.~3~ backup suffixes
35792         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
35793         * tests/test-filevercmp.c: Add tests for backup suffixes.
35794
35795 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35796
35797         * modules/stdlib (Depends-on): Add stdint, needed when defining
35798         struct random_data on, for example, HP-UX 10.20.  Reported by
35799         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35800
35801 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35802
35803         * lib/readline.c (readline): Call fflush on stdout after printing
35804         prompt.
35805
35806 2009-03-20  Bruno Haible  <bruno@clisp.org>
35807
35808         Remove dependency from 'close' module to -lws2_32 on native Windows.
35809         * lib/close-hook.h: New file.
35810         * lib/close-hook.c: New file.
35811         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
35812         w32sock.h.
35813         (_gl_close_fd_maybe_socket): Remove function.
35814         (rpl_close): Invoke execute_all_close_hooks instead of
35815         _gl_close_fd_maybe_socket.
35816         * lib/sockets.c: Include close-hook.h, w32sock.h.
35817         (close_fd_maybe_socket): New function, essentially from lib/close.c.
35818         (close_sockets_hook): New variable.
35819         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
35820         (gl_sockets_cleanup): Unregister it.
35821         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
35822         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
35823         * modules/close-hook: New file.
35824         * modules/close (Files): Remove lib/w32sock.h.
35825         (Depends-on): Add close-hook.
35826         (Link): Remove section.
35827         * modules/sockets (Files): Add lib/w32sock.h.
35828         (Depends-on): Add close-hook.
35829         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
35830         invocation.
35831         * NEWS: Mention that LIB_CLOSE is gone.
35832
35833 2009-03-23  Eric Blake  <ebb9@byu.net>
35834
35835         signal-tests: test previous patch
35836         * tests/test-signal.c: New file.
35837         * modules/signal-tests: Likewise.
35838
35839         signal.h: always support 'volatile sig_atomic_t'
35840         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
35841         (gl_SIGNAL_H_DEFAULTS): Add a default.
35842         * modules/signal (Makefile.am): Substitute if needed.
35843         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
35844         users can blindly add volatile.
35845         * doc/posix-headers/signal.texi (signal.h): Document it.
35846         Reported by Matthew Woehlke.
35847
35848 2009-03-23  Jim Meyering  <meyering@redhat.com>
35849
35850         pathmax: PATH_MAX: use pathconf only when available
35851         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
35852         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
35853         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
35854         This avoids a link failure in a PSP cross-compilation environment
35855         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
35856
35857         * lib/vasnprintf.c (divide): Fix typo in comment.
35858
35859 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35860
35861         * gnulib-tool (func_filter_filelist): Fix comment.
35862
35863 2009-03-20  Bruno Haible  <bruno@clisp.org>
35864
35865         Make sockets.h self-contained.
35866         * lib/sockets.c: Include sockets.h first.
35867         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
35868
35869 2009-03-19  Eric Blake  <ebb9@byu.net>
35870
35871         doc: mention more functions added in cygwin 1.7.0
35872         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
35873         addition.
35874         * doc/posix-functions/log2f.texi: Likewise.
35875
35876 2009-03-19  Jim Meyering  <meyering@redhat.com>
35877
35878         fsusage: avoid syntax error due to statement-before-declaration
35879         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
35880         after all declarations.  Reported by Matthew Woehlke in
35881         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
35882
35883 2009-03-18  Eric Blake  <ebb9@byu.net>
35884
35885         build-aux/compile: sync from automake
35886         * build-aux/compile: New file, from automake.
35887         * config/srclist.txt: Mention build-aux/compile.
35888
35889 2009-03-17  Bruno Haible  <bruno@clisp.org>
35890
35891         * lib/git-merge-changelog.c: Fix typo in comment.
35892         Reported by Reuben Thomas <rrt@sc3d.org>.
35893
35894 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
35895
35896         * m4/regex.m4: update and improve help for
35897         --without-included-regex.
35898
35899 2009-03-17  Simon Josefsson  <simon@josefsson.org>
35900
35901         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
35902         failure on missing include files.
35903
35904 2009-03-17  Eric Blake  <ebb9@byu.net>
35905
35906         doc: mention more functions added in cygwin 1.7.0
35907         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
35908         addition.
35909         * doc/posix-functions/fwscanf.texi: Likewise.
35910         * doc/posix-functions/swprintf.texi: Likewise.
35911         * doc/posix-functions/swscanf.texi: Likewise.
35912         * doc/posix-functions/vfwprintf.texi: Likewise.
35913         * doc/posix-functions/vfwscanf.texi: Likewise.
35914         * doc/posix-functions/vswprintf.texi: Likewise.
35915         * doc/posix-functions/vswscanf.texi: Likewise.
35916         * doc/posix-functions/vwprintf.texi: Likewise.
35917         * doc/posix-functions/vwscanf.texi: Likewise.
35918         * doc/posix-functions/wcscasecmp.texi: Likewise.
35919         * doc/posix-functions/wcsdup.texi: Likewise.
35920         * doc/posix-functions/wcsftime.texi: Likewise.
35921         * doc/posix-functions/wcsncasecmp.texi: Likewise.
35922         * doc/posix-functions/wprintf.texi: Likewise.
35923         * doc/posix-functions/wscanf.texi: Likewise.
35924         * doc/glibc-functions/gethostbyname2.texi: Likewise.
35925
35926 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35927
35928         maint.mk: really add $(AM_MAKEFLAGS)
35929         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
35930         was inadvertently omitted in the last commit.
35931         Spotted by Bruno Haible.
35932
35933         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
35934         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
35935         $(AM_MAKEFLAGS)' rather than plain `make'.
35936
35937         gnulib-tool: execute $MAKE not make
35938         * gnulib-tool: Default $MAKE to 'make'.
35939         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
35940         than make.  Initialize $MAKE in the do-autobuild script.
35941
35942         gnulib-tool: use $MAKE not make in generated files
35943         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
35944         make, in generated files.  Initialize $MAKE in the do-autobuild
35945         script.
35946
35947         * top/GNUmakefile (_have-git-version-gen): Fix typo.
35948
35949         GNUmakefile: disable parallelism only for multiple, recursive targets
35950         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
35951         additions in the Makefile.
35952         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
35953         by Automake.
35954         (.NOTPARALLEL): Only disable parallel builds if multiple targets
35955         are listed on the command line and at least one of them is
35956         listed in $(ALL_RECURSIVE_TARGETS).
35957
35958 2009-03-14  Bruno Haible  <bruno@clisp.org>
35959
35960         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
35961         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
35962         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
35963         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
35964         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
35965         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
35966         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
35967         unistr/u8-uctomb.
35968         * modules/unistr/u8-strchr (Depends-on): Likewise.
35969         * modules/unistr/u8-strrchr (Depends-on): Likewise.
35970         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
35971         unistr/u16-uctomb.
35972         * modules/unistr/u16-strchr (Depends-on): Likewise.
35973         * modules/unistr/u16-strrchr (Depends-on): Likewise.
35974
35975 2009-03-12  Bruno Haible  <bruno@clisp.org>
35976
35977         Work around select() bug on Interix 3.5.
35978         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
35979         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
35980         * m4/select.m4: New file.
35981         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
35982         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
35983         * modules/select (Files): Add m4/select.m4.
35984         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
35985         * modules/nanosleep (Depends-on): Add select.
35986         * modules/poll (Depends-on): Likewise.
35987         * doc/posix-functions/select.texi: Mention the Interix bug.
35988         Reported by Markus Duft <mduft@gentoo.org>.
35989
35990         * lib/select.c: Renamed from lib/winsock-select.c.
35991         * modules/select (Files): Add lib/select.c, remove
35992         lib/winsock-select.c.
35993         (configure.ac): Update.
35994
35995 2009-03-12  Jim Meyering  <meyering@redhat.com>
35996
35997         avoid gcc warnings about unused macro definitions
35998         * lib/readtokens.c (STREQ): Remove unused definition.
35999         * lib/xmalloc.c (SIZE_MAX): Likewise.
36000         * lib/openat-die.c (N_): Likewise.
36001         * lib/mountlist.c (SIZE_MAX): Remove definition.
36002         Instead, include <stdint.h>.
36003         * lib/readutmp.c: Likewise.
36004         * modules/readutmp (Depends-on): Add stdint.
36005         * modules/mountlist (Depends-on): Add stdint.
36006         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
36007
36008 2009-03-10  Bruno Haible  <bruno@clisp.org>
36009
36010         Tests for module 'mbmemcasecoll'.
36011         * modules/mbmemcasecoll-tests: New file.
36012         * tests/test-mbmemcasecoll1.sh: New file.
36013         * tests/test-mbmemcasecoll2.sh: New file.
36014         * tests/test-mbmemcasecoll3.sh: New file.
36015         * tests/test-mbmemcasecoll.c: New file.
36016
36017         New module 'mbmemcasecoll'.
36018         * lib/mbmemcasecoll.h: New file.
36019         * lib/mbmemcasecoll.c: New file.
36020         * modules/mbmemcasecoll: New file.
36021
36022         * tests/test-mbmemcasecmp.h: New file, extracted from
36023         tests/test-mbmemcasecmp.c.
36024         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
36025         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
36026         (main): Update.
36027         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
36028
36029 2009-03-09  Bruno Haible  <bruno@clisp.org>
36030
36031         Tests for module 'mbmemcasecmp'.
36032         * modules/mbmemcasecmp-tests: New file.
36033         * tests/test-mbmemcasecmp1.sh: New file.
36034         * tests/test-mbmemcasecmp2.sh: New file.
36035         * tests/test-mbmemcasecmp3.sh: New file.
36036         * tests/test-mbmemcasecmp.c: New file.
36037
36038         New module 'mbmemcasecmp'.
36039         * lib/mbmemcasecmp.h: New file.
36040         * lib/mbmemcasecmp.c: New file.
36041         * modules/mbmemcasecmp: New file.
36042
36043 2009-03-09  Bruno Haible  <bruno@clisp.org>
36044
36045         Tests for module 'unicase/ulc-casecoll'.
36046         * modules/unicase/ulc-casecoll-tests: New file.
36047         * tests/unicase/test-ulc-casecoll1.sh: New file.
36048         * tests/unicase/test-ulc-casecoll2.sh: New file.
36049         * tests/unicase/test-ulc-casecoll.c: New file.
36050
36051         New module 'unicase/ulc-casecoll'.
36052         * lib/unicase.h (ulc_casecoll): New declaration.
36053         * lib/unicase/ulc-casecoll.c: New file.
36054         * modules/unicase/ulc-casecoll: New file.
36055
36056         New module 'unicase/ulc-casexfrm'.
36057         * lib/unicase.h (ulc_casexfrm): New declaration.
36058         * lib/unicase/ulc-casexfrm.c: New file.
36059         * modules/unicase/ulc-casexfrm: New file.
36060
36061 2009-03-09  Bruno Haible  <bruno@clisp.org>
36062
36063         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
36064         invocations.
36065
36066         * m4/mbscasecmp.m4: Remove file.
36067         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
36068         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
36069
36070         * m4/mbscasestr.m4: Remove file.
36071         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
36072         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
36073
36074         * m4/mbschr.m4: Remove file.
36075         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
36076         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
36077
36078         * m4/mbscspn.m4: Remove file.
36079         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
36080         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
36081
36082         * m4/mbslen.m4: Remove file.
36083         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
36084         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
36085
36086         * m4/mbsncasecmp.m4: Remove file.
36087         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
36088         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
36089
36090         * m4/mbsnlen.m4: Remove file.
36091         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
36092         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
36093
36094         * m4/mbspbrk.m4: Remove file.
36095         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
36096         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
36097
36098         * m4/mbspcasecmp.m4: Remove file.
36099         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
36100         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
36101
36102         * m4/mbsrchr.m4: Remove file.
36103         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
36104         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
36105
36106         * m4/mbssep.m4: Remove file.
36107         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
36108         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
36109
36110         * m4/mbsspn.m4: Remove file.
36111         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
36112         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
36113
36114         * m4/mbsstr.m4: Remove file.
36115         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
36116         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
36117
36118         * m4/mbstok_r.m4: Remove file.
36119         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
36120         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
36121
36122         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
36123
36124         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
36125         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
36126
36127         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
36128
36129 2009-03-08  Bruno Haible  <bruno@clisp.org>
36130
36131         Tests for module 'unicase/ulc-casecmp'.
36132         * modules/unicase/ulc-casecmp-tests: New file.
36133         * tests/unicase/test-ulc-casecmp1.sh: New file.
36134         * tests/unicase/test-ulc-casecmp2.sh: New file.
36135         * tests/unicase/test-ulc-casecmp.c: New file.
36136
36137         New module 'unicase/ulc-casecmp'.
36138         * lib/unicase.h (ulc_casecmp): New declaration.
36139         * lib/unicase/ulc-casecmp.c: New file.
36140         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
36141         'const SRC_UNIT *'.
36142         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
36143         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
36144         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
36145         * modules/unicase/ulc-casecmp: New file.
36146
36147         Tests for module 'unicase/u32-is-cased'.
36148         * modules/unicase/u32-is-cased-tests: New file.
36149         * tests/unicase/test-u32-is-cased.c: New file.
36150
36151         Tests for module 'unicase/u16-is-cased'.
36152         * modules/unicase/u16-is-cased-tests: New file.
36153         * tests/unicase/test-u16-is-cased.c: New file.
36154
36155         Tests for module 'unicase/u8-is-cased'.
36156         * modules/unicase/u8-is-cased-tests: New file.
36157         * tests/unicase/test-u8-is-cased.c: New file.
36158         * tests/unicase/test-is-cased.h: New file.
36159
36160         New module 'unicase/u32-is-cased'.
36161         * lib/unicase/u32-is-cased.c: New file.
36162         * modules/unicase/u32-is-cased: New file.
36163
36164         New module 'unicase/u16-is-cased'.
36165         * lib/unicase/u16-is-cased.c: New file.
36166         * modules/unicase/u16-is-cased: New file.
36167
36168         New module 'unicase/u8-is-cased'.
36169         * lib/unicase/u8-is-cased.c: New file.
36170         * lib/unicase/u-is-cased.h: New file.
36171         * modules/unicase/u8-is-cased: New file.
36172
36173         Tests for module 'unicase/u32-is-casefolded'.
36174         * modules/unicase/u32-is-casefolded-tests: New file.
36175         * tests/unicase/test-u32-is-casefolded.c: New file.
36176
36177         Tests for module 'unicase/u16-is-casefolded'.
36178         * modules/unicase/u16-is-casefolded-tests: New file.
36179         * tests/unicase/test-u16-is-casefolded.c: New file.
36180
36181         Tests for module 'unicase/u8-is-casefolded'.
36182         * modules/unicase/u8-is-casefolded-tests: New file.
36183         * tests/unicase/test-u8-is-casefolded.c: New file.
36184         * tests/unicase/test-is-casefolded.h: New file.
36185
36186         New module 'unicase/u32-is-casefolded'.
36187         * lib/unicase/u32-is-casefolded.c: New file.
36188         * modules/unicase/u32-is-casefolded: New file.
36189
36190         New module 'unicase/u16-is-casefolded'.
36191         * lib/unicase/u16-is-casefolded.c: New file.
36192         * modules/unicase/u16-is-casefolded: New file.
36193
36194         New module 'unicase/u8-is-casefolded'.
36195         * lib/unicase/u8-is-casefolded.c: New file.
36196         * modules/unicase/u8-is-casefolded: New file.
36197
36198         Tests for module 'unicase/u32-is-titlecase'.
36199         * modules/unicase/u32-is-titlecase-tests: New file.
36200         * tests/unicase/test-u32-is-titlecase.c: New file.
36201
36202         Tests for module 'unicase/u16-is-titlecase'.
36203         * modules/unicase/u16-is-titlecase-tests: New file.
36204         * tests/unicase/test-u16-is-titlecase.c: New file.
36205
36206         Tests for module 'unicase/u8-is-titlecase'.
36207         * modules/unicase/u8-is-titlecase-tests: New file.
36208         * tests/unicase/test-u8-is-titlecase.c: New file.
36209         * tests/unicase/test-is-titlecase.h: New file.
36210
36211         New module 'unicase/u32-is-titlecase'.
36212         * lib/unicase/u32-is-titlecase.c: New file.
36213         * modules/unicase/u32-is-titlecase: New file.
36214
36215         New module 'unicase/u16-is-titlecase'.
36216         * lib/unicase/u16-is-titlecase.c: New file.
36217         * modules/unicase/u16-is-titlecase: New file.
36218
36219         New module 'unicase/u8-is-titlecase'.
36220         * lib/unicase/u8-is-titlecase.c: New file.
36221         * modules/unicase/u8-is-titlecase: New file.
36222
36223         Tests for module 'unicase/u32-is-lowercase'.
36224         * modules/unicase/u32-is-lowercase-tests: New file.
36225         * tests/unicase/test-u32-is-lowercase.c: New file.
36226
36227         Tests for module 'unicase/u16-is-lowercase'.
36228         * modules/unicase/u16-is-lowercase-tests: New file.
36229         * tests/unicase/test-u16-is-lowercase.c: New file.
36230
36231         Tests for module 'unicase/u8-is-lowercase'.
36232         * modules/unicase/u8-is-lowercase-tests: New file.
36233         * tests/unicase/test-u8-is-lowercase.c: New file.
36234         * tests/unicase/test-is-lowercase.h: New file.
36235
36236         New module 'unicase/u32-is-lowercase'.
36237         * lib/unicase/u32-is-lowercase.c: New file.
36238         * modules/unicase/u32-is-lowercase: New file.
36239
36240         New module 'unicase/u16-is-lowercase'.
36241         * lib/unicase/u16-is-lowercase.c: New file.
36242         * modules/unicase/u16-is-lowercase: New file.
36243
36244         New module 'unicase/u8-is-lowercase'.
36245         * lib/unicase/u8-is-lowercase.c: New file.
36246         * modules/unicase/u8-is-lowercase: New file.
36247
36248         Tests for module 'unicase/u32-is-uppercase'.
36249         * modules/unicase/u32-is-uppercase-tests: New file.
36250         * tests/unicase/test-u32-is-uppercase.c: New file.
36251
36252         Tests for module 'unicase/u16-is-uppercase'.
36253         * modules/unicase/u16-is-uppercase-tests: New file.
36254         * tests/unicase/test-u16-is-uppercase.c: New file.
36255
36256         Tests for module 'unicase/u8-is-uppercase'.
36257         * modules/unicase/u8-is-uppercase-tests: New file.
36258         * tests/unicase/test-u8-is-uppercase.c: New file.
36259         * tests/unicase/test-is-uppercase.h: New file.
36260
36261         New module 'unicase/u32-is-uppercase'.
36262         * lib/unicase/u32-is-uppercase.c: New file.
36263         * modules/unicase/u32-is-uppercase: New file.
36264
36265         New module 'unicase/u16-is-uppercase'.
36266         * lib/unicase/u16-is-uppercase.c: New file.
36267         * modules/unicase/u16-is-uppercase: New file.
36268
36269         New module 'unicase/u8-is-uppercase'.
36270         * lib/unicase/u8-is-uppercase.c: New file.
36271         * modules/unicase/u8-is-uppercase: New file.
36272
36273         New module 'unicase/u32-is-invariant'.
36274         * lib/unicase/u32-is-invariant.c: New file.
36275         * modules/unicase/u32-is-invariant: New file.
36276
36277         New module 'unicase/u16-is-invariant'.
36278         * lib/unicase/u16-is-invariant.c: New file.
36279         * modules/unicase/u16-is-invariant: New file.
36280
36281         New module 'unicase/u8-is-invariant'.
36282         * lib/unicase/u8-is-invariant.c: New file.
36283         * lib/unicase/invariant.h: New file.
36284         * lib/unicase/u-is-invariant.h: New file.
36285         * modules/unicase/u8-is-invariant: New file.
36286
36287         Tests for module 'unicase/u32-casecoll'.
36288         * modules/unicase/u32-casecoll-tests: New file.
36289         * tests/unicase/test-u32-casecoll.c: New file.
36290
36291         Tests for module 'unicase/u16-casecoll'.
36292         * modules/unicase/u16-casecoll-tests: New file.
36293         * tests/unicase/test-u16-casecoll.c: New file.
36294
36295         Tests for module 'unicase/u8-casecoll'.
36296         * modules/unicase/u8-casecoll-tests: New file.
36297         * tests/unicase/test-u8-casecoll.c: New file.
36298
36299         New module 'unicase/u32-casecoll'.
36300         * lib/unicase/u32-casecoll.c: New file.
36301         * modules/unicase/u32-casecoll: New file.
36302
36303         New module 'unicase/u16-casecoll'.
36304         * lib/unicase/u16-casecoll.c: New file.
36305         * modules/unicase/u16-casecoll: New file.
36306
36307         New module 'unicase/u8-casecoll'.
36308         * lib/unicase/u8-casecoll.c: New file.
36309         * lib/unicase/u-casecoll.h: New file.
36310         * modules/unicase/u8-casecoll: New file.
36311
36312         New module 'unicase/u32-casexfrm'.
36313         * lib/unicase/u32-casexfrm.c: New file.
36314         * modules/unicase/u32-casexfrm: New file.
36315
36316         New module 'unicase/u16-casexfrm'.
36317         * lib/unicase/u16-casexfrm.c: New file.
36318         * modules/unicase/u16-casexfrm: New file.
36319
36320         New module 'unicase/u8-casexfrm'.
36321         * lib/unicase/u8-casexfrm.c: New file.
36322         * lib/unicase/u-casexfrm.h: New file.
36323         * modules/unicase/u8-casexfrm: New file.
36324
36325         Tests for module 'unicase/u32-casecmp'.
36326         * modules/unicase/u32-casecmp-tests: New file.
36327         * tests/unicase/test-u32-casecmp.c: New file.
36328
36329         Tests for module 'unicase/u16-casecmp'.
36330         * modules/unicase/u16-casecmp-tests: New file.
36331         * tests/unicase/test-u16-casecmp.c: New file.
36332
36333         Tests for module 'unicase/u8-casecmp'.
36334         * modules/unicase/u8-casecmp-tests: New file.
36335         * tests/unicase/test-u8-casecmp.c: New file.
36336         * tests/unicase/test-casecmp.h: New file.
36337
36338         New module 'unicase/u32-casecmp'.
36339         * lib/unicase/u32-casecmp.c: New file.
36340         * modules/unicase/u32-casecmp: New file.
36341
36342         New module 'unicase/u16-casecmp'.
36343         * lib/unicase/u16-casecmp.c: New file.
36344         * modules/unicase/u16-casecmp: New file.
36345
36346         New module 'unicase/u8-casecmp'.
36347         * lib/unicase/u8-casecmp.c: New file.
36348         * lib/unicase/u-casecmp.h: New file.
36349         * modules/unicase/u8-casecmp: New file.
36350
36351         Tests for module 'unicase/u32-casefold'.
36352         * modules/unicase/u32-casefold-tests: New file.
36353         * tests/unicase/test-u32-casefold.c: New file.
36354
36355         Tests for module 'unicase/u16-casefold'.
36356         * modules/unicase/u16-casefold-tests: New file.
36357         * tests/unicase/test-u16-casefold.c: New file.
36358
36359         Tests for module 'unicase/u8-casefold'.
36360         * modules/unicase/u8-casefold-tests: New file.
36361         * tests/unicase/test-u8-casefold.c: New file.
36362
36363         New module 'unicase/u32-casefold'.
36364         * lib/unicase/u32-casefold.c: New file.
36365         * modules/unicase/u32-casefold: New file.
36366
36367         New module 'unicase/u16-casefold'.
36368         * lib/unicase/u16-casefold.c: New file.
36369         * modules/unicase/u16-casefold: New file.
36370
36371         New module 'unicase/u8-casefold'.
36372         * lib/unicase/u8-casefold.c: New file.
36373         * lib/unicase/u-casefold.h: New file.
36374         * modules/unicase/u8-casefold: New file.
36375
36376         New module 'unicase/tocasefold'.
36377         * lib/unicase/casefold.h: New file.
36378         * lib/unicase/tocasefold.c: New file.
36379         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
36380         * modules/unicase/tocasefold: New file.
36381
36382         Tests for module 'unicase/u32-totitle'.
36383         * modules/unicase/u32-totitle-tests: New file.
36384         * tests/unicase/test-u32-totitle.c: New file.
36385
36386         Tests for module 'unicase/u16-totitle'.
36387         * modules/unicase/u16-totitle-tests: New file.
36388         * tests/unicase/test-u16-totitle.c: New file.
36389
36390         Tests for module 'unicase/u8-totitle'.
36391         * modules/unicase/u8-totitle-tests: New file.
36392         * tests/unicase/test-u8-totitle.c: New file.
36393
36394         New module 'unicase/u32-totitle'.
36395         * lib/unicase/u32-totitle.c: New file.
36396         * modules/unicase/u32-totitle: New file.
36397
36398         New module 'unicase/u16-totitle'.
36399         * lib/unicase/u16-totitle.c: New file.
36400         * modules/unicase/u16-totitle: New file.
36401
36402         New module 'unicase/u8-totitle'.
36403         * lib/unicase/u8-totitle.c: New file.
36404         * lib/unicase/u-totitle.h: New file.
36405         * modules/unicase/u8-totitle: New file.
36406
36407         Tests for module 'unicase/u32-tolower'.
36408         * modules/unicase/u32-tolower-tests: New file.
36409         * tests/unicase/test-u32-tolower.c: New file.
36410
36411         Tests for module 'unicase/u16-tolower'.
36412         * modules/unicase/u16-tolower-tests: New file.
36413         * tests/unicase/test-u16-tolower.c: New file.
36414
36415         Tests for module 'unicase/u8-tolower'.
36416         * modules/unicase/u8-tolower-tests: New file.
36417         * tests/unicase/test-u8-tolower.c: New file.
36418
36419         New module 'unicase/u32-tolower'.
36420         * lib/unicase/u32-tolower.c: New file.
36421         * modules/unicase/u32-tolower: New file.
36422
36423         New module 'unicase/u16-tolower'.
36424         * lib/unicase/u16-tolower.c: New file.
36425         * modules/unicase/u16-tolower: New file.
36426
36427         New module 'unicase/u8-tolower'.
36428         * lib/unicase/u8-tolower.c: New file.
36429         * modules/unicase/u8-tolower: New file.
36430
36431         Tests for module 'unicase/u32-toupper'.
36432         * modules/unicase/u32-toupper-tests: New file.
36433         * tests/unicase/test-u32-toupper.c: New file.
36434
36435         Tests for module 'unicase/u16-toupper'.
36436         * modules/unicase/u16-toupper-tests: New file.
36437         * tests/unicase/test-u16-toupper.c: New file.
36438
36439         Tests for module 'unicase/u8-toupper'.
36440         * modules/unicase/u8-toupper-tests: New file.
36441         * tests/unicase/test-u8-toupper.c: New file.
36442
36443         New module 'unicase/u32-toupper'.
36444         * lib/unicase/u32-toupper.c: New file.
36445         * modules/unicase/u32-toupper: New file.
36446
36447         New module 'unicase/u16-toupper'.
36448         * lib/unicase/u16-toupper.c: New file.
36449         * modules/unicase/u16-toupper: New file.
36450
36451         New module 'unicase/u8-toupper'.
36452         * lib/unicase/u8-toupper.c: New file.
36453         * modules/unicase/u8-toupper: New file.
36454
36455         New module 'unicase/u32-casemap'.
36456         * lib/unicase/u32-casemap.c: New file.
36457         * modules/unicase/u32-casemap: New file.
36458
36459         New module 'unicase/u16-casemap'.
36460         * lib/unicase/u16-casemap.c: New file.
36461         * modules/unicase/u16-casemap: New file.
36462
36463         New module 'unicase/u8-casemap'.
36464         * lib/unicase/unicasemap.h: New file.
36465         * lib/unicase/u8-casemap.c: New file.
36466         * lib/unicase/u-casemap.h: New file.
36467         * modules/unicase/u8-casemap: New file.
36468
36469         New module 'unicase/special-casing'.
36470         * lib/unicase/special-casing.h: New file.
36471         * lib/unicase/special-casing.c: New file.
36472         * lib/unicase/special-casing-table.gperf: New file, generated by
36473         gen-uni-tables.c.
36474         * modules/unicase/special-casing: New file.
36475
36476         Tests for module 'unicase/locale-language'.
36477         * modules/unicase/locale-language-tests: New file.
36478         * tests/unicase/test-locale-language.sh: New file.
36479         * tests/unicase/test-locale-language.c: New file.
36480
36481         New module 'unicase/locale-language'.
36482         * lib/unicase/locale-language.c: New file.
36483         * lib/unicase/locale-languages.gperf: New file.
36484         * modules/unicase/locale-language: New file.
36485
36486         Generate more tables for case conversion and case folding.
36487         * lib/gen-uni-tables.c (SCC_*): New enum items.
36488         (struct special_casing_rule): New type.
36489         (casing_rules, num_casing_rules, allocated_casing_rules): New
36490         variables.
36491         (add_casing_rule, fill_casing_rules): New functions.
36492         (struct casefold_rule): New type.
36493         (casefolding_rules, num_casefolding_rules,
36494         allocated_casefolding_rules): New variables.
36495         (fill_casefolding_rules): New function.
36496         (unicode_casefold): New variable.
36497         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
36498         sort_casing_rules, output_casing_rules): New functions.
36499         (main): Accept to more arguments: SpecialCasing.txt and
36500         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
36501         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
36502         Output mapping for casefolding.
36503
36504         * lib/unicase.h: Include stdbool.h, uninorm.h.
36505         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
36506         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
36507         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
36508         arguments.
36509         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
36510         resultp arguments.
36511         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
36512         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
36513         resultp arguments.
36514         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
36515         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
36516         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
36517         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
36518         declarations.
36519         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
36520
36521 2009-03-08  Bruno Haible  <bruno@clisp.org>
36522
36523         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36524         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
36525         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
36526         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36527
36528 2009-03-07  Bruno Haible  <bruno@clisp.org>
36529
36530         Adjust u*_normcmp, u*_normcoll API.
36531         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36532         u16_normcoll, u32_normcoll): Change failure conventions.
36533         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
36534         errno and return -1.
36535         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36536
36537 2009-03-07  Bruno Haible  <bruno@clisp.org>
36538
36539         Tests for module 'uninorm/u32-normcoll'.
36540         * modules/uninorm/u32-normcoll-tests: New file.
36541         * tests/uninorm/test-u32-normcoll.c: New file.
36542
36543         Tests for module 'uninorm/u16-normcoll'.
36544         * modules/uninorm/u16-normcoll-tests: New file.
36545         * tests/uninorm/test-u16-normcoll.c: New file.
36546
36547         Tests for module 'uninorm/u8-normcoll'.
36548         * modules/uninorm/u8-normcoll-tests: New file.
36549         * tests/uninorm/test-u8-normcoll.c: New file.
36550
36551 2009-03-07  Bruno Haible  <bruno@clisp.org>
36552
36553         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
36554         tests/uninorm/test-u32-normcmp.c.
36555         * tests/uninorm/test-u32-normcmp.c: Include it.
36556         (test_nonascii): New function, extracted from main. Add some more
36557         tests.
36558         (main): Invoke test_ascii and test_nonascii.
36559         * modules/uninorm/u32-normcmp-tests (Files): Add
36560         tests/uninorm/test-u32-normcmp.h.
36561         (Depends-on): Remove uninorm/u32-normcmp.
36562
36563         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
36564         tests/uninorm/test-u16-normcmp.c.
36565         * tests/uninorm/test-u16-normcmp.c: Include it.
36566         (test_nonascii): New function, extracted from main. Add some more
36567         tests.
36568         (main): Invoke test_ascii and test_nonascii.
36569         * modules/uninorm/u16-normcmp-tests (Files): Add
36570         tests/uninorm/test-u16-normcmp.h.
36571         (Depends-on): Remove uninorm/u16-normcmp.
36572
36573         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
36574         tests/uninorm/test-u8-normcmp.c.
36575         * tests/uninorm/test-u8-normcmp.c: Include it.
36576         (test_nonascii): New function, extracted from main. Add some more
36577         tests.
36578         (main): Invoke test_ascii and test_nonascii.
36579         * modules/uninorm/u8-normcmp-tests (Files): Add
36580         tests/uninorm/test-u8-normcmp.h.
36581         (Depends-on): Remove uninorm/u8-normcmp.
36582
36583 2009-03-07  Bruno Haible  <bruno@clisp.org>
36584
36585         New module 'uninorm/u32-normcoll'.
36586         * lib/uninorm/u32-normcoll.c: New file.
36587         * modules/uninorm/u32-normcoll: New file.
36588
36589         New module 'uninorm/u16-normcoll'.
36590         * lib/uninorm/u16-normcoll.c: New file.
36591         * modules/uninorm/u16-normcoll: New file.
36592
36593         New module 'uninorm/u8-normcoll'.
36594         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
36595         declarations.
36596         * lib/uninorm/u8-normcoll.c: New file.
36597         * lib/uninorm/u-normcoll.h: New file.
36598         * modules/uninorm/u8-normcoll: New file.
36599
36600         New module 'uninorm/u32-normxfrm'.
36601         * lib/uninorm/u32-normxfrm.c: New file.
36602         * modules/uninorm/u32-normxfrm: New file.
36603
36604         New module 'uninorm/u16-normxfrm'.
36605         * lib/uninorm/u16-normxfrm.c: New file.
36606         * modules/uninorm/u16-normxfrm: New file.
36607
36608         New module 'uninorm/u8-normxfrm'.
36609         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
36610         declarations.
36611         * lib/uninorm/u8-normxfrm.c: New file.
36612         * lib/uninorm/u-normxfrm.h: New file.
36613         * modules/uninorm/u8-normxfrm: New file.
36614
36615 2009-03-07  Bruno Haible  <bruno@clisp.org>
36616
36617         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
36618         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
36619         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
36620
36621 2009-03-07  Bruno Haible  <bruno@clisp.org>
36622
36623         New module 'memxfrm'.
36624         * lib/memxfrm.h: New file.
36625         * lib/memxfrm.c: New file.
36626         * modules/memxfrm: New file.
36627
36628 2009-03-07  Bruno Haible  <bruno@clisp.org>
36629
36630         New module 'memcmp2'.
36631         * lib/memcmp2.h: New file.
36632         * lib/memcmp2.c: New file.
36633         * modules/memcmp2: New file.
36634
36635 2009-03-07  Bruno Haible  <bruno@clisp.org>
36636
36637         Tests for module 'uninorm/decomposing-form'.
36638         * modules/uninorm/decomposing-form-tests: New file.
36639         * tests/uninorm/test-decomposing-form.c: New file.
36640
36641         New module 'uninorm/decomposing-form'.
36642         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
36643         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
36644         Add 'decomposing_variant' field.
36645         * lib/uninorm/decomposing-form.c: New file.
36646         * lib/uninorm/nfc.c (uninorm_nfc): Update.
36647         * lib/uninorm/nfd.c (uninorm_nfd): Update.
36648         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
36649         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
36650         * modules/uninorm/decomposing-form: New file.
36651         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
36652         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
36653
36654 2009-03-07  Bruno Haible  <bruno@clisp.org>
36655
36656         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
36657         strings.
36658
36659 2009-03-06  Bruno Haible  <bruno@clisp.org>
36660
36661         Tests for module 'uninorm/u32-normcmp'.
36662         * tests/uninorm/test-u32-normcmp.c: New file.
36663         * modules/uninorm/u32-normcmp-tests: New file.
36664
36665         Tests for module 'uninorm/u16-normcmp'.
36666         * tests/uninorm/test-u16-normcmp.c: New file.
36667         * modules/uninorm/u16-normcmp-tests: New file.
36668
36669         Tests for module 'uninorm/u8-normcmp'.
36670         * tests/uninorm/test-u8-normcmp.c: New file.
36671         * modules/uninorm/u8-normcmp-tests: New file.
36672
36673         New module 'uninorm/u32-normcmp'.
36674         * lib/uninorm/u32-normcmp.c: New file.
36675         * modules/uninorm/u32-normcmp: New file.
36676
36677         New module 'uninorm/u16-normcmp'.
36678         * lib/uninorm/u16-normcmp.c: New file.
36679         * modules/uninorm/u16-normcmp: New file.
36680
36681         New module 'uninorm/u8-normcmp'.
36682         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
36683         declarations.
36684         * lib/uninorm/u8-normcmp.c: New file.
36685         * lib/uninorm/u-normcmp.h: New file.
36686         * modules/uninorm/u8-normcmp: New file.
36687
36688 2009-03-06  Bruno Haible  <bruno@clisp.org>
36689
36690         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
36691         Reported by Eric Blake.
36692
36693 2009-03-06  Eric Blake  <ebb9@byu.net>
36694             Bruno Haible  <bruno@clisp.org>
36695
36696         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
36697         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
36698         condition.
36699         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
36700         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
36701         condition.
36702         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
36703
36704 2009-03-06  Eric Blake  <ebb9@byu.net>
36705
36706         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
36707         to avoid compiler warnings.
36708         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
36709
36710 2009-03-05  Bruno Haible  <bruno@clisp.org>
36711
36712         * tests/test-ftell.c (main): Disable test beyond end of file on
36713         FreeMiNT.
36714         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
36715
36716 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
36717
36718         * lib/filevercmp.c: Move hidden files up in ordering.
36719         * tests/test-filevercmp.c: Add tests for hidden files.
36720
36721 2009-03-04  Bruno Haible  <bruno@clisp.org>
36722
36723         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
36724         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
36725         AM_CFLAGS.
36726         Reported by Simon Josefsson.
36727
36728 2009-03-03  Bruno Haible  <bruno@clisp.org>
36729
36730         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
36731         Reported by Simon Josefsson.
36732
36733         * doc/ld-version-script.texi: Update node reference.
36734
36735 2009-03-03  Bruno Haible  <bruno@clisp.org>
36736
36737         * modules/visibility (License): Change to 'unlimited'.
36738         Suggested by Simon Josefsson.
36739
36740 2009-03-03  Jim Meyering  <meyering@redhat.com>
36741
36742         unlinkdir: cannot_unlink_dir may modify process state
36743         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
36744         it's neither thread-safe nor appropriate for use in a library.
36745
36746 2009-03-03  Eric Blake  <ebb9@byu.net>
36747
36748         test-closein: silence test under Darwin
36749         * tests/test-closein.sh: Ignore stderr from cat, since we don't
36750         care if it dies from EPIPE or EBADF.
36751
36752 2009-03-03  Bruno Haible  <bruno@clisp.org>
36753
36754         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
36755         earlier.
36756         * doc/visibility.texi: Fix @node and @section.
36757
36758 2009-03-03  Simon Josefsson  <simon@josefsson.org>
36759
36760         * doc/gnulib.texi: Link to sections for ld version script and
36761         visibility.
36762         * doc/visibility.texi: Add @node and @section.
36763         * modules/ld-version-script: New module.
36764         * m4/ld-version-script.m4: New file.
36765         * doc/ld-version-script.texi: New file.
36766
36767 2009-03-02  David Lutterkort  <lutter@redhat.com>
36768
36769         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
36770         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36771
36772 2009-03-02  Bruno Haible  <bruno@clisp.org>
36773
36774         * doc/visibility.texi: Mention libtool's -export-symbols option.
36775
36776 2009-03-02  Jim Meyering  <meyering@redhat.com>
36777
36778         announce-gen: new option: --no-print-checksums
36779         * build-aux/announce-gen (usage): Describe it.
36780         (print_checksums): Print a newline here, not in the [*] footnote.
36781         (main): Honor it.
36782
36783 2009-03-01  Bruno Haible  <bruno@clisp.org>
36784
36785         Use socklen_t in the native Windows replacements prototypes.
36786         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
36787         instead of 'int'.
36788         * lib/getsockopt.c (rpl_getsockopt): Likewise.
36789         * lib/setsockopt.c (rpl_setsockopt): Likewise.
36790         * modules/getsockopt (Depends-on): Add socklen.
36791         * modules/setsockopt (Depends-on): Add socklen.
36792
36793 2009-03-01  Bruno Haible  <bruno@clisp.org>
36794
36795         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
36796         least 4.2.
36797
36798 2009-03-01  Eric Blake  <ebb9@byu.net>
36799             Bruno Haible  <bruno@clisp.org>
36800
36801         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
36802         error messages.
36803         * lib/wait-process.c (wait_subprocess): Omit error message about
36804         deadly signal sent to the child of termsigp != NULL.
36805
36806 2009-03-01  Eric Blake  <ebb9@byu.net>
36807
36808         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
36809
36810 2009-03-01  Bruno Haible  <bruno@clisp.org>
36811
36812         Avoid a gcc warning.
36813         * tests/test-sched.c (b): Make global.
36814         Reported by Eric Blake.
36815
36816 2009-01-19  Martin Lambers  <marlam@marlam.de>
36817
36818         Provide POSIX semantics for socket timeout options on W32.
36819         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
36820         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
36821         * modules/setsockopt: Depend on sys_time module for struct timeval.
36822         * modules/getsockopt: Depend on sys_time module for struct timeval.
36823
36824 2009-03-01  Simon Josefsson  <simon@josefsson.org>
36825
36826         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
36827         __USE_GNU, for consistency with netdb.in.h.
36828         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36829
36830 2009-03-01  Bruno Haible  <bruno@clisp.org>
36831
36832         More support for FreeMiNT.
36833         * lib/fseeko.c (rpl_fseeko): Complete last commit.
36834         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36835
36836 2009-03-01  Bruno Haible  <bruno@clisp.org>
36837
36838         More support for FreeMiNT.
36839         * lib/fpurge.c (fpurge): Correct last commit.
36840         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36841
36842 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36843
36844         Fix unportable awk script in vc-list-files.
36845         * build-aux/vc-list-files: In the replacement awk script, use
36846         substr with a second argument of 1, not zero.
36847         Report by Simon Josefsson.
36848
36849 2009-02-28  Bruno Haible  <bruno@clisp.org>
36850
36851         More support for FreeMiNT.
36852         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
36853         to FreeMiNT today.
36854         * lib/fwriting.c (fwriting): Likewise.
36855         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
36856
36857 2009-02-28  Bruno Haible  <bruno@clisp.org>
36858
36859         * tests/test-freadseek.c (main): Disable test beyond end of file on
36860         FreeMiNT.
36861         * tests/test-ftello.c (main): Likewise.
36862         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
36863
36864 2009-02-28  Bruno Haible  <bruno@clisp.org>
36865
36866         Add tentative support for FreeMiNT.
36867         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
36868         * lib/fpurge.c (fpurge): Likewise.
36869         * lib/freadable.c (freadable): Likewise.
36870         * lib/freading.c (freading): Likewise.
36871         * lib/freadptr.c (freadptr): Likewise.
36872         * lib/freadseek.c (freadptrinc): Likewise.
36873         * lib/fseeko.c (rpl_fseeko): Likewise.
36874         * lib/fseterr.c (fseterr): Likewise.
36875         * lib/fwritable.c (fwritable): Likewise.
36876         * lib/fwriting.c (fwriting): Likewise.
36877         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
36878         Hourihane.
36879         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36880
36881 2009-02-28  Bruno Haible  <bruno@clisp.org>
36882
36883         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
36884         SIGCHLD.
36885         Reported by Jim Meyering.
36886
36887 2009-02-28  Bruno Haible  <bruno@clisp.org>
36888
36889         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
36890         Mention the results of these tests on various platforms.
36891         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
36892         order.
36893         * doc/posix-functions/printf.texi: Likewise.
36894         * doc/posix-functions/snprintf.texi: Likewise.
36895         * doc/posix-functions/sprintf.texi: Likewise.
36896         * doc/posix-functions/vfprintf.texi: Likewise.
36897         * doc/posix-functions/vprintf.texi: Likewise.
36898         * doc/posix-functions/vsnprintf.texi: Likewise.
36899         * doc/posix-functions/vsprintf.texi: Likewise.
36900         * doc/glibc-functions/obstack_printf.texi: Likewise.
36901         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
36902
36903 2009-02-28  Bruno Haible  <bruno@clisp.org>
36904
36905         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
36906         Reported by Loïc Minier <lool@dooz.org>.
36907
36908 2009-02-27  Bruno Haible  <bruno@clisp.org>
36909
36910         * gnulib-tool (func_import): Make the sed expression used to create the
36911         sed script for updating the .gitignore file POSIX compliant.
36912         Reported by Eric Blake.
36913
36914 2009-02-27  Bruno Haible  <bruno@clisp.org>
36915
36916         * gnulib-tool (sed): Don't alias as "sed --posix".
36917         Reported by Eric Blake.
36918
36919 2009-02-27  Bruno Haible  <bruno@clisp.org>
36920
36921         Avoid test link errors.
36922         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
36923         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
36924         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
36925         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
36926         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36927
36928 2009-02-27  Bruno Haible  <bruno@clisp.org>
36929
36930         Avoid spurious "(cached)" in configure output.
36931         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
36932         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
36933         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
36934         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
36935         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
36936         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
36937         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
36938         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
36939         Reported by Eric Blake.
36940
36941 2009-02-27  Eric Blake  <ebb9@byu.net>
36942
36943         printf: fix regression in previous patch
36944         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
36945
36946 2009-02-27  Bruno Haible  <bruno@clisp.org>
36947
36948         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
36949         value.
36950         * lib/stdint.in.h: Likewise.
36951         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
36952
36953 2009-02-27  Eric Blake  <ebb9@byu.net>
36954
36955         doc: mention more functions added in cygwin 1.7.0
36956         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
36957         addition.
36958         * doc/posix-functions/open_wmemstream.texi: Likewise.
36959         * doc/posix-functions/wcsnlen.texi: Likewise.
36960         * doc/posix-functions/wcsnrtombs.texi: Likewise.
36961         * doc/posix-functions/wcstod.texi: Likewise.
36962         * doc/posix-functions/wcstof.texi: Likewise.
36963         * doc/posix-functions/wcstoimax.texi: Likewise.
36964         * doc/posix-functions/wcstok.texi: Likewise.
36965         * doc/posix-functions/wcstoumax.texi: Likewise.
36966
36967         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
36968         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
36969         * doc/posix-functions/fprintf.texi: Update.
36970         * doc/posix-functions/printf.texi: Update.
36971         * doc/posix-functions/snprintf.texi: Update.
36972         * doc/posix-functions/sprintf.texi: Update.
36973         * doc/posix-functions/vfprintf.texi: Update.
36974         * doc/posix-functions/vprintf.texi: Update.
36975         * doc/posix-functions/vsnprintf.texi: Update.
36976         * doc/posix-functions/vsprintf.texi: Update.
36977         * doc/glibc-functions/obstack_printf.texi: Update.
36978         * doc/glibc-functions/obstack_vprintf.texi: Update.
36979
36980 2009-02-26  Eric Blake  <ebb9@byu.net>
36981
36982         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
36983         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
36984         compilation bug by using runtime conversion.
36985         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
36986         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
36987         * modules/ceill-tests (Files): Use nan.h.
36988         * modules/floorl-tests (Files): Likewise.
36989         * modules/frexpl-tests (Files): Likewise.
36990         * modules/isnanl-tests (Files): Likewise.
36991         * modules/ldexpl-tests (Files): Likewise.
36992         * modules/roundl-tests (Files): Likewise.
36993         * modules/truncl-tests (Files): Likewise.
36994         * tests/test-ceill.c (main): Use a working NaN.
36995         * tests/test-floorl.c (main): Likewise.
36996         * tests/test-frexpl.c (main): Likewise.
36997         * tests/test-isnan.c (test_long_double): Likewise.
36998         * tests/test-isnanl.h (main): Likewise.
36999         * tests/test-ldexpl.h (main): Likewise.
37000         * tests/test-roundl.h (main): Likewise.
37001         * tests/test-truncl.h (main): Likewise.
37002         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
37003
37004 2009-02-26  Eric Blake  <ebb9@byu.net>
37005             Bruno Haible  <bruno@clisp.org>
37006
37007         Work around a *printf bug with %ls on Solaris.
37008         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
37009         precision is specified, sprintf stops converting the wide string
37010         argument when the number of bytes that have been produced by this
37011         conversion equals or exceeds the precision.
37012         * doc/posix-functions/fprintf.texi: Update.
37013         * doc/posix-functions/printf.texi: Update.
37014         * doc/posix-functions/snprintf.texi: Update.
37015         * doc/posix-functions/sprintf.texi: Update.
37016         * doc/posix-functions/vfprintf.texi: Update.
37017         * doc/posix-functions/vprintf.texi: Update.
37018         * doc/posix-functions/vsnprintf.texi: Update.
37019         * doc/posix-functions/vsprintf.texi: Update.
37020         * doc/glibc-functions/obstack_printf.texi: Update.
37021         * doc/glibc-functions/obstack_vprintf.texi: Update.
37022
37023 2009-02-26  Eric Blake  <ebb9@byu.net>
37024
37025         stdlib: favor compiler check of random.h
37026         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
37027         to avoid an ObjC random.h installed by Swarm.
37028
37029 2009-02-26  Bruno Haible  <bruno@clisp.org>
37030
37031         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
37032         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
37033         Reported by Gary V. Vaughan <gary@gnu.org>.
37034
37035 2009-02-26  Bruno Haible  <bruno@clisp.org>
37036
37037         Fix *printf behaviour regarding the %ls directive.
37038         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
37039         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
37040         NEED_PRINTF_DIRECTIVE_LS.
37041         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
37042         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
37043         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37044         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
37045         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
37046         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
37047         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
37048         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37049         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37050         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37051         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37052         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
37053         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37054         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37055         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37056         * doc/posix-functions/fprintf.texi: Update.
37057         * doc/posix-functions/printf.texi: Update.
37058         * doc/posix-functions/snprintf.texi: Update.
37059         * doc/posix-functions/sprintf.texi: Update.
37060         * doc/posix-functions/vfprintf.texi: Update.
37061         * doc/posix-functions/vprintf.texi: Update.
37062         * doc/posix-functions/vsnprintf.texi: Update.
37063         * doc/posix-functions/vsprintf.texi: Update.
37064         * doc/glibc-functions/obstack_printf.texi: Update.
37065         * doc/glibc-functions/obstack_vprintf.texi: Update.
37066         Reported by Eric Blake.
37067
37068 2009-02-25  Bruno Haible  <bruno@clisp.org>
37069
37070         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
37071         with known value.
37072         Reported by Gary V. Vaughan <gary@gnu.org>.
37073
37074 2009-02-25  Bruno Haible  <bruno@clisp.org>
37075
37076         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
37077         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
37078         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
37079         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
37080         Reported by Gary V. Vaughan <gary@gnu.org>.
37081
37082 2009-02-25  Bruno Haible  <bruno@clisp.org>
37083
37084         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
37085         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
37086         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
37087         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
37088         Reported by Gary V. Vaughan <gary@gnu.org>.
37089
37090 2009-02-25  Eric Blake  <ebb9@byu.net>
37091
37092         tests: skip fseek/ftell tests if ungetc is broken
37093         * m4/ungetc.m4: New file.
37094         * modules/fseek-tests: Split test, so ungetc dependency is
37095         separate from rest of test.
37096         * modules/fseeko-tests: Likewise.
37097         * modules/ftell-tests: Likewise.
37098         * modules/ftello-tests: Likewise.
37099         * tests/test-fseek.c (main): Isolate ungetc dependency.
37100         * tests/test-fseeko.c (main): Likewise.
37101         * tests/test-ftell.c (main): Likewise.
37102         * tests/test-ftello.c (main): Likewise.
37103         * tests/test-fseek2.sh: New file.
37104         * tests/test-fseeko2.sh: Likewise.
37105         * tests/test-ftell2.sh: Likewise.
37106         * tests/test-ftello2.sh: Likewise.
37107
37108 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
37109
37110         test-getaddrinfo: fix usage of skip return code 77
37111         * tests/test-gettaddrinfo.c: Return skip code 77 only
37112         for first occurance of skip (4x77 is not 77)
37113
37114 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
37115
37116         strtod: avoid C99 decl-after-statement
37117         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
37118
37119 2009-02-24  Eric Blake  <ebb9@byu.net>
37120
37121         strtod: detect HP-UX 11.31 bug
37122         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
37123         Reported by Gary V. Vaughan.
37124
37125 2009-02-23  Bruno Haible  <bruno@clisp.org>
37126
37127         Fix invalid read past end of memory block.
37128         * lib/vasnprintf.c (DCHAR_SET): Define.
37129         (local_wcslen): Define only when needed.
37130         (local_strnlen, local_wcsnlen): New functions.
37131         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
37132         directives that involve a conversion ourselves.
37133         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
37134         wcsnlen, mbrtowc, wcrtomb.
37135         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
37136         * tests/test-vasprintf-posix.c (test_function): Likewise.
37137         * tests/test-snprintf-posix.h (test_function): Likewise.
37138         * tests/test-sprintf-posix.h (test_function): Likewise.
37139         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37140
37141 2009-02-22  Bruno Haible  <bruno@clisp.org>
37142
37143         Implement new clarified decomposition of Hangul syllables.
37144         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
37145         of type LTV, return only a pairwise decomposition.
37146         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
37147         Likewise.
37148         * tests/uninorm/test-decomposition.c (main): Updated expected result.
37149         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
37150         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
37151
37152 2009-02-22  Bruno Haible  <bruno@clisp.org>
37153
37154         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
37155         zero-length results and shrink excess allocated memory.
37156         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
37157         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
37158         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
37159         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
37160         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
37161         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
37162         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
37163         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
37164         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
37165         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
37166         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
37167         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
37168
37169 2009-02-21  Bruno Haible  <bruno@clisp.org>
37170
37171         * doc/gnulib.texi: Include safe-alloc.texi earlier.
37172         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
37173         spaces after a period. Put a space between a macro name and its
37174         argument list. Trivial rewordings.
37175         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
37176         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
37177         (main): Return 0 explicitly.
37178
37179 2009-02-21  Bruno Haible  <bruno@clisp.org>
37180
37181         Tests for module 'uninorm/filter'.
37182         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
37183         * modules/uninorm/filter-tests: New file.
37184
37185         New module 'uninorm/filter'.
37186         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
37187         uninorm_filter_flush, uninorm_filter_free): New declarations.
37188         * lib/uninorm/uninorm-filter.c: New file.
37189         * modules/uninorm/filter: New file.
37190
37191 2009-02-21  Bruno Haible  <bruno@clisp.org>
37192
37193         Tests for module 'uninorm/nfkc'.
37194         * tests/uninorm/test-nfkc.c: New file.
37195         * tests/uninorm/test-u8-nfkc.c: New file.
37196         * tests/uninorm/test-u16-nfkc.c: New file.
37197         * tests/uninorm/test-u32-nfkc.c: New file.
37198         * tests/uninorm/test-u32-nfkc-big.sh: New file.
37199         * tests/uninorm/test-u32-nfkc-big.c: New file.
37200         * modules/uninorm/nfkc-tests: New file.
37201
37202         New module 'uninorm/nfkc'.
37203         * lib/uninorm/nfkc.c: New file.
37204         * modules/uninorm/nfkc: New file.
37205
37206         Tests for module 'uninorm/nfkd'.
37207         * tests/uninorm/test-nfkd.c: New file.
37208         * tests/uninorm/test-u8-nfkd.c: New file.
37209         * tests/uninorm/test-u16-nfkd.c: New file.
37210         * tests/uninorm/test-u32-nfkd.c: New file.
37211         * tests/uninorm/test-u32-nfkd-big.sh: New file.
37212         * tests/uninorm/test-u32-nfkd-big.c: New file.
37213         * modules/uninorm/nfkd-tests: New file.
37214
37215         New module 'uninorm/nfkd'.
37216         * lib/uninorm/nfkd.c: New file.
37217         * modules/uninorm/nfkd: New file.
37218
37219         Tests for module 'uninorm/nfc'.
37220         * tests/uninorm/test-nfc.c: New file.
37221         * tests/uninorm/test-u8-nfc.c: New file.
37222         * tests/uninorm/test-u16-nfc.c: New file.
37223         * tests/uninorm/test-u32-nfc.c: New file.
37224         * tests/uninorm/test-u32-nfc-big.sh: New file.
37225         * tests/uninorm/test-u32-nfc-big.c: New file.
37226         * modules/uninorm/nfc-tests: New file.
37227
37228         New module 'uninorm/nfc'.
37229         * lib/uninorm/nfc.c: New file.
37230         * modules/uninorm/nfc: New file.
37231
37232         Tests for module 'uninorm/nfd'.
37233         * tests/uninorm/test-nfd.c: New file.
37234         * tests/uninorm/test-u8-nfd.c: New file.
37235         * tests/uninorm/test-u16-nfd.c: New file.
37236         * tests/uninorm/test-u32-nfd.c: New file.
37237         * tests/uninorm/test-u32-nfd-big.sh: New file.
37238         * tests/uninorm/test-u32-nfd-big.c: New file.
37239         * tests/uninorm/test-u32-normalize-big.h: New file.
37240         * tests/uninorm/test-u32-normalize-big.c: New file.
37241         * tests/uninorm/NormalizationTest.txt: New file, created from
37242         Unicode 5.1.0 NormalizationTest.txt.
37243         * modules/uninorm/nfd-tests: New file.
37244
37245         New module 'uninorm/nfd'.
37246         * lib/uninorm/nfd.c: New file.
37247         * modules/uninorm/nfd: New file.
37248
37249         New module 'uninorm/u32-normalize'.
37250         * lib/uninorm/u32-normalize.c: New file.
37251         * modules/uninorm/u32-normalize: New file.
37252
37253         New module 'uninorm/u16-normalize'.
37254         * lib/uninorm/u16-normalize.c: New file.
37255         * modules/uninorm/u16-normalize: New file.
37256
37257         New module 'uninorm/u8-normalize'.
37258         * lib/uninorm/u8-normalize.c: New file.
37259         * lib/uninorm/normalize-internal.h: New file.
37260         * lib/uninorm/u-normalize-internal.h: New file.
37261         * modules/uninorm/u8-normalize: New file.
37262
37263         New module 'uninorm/decompose-internal'.
37264         * lib/uninorm/decompose-internal.c: New file.
37265         * modules/uninorm/decompose-internal: New file.
37266
37267         Tests for module 'uninorm/composition'.
37268         * tests/uninorm/test-composition.c: New file.
37269         * modules/uninorm/composition-tests: New file.
37270
37271         New module 'uninorm/composition'.
37272         * lib/uninorm/composition.c: New file.
37273         * lib/uninorm/composition-table.gperf: New file, generated by
37274         gen-uni-tables.
37275         * modules/uninorm/composition: New file.
37276
37277         Tests for module 'uninorm/compat-decomposition'.
37278         * tests/uninorm/test-compat-decomposition.c: New file.
37279         * modules/uninorm/compat-decomposition-tests: New file.
37280
37281         New module 'uninorm/compat-decomposition'.
37282         * lib/uninorm/decompose-internal.h: New file.
37283         * lib/uninorm/compat-decomposition.c: New file.
37284         * modules/uninorm/compat-decomposition: New file.
37285
37286         Tests for module 'uninorm/canonical-decomposition'.
37287         * tests/uninorm/test-canonical-decomposition.c: New file.
37288         * modules/uninorm/canonical-decomposition-tests: New file.
37289
37290         New module 'uninorm/canonical-decomposition'.
37291         * lib/uninorm/canonical-decomposition.c: New file.
37292         * modules/uninorm/canonical-decomposition: New file.
37293
37294         Tests for module 'uninorm/decomposition'.
37295         * tests/uninorm/test-decomposition.c: New file.
37296         * modules/uninorm/decomposition-tests: New file.
37297
37298         New module 'uninorm/decomposition'.
37299         * lib/uninorm/decomposition.c: New file.
37300         * modules/uninorm/decomposition: New file.
37301
37302         New module 'uninorm/decomposition-table'.
37303         * lib/uninorm/decomposition-table.h: New file.
37304         * lib/uninorm/decomposition-table.c: New file.
37305         * lib/uninorm/decomposition-table1.h: New file, generated by
37306         gen-uni-tables.
37307         * lib/uninorm/decomposition-table2.h: New file, generated by
37308         gen-uni-tables.
37309         * modules/uninorm/decomposition-table: New file.
37310
37311         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
37312         (UC_DECOMP_*): New enumeration items.
37313         (get_decomposition): New function.
37314         (struct decomp_table): New type.
37315         (output_decomposition, output_decomposition_tables): New functions.
37316         (unicode_composition_exclusions): New variable.
37317         (fill_composition_exclusions, debug_output_composition_tables): New
37318         functions.
37319         (main): Accept one more argument. Invoke fill_composition_exclusions.
37320         Output decomposition and composition tables.
37321
37322         New module 'uninorm/base'.
37323         * lib/uninorm.h: New file.
37324         * lib/unictype.h: Update comment.
37325         * modules/uninorm/base: New file.
37326
37327 2009-02-21  David Lutterkort  <lutter@redhat.com>
37328
37329         Tests for module 'safe-alloc'.
37330         * tests/test-safe-alloc.c: New file.
37331         * modules/safe-alloc-tests: New file.
37332
37333         New module 'safe-alloc'.
37334         * lib/safe-alloc.h: New file.
37335         * lib/safe-alloc.c: New file.
37336         * m4/safe-alloc.m4: New file.
37337         * modules/safe-alloc: New file.
37338         * doc/safe-alloc.texi: New file.
37339         * doc/gnulib.texi: Include it.
37340         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
37341         safe-alloc.
37342
37343 2009-02-18  Bruno Haible  <bruno@clisp.org>
37344
37345         Fix link error on non-glibc systems.
37346         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
37347         variable.
37348         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37349
37350 2009-02-18  Jim Meyering  <meyering@redhat.com>
37351
37352         fts: avoid used-uninitialized error due to recent change
37353         * lib/fts.c (fts_read): Guard uses of the new member,
37354         parent->fts_n_dirs_remaining, since it's not relevant for
37355         the parent of a directory specified on the command-line.
37356
37357 2009-02-17  James Youngman  <jay@gnu.org>
37358             Bruno Haible  <bruno@clisp.org>
37359
37360         * m4/include_next.m4: Reformulate comment.
37361
37362 2009-02-16  Jim Meyering  <meyering@redhat.com>
37363
37364         fts: add #if guards so that the fts_lgpl module still builds
37365         * lib/fts.c: Guard just-added hash-table-using parts with
37366         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
37367         Reported by Simon Josefsson.
37368
37369 2009-02-15  Bruno Haible  <bruno@clisp.org>
37370
37371         * modules/array-mergesort-tests: New file.
37372         * tests/test-array-mergesort.c: New file.
37373
37374         New module 'array-mergesort'.
37375         * modules/array-mergesort: New file.
37376         * lib/array-mergesort.h: New file.
37377
37378 2009-02-15  Bruno Haible  <bruno@clisp.org>
37379
37380         Fix 2009-02-07 commit.
37381         * lib/gen-uni-tables.c (output_predicate, output_category,
37382         output_combclass, output_bidi_category, output_decimal_digit,
37383         output_digit, output_numeric, output_mirror, output_scripts,
37384         output_ident_category, output_simple_mapping): Fix format directives.
37385         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
37386
37387 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
37388
37389         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
37390         fixes are available from IBM.
37391
37392 2009-02-13  Jim Meyering  <meyering@redhat.com>
37393
37394         fts: arrange not to stat non-directories in more cases
37395         This makes GNU find (when it doesn't need to stat each file)
37396         *much* more efficient at traversing reiserfs file systems.
37397         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
37398         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
37399         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
37400         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
37401         (leaf_optimization_applies): New function.
37402         (LCO_hash, LCO_compare): New helper functions.
37403         (link_count_optimize_ok): New function.
37404         (fts_stat): Initialize new member (if dir).
37405         (fts_read): Decrement parent's fts_n_dirs_remaining count if
37406         we've just stat'ed a directory.  Skip the stat call when possible.
37407         ---
37408         Note this AFS-related exchange:
37409         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
37410         and note find's pioctl call in find/fstype.c.
37411         But that is necessary only if you want to enable the
37412         optimization for AFS, and for now, I don't.
37413
37414         fts: move a function definition "up" (no semantic change)
37415         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
37416         "up" to precede upcoming use of a related function.
37417
37418 2009-02-11  Jim Meyering  <meyering@redhat.com>
37419
37420         fts: correct internal computation of nlinks (optimization-related)
37421         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
37422         whether the current entry is a directory, so don't test it.
37423
37424 2009-02-10  Bruno Haible  <bruno@clisp.org>
37425
37426         Tests for module 'uniwbrk/ulc-wordbreaks'.
37427         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
37428         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
37429         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
37430
37431         Tests for module 'uniwbrk/u32-wordbreaks'.
37432         * modules/uniwbrk/u32-wordbreaks-tests: New file.
37433         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
37434
37435         Tests for module 'uniwbrk/u16-wordbreaks'.
37436         * modules/uniwbrk/u16-wordbreaks-tests: New file.
37437         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
37438
37439         Tests for module 'uniwbrk/u8-wordbreaks'.
37440         * modules/uniwbrk/u8-wordbreaks-tests: New file.
37441         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
37442
37443 2009-02-10  Bruno Haible  <bruno@clisp.org>
37444
37445         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
37446         property.
37447         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
37448         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
37449         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
37450
37451 2009-02-10  Simon Josefsson  <simon@josefsson.org>
37452
37453         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
37454         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
37455
37456 2009-02-10  Bruno Haible  <bruno@clisp.org>
37457
37458         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
37459         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
37460         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
37461         * lib/unilbrk/u8-possible-linebreaks.c: Update.
37462         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
37463         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
37464
37465 2009-02-09  Simon Josefsson  <simon@josefsson.org>
37466
37467         * lib/sockets.h (gl_fd_to_handle): New function.
37468
37469         * tests/test-sockets.c: Call gl_fd_to_handle.
37470
37471 2009-02-09  Bruno Haible  <bruno@clisp.org>
37472
37473         * doc/havelib.texi: Document the conventions on bi-arch systems.
37474
37475 2009-02-08  Bruno Haible  <bruno@clisp.org>
37476
37477         Document the AC_LIB_LINKFLAGS macro.
37478         * doc/havelib.texi: New file, mostly written on 2005-05-24.
37479         * doc/gnulib.texi: Include it.
37480
37481 2009-02-08  Bruno Haible  <bruno@clisp.org>
37482
37483         Fix wrong order of sections, compared to TOC.
37484         * doc/gnulib.texi: Include relocatable-maint.texi after the
37485         "Regular expressions" node, not before.
37486
37487 2009-02-08  Bruno Haible  <bruno@clisp.org>
37488
37489         Tests for module 'unicase/totitle'.
37490         * modules/unicase/totitle-tests: New file.
37491
37492         Tests for module 'unicase/tolower'.
37493         * modules/unicase/tolower-tests: New file.
37494
37495         Tests for module 'unicase/toupper'.
37496         * modules/unicase/toupper-tests: New file.
37497         * tests/unicase/test-mapping-part1.h: New file.
37498         * tests/unicase/test-mapping-part2.h: New file.
37499
37500         New module 'unicase/totitle'.
37501         * modules/unicase/totitle: New file.
37502         * lib/unicase/totitle.c: New file.
37503
37504         New module 'unicase/tolower'.
37505         * modules/unicase/tolower: New file.
37506         * lib/unicase/tolower.c: New file.
37507
37508         New module 'unicase/toupper'.
37509         * modules/unicase/toupper: New file.
37510         * lib/unicase/toupper.c: New file.
37511         * lib/unicase/simple-mapping.h: New file.
37512
37513         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
37514         (mapping_table): New structure.
37515         (output_simple_mapping): New function.
37516         (main): Invoke output_simple_mapping_test and output_simple_mapping.
37517         * modules/gen-uni-tables (Description): Update.
37518         * lib/unicase/toupper.h: New file, automatically generated by
37519         gen-uni-tables.
37520         * lib/unicase/tolower.h: New file, automatically generated by
37521         gen-uni-tables.
37522         * lib/unicase/totitle.h: New file, automatically generated by
37523         gen-uni-tables.
37524         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
37525         gen-uni-tables.
37526         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
37527         gen-uni-tables.
37528         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
37529         gen-uni-tables.
37530
37531         New module 'unicase/base'.
37532         * modules/unicase/base: New file.
37533         * lib/unicase.h: New file.
37534
37535 2009-02-08  Bruno Haible  <bruno@clisp.org>
37536
37537         New module 'uniwbrk/ulc-wordbreaks'.
37538         * modules/uniwbrk/ulc-wordbreaks: New file.
37539         * lib/uniwbrk/ulc-wordbreaks.c: New file.
37540
37541         New module 'uniwbrk/u32-wordbreaks'.
37542         * modules/uniwbrk/u32-wordbreaks: New file.
37543         * lib/uniwbrk/u32-wordbreaks.c: New file.
37544
37545         New module 'uniwbrk/u16-wordbreaks'.
37546         * modules/uniwbrk/u16-wordbreaks: New file.
37547         * lib/uniwbrk/u16-wordbreaks.c: New file.
37548
37549         New module 'uniwbrk/u8-wordbreaks'.
37550         * modules/uniwbrk/u8-wordbreaks: New file.
37551         * lib/uniwbrk/u8-wordbreaks.c: New file.
37552         * lib/uniwbrk/u-wordbreaks.h: New file.
37553
37554         New module 'uniwbrk/table'.
37555         * modules/uniwbrk/table: New file.
37556         * lib/uniwbrk/wbrktable.h: New file.
37557         * lib/uniwbrk/wbrktable.c: New file.
37558
37559         New module 'uniwbrk/wordbreak-property'.
37560         * modules/uniwbrk/wordbreak-property: New file.
37561         * lib/uniwbrk/wordbreak-property.c: New file.
37562
37563         * lib/gen-uni-tables.c (WBP_*): New enum items.
37564         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
37565         (unicode_org_wbp): New variable.
37566         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
37567         New functions.
37568         (wbp_table): New structure.
37569         (output_wbp, output_wbrk_tables): New functions.
37570         (main): Accept additional argument. Invoke fill_org_wbp,
37571         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
37572         output_wbrk_tables.
37573         * modules/gen-uni-tables (Description): Update.
37574         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
37575         gen-uni-tables.
37576
37577         New module 'uniwbrk/base'.
37578         * modules/uniwbrk/base: New file.
37579         * lib/uniwbrk.h: New file.
37580
37581 2009-02-08  Bruno Haible  <bruno@clisp.org>
37582
37583         Update to Unicode 5.1.0.
37584         * lib/gen-uni-tables.c (is_property_alphabetic): Include
37585         U+2185..U+2188.
37586         (is_property_default_ignorable_code_point): Don't include characters
37587         of category Cc or Cs and not-a-characters.
37588         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
37589         U+0D79, U+109E, U+109F, U+A60C.
37590         * lib/unictype/bidi_of.h: Regenerated.
37591         * lib/unictype/blocks.h: Regenerated.
37592         * lib/unictype/categ_C.h: Regenerated.
37593         * lib/unictype/categ_Cf.h: Regenerated.
37594         * lib/unictype/categ_Cn.h: Regenerated.
37595         * lib/unictype/categ_L.h: Regenerated.
37596         * lib/unictype/categ_Ll.h: Regenerated.
37597         * lib/unictype/categ_Lm.h: Regenerated.
37598         * lib/unictype/categ_Lo.h: Regenerated.
37599         * lib/unictype/categ_Lu.h: Regenerated.
37600         * lib/unictype/categ_M.h: Regenerated.
37601         * lib/unictype/categ_Mc.h: Regenerated.
37602         * lib/unictype/categ_Me.h: Regenerated.
37603         * lib/unictype/categ_Mn.h: Regenerated.
37604         * lib/unictype/categ_N.h: Regenerated.
37605         * lib/unictype/categ_Nd.h: Regenerated.
37606         * lib/unictype/categ_Nl.h: Regenerated.
37607         * lib/unictype/categ_No.h: Regenerated.
37608         * lib/unictype/categ_P.h: Regenerated.
37609         * lib/unictype/categ_Pd.h: Regenerated.
37610         * lib/unictype/categ_Pe.h: Regenerated.
37611         * lib/unictype/categ_Pf.h: Regenerated.
37612         * lib/unictype/categ_Pi.h: Regenerated.
37613         * lib/unictype/categ_Po.h: Regenerated.
37614         * lib/unictype/categ_Ps.h: Regenerated.
37615         * lib/unictype/categ_S.h: Regenerated.
37616         * lib/unictype/categ_Sk.h: Regenerated.
37617         * lib/unictype/categ_Sm.h: Regenerated.
37618         * lib/unictype/categ_So.h: Regenerated.
37619         * lib/unictype/categ_of.h: Regenerated.
37620         * lib/unictype/combining.h: Regenerated.
37621         * lib/unictype/ctype_alnum.h: Regenerated.
37622         * lib/unictype/ctype_alpha.h: Regenerated.
37623         * lib/unictype/ctype_graph.h: Regenerated.
37624         * lib/unictype/ctype_lower.h: Regenerated.
37625         * lib/unictype/ctype_print.h: Regenerated.
37626         * lib/unictype/ctype_punct.h: Regenerated.
37627         * lib/unictype/ctype_upper.h: Regenerated.
37628         * lib/unictype/decdigit.h: Regenerated.
37629         * lib/unictype/digit.h: Regenerated.
37630         * lib/unictype/mirror.h: Regenerated.
37631         * lib/unictype/numeric.h: Regenerated.
37632         * lib/unictype/pr_alphabetic.h: Regenerated.
37633         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
37634         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
37635         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
37636         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
37637         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
37638         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
37639         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
37640         * lib/unictype/pr_combining.h: Regenerated.
37641         * lib/unictype/pr_dash.h: Regenerated.
37642         * lib/unictype/pr_decimal_digit.h: Regenerated.
37643         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
37644         * lib/unictype/pr_deprecated.h: Regenerated.
37645         * lib/unictype/pr_diacritic.h: Regenerated.
37646         * lib/unictype/pr_extender.h: Regenerated.
37647         * lib/unictype/pr_format_control.h: Regenerated.
37648         * lib/unictype/pr_grapheme_base.h: Regenerated.
37649         * lib/unictype/pr_grapheme_extend.h: Regenerated.
37650         * lib/unictype/pr_grapheme_link.h: Regenerated.
37651         * lib/unictype/pr_id_continue.h: Regenerated.
37652         * lib/unictype/pr_id_start.h: Regenerated.
37653         * lib/unictype/pr_ideographic.h: Regenerated.
37654         * lib/unictype/pr_ignorable_control.h: Regenerated.
37655         * lib/unictype/pr_lowercase.h: Regenerated.
37656         * lib/unictype/pr_math.h: Regenerated.
37657         * lib/unictype/pr_numeric.h: Regenerated.
37658         * lib/unictype/pr_other_alphabetic.h: Regenerated.
37659         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
37660         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
37661         * lib/unictype/pr_other_id_continue.h: Regenerated.
37662         * lib/unictype/pr_other_lowercase.h: Regenerated.
37663         * lib/unictype/pr_other_math.h: Regenerated.
37664         * lib/unictype/pr_punctuation.h: Regenerated.
37665         * lib/unictype/pr_sentence_terminal.h: Regenerated.
37666         * lib/unictype/pr_soft_dotted.h: Regenerated.
37667         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
37668         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
37669         * lib/unictype/pr_unified_ideograph.h: Regenerated.
37670         * lib/unictype/pr_uppercase.h: Regenerated.
37671         * lib/unictype/pr_xid_continue.h: Regenerated.
37672         * lib/unictype/pr_xid_start.h: Regenerated.
37673         * lib/unictype/pr_zero_width.h: Regenerated.
37674         * lib/unictype/scripts.h: Regenerated.
37675         * lib/unictype/scripts_byname.gperf: Regenerated.
37676         * lib/unictype/sy_java_ident.h: Regenerated.
37677         * lib/unilbrk/lbrkprop1.h: Regenerated.
37678         * lib/unilbrk/lbrkprop2.h: Regenerated.
37679         * tests/unictype/test-categ_C.c: Regenerated.
37680         * tests/unictype/test-categ_Cf.c: Regenerated.
37681         * tests/unictype/test-categ_Cn.c: Regenerated.
37682         * tests/unictype/test-categ_L.c: Regenerated.
37683         * tests/unictype/test-categ_Ll.c: Regenerated.
37684         * tests/unictype/test-categ_Lm.c: Regenerated.
37685         * tests/unictype/test-categ_Lo.c: Regenerated.
37686         * tests/unictype/test-categ_Lu.c: Regenerated.
37687         * tests/unictype/test-categ_M.c: Regenerated.
37688         * tests/unictype/test-categ_Mc.c: Regenerated.
37689         * tests/unictype/test-categ_Me.c: Regenerated.
37690         * tests/unictype/test-categ_Mn.c: Regenerated.
37691         * tests/unictype/test-categ_N.c: Regenerated.
37692         * tests/unictype/test-categ_Nd.c: Regenerated.
37693         * tests/unictype/test-categ_Nl.c: Regenerated.
37694         * tests/unictype/test-categ_No.c: Regenerated.
37695         * tests/unictype/test-categ_P.c: Regenerated.
37696         * tests/unictype/test-categ_Pd.c: Regenerated.
37697         * tests/unictype/test-categ_Pe.c: Regenerated.
37698         * tests/unictype/test-categ_Pf.c: Regenerated.
37699         * tests/unictype/test-categ_Pi.c: Regenerated.
37700         * tests/unictype/test-categ_Po.c: Regenerated.
37701         * tests/unictype/test-categ_Ps.c: Regenerated.
37702         * tests/unictype/test-categ_S.c: Regenerated.
37703         * tests/unictype/test-categ_Sk.c: Regenerated.
37704         * tests/unictype/test-categ_Sm.c: Regenerated.
37705         * tests/unictype/test-categ_So.c: Regenerated.
37706         * tests/unictype/test-ctype_alnum.c: Regenerated.
37707         * tests/unictype/test-ctype_alpha.c: Regenerated.
37708         * tests/unictype/test-ctype_graph.c: Regenerated.
37709         * tests/unictype/test-ctype_lower.c: Regenerated.
37710         * tests/unictype/test-ctype_print.c: Regenerated.
37711         * tests/unictype/test-ctype_punct.c: Regenerated.
37712         * tests/unictype/test-ctype_upper.c: Regenerated.
37713         * tests/unictype/test-decdigit.h: Regenerated.
37714         * tests/unictype/test-digit.h: Regenerated.
37715         * tests/unictype/test-numeric.h: Regenerated.
37716         * tests/unictype/test-pr_alphabetic.c: Regenerated.
37717         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
37718         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
37719         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
37720         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
37721         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
37722         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
37723         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
37724         * tests/unictype/test-pr_combining.c: Regenerated.
37725         * tests/unictype/test-pr_dash.c: Regenerated.
37726         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
37727         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
37728         * tests/unictype/test-pr_deprecated.c: Regenerated.
37729         * tests/unictype/test-pr_diacritic.c: Regenerated.
37730         * tests/unictype/test-pr_extender.c: Regenerated.
37731         * tests/unictype/test-pr_format_control.c: Regenerated.
37732         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
37733         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
37734         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
37735         * tests/unictype/test-pr_id_continue.c: Regenerated.
37736         * tests/unictype/test-pr_id_start.c: Regenerated.
37737         * tests/unictype/test-pr_ideographic.c: Regenerated.
37738         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
37739         * tests/unictype/test-pr_lowercase.c: Regenerated.
37740         * tests/unictype/test-pr_math.c: Regenerated.
37741         * tests/unictype/test-pr_numeric.c: Regenerated.
37742         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
37743         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
37744         Regenerated.
37745         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
37746         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
37747         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
37748         * tests/unictype/test-pr_other_math.c: Regenerated.
37749         * tests/unictype/test-pr_punctuation.c: Regenerated.
37750         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
37751         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
37752         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
37753         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
37754         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
37755         * tests/unictype/test-pr_uppercase.c: Regenerated.
37756         * tests/unictype/test-pr_xid_continue.c: Regenerated.
37757         * tests/unictype/test-pr_xid_start.c: Regenerated.
37758         * tests/unictype/test-pr_zero_width.c: Regenerated.
37759
37760         Update to Unicode 5.1.0.
37761         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
37762         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
37763         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
37764         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
37765         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
37766         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
37767         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
37768         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
37769         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
37770         (nonspacing_table_ind): Update.
37771         * tests/uniwidth/test-uc_width2.sh: Update expected result.
37772
37773         Update to Unicode 5.1.0.
37774         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
37775         code transform.
37776         * lib/uniname/uniname.c (unicode_character_name,
37777         unicode_name_character): Add the range 0x1Fxxx to the code transform.
37778         * lib/uniname/uninames.h: Regenerated.
37779         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
37780
37781 2009-02-07  Bruno Haible  <bruno@clisp.org>
37782
37783         Merge gen-ctype and gen-lbrk into a single program.
37784         * lib/gen-uni-tables.c: New file, incorporating
37785         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
37786         Add directory prefixes to the names of the generated files.
37787         * lib/unictype/gen-ctype.c: Remove file.
37788         * lib/unilbrk/gen-lbrk.c: Remove file.
37789         * modules/gen-uni-tables: New file.
37790         * modules/unictype/gen-ctype: Remove file.
37791         * modules/unilbrk/gen-lbrk: Remove file.
37792
37793 2009-02-07  Bruno Haible  <bruno@clisp.org>
37794
37795         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
37796
37797         New module 'unistr/u32-strcoll'.
37798         * modules/unistr/u32-strcoll: New file.
37799         * lib/unistr/u32-strcoll.c: New file.
37800
37801         New module 'unistr/u16-strcoll'.
37802         * modules/unistr/u16-strcoll: New file.
37803         * lib/unistr/u16-strcoll.c: New file.
37804
37805         New module 'unistr/u8-strcoll'.
37806         * modules/unistr/u8-strcoll: New file.
37807         * lib/unistr/u8-strcoll.c: New file.
37808         * lib/unistr/u-strcoll.h: New file.
37809
37810 2009-02-07  Bruno Haible  <bruno@clisp.org>
37811
37812         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
37813         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
37814         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
37815         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
37816         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
37817         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
37818
37819 2009-02-07  Bruno Haible  <bruno@clisp.org>
37820
37821         Make 64-bit clean.
37822         * lib/unictype/gen-ctype.c (output_predicate, output_category,
37823         output_combclass, output_bidi_category, output_decimal_digit,
37824         output_digit, output_numeric, output_mirror, output_scripts,
37825         output_ident_category): Use proper width specifier in format strings.
37826
37827 2009-02-07  Bruno Haible  <bruno@clisp.org>
37828
37829         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
37830         failure behaviour.
37831
37832 2009-02-07  Jim Meyering  <meyering@redhat.com>
37833
37834         regex: avoid compilation failure with upcoming gcc-4.4
37835         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
37836         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
37837         "... error: integer overflow in preprocessor expression".
37838
37839 2009-02-05  Ben Pfaff  <blp@gnu.org>
37840
37841         Fix link errors on Windows when close module is used.
37842         * modules/close: Add $(LIB_CLOSE) to Link section.
37843         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
37844         $(LIB_CLOSE) on Windows.
37845
37846 2009-02-05  Jim Meyering  <meyering@redhat.com>
37847
37848         still avoid unused-parameter warnings, but do it cleanly
37849         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
37850         (get_fs_usage): Cast to void instead.
37851         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
37852         (dev_from_mount_options, read_file_system_list): Cast to void.
37853         Prompted by Bruno Haible.
37854
37855 2009-02-04  Jim Meyering  <meyering@redhat.com>
37856
37857         fsusage.c: correct copyright year
37858         * lib/fsusage.c: Reflect year in which the change is pushed into
37859
37860         avoid misc. warnings
37861         * lib/fsusage.c (UNUSED_PARAM): Define.
37862         (get_fs_usage): Mark parameter "disk" as unused.
37863         * lib/getugroups.c (getgrent): Use "void" in prototype.
37864         * lib/mountlist.c: Mark unused parameters.
37865         (read_file_system_list): Declare a local with "const".
37866         * lib/nanosleep.c (getnow): Declare static.
37867         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
37868
37869         dirfd: set errno upon failure
37870         * lib/dirfd.c: Include <errno.h>.
37871         Set errno to ENOTSUP when returning -1.
37872         * modules/dirfd (Depends-on): Add errno.
37873         Suggested by John Kodis <kodis@comcast.net>.
37874
37875 2009-02-01  Bruno Haible  <bruno@clisp.org>
37876
37877         Don't assume sizeof (long) >= sizeof (void *).
37878         * lib/memcmp.c: Include stdint.h.
37879         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
37880         srcp2 to 'const byte *'.
37881         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
37882         types to uintptr_t.
37883         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
37884         * modules/memcmp (Depends-on): Add stdint.
37885         Reported by Ozkan Sezer <sezeroz@gmail.com>.
37886
37887 2009-01-30  Eric Blake  <ebb9@byu.net>
37888
37889         fix more require-before-expand issues
37890         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
37891         expand, AC_PROG_AWK.
37892         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
37893
37894 2009-01-28  Eric Blake  <ebb9@byu.net>
37895
37896         version-etc: use consistent URL formatting
37897         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
37898         Improve formatting.  Use fputs for string without %.
37899
37900 2009-01-28  Jim Meyering  <meyering@redhat.com>
37901
37902         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
37903         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
37904         "underquoted definition of NAME" from autoconf-2.59.
37905
37906 2009-01-28  Bruno Haible  <bruno@clisp.org>
37907
37908         * doc/gnulib.texi: Add "Obsolete modules" to index.
37909
37910 2009-01-28  Jim Meyering  <meyering@redhat.com>
37911
37912         useless-if-before-free: recognize more variants
37913         * build-aux/useless-if-before-free: Also recognize e.g.,
37914         if (NULL != p) free (p);
37915
37916 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
37917
37918         test-getaddrinfo: skip (don't fail) this test when there's no network
37919         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
37920         on the presumption that it means you lack network access.
37921
37922 2009-01-26  Jim Meyering  <meyering@redhat.com>
37923
37924         fflush: avoid warnings on modern systems
37925         * lib/fflush.c (rpl_fflush): Move declarations of locals,
37926         pos and result, into scopes where they're used.
37927
37928 2009-01-26  Eric Blake  <ebb9@byu.net>
37929
37930         Silence warning reintroduced by recent extensions patch.
37931         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
37932         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
37933         autoconf.
37934
37935         Backport improved autoconf semantics of AC_DEFUN_ONCE.
37936         * m4/00gnulib.m4: New file.
37937         * gnulib-tool (func_get_filelist): Always use it.
37938         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
37939         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
37940
37941 2009-01-25  Bruno Haible  <bruno@clisp.org>
37942
37943         Make test-quotearg work on MacOS X and AIX.
37944         * tests/test-quotearg.sh: New file.
37945         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
37946         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
37947         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
37948         include <libintl.h>.
37949         (fake_locale): Remove variable.
37950         (gettext, dgettext, dcgettext): Remove functions.
37951         (main): Instead of setting a fake locale, set a real locale. Call
37952         textdomain and bindtextdomain.
37953         * modules/quotearg-tests (Files): Add the new files.
37954         (Depends-on): Add gettext, setenv, unsetenv.
37955         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
37956         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
37957         Augment TESTS_ENVIRONMENT.
37958
37959 2009-01-25  Bruno Haible  <bruno@clisp.org>
37960
37961         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
37962         fr_FR.ISO8859-1 locale on MacOS X.
37963         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
37964         ja_JP.eucJP locale on MacOS X.
37965         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
37966         zh_CN.GB18030 locale on MacOS X.
37967
37968 2009-01-25  Bruno Haible  <bruno@clisp.org>
37969
37970         Avoid link errors on MacOS X 10.3.
37971         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
37972         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
37973
37974 2009-01-25  Bruno Haible  <bruno@clisp.org>
37975
37976         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
37977         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
37978         * modules/pipe (Files): Remove m4/posix_spawn.m4.
37979         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
37980         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
37981         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
37982         posix_spawnattr_init, posix_spawnattr_setsigmask,
37983         posix_spawnattr_setflags, posix_spawnattr_destroy.
37984
37985         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
37986         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
37987         * modules/execute (Files): Remove m4/posix_spawn.m4.
37988         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
37989         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
37990         posix_spawnattr_init, posix_spawnattr_setsigmask,
37991         posix_spawnattr_setflags, posix_spawnattr_destroy.
37992
37993 2009-01-25  Bruno Haible  <bruno@clisp.org>
37994
37995         * lib/glthread/threadlib.c: Include <stdlib.h>.
37996
37997 2009-01-25  Bruno Haible  <bruno@clisp.org>
37998
37999         * lib/glthread/threadlib.c (dummy): New declaration.
38000
38001 2009-01-25  Bruno Haible  <bruno@clisp.org>
38002
38003         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
38004         multibyte characters also for the GB18030 encoding. Don't crash when
38005         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
38006
38007 2009-01-25  Bruno Haible  <bruno@clisp.org>
38008
38009         Avoid redefining 'struct random_data' on OSF/1 5.1.
38010         * lib/stdlib.in.h: Include <random.h> if it exists.
38011         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
38012         HAVE_RANDOM_H. Include <random.h> when testing whether
38013         'struct random_data' exists.
38014         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
38015
38016 2009-01-25  Bruno Haible  <bruno@clisp.org>
38017
38018         Don't install charset.alias on MacOS X >= 10.3.
38019         * lib/localcharset.c (DARWIN7): New macro.
38020         (get_charset_aliases): Hardcode the result for Darwin7.
38021         * modules/localcharset (install-exec-local): Don't install
38022         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
38023
38024 2009-01-25  Bruno Haible  <bruno@clisp.org>
38025
38026         Don't install charset.alias on mingw and Cygwin.
38027         * modules/localcharset (install-exec-local): Don't install
38028         charset.alias on mingw and Cygwin, if the file does not yet exist.
38029         The result for these platforms is hardcoded in localcharset.c.
38030
38031 2009-01-25  Bruno Haible  <bruno@clisp.org>
38032
38033         Make it possible again to use AC_GNU_SOURCE together with gnulib.
38034         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
38035         before requiring AC_USE_SYSTEM_EXTENSIONS.
38036
38037 2009-01-25  Jim Meyering  <meyering@redhat.com>
38038
38039         c-strtod: avoid warnings
38040         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
38041         "assignment discards qualifiers from pointer target type" warnings.
38042
38043 2009-01-24  Bruno Haible  <bruno@clisp.org>
38044
38045         Add support for non-UTF-8 locales on MacOS X.
38046         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
38047         canonical encodings. For Darwin 7 and newer, don't map traditional
38048         encodings to UTF-8.
38049         Reported by Vincent Lefevre <vincent@vinc17.org>
38050         at <http://savannah.gnu.org/bugs/?25235>.
38051
38052 2009-01-24  Bruno Haible  <bruno@clisp.org>
38053
38054         * doc/gnulib.texi (Obsolete modules): New section.
38055         Reported by Mike Frysinger <vapier@gentoo.org>.
38056
38057 2009-01-24  Bruno Haible  <bruno@clisp.org>
38058
38059         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
38060         (%.dvi): New rule.
38061
38062 2009-01-24  Bruno Haible  <bruno@clisp.org>
38063
38064         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
38065         Reported by Eric Blake.
38066
38067 2009-01-24  Bruno Haible  <bruno@clisp.org>
38068
38069         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
38070         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
38071         Reported by Gary V. Vaughan <gary@gnu.org>.
38072
38073 2009-01-24  Bruno Haible  <bruno@clisp.org>
38074
38075         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
38076
38077 2009-01-23  Bruno Haible  <bruno@clisp.org>
38078
38079         Make c-strtod, c-strtold usable in libraries.
38080         * lib/c-strtod.c: Include string.h instead of xalloc.h.
38081         (C_STRTOD): Call strdup instead of xstrdup.
38082         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
38083         * modules/c-strtold (Depends-on): Likewise.
38084         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
38085         * NEWS: Mention the change.
38086         Reported by Michael Gold <mgold@ncf.ca>.
38087
38088 2009-01-23  Jim Meyering  <meyering@redhat.com>
38089
38090         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
38091         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
38092         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
38093
38094 2009-01-23  Simon Josefsson  <simon@josefsson.org>
38095
38096         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
38097         GNU CoreUtils.
38098         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
38099         * modules/version-etc (Description): Update.
38100
38101 2009-01-22  Bruno Haible  <bruno@clisp.org>
38102
38103         Cache the C locale object.
38104         * lib/c-strtod.c (c_locale_cache): New variable.
38105         (c_locale): New function.
38106         (C_STRTOD): Use it, and don't call freelocale.
38107         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
38108         Suggested by Paolo Bonzini.
38109
38110 2009-01-21  Bruno Haible  <bruno@clisp.org>
38111
38112         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
38113         conditions other than overflow.
38114
38115 2009-01-21  Bruno Haible  <bruno@clisp.org>
38116
38117         * lib/c-strtod.c: Include errno.h.
38118         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
38119         value from STRTOD_L and STRTOD.
38120
38121 2009-01-21  Bruno Haible  <bruno@clisp.org>
38122         and Jim Meyering  <meyering@redhat.com>
38123
38124         nanosleep: skip configure test (fail it) for apple universal builds
38125         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
38126         universal builds, assume that nanosleep does not work.
38127         * modules/nanosleep (Depends-on): Add multiarch.
38128
38129         mktime: skip configure test (fail it) for apple universal builds
38130         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
38131         universal builds, assume that mktime does not work.
38132         * modules/mktime (Depends-on): Add multiarch.
38133
38134 2009-01-21  Eric Blake  <ebb9@byu.net>
38135
38136         multiarch: avoid expand-before-require warning
38137         * modules/multiarch (configure.ac): Require, rather than expand,
38138         gl_MULTIARCH.
38139         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
38140         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
38141         enforce that all clients require it.  Partial reversion of
38142         2008-12-29 patch.
38143
38144         error: avoid expand-before-require warning
38145         * modules/errno (configure.ac): Require, rather than expand,
38146         gl_HEADER_ERRNO_H.
38147         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
38148         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
38149         enforce that all clients require it.
38150
38151         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
38152         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
38153         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
38154         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
38155
38156 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
38157
38158         Revert:
38159         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
38160
38161         regex: do not depend on obsolete modules.
38162         * modules/regex: Remove memcmp and memmove.
38163
38164 2009-01-20  Bruno Haible  <bruno@clisp.org>
38165
38166         Make the 'link' module link on Windows NT 4.
38167         * lib/link.c (_WIN32_WINNT): Don't define.
38168         (CreateHardLinkFuncType): New type.
38169         (CreateHardLinkFunc, initialized): New variables.
38170         (initialize): New function.
38171         (link): Invoke CreateHardLink indirectly through the function pointer.
38172
38173 2009-01-20  Bruno Haible  <bruno@clisp.org>
38174
38175         Fix compilation failure on mingw.
38176         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
38177
38178 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
38179
38180         * doc/c-strtod.texi: Mention a couple of restrictions.
38181
38182 2009-01-20  Jim Meyering  <meyering@redhat.com>
38183
38184         gettimeofday: move more declarations out of functions
38185         * lib/gettimeofday.c: Move extern declarations of tzset and
38186         gmtime out of containing functions.  Prompted by Bruno Haible.
38187
38188 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
38189
38190         regex: do not depend on obsolete modules.
38191         * modules/regex: Remove memcmp and memmove.
38192
38193 2009-01-19  Bruno Haible  <bruno@clisp.org>
38194
38195         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
38196         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
38197         gl_BIGENDIAN, not AC_C_BIGENDIAN.
38198         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
38199         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
38200
38201 2009-01-19  Bruno Haible  <bruno@clisp.org>
38202
38203         * tests/test-link.c: Include <errno.h>.
38204         (main): Exit with code 77 when a hard link cannot be created due to
38205         the file system.
38206         * tests/test-link.sh: Skip test when a hard link cannot be created due
38207         to the file system.
38208         Suggested by Eric Blake.
38209
38210 2009-01-19  Martin Lambers  <marlam@marlam.de>
38211
38212         * modules/link-tests: New file.
38213         * tests/test-link.sh: New file.
38214         * tests/test-link.c: New file.
38215
38216 2009-01-19  Eric Blake  <ebb9@byu.net>
38217
38218         doc: mention another function added in cygwin 1.7.0
38219         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
38220         Another new function in cygwin 1.7.
38221
38222 2009-01-19  Bruno Haible  <bruno@clisp.org>
38223
38224         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
38225         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
38226         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
38227         gl_BIGENDIAN, not AC_C_BIGENDIAN.
38228         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
38229         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
38230         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
38231         * m4/md4.m4 (gl_MD4): Likewise.
38232         * m4/md5.m4 (gl_MD5): Likewise.
38233         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
38234         * m4/sha1.m4 (gl_SHA1): Likewise.
38235         * m4/sha256.m4 (gl_SHA256): Likewise.
38236         * m4/sha512.m4 (gl_SHA512): Likewise.
38237
38238 2009-01-19  Bruno Haible  <bruno@clisp.org>
38239
38240         * modules/uniname/uniname-tests (Depends-on): Add progname.
38241         * tests/uniname/test-uninames.c: Include progname.h.
38242         (main): Call set_program_name.
38243
38244         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
38245         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
38246         (main): Call set_program_name.
38247
38248         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
38249         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
38250         (main): Call set_program_name.
38251
38252         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
38253         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
38254         (main): Call set_program_name.
38255
38256         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
38257         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
38258         (main): Call set_program_name.
38259
38260         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
38261         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
38262         (main): Call set_program_name.
38263
38264         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
38265         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
38266         (main): Call set_program_name.
38267
38268         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
38269         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
38270         (main): Call set_program_name.
38271
38272         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
38273         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
38274         (main): Call set_program_name.
38275
38276 2009-01-19  Eric Blake  <ebb9@byu.net>
38277
38278         test-unistd: test previous patch
38279         * tests/test-unistd.c: Test *_FILENO macros.
38280
38281         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
38282         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38283         Guarantee a definition.
38284         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
38285         * modules/unistd-safer (Depends-on): Add dependency on unistd.
38286         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
38287         * lib/dup-safer.c (STDERR_FILENO): Likewise.
38288         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38289         Likewise.
38290         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
38291         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
38292         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38293         Likewise.
38294         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
38295         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
38296         (STDERR_FILENO): Likewise.
38297         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
38298         (STDERR_FILENO): Likewise.
38299         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
38300         (STDERR_FILENO): Likewise.
38301         Reported by Elbert Pol.
38302
38303 2009-01-19  Eric Blake  <ebb9@byu.net>
38304
38305         doc: mention more functions added in cygwin 1.7.0
38306         * doc/posix-functions/abort.texi (abort): Update wording related
38307         to cygwin.
38308         * doc/posix-functions/daylight.texi (daylight): Likewise.
38309         * doc/posix-functions/optarg.texi (optarg): Likewise.
38310         * doc/posix-functions/optarg.texi (opterr): Likewise.
38311         * doc/posix-functions/optarg.texi (optind): Likewise.
38312         * doc/posix-functions/optarg.texi (optopt): Likewise.
38313         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
38314         worked in 1.5.x, and was withdrawn in 1.7.
38315         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
38316         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
38317         cygwin versions.
38318         * doc/posix-functions/perror.texi (perror): Likewise.
38319         * doc/posix-functions/printf.texi (printf): Likewise.
38320         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
38321         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
38322         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
38323         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
38324         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
38325         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
38326         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
38327         Likewise.
38328         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
38329         Likewise.
38330         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
38331         this function.
38332         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
38333         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
38334         Likewise.
38335         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
38336         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
38337         * doc/posix-functions/confstr.texi (confstr): Likewise.
38338         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
38339         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
38340         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
38341         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
38342         * doc/posix-functions/fputws.texi (fputws): Likewise.
38343         * doc/posix-functions/fwide.texi (fwide): Likewise.
38344         * doc/posix-functions/getwc.texi (getwc): Likewise.
38345         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
38346         * doc/posix-functions/putwc.texi (putwc): Likewise.
38347         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
38348         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
38349         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
38350         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
38351         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
38352         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
38353         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
38354         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
38355         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
38356         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
38357         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
38358
38359 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
38360
38361         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
38362         * lib/ioctl.c: Include <sys/ioctl.h>.
38363
38364 2009-01-19  Simon Josefsson  <simon@josefsson.org>
38365
38366         * modules/getdate-tests (Depends-on): Add progname.
38367         * tests/test-getdate.c: Use progname module, to avoid link errors
38368         on non-glibc systems.
38369
38370 2009-01-18  Simon Josefsson  <simon@josefsson.org>
38371
38372         * modules/filenamecat-tests (Depends-on): Add progname.
38373         * modules/fstrcmp-tests (Depends-on): Likewise.
38374
38375         * tests/test-filenamecat.c: Use progname module, to avoid link
38376         errors on non-glibc systems.
38377         * tests/test-fstrcmp.c: Likewise.
38378
38379 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
38380
38381         gettimeofday: avoid warning: nested extern declaration of 'localtime'
38382         * lib/gettimeofday.c: Move extern declaration out of function.
38383
38384 2009-01-18  Bruno Haible  <bruno@clisp.org>
38385
38386         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
38387         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
38388         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
38389
38390 2009-01-18  Bruno Haible  <bruno@clisp.org>
38391
38392         * lib/strftime.c (MEMPCPY): Remove unused macro.
38393         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
38394
38395 2009-01-18  Martin Lambers  <marlam@marlam.de>
38396
38397         New module 'link'.
38398         * lib/unistd.in.h (link): New declaration.
38399         * lib/link.c: New file.
38400         * m4/link.m4: New file.
38401         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
38402         HAVE_LINK.
38403         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
38404         * modules/link: New file.
38405         * doc/posix-functions/link.texi: Mention the new module.
38406
38407 2009-01-18  Bruno Haible  <bruno@clisp.org>
38408
38409         * tests/test-avltree_list.c (main): Call set_program_name.
38410         * tests/test-avltree_oset.c (main): Likewise.
38411         * tests/test-obstack-printf.c: Include progname.h.
38412         (main): Call set_program_name.
38413         * tests/test-quotearg.c: Include progname.h.
38414         (main): Call set_program_name.
38415         * tests/test-xmemdup0.c: Include progname.h.
38416         (main): Call set_program_name.
38417
38418 2009-01-18  Bruno Haible  <bruno@clisp.org>
38419
38420         New module 'alphasort'.
38421         * lib/dirent.in.h (alphasort): New declaration.
38422         * lib/alphasort.c: New file, from glibc with modifications.
38423         * m4/alphasort.m4: New file.
38424         * modules/alphasort: New file.
38425         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
38426         HAVE_ALPHASORT.
38427         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
38428         HAVE_ALPHASORT.
38429         * doc/posix-functions/alphasort.texi: Mention the new module and the
38430         portability problems.
38431
38432 2009-01-18  Bruno Haible  <bruno@clisp.org>
38433
38434         New module 'scandir'.
38435         * lib/dirent.in.h (scandir): New declaration.
38436         * lib/scandir.c: New file, from glibc with modifications.
38437         * m4/scandir.m4: New file.
38438         * modules/scandir: New file.
38439         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
38440         HAVE_SCANDIR.
38441         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
38442         HAVE_SCANDIR.
38443         * doc/posix-functions/scandir.texi: Mention the new module and the
38444         portability problems.
38445
38446 2009-01-17  Bruno Haible  <bruno@clisp.org>
38447
38448         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
38449         Update documentation.
38450         (func_remove_suffix): Escape all dots in the suffix. Update
38451         documentation.
38452         (func_filter_filelist): Update documentation.
38453         Reported by Ralf Wildenhues.
38454
38455 2009-01-17  Bruno Haible  <bruno@clisp.org>
38456
38457         * modules/dprintf-posix-tests: New file.
38458         * tests/test-dprintf-posix.sh: New file.
38459         * tests/test-dprintf-posix.c: New file.
38460
38461         New modules 'dprintf', 'dprintf-posix'.
38462         * lib/stdio.in.h (dprintf): New declaration.
38463         * lib/dprintf.c: New file.
38464         * m4/dprintf.m4: New file.
38465         * m4/dprintf-posix.m4: New file.
38466         * modules/dprintf: New file.
38467         * modules/dprintf-posix: New file.
38468         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
38469         HAVE_DPRINTF, REPLACE_DPRINTF.
38470         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
38471         HAVE_DPRINTF, REPLACE_DPRINTF.
38472         * doc/posix-functions/dprintf.texi: Mention the new modules.
38473
38474 2009-01-17  Bruno Haible  <bruno@clisp.org>
38475
38476         * modules/vdprintf-posix-tests: New file.
38477         * tests/test-vdprintf-posix.sh: New file.
38478         * tests/test-vdprintf-posix.c: New file.
38479
38480         New modules 'vdprintf', 'vdprintf-posix'.
38481         * lib/stdio.in.h (vdprintf): New declaration.
38482         * lib/vdprintf.c: New file.
38483         * m4/vdprintf.m4: New file.
38484         * m4/vdprintf-posix.m4: New file.
38485         * modules/vdprintf: New file.
38486         * modules/vdprintf-posix: New file.
38487         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
38488         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38489         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
38490         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38491         * doc/posix-functions/vdprintf.texi: Mention the new modules.
38492
38493 2009-01-17  Bruno Haible  <bruno@clisp.org>
38494
38495         Fix replacement of fopen on mingw.
38496         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
38497         mingw.
38498
38499 2009-01-17  Bruno Haible  <bruno@clisp.org>
38500
38501         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
38502         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
38503
38504 2009-01-17  Bruno Haible  <bruno@clisp.org>
38505
38506         Avoid test-fflush2.sh failure on mingw.
38507         * tests/test-fflush2.c: Include binary-io.h.
38508         (main): Put standard input into binary mode.
38509         * modules/fflush-tests (Depends-on): Add binary-io.
38510
38511 2009-01-17  Bruno Haible  <bruno@clisp.org>
38512
38513         * lib/wchar.in.h: In another particular situation, include only the
38514         system's <wchar.h> file.
38515         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
38516         Reported by Albert Chin-A-Young <china@thewrittenword.com>
38517         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
38518
38519 2009-01-17  Bruno Haible  <bruno@clisp.org>
38520
38521         Support for stripping executables in --enable-relocatable.
38522         * build-aux/install-reloc: Expect one more argument, or an environment
38523         variable RELOC_STRIP_PROG. If set, strip the destination program and
38524         its wrapper.
38525         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
38526         RELOC_STRIP_PROG.
38527         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
38528         to set RELOCATABLE_STRIP.
38529         * NEWS: Mention the new Makefile requirement.
38530
38531 2009-01-17  Bruno Haible  <bruno@clisp.org>
38532
38533         * build-aux/install-reloc: Remove debugging information left over by
38534         C compiler on MacOS X.
38535
38536 2009-01-17  Bruno Haible  <bruno@clisp.org>
38537
38538         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
38539         * lib/progreloc.c (find_executable): Fix type of pointer passed to
38540         _NSGetExecutablePath.
38541
38542 2009-01-16  Jim Meyering  <meyering@redhat.com>
38543
38544         strerror: avoid warnings about discarding "const"
38545         * lib/strerror.c (rpl_strerror): Instead of returning a const
38546         string from each and every "case", use a variable, and add a single
38547         cast after the switch.
38548
38549 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
38550
38551         * lib/arpa_inet.in.h: Add extern "C" block for C++.
38552
38553 2009-01-16  Bruno Haible  <bruno@clisp.org>
38554
38555         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
38556         array initializer syntax that also works in C++ mode.
38557         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38558
38559 2009-01-16  Jim Meyering  <meyering@redhat.com>
38560
38561         poll: suppress a warning
38562         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
38563         to ignore "...unsigned expression < 0 is always false" warnings.
38564
38565 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
38566
38567         poll: remove declarations of unused variables
38568         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
38569         sockbuf and optlen.
38570
38571 2009-01-15  Bruno Haible  <bruno@clisp.org>
38572
38573         Make fflush-after-ungetc POSIX compliant on BSD systems.
38574         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
38575         (clear_ungetc_buffer): Implement also for other systems.
38576         (rpl_fflush): On glibc systems, invoke
38577         clear_ungetc_buffer_preserving_position. Otherwise, invoke
38578         clear_ungetc_buffer after fetching the stream's position, not before.
38579
38580 2009-01-15  Bruno Haible  <bruno@clisp.org>
38581
38582         Make fflush-after-ungetc POSIX compliant on glibc systems.
38583         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
38584         after ungetc.
38585         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
38586         (rpl_fflush): On glibc systems, simply call the system's fflush
38587         function after clearing the ungetc buffer.
38588         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
38589         Instead, lseek only to the end of file, then use the system's fseeko
38590         for the rest. On glibc systems, reset the EOF indicator bit.
38591
38592 2009-01-15  Jim Meyering  <meyering@redhat.com>
38593
38594         openmp.m4: revert quote-adding change, for portability to older autoconf
38595         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
38596         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
38597         Simon Josefsson noticed the problem when using autoconf-2.61.
38598
38599 2009-01-15  Bruno Haible  <bruno@clisp.org>
38600
38601         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
38602         * tests/test-fflush2.c (ASSERT): Always fail.
38603         (main): Add two tests for fflush() after ungetc(), taking into account
38604         the Austin Group's clarification.
38605         Suggested by Eric Blake.
38606
38607 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
38608
38609         mktime.m4: remove K&R-style function prototypes
38610         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
38611         for the Sun C++ compiler.
38612
38613 2009-01-14  Bruno Haible  <bruno@clisp.org>
38614
38615         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
38616         while including <wchar.h>.
38617         * lib/wchar.in.h: In two particular situations on HP-UX, include only
38618         the system's <wchar.h> file.
38619         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38620
38621 2009-01-14  Bruno Haible  <bruno@clisp.org>
38622
38623         * m4/csharp.m4: Don't mention gettext on the serial number line.
38624         * m4/csharpexec.m4: Likewise.
38625         * m4/eaccess.m4: Likewise.
38626         * m4/javaexec.m4: Likewise.
38627         * m4/sig_atomic_t.m4: Likewise.
38628         * m4/tmpdir.m4: Likewise.
38629         * m4/intldir.m4: Bump gettext version.
38630         * m4/lib-ld.m4: Likewise.
38631
38632 2009-01-14  Bruno Haible  <bruno@clisp.org>
38633
38634         * lib/progname.c (set_program_name): Add more comments.
38635         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
38636
38637 2009-01-14  Simon Josefsson  <simon@josefsson.org>
38638
38639         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
38640         were sys/stat.h does not define it.
38641
38642 2009-01-14  Jim Meyering  <meyering@redhat.com>
38643
38644         many *.m4 files: improve m4 quoting
38645         99% of this change was performed by running the following commands:
38646         git ls-files | grep '\.m4$' | xargs perl -pi \
38647           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
38648           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
38649           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
38650           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
38651         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
38652         The remainder were to add Copyright dates, increment serial numbers,
38653         undo some changes in comments, exclude m4/intl.m4, and add quotes
38654         around the "1" in ",1" where the unusual spacing prohibited the
38655         above regexps from doing the job.  For more details, see
38656         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
38657         * m4/acl.m4: Modified.
38658         * m4/afs.m4: Likewise.
38659         * m4/alloca.m4: Likewise.
38660         * m4/argp.m4: Likewise.
38661         * m4/argz.m4: Likewise.
38662         * m4/atexit.m4: Likewise.
38663         * m4/bison-i18n.m4: Likewise.
38664         * m4/bison.m4: Likewise.
38665         * m4/byteswap.m4: Likewise.
38666         * m4/c-stack.m4: Likewise.
38667         * m4/c-strtod.m4: Likewise.
38668         * m4/calloc.m4: Likewise.
38669         * m4/canonicalize-lgpl.m4: Likewise.
38670         * m4/chown.m4: Likewise.
38671         * m4/clock_time.m4: Likewise.
38672         * m4/codeset.m4: Likewise.
38673         * m4/copy-file.m4: Likewise.
38674         * m4/csharp.m4: Likewise.
38675         * m4/csharpcomp.m4: Likewise.
38676         * m4/csharpexec.m4: Likewise.
38677         * m4/d-ino.m4: Likewise.
38678         * m4/d-type.m4: Likewise.
38679         * m4/dirfd.m4: Likewise.
38680         * m4/double-slash-root.m4: Likewise.
38681         * m4/eaccess.m4: Likewise.
38682         * m4/eealloc.m4: Likewise.
38683         * m4/environ.m4: Likewise.
38684         * m4/errno_h.m4: Likewise.
38685         * m4/euidaccess.m4: Likewise.
38686         * m4/execute.m4: Likewise.
38687         * m4/fatal-signal.m4: Likewise.
38688         * m4/fchdir.m4: Likewise.
38689         * m4/fcntl_h.m4: Likewise.
38690         * m4/fileblocks.m4: Likewise.
38691         * m4/filenamecat.m4: Likewise.
38692         * m4/findprog.m4: Likewise.
38693         * m4/flexmember.m4: Likewise.
38694         * m4/fnmatch.m4: Likewise.
38695         * m4/fopen.m4: Likewise.
38696         * m4/fpending.m4: Likewise.
38697         * m4/fprintf-posix.m4: Likewise.
38698         * m4/free.m4: Likewise.
38699         * m4/frexp.m4: Likewise.
38700         * m4/frexpl.m4: Likewise.
38701         * m4/fsusage.m4: Likewise.
38702         * m4/ftruncate.m4: Likewise.
38703         * m4/gc-camellia.m4: Likewise.
38704         * m4/gc-random.m4: Likewise.
38705         * m4/gc.m4: Likewise.
38706         * m4/getaddrinfo.m4: Likewise.
38707         * m4/getcwd-abort-bug.m4: Likewise.
38708         * m4/getcwd-path-max.m4: Likewise.
38709         * m4/getdate.m4: Likewise.
38710         * m4/getdomainname.m4: Likewise.
38711         * m4/getgroups.m4: Likewise.
38712         * m4/gethostname.m4: Likewise.
38713         * m4/gethrxtime.m4: Likewise.
38714         * m4/getline.m4: Likewise.
38715         * m4/getloadavg.m4: Likewise.
38716         * m4/getndelim2.m4: Likewise.
38717         * m4/getpass.m4: Likewise.
38718         * m4/gettext.m4: Likewise.
38719         * m4/gettime.m4: Likewise.
38720         * m4/gettimeofday.m4: Likewise.
38721         * m4/gnulib-common.m4: Likewise.
38722         * m4/group-member.m4: Likewise.
38723         * m4/host-os.m4: Likewise.
38724         * m4/iconv.m4: Likewise.
38725         * m4/iconv_open.m4: Likewise.
38726         * m4/inet_ntop.m4: Likewise.
38727         * m4/inet_pton.m4: Likewise.
38728         * m4/inline.m4: Likewise.
38729         * m4/intldir.m4: Likewise.
38730         * m4/intlmacosx.m4: Likewise.
38731         * m4/intmax.m4: Likewise.
38732         * m4/intmax_t.m4: Likewise.
38733         * m4/inttypes.m4: Likewise.
38734         * m4/inttypes_h.m4: Likewise.
38735         * m4/inttypes-pri.m4: Likewise.
38736         * m4/isapipe.m4: Likewise.
38737         * m4/isnand.m4: Likewise.
38738         * m4/isnanf.m4: Likewise.
38739         * m4/isnanl.m4: Likewise.
38740         * m4/javacomp.m4: Likewise.
38741         * m4/javaexec.m4: Likewise.
38742         * m4/jm-winsz1.m4: Likewise.
38743         * m4/jm-winsz2.m4: Likewise.
38744         * m4/lchown.m4: Likewise.
38745         * m4/lcmessage.m4: Likewise.
38746         * m4/ldexpl.m4: Likewise.
38747         * m4/lib-ld.m4: Likewise.
38748         * m4/lib-link.m4: Likewise.
38749         * m4/libsigsegv.m4: Likewise.
38750         * m4/link-follow.m4: Likewise.
38751         * m4/localcharset.m4: Likewise.
38752         * m4/locale-fr.m4: Likewise.
38753         * m4/locale-ja.m4: Likewise.
38754         * m4/locale-tr.m4: Likewise.
38755         * m4/locale-zh.m4: Likewise.
38756         * m4/lock.m4: Likewise.
38757         * m4/longlong.m4: Likewise.
38758         * m4/ls-mntd-fs.m4: Likewise.
38759         * m4/lstat.m4: Likewise.
38760         * m4/malloc.m4: Likewise.
38761         * m4/mathl.m4: Likewise.
38762         * m4/mbrtowc.m4: Likewise.
38763         * m4/mbstate_t.m4: Likewise.
38764         * m4/mbswidth.m4: Likewise.
38765         * m4/memchr.m4: Likewise.
38766         * m4/memcmp.m4: Likewise.
38767         * m4/memcpy.m4: Likewise.
38768         * m4/memmem.m4: Likewise.
38769         * m4/memmove.m4: Likewise.
38770         * m4/mempcpy.m4: Likewise.
38771         * m4/memrchr.m4: Likewise.
38772         * m4/memset.m4: Likewise.
38773         * m4/minmax.m4: Likewise.
38774         * m4/mkdir-slash.m4: Likewise.
38775         * m4/mkdtemp.m4: Likewise.
38776         * m4/mktime.m4: Likewise.
38777         * m4/mmap-anon.m4: Likewise.
38778         * m4/mountlist.m4: Likewise.
38779         * m4/nanosleep.m4: Likewise.
38780         * m4/nls.m4: Likewise.
38781         * m4/nocrash.m4: Likewise.
38782         * m4/open.m4: Likewise.
38783         * m4/openat.m4: Likewise.
38784         * m4/openmp.m4: Likewise.
38785         * m4/pathmax.m4: Likewise.
38786         * m4/perl.m4: Likewise.
38787         * m4/physmem.m4: Likewise.
38788         * m4/pipe.m4: Likewise.
38789         * m4/po.m4: Likewise.
38790         * m4/poll.m4: Likewise.
38791         * m4/posixtm.m4: Likewise.
38792         * m4/posixver.m4: Likewise.
38793         * m4/printf-frexp.m4: Likewise.
38794         * m4/printf-frexpl.m4: Likewise.
38795         * m4/printf-posix.m4: Likewise.
38796         * m4/printf-posix-rpl.m4: Likewise.
38797         * m4/printf.m4: Likewise.
38798         * m4/progtest.m4: Likewise.
38799         * m4/putenv.m4: Likewise.
38800         * m4/readline.m4: Likewise.
38801         * m4/readlink.m4: Likewise.
38802         * m4/readutmp.m4: Likewise.
38803         * m4/realloc.m4: Likewise.
38804         * m4/regex.m4: Likewise.
38805         * m4/relocatable.m4: Likewise.
38806         * m4/relocatable-lib.m4: Likewise.
38807         * m4/rename-dest-slash.m4: Likewise.
38808         * m4/rename.m4: Likewise.
38809         * m4/rmdir-errno.m4: Likewise.
38810         * m4/rmdir.m4: Likewise.
38811         * m4/roundf.m4: Likewise.
38812         * m4/roundl.m4: Likewise.
38813         * m4/rpmatch.m4: Likewise.
38814         * m4/save-cwd.m4: Likewise.
38815         * m4/selinux-selinux-h.m4: Likewise.
38816         * m4/setenv.m4: Likewise.
38817         * m4/settime.m4: Likewise.
38818         * m4/sig2str.m4: Likewise.
38819         * m4/sig_atomic_t.m4: Likewise.
38820         * m4/signalblocking.m4: Likewise.
38821         * m4/signbit.m4: Likewise.
38822         * m4/sigpipe.m4: Likewise.
38823         * m4/sockets.m4: Likewise.
38824         * m4/sockpfaf.m4: Likewise.
38825         * m4/st_dm_mode.m4: Likewise.
38826         * m4/stat-time.m4: Likewise.
38827         * m4/stdbool.m4: Likewise.
38828         * m4/stdint.m4: Likewise.
38829         * m4/stdint_h.m4: Likewise.
38830         * m4/stpcpy.m4: Likewise.
38831         * m4/stpncpy.m4: Likewise.
38832         * m4/strcase.m4: Likewise.
38833         * m4/strchrnul.m4: Likewise.
38834         * m4/strcspn.m4: Likewise.
38835         * m4/strdup.m4: Likewise.
38836         * m4/strftime.m4: Likewise.
38837         * m4/strndup.m4: Likewise.
38838         * m4/strnlen.m4: Likewise.
38839         * m4/strpbrk.m4: Likewise.
38840         * m4/strptime.m4: Likewise.
38841         * m4/strsep.m4: Likewise.
38842         * m4/strtod.m4: Likewise.
38843         * m4/strtoimax.m4: Likewise.
38844         * m4/strtok_r.m4: Likewise.
38845         * m4/strtol.m4: Likewise.
38846         * m4/strtoll.m4: Likewise.
38847         * m4/strtoul.m4: Likewise.
38848         * m4/strtoull.m4: Likewise.
38849         * m4/strtoumax.m4: Likewise.
38850         * m4/strverscmp.m4: Likewise.
38851         * m4/threadlib.m4: Likewise.
38852         * m4/timegm.m4: Likewise.
38853         * m4/tm_gmtoff.m4: Likewise.
38854         * m4/tmpdir.m4: Likewise.
38855         * m4/tmpfile.m4: Likewise.
38856         * m4/tzset.m4: Likewise.
38857         * m4/uintmax_t.m4: Likewise.
38858         * m4/unlinkdir.m4: Likewise.
38859         * m4/unlocked-io.m4: Likewise.
38860         * m4/uptime.m4: Likewise.
38861         * m4/userspec.m4: Likewise.
38862         * m4/utimbuf.m4: Likewise.
38863         * m4/utime.m4: Likewise.
38864         * m4/utimes-null.m4: Likewise.
38865         * m4/utimes.m4: Likewise.
38866         * m4/vararrays.m4: Likewise.
38867         * m4/vasnprintf.m4: Likewise.
38868         * m4/vfprintf-posix.m4: Likewise.
38869         * m4/vprintf-posix.m4: Likewise.
38870         * m4/wait-process.m4: Likewise.
38871         * m4/wchar_t.m4: Likewise.
38872         * m4/wint_t.m4: Likewise.
38873         * m4/write-any-file.m4: Likewise.
38874         * m4/yield.m4: Likewise.
38875
38876 2009-01-13  Bruno Haible  <bruno@clisp.org>
38877
38878         Avoid test-copy-file.sh failures when ACL support insufficient.
38879         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
38880         TESTS_ENVIRONMENT.
38881         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
38882         Reported by Jim Meyering.
38883
38884 2009-01-13  Bruno Haible  <bruno@clisp.org>
38885
38886         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
38887         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
38888         * modules/unistdio/u8-printf-parse (Files): Likewise.
38889         * modules/unistdio/u32-printf-parse (Files): Likewise.
38890         * modules/unistdio/ulc-printf-parse (Files): Likewise.
38891
38892 2009-01-13  Simon Josefsson  <simon@josefsson.org>
38893
38894         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
38895         and m4/inttypes_h.m4 too.
38896
38897 2009-01-12  Eric Blake  <ebb9@byu.net>
38898
38899         tests: IRIX 6.2 cc can't compile -0.0 into .data
38900         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
38901         rather than at compile-time.
38902         * tests/test-floorl.c (minus_zero): Likewise.
38903         * tests/test-frexpl.c (minus_zero): Likewise.
38904         * tests/test-isnan.c (minus_zerol): Likewise.
38905         * tests/test-isnanl.h (minus_zero): Likewise.
38906         * tests/test-ldexpl.c (minus_zero): Likewise.
38907         * tests/test-roundl.c (minus_zero): Likewise.
38908         * tests/test-signbit.c (minus_zerol): Likewise.
38909         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
38910         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
38911         * tests/test-truncl.c (minus_zero): Likewise.
38912         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
38913         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
38914         Reported by Tom G. Christensen and Nelson H. F. Beebe.
38915
38916 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38917
38918         regex: fix glibc bug 9697
38919         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
38920         handling.
38921
38922 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38923
38924         regex: fix glibc bug 697
38925         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
38926         being NULL also if there are no backreferences.
38927
38928 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38929
38930         regex: merge glibc changes
38931         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
38932         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
38933         re_string_skip_chars, re_string_reconstruct): Likewise.
38934         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
38935
38936 2009-01-07  Jim Meyering  <meyering@redhat.com>
38937
38938         poll: filter through cppi
38939         * lib/poll.c: Indent cpp directives to reflect nesting.
38940
38941 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
38942
38943         poll: don't return uninitialized
38944         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
38945
38946 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
38947
38948         avoid compile failure on AIX 6.1
38949         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
38950         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
38951
38952 2009-01-04  Jim Meyering  <meyering@redhat.com>
38953
38954         remove duplicate inclusion of <stdio.h>
38955         * tests/test-fprintf-posix.c: Likewise.
38956         * tests/test-printf-posix.c: Likewise.
38957         * tests/test-snprintf-posix.c: Likewise.
38958         * tests/test-sprintf-posix.c: Likewise.
38959         * tests/test-vasprintf-posix.c: Likewise.
38960         * tests/test-vfprintf-posix.c: Likewise.
38961         * tests/test-vprintf-posix.c: Likewise.
38962         * tests/test-vsnprintf-posix.c: Likewise.
38963         * tests/test-vsprintf-posix.c: Likewise.
38964
38965 2009-01-03  Jim Meyering  <meyering@redhat.com>
38966
38967         gnulib-tool: fix sed-based filtering
38968         * gnulib-tool (func_filter_filelist): Remove extra backslash
38969         in sed_fff_filter definition.
38970
38971 2009-01-02  Jim Meyering  <meyering@redhat.com>
38972
38973         strftime: avoid compilation failure on Solaris 2.6
38974         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
38975         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
38976         Don't #define mbrlen or mbsinit, since now they're guaranteed to
38977         be available.  Reported by Tom G. Christensen.  Details in
38978         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
38979
38980 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38981             Bruno Haible  <bruno@clisp.org>
38982
38983         Speed up gnulib-tool by doing more string processing through shell
38984         built-ins.
38985         * gnulib-tool (fast_func_append): New variable.
38986         (func_remove_prefix, func_remove_suffix): New functions.
38987         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
38988         (func_filter_filelist): New function.
38989         (func_get_dependencies): Use func_remove_suffix instead of sed.
38990         (func_get_automake_snippet): Use func_filter_filelist instead of a
38991         subshell and sed invocation.
38992
38993 2009-01-01  Bruno Haible  <bruno@clisp.org>
38994
38995         Fix a security bug.
38996         * gnulib-tool (func_import, import, update): Don't allow the characters
38997         '"', '$', '`', '\' in macro arguments that become part of commands that
38998         are evaluated.
38999
39000 2009-01-01  Bruno Haible  <bruno@clisp.org>
39001
39002         * gnulib-tool (func_reset_sigpipe): Add more comments.
39003
39004 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39005
39006         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
39007         func_emit_tests_Makefile_am, func_import): Abort loops early if we
39008         already know the answer.
39009
39010 2009-01-01  Jim Meyering  <meyering@redhat.com>
39011
39012         * lib/version-etc.c (version_etc_va): Update copyright year.
39013
39014 2008-12-30  Bruno Haible  <bruno@clisp.org>
39015
39016         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
39017         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
39018         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
39019
39020 2008-12-29  Eric Blake  <ebb9@byu.net>
39021
39022         multiarch: avoid autoconf AC_REQUIRE bug
39023         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
39024         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
39025         2.63 and older.
39026         Reported by Bruno Haible, and analyzed in
39027         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
39028
39029 2008-12-29  Bruno Haible  <bruno@clisp.org>
39030
39031         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
39032         files in subdirectories correctly.
39033         Reported by Ralf Wildenhues.
39034
39035 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39036
39037         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
39038         rather than 'join FILE -', for Solaris join.
39039
39040 2008-12-29  Bruno Haible  <bruno@clisp.org>
39041
39042         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
39043         quoting.
39044         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
39045         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
39046         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
39047         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
39048         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
39049         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
39050         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
39051         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
39052         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
39053         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
39054         * m4/nls.m4 (AM_NLS): Likewise.
39055         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
39056         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
39057         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
39058         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
39059         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
39060         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
39061         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
39062         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
39063         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
39064         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
39065         * m4/xsize.m4 (gl_XSIZE): Likewise.
39066         Suggested by Jim Meyering.
39067
39068 2008-11-17  Bruce Korb  <bkorb@gnu.org>
39069
39070         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
39071         * lib/parse-duration.c: use a switch instead of cascading if's.
39072
39073 2008-12-29  Eric Blake  <ebb9@byu.net>
39074
39075         wchar.h: supply WEOF on Irix 5.3
39076         * lib/wchar.in.h (wint_t): Also supply WEOF.
39077         * lib/wctype.in.h (wint_t): Likewise.
39078         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
39079         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
39080         Reported by Tom G. Christensen.
39081
39082 2008-12-26  Bruno Haible  <bruno@clisp.org>
39083
39084         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
39085         i486, i586, i686.
39086
39087 2008-12-26  Bruno Haible  <bruno@clisp.org>
39088
39089         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
39090
39091 2008-12-26  Bruno Haible  <bruno@clisp.org>
39092
39093         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
39094         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
39095         not __STDC_CONSTANT_MACROS.
39096         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
39097
39098 2008-12-25  Bruno Haible  <bruno@clisp.org>
39099
39100         Add support for universal builds to vasnprintf.
39101         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
39102         universal builds, guess no.
39103         * modules/vasnprintf-posix (Depends-on): Add multiarch.
39104         * modules/vasprintf-posix (Depends-on): Likewise.
39105         * modules/fprintf-posix (Depends-on): Likewise.
39106         * modules/vfprintf-posix (Depends-on): Likewise.
39107         * modules/snprintf-posix (Depends-on): Likewise.
39108         * modules/vsnprintf-posix (Depends-on): Likewise.
39109         * modules/sprintf-posix (Depends-on): Likewise.
39110         * modules/vsprintf-posix (Depends-on): Likewise.
39111         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39112         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39113         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39114         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39115         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39116         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39117         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39118
39119         Add support for universal builds to <inttypes.h>.
39120         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
39121         _SCNu64_PREFIX): In Apple
39122         universal builds, define directly, using _LP64.
39123         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
39124         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
39125         * modules/inttypes (Depends-on): Add multiarch.
39126         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
39127
39128         Add support for universal builds to <stdint.h>.
39129         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
39130         universal builds, define directly, using _LP64.
39131         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
39132         Apple universal builds, don't test for the size and suffix of ptrdiff_t
39133         and size_t.
39134         * modules/stdint (Depends-on): Add multiarch.
39135         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
39136
39137         New module 'multiarch'.
39138         * modules/multiarch: New file.
39139         * m4/multiarch.m4: New file.
39140
39141 2008-12-25  Bruno Haible  <bruno@clisp.org>
39142
39143         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
39144
39145 2008-12-25  Bruno Haible  <bruno@clisp.org>
39146
39147         * modules/btowc (License): Relicense under LGPLv2+.
39148         * modules/mbsinit (License): Likewise.
39149         * modules/mbrtowc (License): Likewise.
39150         * modules/wcrtomb (License): Likewise.
39151         * modules/streq (License): Likewise.
39152         Reported by David Lutterkort <lutter@redhat.com>.
39153
39154 2008-12-23  Bruno Haible  <bruno@clisp.org>
39155
39156         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
39157
39158 2008-12-23  Bruno Haible  <bruno@clisp.org>
39159
39160         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
39161         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
39162         GETADDRINFO_LIB, not in LIBS.
39163         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
39164         * modules/canon-host (Link): Likewise.
39165         * NEWS: Mention the change.
39166         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
39167         GETADDRINFO_LIB.
39168
39169 2008-12-22  Bruno Haible  <bruno@clisp.org>
39170
39171         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
39172         * doc/posix-functions/iswalpha_l.texi: Likewise.
39173         * doc/posix-functions/iswblank_l.texi: Likewise.
39174         * doc/posix-functions/iswcntrl_l.texi: Likewise.
39175         * doc/posix-functions/iswctype_l.texi: Likewise.
39176         * doc/posix-functions/iswdigit_l.texi: Likewise.
39177         * doc/posix-functions/iswgraph_l.texi: Likewise.
39178         * doc/posix-functions/iswlower_l.texi: Likewise.
39179         * doc/posix-functions/iswprint_l.texi: Likewise.
39180         * doc/posix-functions/iswpunct_l.texi: Likewise.
39181         * doc/posix-functions/iswspace_l.texi: Likewise.
39182         * doc/posix-functions/iswupper_l.texi: Likewise.
39183         * doc/posix-functions/iswxdigit_l.texi: Likewise.
39184         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
39185         * doc/posix-functions/open_wmemstream.texi: Likewise.
39186         * doc/posix-functions/swscanf.texi: Likewise.
39187         * doc/posix-functions/towctrans_l.texi: Likewise.
39188         * doc/posix-functions/towlower.texi: Likewise.
39189         * doc/posix-functions/towlower_l.texi: Likewise.
39190         * doc/posix-functions/towupper.texi: Likewise.
39191         * doc/posix-functions/towupper_l.texi: Likewise.
39192         * doc/posix-functions/vfwprintf.texi: Likewise.
39193         * doc/posix-functions/vfwscanf.texi: Likewise.
39194         * doc/posix-functions/vswscanf.texi: Likewise.
39195         * doc/posix-functions/vwprintf.texi: Likewise.
39196         * doc/posix-functions/vwscanf.texi: Likewise.
39197         * doc/posix-functions/wcpcpy.texi: Likewise.
39198         * doc/posix-functions/wcpncpy.texi: Likewise.
39199         * doc/posix-functions/wcscasecmp.texi: Likewise.
39200         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
39201         * doc/posix-functions/wcscoll_l.texi: Likewise.
39202         * doc/posix-functions/wcsdup.texi: Likewise.
39203         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39204         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
39205         * doc/posix-functions/wcsnlen.texi: Likewise.
39206         * doc/posix-functions/wcsnrtombs.texi: Likewise.
39207         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
39208         * doc/posix-functions/wctrans_l.texi: Likewise.
39209         * doc/posix-functions/wctype_l.texi: Likewise.
39210         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
39211         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
39212         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
39213         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
39214         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
39215         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
39216         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
39217         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
39218         * doc/glibc-functions/wcschrnul.texi: Likewise.
39219         * doc/glibc-functions/wcsftime_l.texi: Likewise.
39220         * doc/glibc-functions/wcstod_l.texi: Likewise.
39221         * doc/glibc-functions/wcstof_l.texi: Likewise.
39222         * doc/glibc-functions/wcstol_l.texi: Likewise.
39223         * doc/glibc-functions/wcstold_l.texi: Likewise.
39224         * doc/glibc-functions/wcstoll_l.texi: Likewise.
39225         * doc/glibc-functions/wcstoq.texi: Likewise.
39226         * doc/glibc-functions/wcstoul_l.texi: Likewise.
39227         * doc/glibc-functions/wcstoull_l.texi: Likewise.
39228         * doc/glibc-functions/wcstouq.texi: Likewise.
39229         * doc/glibc-functions/wmempcpy.texi: Likewise.
39230
39231 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
39232             Eric Blake  <ebb9@byu.net>
39233             Paolo Bonzini  <bonzini@gnu.org>
39234             Bruno Haible  <bruno@clisp.org>
39235
39236         Make c-stack work on Haiku.
39237         * lib/c-stack.c (SA_ONSTACK): Define fallback.
39238         (c_stack_action): Use SA_ONSTACK flag.
39239
39240 2008-12-22  Bruno Haible  <bruno@clisp.org>
39241
39242         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
39243
39244 2008-12-22  Bruno Haible  <bruno@clisp.org>
39245
39246         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
39247         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
39248         being overridden.
39249         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
39250         New macros.
39251         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
39252         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
39253         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
39254         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
39255
39256 2008-12-22  Bruno Haible  <bruno@clisp.org>
39257
39258         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
39259         from test code.
39260
39261 2008-12-22  Eric Blake  <ebb9@byu.net>
39262
39263         Avoid gcc warnings on cygwin.
39264         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
39265         Avoid unused variable.
39266         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
39267         Likewise.
39268
39269 2008-12-22  Bruno Haible  <bruno@clisp.org>
39270
39271         Remove HAVE_MBRTOWC conditionals.
39272         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
39273         (mbscasecmp): Assume mbrtowc function.
39274         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
39275         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
39276         * lib/mbschr.c: Include mbuiter.h unconditionally.
39277         (mbschr): Assume mbrtowc function.
39278         * lib/mbscspn.c: Include mbuiter.h unconditionally.
39279         (mbscspn): Assume mbrtowc function.
39280         * lib/mbslen.c: Include mbuiter.h unconditionally.
39281         (mbslen): Assume mbrtowc function.
39282         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
39283         (mbsncasecmp): Assume mbrtowc function.
39284         * lib/mbsnlen.c: Include mbiter.h unconditionally.
39285         (mbsnlen): Assume mbrtowc function.
39286         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
39287         (mbspbrk): Assume mbrtowc function.
39288         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
39289         (mbspcasecmp): Assume mbrtowc function.
39290         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
39291         (mbsrchr): Assume mbrtowc function.
39292         * lib/mbssep.c: Include mbuiter.h unconditionally.
39293         (mbssep): Assume mbrtowc function.
39294         * lib/mbsspn.c: Include mbuiter.h unconditionally.
39295         (mbsspn): Assume mbrtowc function.
39296         * lib/mbsstr.c: Include mbuiter.h unconditionally.
39297         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
39298         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
39299         (mbstok_r): Assume mbrtowc function.
39300         * lib/propername.c: Include mbuiter.h unconditionally.
39301         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
39302         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
39303         (trim2): Assume mbrtowc function.
39304         * lib/mbswidth.c (mbsinit): Remove fallback definition.
39305         (mbsnwidth): Assume mbrtowc function.
39306         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
39307         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
39308         fallback definitions.
39309         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
39310
39311 2008-12-22  Bruno Haible  <bruno@clisp.org>
39312
39313         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
39314
39315 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
39316
39317         * modules/regex: Request emulations for the mb*/wc* functions we need.
39318         * m4/regex.m4: Don't look for those functions here.
39319         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
39320
39321 2008-12-22  Bruno Haible  <bruno@clisp.org>
39322
39323         * modules/fnmatch (Depends-on): Remove duplicated dependency.
39324
39325 2008-12-21  Bruno Haible  <bruno@clisp.org>
39326
39327         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
39328         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
39329         (Include): Remove conditionalization.
39330         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
39331         (Include): Remove conditionalization.
39332         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
39333         (Include): Remove conditionalization.
39334         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
39335         * m4/mbfile.m4 (gl_MBFILE): Likewise.
39336         * NEWS: Mention the change.
39337         Reported by Alan Hourihane <alanh@fairlite.co.uk>
39338         via Sergey Poznyakoff <gray@gnu.org.ua>.
39339
39340 2008-12-21  Bruno Haible  <bruno@clisp.org>
39341
39342         * MODULES.html.sh (Extended multibyte and wide character utilities
39343         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
39344         wcrtomb, wcsrtombs.
39345         (Support for systems lacking POSIX:2008): Add accept, bind, close,
39346         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
39347         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
39348         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
39349
39350 2008-12-21  Bruno Haible  <bruno@clisp.org>
39351
39352         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
39353
39354 2008-12-21  Bruno Haible  <bruno@clisp.org>
39355
39356         * modules/wcsnrtombs-tests: New file.
39357         * tests/test-wcsnrtombs1.sh: New file.
39358         * tests/test-wcsnrtombs2.sh: New file.
39359         * tests/test-wcsnrtombs3.sh: New file.
39360         * tests/test-wcsnrtombs4.sh: New file.
39361         * tests/test-wcsnrtombs.c: New file.
39362
39363         New module 'wcsnrtombs'.
39364         * lib/wchar.in.h (wcsnrtombs): New declaration.
39365         * lib/wcsnrtombs.c: New file.
39366         * lib/wcsrtombs-state.c: New file.
39367         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
39368         (internal_state): Remove variable.
39369         * m4/wcsnrtombs.m4: New file.
39370         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
39371         compilation units.
39372         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
39373         HAVE_WCSNRTOMBS.
39374         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
39375         HAVE_WCSNRTOMBS.
39376         * modules/wcsnrtombs: New file.
39377         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
39378         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
39379
39380 2008-12-21  Bruno Haible  <bruno@clisp.org>
39381
39382         * modules/wcsrtombs-tests: New file.
39383         * tests/test-wcsrtombs1.sh: New file.
39384         * tests/test-wcsrtombs2.sh: New file.
39385         * tests/test-wcsrtombs3.sh: New file.
39386         * tests/test-wcsrtombs4.sh: New file.
39387         * tests/test-wcsrtombs.c: New file.
39388
39389         New module 'wcsrtombs'.
39390         * lib/wchar.in.h (wcsrtombs): New declaration.
39391         * lib/wcsrtombs.c: New file.
39392         * m4/wcsrtombs.m4: New file.
39393         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
39394         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
39395         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
39396         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
39397         * modules/wcsrtombs: New file.
39398         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
39399         bugs.
39400
39401 2008-12-21  Bruno Haible  <bruno@clisp.org>
39402
39403         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
39404         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
39405         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
39406         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
39407         if not correct.
39408         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
39409         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
39410         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39411         m4/locale-zh.m4, m4/codeset.m4.
39412         * doc/posix-functions/wcrtomb.texi: Document the bug.
39413
39414 2008-12-21  Bruno Haible  <bruno@clisp.org>
39415
39416         Work around a btowc() bug on IRIX 6.5.
39417         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
39418         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
39419         REPLACE_WTOBC if not.
39420         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
39421         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
39422         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
39423
39424 2008-12-21  Bruno Haible  <bruno@clisp.org>
39425
39426         * modules/wcrtomb-tests: New file.
39427         * tests/test-wcrtomb.sh: New file.
39428         * tests/test-wcrtomb.c: New file.
39429
39430         New module 'wcrtomb'.
39431         * lib/wchar.in.h (wcrtomb): New declaration.
39432         * lib/wcrtomb.c: New file.
39433         * m4/wcrtomb.m4: New file.
39434         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
39435         HAVE_WCRTOMB.
39436         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
39437         HAVE_WCRTOMB.
39438         * modules/wcrtomb: New file.
39439         * doc/posix-functions/wcrtomb.texi: Mention the new module.
39440
39441 2008-12-21  Bruno Haible  <bruno@clisp.org>
39442
39443         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
39444         * modules/mbsrtowcs (Files): Likewise.
39445         * modules/wctob (Files): Likewise.
39446         * modules/c-strcase-tests (Files): Likewise.
39447         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
39448         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
39449         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
39450         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
39451         * modules/vasnprintf-posix-tests (Files): Likewise.
39452
39453 2008-12-21  William Pursell  <bill.pursell@gmail.com>
39454
39455         gitlog-to-changelog: pass all command-line arguments to git-log
39456         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
39457         it is sometimes convenient to filter the commits in various ways.
39458         gitlog-to-changelog only allows --since to specify a start date,
39459         but git-log itself supports many other filtering mechanisms.
39460         At the moment, I want to filter by branch name.  Rather than
39461         adding a --branch option to gitlog-to-changelog, it seems more
39462         flexible to simply pass all options directly to git-log and let
39463         git do the work.  Notice that this effectively makes --since a
39464         redundant option for gitlog-to-changelog, but removing it would
39465         require current usage to change since calls would then require
39466         an additional '--'.
39467
39468 2008-12-21  Bruno Haible  <bruno@clisp.org>
39469
39470         * modules/mbsnrtowcs-tests: New file.
39471         * tests/test-mbsnrtowcs1.sh: New file.
39472         * tests/test-mbsnrtowcs2.sh: New file.
39473         * tests/test-mbsnrtowcs3.sh: New file.
39474         * tests/test-mbsnrtowcs4.sh: New file.
39475         * tests/test-mbsnrtowcs.c: New file.
39476
39477         New module 'mbsnrtowcs'.
39478         * lib/wchar.in.h (mbsnrtowcs): New declaration.
39479         * lib/mbsnrtowcs.c: New file.
39480         * lib/mbsrtowcs-state.c: New file.
39481         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
39482         (internal_state): Remove variable.
39483         * m4/mbsnrtowcs.m4: New file.
39484         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
39485         compilation units.
39486         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
39487         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39488         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
39489         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39490         * modules/mbsnrtowcs: New file.
39491         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
39492         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
39493         portability problem.
39494
39495 2008-12-21  Bruno Haible  <bruno@clisp.org>
39496
39497         Work around mbsrtowcs bug.
39498         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
39499         (gl_FUNC_MBSRTOWCS): Invoke it.
39500         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39501         m4/locale-zh.m4.
39502         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
39503
39504 2008-12-21  Bruno Haible  <bruno@clisp.org>
39505
39506         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
39507
39508 2008-12-21  Bruno Haible  <bruno@clisp.org>
39509
39510         Update doc for AIX.
39511         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
39512         16-bit wchar_t type.
39513         * doc/posix-functions/btowc.texi: Likewise.
39514         * doc/posix-functions/fgetwc.texi: Likewise.
39515         * doc/posix-functions/fgetws.texi: Likewise.
39516         * doc/posix-functions/fputwc.texi: Likewise.
39517         * doc/posix-functions/fputws.texi: Likewise.
39518         * doc/posix-functions/fwide.texi: Likewise.
39519         * doc/posix-functions/fwprintf.texi: Likewise.
39520         * doc/posix-functions/fwscanf.texi: Likewise.
39521         * doc/posix-functions/getwchar.texi: Likewise.
39522         * doc/posix-functions/getwc.texi: Likewise.
39523         * doc/posix-functions/iswalnum.texi: Likewise.
39524         * doc/posix-functions/iswalpha.texi: Likewise.
39525         * doc/posix-functions/iswblank.texi: Likewise.
39526         * doc/posix-functions/iswcntrl.texi: Likewise.
39527         * doc/posix-functions/iswctype.texi: Likewise.
39528         * doc/posix-functions/iswdigit.texi: Likewise.
39529         * doc/posix-functions/iswgraph.texi: Likewise.
39530         * doc/posix-functions/iswlower.texi: Likewise.
39531         * doc/posix-functions/iswprint.texi: Likewise.
39532         * doc/posix-functions/iswpunct.texi: Likewise.
39533         * doc/posix-functions/iswspace.texi: Likewise.
39534         * doc/posix-functions/iswupper.texi: Likewise.
39535         * doc/posix-functions/iswxdigit.texi: Likewise.
39536         * doc/posix-functions/mbrtowc.texi: Likewise.
39537         * doc/posix-functions/mbsrtowcs.texi: Likewise.
39538         * doc/posix-functions/mbstowcs.texi: Likewise.
39539         * doc/posix-functions/mbtowc.texi: Likewise.
39540         * doc/posix-functions/putwchar.texi: Likewise.
39541         * doc/posix-functions/putwc.texi: Likewise.
39542         * doc/posix-functions/swprintf.texi: Likewise.
39543         * doc/posix-functions/tolower.texi: Likewise.
39544         * doc/posix-functions/toupper.texi: Likewise.
39545         * doc/posix-functions/towctrans.texi: Likewise.
39546         * doc/posix-functions/ungetwc.texi: Likewise.
39547         * doc/posix-functions/vswprintf.texi: Likewise.
39548         * doc/posix-functions/wcrtomb.texi: Likewise.
39549         * doc/posix-functions/wcscat.texi: Likewise.
39550         * doc/posix-functions/wcschr.texi: Likewise.
39551         * doc/posix-functions/wcscmp.texi: Likewise.
39552         * doc/posix-functions/wcscoll.texi: Likewise.
39553         * doc/posix-functions/wcscpy.texi: Likewise.
39554         * doc/posix-functions/wcscspn.texi: Likewise.
39555         * doc/posix-functions/wcsftime.texi: Likewise.
39556         * doc/posix-functions/wcslen.texi: Likewise.
39557         * doc/posix-functions/wcsncat.texi: Likewise.
39558         * doc/posix-functions/wcsncmp.texi: Likewise.
39559         * doc/posix-functions/wcsncpy.texi: Likewise.
39560         * doc/posix-functions/wcspbrk.texi: Likewise.
39561         * doc/posix-functions/wcsrchr.texi: Likewise.
39562         * doc/posix-functions/wcsrtombs.texi: Likewise.
39563         * doc/posix-functions/wcsspn.texi: Likewise.
39564         * doc/posix-functions/wcsstr.texi: Likewise.
39565         * doc/posix-functions/wcstod.texi: Likewise.
39566         * doc/posix-functions/wcstof.texi: Likewise.
39567         * doc/posix-functions/wcstoimax.texi: Likewise.
39568         * doc/posix-functions/wcstok.texi: Likewise.
39569         * doc/posix-functions/wcstold.texi: Likewise.
39570         * doc/posix-functions/wcstoll.texi: Likewise.
39571         * doc/posix-functions/wcstol.texi: Likewise.
39572         * doc/posix-functions/wcstombs.texi: Likewise.
39573         * doc/posix-functions/wcstoull.texi: Likewise.
39574         * doc/posix-functions/wcstoul.texi: Likewise.
39575         * doc/posix-functions/wcstoumax.texi: Likewise.
39576         * doc/posix-functions/wcswidth.texi: Likewise.
39577         * doc/posix-functions/wcsxfrm.texi: Likewise.
39578         * doc/posix-functions/wctob.texi: Likewise.
39579         * doc/posix-functions/wctomb.texi: Likewise.
39580         * doc/posix-functions/wctrans.texi: Likewise.
39581         * doc/posix-functions/wctype.texi: Likewise.
39582         * doc/posix-functions/wcwidth.texi: Likewise.
39583         * doc/posix-functions/wmemchr.texi: Likewise.
39584         * doc/posix-functions/wmemcmp.texi: Likewise.
39585         * doc/posix-functions/wmemcpy.texi: Likewise.
39586         * doc/posix-functions/wmemmove.texi: Likewise.
39587         * doc/posix-functions/wmemset.texi: Likewise.
39588         * doc/posix-functions/wprintf.texi: Likewise.
39589         * doc/posix-functions/wscanf.texi: Likewise.
39590
39591 2008-12-21  Bruno Haible  <bruno@clisp.org>
39592
39593         Update doc for HP-UX 11.11.
39594         * doc/posix-functions/btowc.texi: Clarify that the function is missing
39595         in HP-UX version 11.00, not in all versions of HP-UX 11.
39596         * doc/posix-functions/fwide.texi: Likewise.
39597         * doc/posix-functions/fwprintf.texi: Likewise.
39598         * doc/posix-functions/fwscanf.texi: Likewise.
39599         * doc/posix-functions/inet_ntop.texi: Likewise.
39600         * doc/posix-functions/inet_pton.texi: Likewise.
39601         * doc/posix-functions/mbrlen.texi: Likewise.
39602         * doc/posix-functions/mbrtowc.texi: Likewise.
39603         * doc/posix-functions/mbsinit.texi: Likewise.
39604         * doc/posix-functions/mbsrtowcs.texi: Likewise.
39605         * doc/posix-functions/swprintf.texi: Likewise.
39606         * doc/posix-functions/swscanf.texi: Likewise.
39607         * doc/posix-functions/towctrans.texi: Likewise.
39608         * doc/posix-functions/vfwprintf.texi: Likewise.
39609         * doc/posix-functions/vswprintf.texi: Likewise.
39610         * doc/posix-functions/vwprintf.texi: Likewise.
39611         * doc/posix-functions/wcrtomb.texi: Likewise.
39612         * doc/posix-functions/wcsrtombs.texi: Likewise.
39613         * doc/posix-functions/wcsstr.texi: Likewise.
39614         * doc/posix-functions/wctob.texi: Likewise.
39615         * doc/posix-functions/wctrans.texi: Likewise.
39616         * doc/posix-functions/wmemchr.texi: Likewise.
39617         * doc/posix-functions/wmemcmp.texi: Likewise.
39618         * doc/posix-functions/wmemcpy.texi: Likewise.
39619         * doc/posix-functions/wmemmove.texi: Likewise.
39620         * doc/posix-functions/wmemset.texi: Likewise.
39621         * doc/posix-functions/wprintf.texi: Likewise.
39622         * doc/posix-functions/wscanf.texi: Likewise.
39623
39624 2008-12-21  Bruno Haible  <bruno@clisp.org>
39625
39626         Work around a portability problem.
39627         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
39628         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
39629
39630 2008-12-20  Bruno Haible  <bruno@clisp.org>
39631
39632         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
39633         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
39634         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
39635         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
39636         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
39637
39638         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
39639         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
39640         set.
39641         (GNULIB_defined_mbstate_t): New macro.
39642         (mbsinit): Redefine if REPLACE_MBSINIT is set.
39643         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
39644         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
39645         reuses the system's mbrtowc function but works around the bugs.
39646         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
39647         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
39648         macros.
39649         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
39650         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
39651         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
39652         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
39653         REPLACE_MBSINIT if mbsinit needs to be overridden.
39654         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
39655         REPLACE_MBSINIT, REPLACE_MBRTOWC.
39656         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
39657         REPLACE_MBSINIT, REPLACE_MBRTOWC.
39658         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39659         m4/locale-zh.m4.
39660         (Depends): Add mbsinit.
39661         * modules/mbsinit (Depends): Add mbrtowc.
39662         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
39663
39664 2008-12-20  Bruno Haible  <bruno@clisp.org>
39665
39666         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
39667         so that there are no conversion errors on AIX.
39668         * tests/test-mbsrtowcs.c (main): LIkewise.
39669
39670 2008-12-20  Bruno Haible  <bruno@clisp.org>
39671
39672         Work around wctob bug on Solaris <= 9.
39673         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
39674         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
39675         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
39676         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
39677         * modules/wctob (Files): Add m4/locale-fr.m4.
39678         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
39679
39680 2008-12-20  Bruno Haible  <bruno@clisp.org>
39681
39682         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
39683         /dev/null.
39684         * tests/test-select-in.sh: Likewise.
39685         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39686
39687 2008-12-20  Bruno Haible  <bruno@clisp.org>
39688
39689         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
39690         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
39691         Cygwin 1.5.x.
39692
39693 2008-12-20  Bruno Haible  <bruno@clisp.org>
39694
39695         Ensure mbstate_t is defined on HP-UX 11.11.
39696         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
39697         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
39698         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
39699         AC_USE_SYSTEM_EXTENSIONS.
39700         * modules/fnmatch (Depends-on): Add extensions.
39701         * modules/mbrlen (Depends-on): Likewise.
39702         * modules/mbrtowc (Depends-on): Likewise.
39703         * modules/mbsinit (Depends-on): Likewise.
39704         * modules/mbsrtowcs (Depends-on): Likewise.
39705         * modules/mbswidth (Depends-on): Likewise.
39706         * modules/quotearg (Depends-on): Likewise.
39707         * modules/strftime (Depends-on): Likewise.
39708
39709 2008-12-20  Bruno Haible  <bruno@clisp.org>
39710
39711         Ensure wctob is declared on IRIX 6.5.
39712         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
39713         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
39714         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
39715         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
39716         of HAVE_WCTOB.
39717         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
39718         HAVE_WCTOB.
39719         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
39720
39721 2008-12-19  Bruno Haible  <bruno@clisp.org>
39722
39723         * modules/mbsrtowcs-tests: New file.
39724         * tests/test-mbsrtowcs1.sh: New file.
39725         * tests/test-mbsrtowcs2.sh: New file.
39726         * tests/test-mbsrtowcs3.sh: New file.
39727         * tests/test-mbsrtowcs4.sh: New file.
39728         * tests/test-mbsrtowcs.c: New file.
39729
39730         New module 'mbsrtowcs'.
39731         * lib/wchar.in.h (mbsrtowcs): New declaration.
39732         * lib/mbsrtowcs.c: New file.
39733         * m4/mbsrtowcs.m4: New file.
39734         * modules/mbsrtowcs: New file.
39735         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
39736         HAVE_MBSRTOWCS.
39737         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
39738         HAVE_MBSRTOWCS.
39739         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
39740
39741 2008-12-19  Bruno Haible  <bruno@clisp.org>
39742
39743         New module 'mbrlen'.
39744         * lib/wchar.in.h (mbrlen): New declaration.
39745         * lib/mbrlen.c: New file.
39746         * m4/mbrlen.m4: New file.
39747         * modules/mbrlen: New file.
39748         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
39749         HAVE_MBRLEN.
39750         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
39751         HAVE_MBRLEN.
39752         * doc/posix-functions/mbrlen.texi: Document the new module.
39753
39754 2008-12-19  Bruno Haible  <bruno@clisp.org>
39755
39756         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
39757         * modules/mbrtowc (Depends-on): Add verify.
39758         Suggested by Paul Eggert.
39759
39760 2008-12-18  Bruno Haible  <bruno@clisp.org>
39761
39762         * modules/mbsinit-tests: New file.
39763         * tests/test-mbsinit.sh: New file.
39764         * tests/test-mbsinit.c: New file.
39765
39766 2008-12-18  Bruno Haible  <bruno@clisp.org>
39767
39768         * modules/mbrtowc-tests: New file.
39769         * tests/test-mbrtowc1.sh: New file.
39770         * tests/test-mbrtowc2.sh: New file.
39771         * tests/test-mbrtowc3.sh: New file.
39772         * tests/test-mbrtowc4.sh: New file.
39773         * tests/test-mbrtowc.c: New file.
39774
39775         New module 'mbrtowc'.
39776         * lib/wchar.in.h (mbstate_t): Override when the system does not have
39777         mbsinit and mbrtowc.
39778         (mbrtowc): New declaration.
39779         * lib/mbrtowc.c: New file.
39780         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
39781         * modules/mbrtowc: New file.
39782         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
39783         HAVE_MBRTOWC.
39784         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
39785         HAVE_MBRTOWC.
39786         * doc/posix-functions/mbrtowc.texi: Document the new module.
39787
39788 2008-12-18  Bruno Haible  <bruno@clisp.org>
39789
39790         New module 'wctob'.
39791         * lib/wchar.in.h (wctob): New declaration.
39792         * lib/wctob.c: New file.
39793         * m4/wctob.m4: New file.
39794         * modules/wctob: New file.
39795         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
39796         HAVE_WCTOB.
39797         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
39798         * doc/posix-functions/wctob.texi: Document the new module.
39799
39800 2008-12-18  Bruno Haible  <bruno@clisp.org>
39801
39802         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
39803         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
39804
39805 2008-12-18  Simon Josefsson  <simon@josefsson.org>
39806
39807         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
39808         G. Christensen" <tgc@jupiterrise.com>.
39809
39810         * lib/flock.c: Need to include errno.h.  Reported by "Tom
39811         G. Christensen" <tgc@jupiterrise.com>.
39812
39813         * lib/flock.c: Need to include string.h.  Reported by "Tom
39814         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
39815         <ebb9@byu.net>.
39816
39817 2008-12-18  Bruno Haible  <bruno@clisp.org>
39818
39819         * m4/locale-ja.m4: New file, from GNU gettext.
39820
39821 2008-12-17  Bruno Haible  <bruno@clisp.org>
39822
39823         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
39824         Suggested by Eric Blake.
39825
39826 2008-12-17  Bruno Haible  <bruno@clisp.org>
39827
39828         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
39829
39830 2008-12-17  Bruno Haible  <bruno@clisp.org>
39831
39832         * lib/mbsinit.c: Include verify.h. Verify an assumption.
39833         * modules/mbsinit (Depends-on): Add verify.
39834         Suggested by Paul Eggert.
39835
39836 2008-12-17  Bruno Haible  <bruno@clisp.org>
39837
39838         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
39839         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
39840         gl_FUNC_MBRTOWC.
39841         * m4/mbiter.m4 (gl_MBITER): LIkewise.
39842         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
39843         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
39844         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
39845         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
39846         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
39847         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
39848         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
39849         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
39850         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
39851         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
39852         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
39853         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
39854         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
39855         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
39856         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
39857         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
39858         * modules/trim (configure.ac): Likewise.
39859
39860 2008-12-17  Bruno Haible  <bruno@clisp.org>
39861
39862         * modules/btowc-tests: New file.
39863         * tests/test-btowc1.sh: New file.
39864         * tests/test-btowc2.sh: New file.
39865         * tests/test-btowc.c: New file.
39866
39867         New module 'btowc'.
39868         * lib/wchar.in.h (btowc): New declaration.
39869         * lib/btowc.c: New file.
39870         * m4/btowc.m4: New file.
39871         * modules/btowc: New file.
39872         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
39873         HAVE_BTOWC.
39874         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
39875         * doc/posix-functions/btowc.texi: Document the new module.
39876
39877 2008-12-17  Bruno Haible  <bruno@clisp.org>
39878
39879         New module 'mbsinit'.
39880         * lib/wchar.in.h (mbsinit): New declaration.
39881         * lib/mbsinit.c: New file.
39882         * m4/mbsinit.m4: New file.
39883         * modules/mbsinit: New file.
39884         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
39885         HAVE_MBSINIT.
39886         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
39887         HAVE_MBSINIT.
39888         * doc/posix-functions/mbsinit.texi: Document the new module.
39889
39890 2008-12-16  Bruno Haible  <bruno@clisp.org>
39891
39892         * lib/unistd.in.h: Add comment.
39893         * tests/test-environ.c: Don't include <stdlib.h>.
39894
39895 2008-12-16  Bruno Haible  <bruno@clisp.org>
39896
39897         * lib/parse-duration.h (parse_duration): Document return value
39898         convention.
39899         * lib/parse-duration.c: Include specification header first. Add
39900         comments.
39901         (_): Remove macro.
39902         (parse_year_month_day, parse_hour_minute_second): Move side effects
39903         outside of strchr call.
39904         (parse_non_iso8601): Move side effects outside of isspace call.
39905         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
39906         call.
39907
39908 2008-12-16  Bruno Haible  <bruno@clisp.org>
39909
39910         * tests/test-parse-duration.sh: Produce no output when the test
39911         succeeds.
39912
39913 2008-12-16  Bruno Haible  <bruno@clisp.org>
39914
39915         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
39916         expressions.
39917
39918 2008-12-15  Bruno Haible  <bruno@clisp.org>
39919
39920         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
39921         * doc/glibc-functions/flistxattr.texi: Likewise.
39922         * doc/glibc-functions/fopencookie.texi: Likewise.
39923         * doc/glibc-functions/fremovexattr.texi: Likewise.
39924         * doc/glibc-functions/fsetxattr.texi: Likewise.
39925         * doc/glibc-functions/getxattr.texi: Likewise.
39926         * doc/glibc-functions/lgetxattr.texi: Likewise.
39927         * doc/glibc-functions/listxattr.texi: Likewise.
39928         * doc/glibc-functions/llistxattr.texi: Likewise.
39929         * doc/glibc-functions/lremovexattr.texi: Likewise.
39930         * doc/glibc-functions/lsetxattr.texi: Likewise.
39931         * doc/glibc-functions/removexattr.texi: Likewise.
39932         * doc/glibc-functions/setxattr.texi: Likewise.
39933         * doc/posix-functions/open_memstream.texi: Likewise.
39934
39935 2008-12-15  Eric Blake  <ebb9@byu.net>
39936
39937         Update doc for cygwin 1.7.
39938         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
39939         functions.
39940         * doc/posix-functions/fchmodat.texi: Likewise.
39941         * doc/posix-functions/fchownat.texi: Likewise.
39942         * doc/posix-functions/fdopendir.texi: Likewise.
39943         * doc/posix-functions/fmemopen.texi: Likewise.
39944         * doc/posix-functions/freeaddrinfo.texi: Likewise.
39945         * doc/posix-functions/fstatat.texi: Likewise.
39946         * doc/posix-functions/futimens.texi: Likewise.
39947         * doc/posix-functions/gai_strerror.texi: Likewise.
39948         * doc/posix-functions/getaddrinfo.texi: Likewise.
39949         * doc/posix-functions/getnameinfo.texi: Likewise.
39950         * doc/posix-functions/if_freenameindex.texi: Likewise.
39951         * doc/posix-functions/if_indextoname.texi: Likewise.
39952         * doc/posix-functions/if_nameindex.texi: Likewise.
39953         * doc/posix-functions/if_nametoindex.texi: Likewise.
39954         * doc/posix-functions/insque.texi: Likewise.
39955         * doc/posix-functions/linkat.texi: Likewise.
39956         * doc/posix-functions/llrint.texi: Likewise.
39957         * doc/posix-functions/llrintf.texi: Likewise.
39958         * doc/posix-functions/llrintl.texi: Likewise.
39959         * doc/posix-functions/lockf.texi: Likewise.
39960         * doc/posix-functions/lrintl.texi: Likewise.
39961         * doc/posix-functions/mkdirat.texi: Likewise.
39962         * doc/posix-functions/mkfifoat.texi: Likewise.
39963         * doc/posix-functions/mknodat.texi: Likewise.
39964         * doc/posix-functions/mq_close.texi: Likewise.
39965         * doc/posix-functions/mq_getattr.texi: Likewise.
39966         * doc/posix-functions/mq_notify.texi: Likewise.
39967         * doc/posix-functions/mq_open.texi: Likewise.
39968         * doc/posix-functions/mq_receive.texi: Likewise.
39969         * doc/posix-functions/mq_send.texi: Likewise.
39970         * doc/posix-functions/mq_setattr.texi: Likewise.
39971         * doc/posix-functions/mq_timedreceive.texi: Likewise.
39972         * doc/posix-functions/mq_timedsend.texi: Likewise.
39973         * doc/posix-functions/mq_unlink.texi: Likewise.
39974         * doc/posix-functions/open_memstream.texi: Likewise.
39975         * doc/posix-functions/openat.texi: Likewise.
39976         * doc/posix-functions/posix_fadvise.texi: Likewise.
39977         * doc/posix-functions/posix_fallocate.texi: Likewise.
39978         * doc/posix-functions/posix_madvise.texi: Likewise.
39979         * doc/posix-functions/posix_memalign.texi: Likewise.
39980         * doc/posix-functions/posix_openpt.texi: Likewise.
39981         * doc/posix-functions/readlinkat.texi: Likewise.
39982         * doc/posix-functions/remque.texi: Likewise.
39983         * doc/posix-functions/renameat.texi: Likewise.
39984         * doc/posix-functions/rintl.texi: Likewise.
39985         * doc/posix-functions/sem_unlink.texi: Likewise.
39986         * doc/posix-functions/shm_open.texi: Likewise.
39987         * doc/posix-functions/shm_unlink.texi: Likewise.
39988         * doc/posix-functions/signgam.texi: Likewise.
39989         * doc/posix-functions/sigset.texi: Likewise.
39990         * doc/posix-functions/stpcpy.texi: Likewise.
39991         * doc/posix-functions/stpncpy.texi: Likewise.
39992         * doc/posix-functions/strerror.texi: Likewise.
39993         * doc/posix-functions/strtod.texi: Likewise.
39994         * doc/posix-functions/symlinkat.texi: Likewise.
39995         * doc/posix-functions/unlinkat.texi: Likewise.
39996         * doc/posix-functions/utimensat.texi: Likewise.
39997         * doc/glibc-functions/bindresvport.texi: Likewise.
39998         * doc/glibc-functions/dn_expand.texi: Likewise.
39999         * doc/glibc-functions/exp10.texi: Likewise.
40000         * doc/glibc-functions/exp10f.texi: Likewise.
40001         * doc/glibc-functions/fgetxattr.texi: Likewise.
40002         * doc/glibc-functions/flistxattr.texi: Likewise.
40003         * doc/glibc-functions/fopencookie.texi: Likewise.
40004         * doc/glibc-functions/freeifaddrs.texi: Likewise.
40005         * doc/glibc-functions/fremovexattr.texi: Likewise.
40006         * doc/glibc-functions/fsetxattr.texi: Likewise.
40007         * doc/glibc-functions/getifaddrs.texi: Likewise.
40008         * doc/glibc-functions/getxattr.texi: Likewise.
40009         * doc/glibc-functions/lgetxattr.texi: Likewise.
40010         * doc/glibc-functions/listxattr.texi: Likewise.
40011         * doc/glibc-functions/llistxattr.texi: Likewise.
40012         * doc/glibc-functions/lremovexattr.texi: Likewise.
40013         * doc/glibc-functions/lsetxattr.texi: Likewise.
40014         * doc/glibc-functions/pow10.texi: Likewise.
40015         * doc/glibc-functions/pow10f.texi: Likewise.
40016         * doc/glibc-functions/rcmd_af.texi: Likewise.
40017         * doc/glibc-functions/removexattr.texi: Likewise.
40018         * doc/glibc-functions/res_init.texi: Likewise.
40019         * doc/glibc-functions/res_mkquery.texi: Likewise.
40020         * doc/glibc-functions/res_query.texi: Likewise.
40021         * doc/glibc-functions/res_querydomain.texi: Likewise.
40022         * doc/glibc-functions/res_send.texi: Likewise.
40023         * doc/glibc-functions/rresvport_af.texi: Likewise.
40024         * doc/glibc-functions/setxattr.texi: Likewise.
40025         * doc/glibc-functions/strcasestr.texi: Likewise.
40026
40027 2008-12-15  Bruno Haible  <bruno@clisp.org>
40028
40029         Fix compilation error on OSF/1 4.0.
40030         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
40031         <sys/time.h>, simply delegate to the system header.
40032         Reported by Daniel Richard G. <oss@teragram.com>.
40033
40034 2008-12-15  Bruno Haible  <bruno@clisp.org>
40035
40036         * doc/posix-functions/openat.texi: Mention the 'openat' module.
40037         * doc/posix-functions/fchmodat.texi: Likewise.
40038         * doc/posix-functions/fchownat.texi: Likewise.
40039         * doc/posix-functions/fdopendir.texi: Likewise.
40040         * doc/posix-functions/fstatat.texi: Likewise.
40041         * doc/posix-functions/mkdirat.texi: Likewise.
40042         * doc/posix-functions/unlinkat.texi: Likewise.
40043
40044 2008-12-14  Bruno Haible  <bruno@clisp.org>
40045
40046         Update doc for POSIX:2008.
40047         * doc/posix-functions/faccessat.texi: New file.
40048         * doc/posix-functions/fchmodat.texi: New file.
40049         * doc/posix-functions/fchownat.texi: New file.
40050         * doc/posix-functions/fdopendir.texi: New file.
40051         * doc/posix-functions/fstatat.texi: New file.
40052         * doc/posix-functions/futimens.texi: New file.
40053         * doc/posix-functions/linkat.texi: New file.
40054         * doc/posix-functions/mkdirat.texi: New file.
40055         * doc/posix-functions/mkfifoat.texi: New file.
40056         * doc/posix-functions/mknodat.texi: New file.
40057         * doc/posix-functions/open_wmemstream.texi: New file.
40058         * doc/posix-functions/openat.texi: New file.
40059         * doc/posix-functions/psiginfo.texi: New file.
40060         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
40061         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
40062         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
40063         * doc/posix-functions/readlinkat.texi: New file.
40064         * doc/posix-functions/renameat.texi: New file.
40065         * doc/posix-functions/strerror_l.texi: New file.
40066         * doc/posix-functions/symlinkat.texi: New file.
40067         * doc/posix-functions/unlinkat.texi: New file.
40068         * doc/posix-functions/utimensat.texi: New file.
40069         * doc/gnulib.texi (Function Substitutes): Add these subsections.
40070
40071 2008-12-14  Bruno Haible  <bruno@clisp.org>
40072
40073         Update doc for POSIX:2008.
40074         * doc/posix-functions/alphasort.texi: Renamed from
40075         doc/glibc-functions/alphasort.texi.
40076         * doc/posix-functions/dirfd.texi: Renamed from
40077         doc/glibc-functions/dirfd.texi.
40078         * doc/posix-functions/dprintf.texi: Renamed from
40079         doc/glibc-functions/dprintf.texi.
40080         * doc/posix-functions/duplocale.texi: Renamed from
40081         doc/glibc-functions/duplocale.texi.
40082         * doc/posix-functions/fexecve.texi: Renamed from
40083         doc/glibc-functions/fexecve.texi.
40084         * doc/posix-functions/fmemopen.texi: Renamed from
40085         doc/glibc-functions/fmemopen.texi.
40086         * doc/posix-functions/freelocale.texi: Renamed from
40087         doc/glibc-functions/freelocale.texi.
40088         * doc/posix-functions/getdate_err.texi: Renamed from
40089         doc/glibc-functions/getdate_err.texi.
40090         * doc/posix-functions/isalnum_l.texi: Renamed from
40091         doc/glibc-functions/isalnum_l.texi.
40092         * doc/posix-functions/isalpha_l.texi: Renamed from
40093         doc/glibc-functions/isalpha_l.texi.
40094         * doc/posix-functions/isblank_l.texi: Renamed from
40095         doc/glibc-functions/isblank_l.texi.
40096         * doc/posix-functions/iscntrl_l.texi: Renamed from
40097         doc/glibc-functions/iscntrl_l.texi.
40098         * doc/posix-functions/isdigit_l.texi: Renamed from
40099         doc/glibc-functions/isdigit_l.texi.
40100         * doc/posix-functions/isgraph_l.texi: Renamed from
40101         doc/glibc-functions/isgraph_l.texi.
40102         * doc/posix-functions/islower_l.texi: Renamed from
40103         doc/glibc-functions/islower_l.texi.
40104         * doc/posix-functions/isprint_l.texi: Renamed from
40105         doc/glibc-functions/isprint_l.texi.
40106         * doc/posix-functions/ispunct_l.texi: Renamed from
40107         doc/glibc-functions/ispunct_l.texi.
40108         * doc/posix-functions/isspace_l.texi: Renamed from
40109         doc/glibc-functions/isspace_l.texi.
40110         * doc/posix-functions/isupper_l.texi: Renamed from
40111         doc/glibc-functions/isupper_l.texi.
40112         * doc/posix-functions/iswalnum_l.texi: Renamed from
40113         doc/glibc-functions/iswalnum_l.texi.
40114         * doc/posix-functions/iswalpha_l.texi: Renamed from
40115         doc/glibc-functions/iswalpha_l.texi.
40116         * doc/posix-functions/iswblank_l.texi: Renamed from
40117         doc/glibc-functions/iswblank_l.texi.
40118         * doc/posix-functions/iswcntrl_l.texi: Renamed from
40119         doc/glibc-functions/iswcntrl_l.texi.
40120         * doc/posix-functions/iswctype_l.texi: Renamed from
40121         doc/glibc-functions/iswctype_l.texi.
40122         * doc/posix-functions/iswdigit_l.texi: Renamed from
40123         doc/glibc-functions/iswdigit_l.texi.
40124         * doc/posix-functions/iswgraph_l.texi: Renamed from
40125         doc/glibc-functions/iswgraph_l.texi.
40126         * doc/posix-functions/iswlower_l.texi: Renamed from
40127         doc/glibc-functions/iswlower_l.texi.
40128         * doc/posix-functions/iswprint_l.texi: Renamed from
40129         doc/glibc-functions/iswprint_l.texi.
40130         * doc/posix-functions/iswpunct_l.texi: Renamed from
40131         doc/glibc-functions/iswpunct_l.texi.
40132         * doc/posix-functions/iswspace_l.texi: Renamed from
40133         doc/glibc-functions/iswspace_l.texi.
40134         * doc/posix-functions/iswupper_l.texi: Renamed from
40135         doc/glibc-functions/iswupper_l.texi.
40136         * doc/posix-functions/iswxdigit_l.texi: Renamed from
40137         doc/glibc-functions/iswxdigit_l.texi.
40138         * doc/posix-functions/isxdigit_l.texi: Renamed from
40139         doc/glibc-functions/isxdigit_l.texi.
40140         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
40141         doc/glibc-functions/mbsnrtowcs.texi.
40142         * doc/posix-functions/mkdtemp.texi: Renamed from
40143         doc/glibc-functions/mkdtemp.texi.
40144         * doc/posix-functions/newlocale.texi: Renamed from
40145         doc/glibc-functions/newlocale.texi.
40146         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
40147         doc/glibc-functions/nl_langinfo_l.texi.
40148         * doc/posix-functions/open_memstream.texi: Renamed from
40149         doc/glibc-functions/open_memstream.texi.
40150         * doc/posix-functions/opterr.texi: Renamed from
40151         doc/glibc-functions/opterr.texi.
40152         * doc/posix-functions/optind.texi: Renamed from
40153         doc/glibc-functions/optind.texi.
40154         * doc/posix-functions/optopt.texi: Renamed from
40155         doc/glibc-functions/optopt.texi.
40156         * doc/posix-functions/psignal.texi: Renamed from
40157         doc/glibc-functions/psignal.texi.
40158         * doc/posix-functions/scandir.texi: Renamed from
40159         doc/glibc-functions/scandir.texi.
40160         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
40161         doc/glibc-functions/sched_get_priority_min.texi.
40162         * doc/posix-functions/signgam.texi: Renamed from
40163         doc/glibc-functions/signgam.texi.
40164         * doc/posix-functions/stpcpy.texi: Renamed from
40165         doc/glibc-functions/stpcpy.texi.
40166         * doc/posix-functions/stpncpy.texi: Renamed from
40167         doc/glibc-functions/stpncpy.texi.
40168         * doc/posix-functions/strcasecmp_l.texi: Renamed from
40169         doc/glibc-functions/strcasecmp_l.texi.
40170         * doc/posix-functions/strcoll_l.texi: Renamed from
40171         doc/glibc-functions/strcoll_l.texi.
40172         * doc/posix-functions/strfmon_l.texi: Renamed from
40173         doc/glibc-functions/strfmon_l.texi.
40174         * doc/posix-functions/strftime_l.texi: Renamed from
40175         doc/glibc-functions/strftime_l.texi.
40176         * doc/posix-functions/strncasecmp_l.texi: Renamed from
40177         doc/glibc-functions/strncasecmp_l.texi.
40178         * doc/posix-functions/strndup.texi: Renamed from
40179         doc/glibc-functions/strndup.texi.
40180         * doc/posix-functions/strnlen.texi: Renamed from
40181         doc/glibc-functions/strnlen.texi.
40182         * doc/posix-functions/strsignal.texi: Renamed from
40183         doc/glibc-functions/strsignal.texi.
40184         * doc/posix-functions/strxfrm_l.texi: Renamed from
40185         doc/glibc-functions/strxfrm_l.texi.
40186         * doc/posix-functions/timer_gettime.texi: Renamed from
40187         doc/glibc-functions/timer_gettime.texi.
40188         * doc/posix-functions/tolower_l.texi: Renamed from
40189         doc/glibc-functions/tolower_l.texi.
40190         * doc/posix-functions/toupper_l.texi: Renamed from
40191         doc/glibc-functions/toupper_l.texi.
40192         * doc/posix-functions/towctrans_l.texi: Renamed from
40193         doc/glibc-functions/towctrans_l.texi.
40194         * doc/posix-functions/towlower_l.texi: Renamed from
40195         doc/glibc-functions/towlower_l.texi.
40196         * doc/posix-functions/towupper_l.texi: Renamed from
40197         doc/glibc-functions/towupper_l.texi.
40198         * doc/posix-functions/uselocale.texi: Renamed from
40199         doc/glibc-functions/uselocale.texi.
40200         * doc/posix-functions/vdprintf.texi: Renamed from
40201         doc/glibc-functions/vdprintf.texi.
40202         * doc/posix-functions/wcpcpy.texi:
40203         Renamed from doc/glibc-functions/wcpcpy.texi.
40204         * doc/posix-functions/wcpncpy.texi: Renamed from
40205         doc/glibc-functions/wcpncpy.texi.
40206         * doc/posix-functions/wcscasecmp.texi: Renamed from
40207         doc/glibc-functions/wcscasecmp.texi.
40208         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
40209         doc/glibc-functions/wcscasecmp_l.texi.
40210         * doc/posix-functions/wcscoll_l.texi: Renamed from
40211         doc/glibc-functions/wcscoll_l.texi.
40212         * doc/posix-functions/wcsdup.texi: Renamed from
40213         doc/glibc-functions/wcsdup.texi.
40214         * doc/posix-functions/wcsncasecmp.texi: Renamed from
40215         doc/glibc-functions/wcsncasecmp.texi.
40216         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
40217         doc/glibc-functions/wcsncasecmp_l.texi.
40218         * doc/posix-functions/wcsnlen.texi: Renamed from
40219         doc/glibc-functions/wcsnlen.texi.
40220         * doc/posix-functions/wcsnrtombs.texi: Renamed from
40221         doc/glibc-functions/wcsnrtombs.texi.
40222         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
40223         doc/glibc-functions/wcsxfrm_l.texi.
40224         * doc/posix-functions/wctrans_l.texi: Renamed from
40225         doc/glibc-functions/wctrans_l.texi.
40226         * doc/posix-functions/wctype_l.texi: Renamed from
40227         doc/glibc-functions/wctype_l.texi.
40228         * doc/gnulib.texi (Function Substitutes): Add these subsections.
40229         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
40230         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
40231         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
40232         these subsections.
40233         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
40234         Remove sections.
40235
40236 2008-12-14  Bruno Haible  <bruno@clisp.org>
40237
40238         Update doc for POSIX:2008.
40239         * doc/posix-functions/*.texi: Update URL of POSIX specification.
40240
40241 2008-12-14  Bruno Haible  <bruno@clisp.org>
40242
40243         Update doc for POSIX:2008.
40244         * doc/pastposix-functions/bcmp.texi: Renamed from
40245         doc/posix-functions/bcmp.texi.
40246         * doc/pastposix-functions/bcopy.texi: Renamed from
40247         doc/posix-functions/bcopy.texi.
40248         * doc/pastposix-functions/bsd_signal.texi: Renamed from
40249         doc/posix-functions/bsd_signal.texi.
40250         * doc/pastposix-functions/bzero.texi: Renamed from
40251         doc/posix-functions/bzero.texi.
40252         * doc/pastposix-functions/ecvt.texi: Renamed from
40253         doc/posix-functions/ecvt.texi.
40254         * doc/pastposix-functions/fcvt.texi: Renamed from
40255         doc/posix-functions/fcvt.texi.
40256         * doc/pastposix-functions/ftime.texi: Renamed from
40257         doc/posix-functions/ftime.texi.
40258         * doc/pastposix-functions/gcvt.texi: Renamed from
40259         doc/posix-functions/gcvt.texi.
40260         * doc/pastposix-functions/getcontext.texi: Renamed from
40261         doc/posix-functions/getcontext.texi.
40262         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
40263         doc/posix-functions/gethostbyaddr.texi.
40264         * doc/pastposix-functions/gethostbyname.texi: Renamed from
40265         doc/posix-functions/gethostbyname.texi.
40266         * doc/pastposix-functions/getwd.texi: Renamed from
40267         doc/posix-functions/getwd.texi.
40268         * doc/pastposix-functions/h_errno.texi: Renamed from
40269         doc/posix-functions/h_errno.texi.
40270         * doc/pastposix-functions/index.texi: Renamed from
40271         doc/posix-functions/index.texi.
40272         * doc/pastposix-functions/makecontext.texi: Renamed from
40273         doc/posix-functions/makecontext.texi.
40274         * doc/pastposix-functions/mktemp.texi: Renamed from
40275         doc/posix-functions/mktemp.texi.
40276         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
40277         doc/posix-functions/pthread_attr_getstackaddr.texi.
40278         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
40279         doc/posix-functions/pthread_attr_setstackaddr.texi.
40280         * doc/pastposix-functions/rindex.texi: Renamed from
40281         doc/posix-functions/rindex.texi.
40282         * doc/pastposix-functions/scalb.texi: Renamed from
40283         doc/posix-functions/scalb.texi.
40284         * doc/pastposix-functions/setcontext.texi: Renamed from
40285         doc/posix-functions/setcontext.texi.
40286         * doc/pastposix-functions/swapcontext.texi: Renamed from
40287         doc/posix-functions/swapcontext.texi.
40288         * doc/pastposix-functions/ualarm.texi: Renamed from
40289         doc/posix-functions/ualarm.texi.
40290         * doc/pastposix-functions/usleep.texi: Renamed from
40291         doc/posix-functions/usleep.texi.
40292         * doc/pastposix-functions/vfork.texi: Renamed from
40293         doc/posix-functions/vfork.texi.
40294         * doc/pastposix-functions/wcswcs.texi: Renamed from
40295         doc/posix-functions/wcswcs.texi.
40296         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
40297         (Function Substitutes): Update.
40298
40299 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40300
40301         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
40302         m4/strerror.m4.
40303
40304 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40305             Bruno Haible  <bruno@clisp.org>
40306
40307         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
40308
40309 2008-12-13  Bruno Haible  <bruno@clisp.org>
40310
40311         * modules/strtoull (Depends-on): Remove unistd.
40312
40313 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40314
40315         * modules/strtoull (Depends-on): Add stdlib.
40316
40317 2008-12-11  Simon Josefsson  <simon@josefsson.org>
40318
40319         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
40320
40321 2008-12-10  Jim Meyering  <meyering@redhat.com>
40322
40323         gl_ASSERT: don't say assertions are disabled when they're not
40324         * m4/assert.m4 (gl_ASSERT): Do not make configure report
40325         "checking whether to enable assertions... no", when they are in
40326         fact enabled.  This is solely a bug in the output of configure.
40327         In spite of saying "no", NDEBUG was not defined in that case.
40328         Also, as noted by Eric Blake, leave assertions enabled upon
40329         --enable-assert=INVALID.
40330
40331 2008-12-10  Bruno Haible  <bruno@clisp.org>
40332
40333         Change MODULES.html to refer to POSIX:2008 where possible.
40334         * MODULES.html.sh (POSIX2008_URL): New variable.
40335         (posix_headers): Remove sys/timeb, ucontext.
40336         (posix2001_headers): New variable.
40337         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
40338         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
40339         index, makecontext, mktemp, pthread_attr_getstackaddr,
40340         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
40341         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
40342         (posix2001_functions): New variable.
40343         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
40344         otherwise.
40345
40346 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40347
40348         add missing include to parse-duration.c
40349         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
40350         * modules/parse-duration (Depends-on): Add xalloc.
40351
40352         fix sed script reading maint.mk
40353         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
40354         (syntax-check-rules): Use it.
40355
40356 2008-12-09  Bruno Haible  <bruno@clisp.org>
40357
40358         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
40359         MacOS X 10.4/PowerPC.
40360         Reported by Simon Josefsson.
40361
40362 2008-12-08  Jim Meyering  <meyering@redhat.com>
40363
40364         work around mingw's lack of some S_IF definitions
40365         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
40366         Reported by Simon Josefsson.
40367
40368 2008-12-08  Bruno Haible  <bruno@clisp.org>
40369
40370         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
40371         applied to variables. Needed on MacOS X 10.4/PowerPC.
40372         Reported by Simon Josefsson.
40373
40374 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
40375         and Eric Blake  <ebb9@byu.net>
40376
40377         assert: honor --enable-assert
40378         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
40379         order to honor --enable-assert, rather than treating it as a
40380         synonym for --disable-assert.
40381
40382 2008-12-08  Jim Meyering  <meyering@redhat.com>
40383
40384         * lib/posixtm.c: Remove now-useless declaration of mktime.
40385
40386         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
40387
40388 2008-12-07  Bruno Haible  <bruno@clisp.org>
40389
40390         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
40391         test_once): Mark functions as static.
40392         * tests/test-tls.c (test_tls): Likewise.
40393
40394 2008-12-07  Bruno Haible  <bruno@clisp.org>
40395
40396         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
40397         iconv_register_autodetect.
40398
40399 2008-12-07  Jim Meyering  <meyering@redhat.com>
40400
40401         posixtm.c: avoid a warning
40402         * lib/posixtm.c (posixtime): Don't initialize tm0.
40403         It's no longer needed to placate gcc4's -Wuninitialized,
40404         and the attempt to placate would elicit a new warning.
40405
40406         unicodeio.c: mark unused parameters
40407         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40408         (fallback_failure_callback): Likewise.
40409
40410 2008-12-07  Bruno Haible  <bruno@clisp.org>
40411
40412         * gnulib-tool (func_create_testdir): When building the tests
40413         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
40414         Reported by Simon Josefsson.
40415
40416 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40417
40418         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
40419
40420 2008-12-06  Bruno Haible  <bruno@clisp.org>
40421
40422         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
40423         Suggested by Eric Blake.
40424
40425 2008-12-06  Bruno Haible  <bruno@clisp.org>
40426
40427         Fix a c-stack test failure on MacOS X.
40428         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
40429         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
40430         handler for SIGBUS as well.
40431         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
40432         install a signal handler for SIGBUS as well.
40433         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
40434
40435 2008-12-06  Bruno Haible  <bruno@clisp.org>
40436
40437         Advocacy documentation.
40438         * doc/gnulib-intro.texi (Benefits): New section.
40439         * doc/gnulib.texi: Update.
40440
40441 2008-12-06  Bruno Haible  <bruno@clisp.org>
40442
40443         Document the 'manywarnings' module.
40444         * doc/manywarnings.texi: New file.
40445         * doc/gnulib.texi: Include it.
40446
40447 2008-12-05  Eric Blake  <ebb9@byu.net>
40448
40449         tests: silence some gcc warnings
40450         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
40451         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
40452         type mismatches.
40453
40454 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40455             Bruno Haible  <bruno@clisp.org>
40456
40457         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
40458
40459 2008-11-29  Jim Meyering  <meyering@redhat.com>
40460
40461         unicodeio.c: mark unused parameters
40462         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40463         (fallback_failure_callback): Likewise.
40464
40465         fts: fix a thinko
40466         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
40467         (set_stat_type): Return S_IF*-valued "type" directly.
40468         Prompted by James Youngman's spotting a related bug.
40469         Confirmed by further testing through find.
40470
40471         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
40472         * lib/fts.c (D_TYPE): Define.
40473         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
40474         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
40475         (s_ifmt_shift_bits): New function.
40476         (set_stat_type): New function.
40477         (fts_build): When not calling fts_stat, call set_stat_type
40478         to propagate dirent.d_type info to fts_read caller.
40479         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
40480         fts_statp->st_mode type information may be valid.
40481
40482 2008-11-28  Simon Josefsson  <simon@josefsson.org>
40483
40484         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
40485         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
40486         <sds@gnu.org>.
40487
40488 2008-11-20  Bruno Haible  <bruno@clisp.org>
40489
40490         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
40491         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
40492         INCLUDE_NEXT.
40493         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
40494         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
40495         * modules/math (Makefile.am): Substitute
40496         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
40497         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40498
40499 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
40500             Bruno Haible  <bruno@clisp.org>
40501
40502         * lib/stdint.in.h: Define all type macros so that their expansion is
40503         a single typedef'ed token. Fixes a compilation failure in Boost which
40504         does "using ::int8_t;".
40505
40506 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40507
40508         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
40509         gl_MANYWARN_ALL_GCC.
40510         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
40511         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
40512         * modules/manywarnings: New file.
40513         * MODULES.html.sh: Mention manywarnings module.
40514
40515 2008-11-18  Bruno Haible  <bruno@clisp.org>
40516
40517         * doc/gnulib-tool.texi (Unit tests): New section.
40518
40519 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40520
40521         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
40522         paths like 'lib/po/foo.po'.
40523
40524 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40525
40526         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
40527         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
40528
40529 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40530
40531         * m4/warnings.m4: Use CPPFLAGS to really check whether the
40532         parameter works.
40533
40534 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40535
40536         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
40537
40538 2008-11-17  Bruce Korb  <bkorb@gnu.org>
40539
40540         * modules/parse-duration-tests: New file.
40541         * tests/test-parse-duration.sh: New file.
40542         * tests/test-parse-duration.c: New file.
40543
40544         New module 'parse-duration'.
40545         * lib/parse-duration.h: New file.
40546         * lib/parse-duration.c: New file.
40547         * modules/parse-duration: New file.
40548
40549 2008-11-17  Bruno Haible  <bruno@clisp.org>
40550
40551         * tests/test-select-out.sh: Comment out the first pipe test.
40552         Reported by Simon Josefsson.
40553
40554 2008-11-17  Bruno Haible  <bruno@clisp.org>
40555
40556         * modules/getaddrinfo (Depends-on): Add servent, hostent.
40557         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
40558         gl_HOSTENT.
40559
40560 2008-11-17  Bruno Haible  <bruno@clisp.org>
40561
40562         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
40563         -lnetwork and -lnet. Needed for Haiku and BeOS.
40564
40565 2008-11-16  Bruno Haible  <bruno@clisp.org>
40566
40567         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
40568
40569 2008-11-16  Bruno Haible  <bruno@clisp.org>
40570
40571         Avoid test failure on Haiku.
40572         * tests/test-fsync.c: Include <errno.h>.
40573         (main): Don't require that fsync (0) fails.
40574
40575 2008-11-15  Bruno Haible  <bruno@clisp.org>
40576
40577         New module 'hostent'.
40578         * modules/hostent: New file.
40579         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
40580
40581 2008-11-15  Bruno Haible  <bruno@clisp.org>
40582
40583         New module 'servent'.
40584         * modules/servent: New file.
40585         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
40586
40587 2008-11-15  Bruno Haible  <bruno@clisp.org>
40588
40589         Avoid generating same test program with two different rules.
40590         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
40591         test-frexp to test-frexp-nolibm.
40592         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
40593         test-frexpl to test-frexpl-nolibm.
40594
40595 2008-11-15  Bruno Haible  <bruno@clisp.org>
40596
40597         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
40598         $(FREXPL_LIBM).
40599
40600 2008-11-15  Bruno Haible  <bruno@clisp.org>
40601
40602         * lib/netdb.in.h: Activate the definitions also when the system's
40603         <netdb.h> has 'struct addrinfo'.
40604         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
40605         EAI_OVERFLOW or AI_NUMERICSERV.
40606         * doc/posix-headers/netdb.texi: Document the problem.
40607
40608 2008-11-15  Bruno Haible  <bruno@clisp.org>
40609
40610         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
40611
40612         Make the 'sched' module work on platforms where <sched.h> exists but
40613         is incomplete (such as Haiku).
40614         * lib/sched.in.h; Include the system's <sched.h> if it exists.
40615         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
40616         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
40617         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
40618         HAVE_STRUCT_SCHED_PARAM.
40619         * modules/sched (Depends-on): Add include_next.
40620         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
40621         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
40622         * doc/posix-headers/sched.texi: Document the issue.
40623
40624 2008-11-13  Jim Meyering  <meyering@redhat.com>
40625
40626         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
40627         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
40628         test would fail due to the difference in the Report bugs to ...
40629         line.  The expected address is empty, "<>", while the actual
40630         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
40631
40632 2008-11-12  Bruno Haible  <bruno@clisp.org>
40633
40634         lstat: don't compile lstat.c on systems lacking lstat
40635         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
40636         which don't have lstat; this is handled by lib/sys_stat.in.h already.
40637         Reported by Daniel P. Berrange via Jim Meyering.
40638
40639 2008-11-12  Jim Meyering  <meyering@redhat.com>
40640
40641         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
40642
40643 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40644
40645         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
40646         instead.
40647
40648 2008-11-12  Bruno Haible  <bruno@clisp.org>
40649
40650         * lib/unicodeio.c: Include unistr.h.
40651         (utf8_wctomb): Remove function.
40652         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
40653
40654 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40655
40656         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
40657         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
40658         <bruno@clisp.org>.
40659         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
40660
40661 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40662
40663         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
40664         * doc/gnulib.texi: Add section for warnings.
40665
40666 2008-11-11  Bruno Haible  <bruno@clisp.org>
40667
40668         * lib/sockets.h: Add a comment.
40669
40670 2008-11-11  Karl Berry  <karl@gnu.org>
40671
40672         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
40673
40674 2008-11-11  Eric Blake  <ebb9@byu.net>
40675
40676         fdl.texi: avoid git symlinks
40677         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
40678
40679 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40680
40681         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
40682
40683 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40684
40685         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
40686         (gl_WARN_ADD): Substitute $2 if literal.
40687
40688 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40689
40690         * m4/warning.m4: Remove.
40691
40692 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40693
40694         * m4/warnings.m4: Almost complete rewrite. :-)
40695
40696 2008-11-10  Simon Josefsson  <simon@josefsson.org>
40697
40698         * modules/warnings: New module.
40699         * m4/warnings.m4: New file.
40700         * MODULES.html.sh: Mention warnings module.
40701         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
40702         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40703
40704 2008-11-10  Eric Blake  <ebb9@byu.net>
40705
40706         fdl.texi: make a symlink to the latest version
40707         * doc/standards.texi: Revert today's earlier change.
40708         * doc/fdl-1.2.texi: Rename from old fdl.texi...
40709         * doc/fdl.texi: ...and replace this with a symlink to the newer
40710         fdl-1.3.texi.
40711
40712 2008-11-10  Bruno Haible  <bruno@clisp.org>
40713
40714         * tests/test-select-fd.c (main): Accept the result file name as fourth
40715         argument.
40716         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
40717         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
40718
40719 2008-11-10  Bruno Haible  <bruno@clisp.org>
40720
40721         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
40722         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
40723         as autoconf-substituted macros.
40724         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
40725         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
40726         gl_NETDB_H_DEFAULTS. Set these variables.
40727         * modules/netdb (Makefile.am): Substitute these variables.
40728
40729 2008-11-10  Eric Blake  <ebb9@byu.net>
40730
40731         standards.texi: include correct file for FDL 1.3
40732         * doc/standards.texi (GNU Free Documentation License): Change
40733         include file to pull in FDL 1.3, not 1.2.
40734
40735         fdl.texi: revert accidental change to license
40736         * doc/fdl.texi: This is FDL 1.2, not 1.3.
40737
40738 2008-11-10  Bruno Haible  <bruno@clisp.org>
40739
40740         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
40741         cross-compiling guesses also when the native compile gives no result.
40742
40743 2008-11-10  Bruno Haible  <bruno@clisp.org>
40744
40745         * lib/spawni.c (__spawni): Force variable into the stack.
40746
40747 2008-11-10  Bruno Haible  <bruno@clisp.org>
40748
40749         Add support for Haiku.
40750         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
40751         glibc and BeOS, but also on Haiku.
40752         * lib/fpurge.c (fpurge): Likewise.
40753         * lib/freadable.c (freadable): Likewise.
40754         * lib/freadahead.c (freadahead): Likewise.
40755         * lib/freading.c (freading): Likewise.
40756         * lib/freadptr.c (freadptr): Likewise.
40757         * lib/freadseek.c (freadptrinc): Likewise.
40758         * lib/fseeko.c (rpl_fseeko): Likewise.
40759         * lib/fseterr.c (fseterr): Likewise.
40760         * lib/fwritable.c (fwritable): Likewise.
40761         * lib/fwriting.c (fwriting): Likewise.
40762         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
40763
40764 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
40765
40766         * lib/config.charset: Treat Haiku like BeOS.
40767
40768 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
40769
40770         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
40771         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
40772
40773 2008-11-08  Bruno Haible  <bruno@clisp.org>
40774
40775         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
40776         AC_CACHE_CHECK.
40777
40778 2008-11-08  Bruno Haible  <bruno@clisp.org>
40779
40780         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
40781
40782 2008-11-08  Bruno Haible  <bruno@clisp.org>
40783
40784         * tests/test-select-fd.c: New file.
40785         * tests/test-select-in.sh: New file.
40786         * tests/test-select-out.sh: New file.
40787         * tests/test-select-stdin.c: New file.
40788         * modules/select-tests (Files): Add the new files.
40789         (Depends-on): Add gettimeofday.
40790         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
40791         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
40792         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
40793
40794 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
40795             Bruno Haible  <bruno@clisp.org>
40796
40797         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
40798
40799 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
40800
40801         * build-aux/pmccabe2html: Added support for C++ source files.
40802
40803 2008-11-05  Ben Pfaff  <blp@gnu.org>
40804
40805         Fix lib/close.c build on Windows.
40806         * modules/close (Files): Add lib/w32sock.h.
40807
40808 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
40809
40810         Accept Bison's NEWS format.
40811         * build-aux/announce-gen (print_news_deltas): Tweak
40812         $re_prefix.
40813
40814 2008-11-04  Bruno Haible  <bruno@clisp.org>
40815
40816         * modules/random_r (Maintainer): Add glibc.
40817
40818 2008-11-04  Simon Josefsson  <simon@josefsson.org>
40819
40820         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
40821         by karl@freefriends.org (Karl Berry).
40822         * doc/alloca.texi: Likewise.
40823         * doc/c-ctype.texi: Likewise.
40824         * doc/c-strcase.texi: Likewise.
40825         * doc/c-strcaseeq.texi: Likewise.
40826         * doc/c-strcasestr.texi: Likewise.
40827         * doc/c-strstr.texi: Likewise.
40828         * doc/c-strtod.texi: Likewise.
40829         * doc/c-strtold.texi: Likewise.
40830         * doc/ctime.texi: Likewise.
40831         * doc/error.texi: Likewise.
40832         * doc/fdl.texi: Likewise.
40833         * doc/gcd.texi: Likewise.
40834         * doc/getdate.texi: Likewise.
40835         * doc/gnulib-intro.texi: Likewise.
40836         * doc/gnulib-tool.texi: Likewise.
40837         * doc/gnulib.texi: Likewise.
40838         * doc/inet_ntoa.texi: Likewise.
40839         * doc/maintain.texi: Likewise.
40840         * doc/make-stds.texi: Likewise.
40841         * doc/quote.texi: Likewise.
40842         * doc/regexprops-generic.texi: Likewise.
40843         * doc/standards.texi: Likewise.
40844         * doc/verify.texi: Likewise.
40845         * doc/visibility.texi: Likewise.
40846         * doc/gnulib.texi (GNU Free Documentation License): Include
40847         fdl-1.3.texi instead of fdl.texi.
40848
40849 2008-11-04  Simon Josefsson  <simon@josefsson.org>
40850
40851         * doc/fdl-1.3.texi: New file, from
40852         <http://www.gnu.org/licenses/fdl-1.3.texi>.
40853         * modules/fdl-1.3: Add.
40854         * MODULES.html.sh: Add fdl-1.3.
40855
40856 2008-11-03  Bruno Haible  <bruno@clisp.org>
40857
40858         Make determination of absolute name of header file work with AIX xlc.
40859         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
40860         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
40861         preprocessing.
40862         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40863         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
40864
40865 2008-11-03  Simon Josefsson  <simon@josefsson.org>
40866
40867         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
40868         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
40869         <ludo@gnu.org>.
40870
40871 2008-11-02  Bruno Haible  <bruno@clisp.org>
40872
40873         Mark 'strpbrk' obsolete.
40874         * modules/strpbrk (Status, Notice): New sections.
40875         * modules/strtok_r (Depends-on): Add strpbrk.
40876
40877 2008-11-02  Bruno Haible  <bruno@clisp.org>
40878
40879         Mark 'strdup' obsolete.
40880         * modules/strdup (Status, Notice): New sections.
40881         * modules/findprog (Depends-on): Add strdup.
40882         * modules/getaddrinfo (Depends-on): Likewise.
40883         * modules/localename (Depends-on): Likewise.
40884         * modules/relocatable-lib (Depends-on): Likewise.
40885         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
40886         * modules/relocatable-prog (Depends-on): Likewise.
40887         * modules/trim (Depends-on): Likewise.
40888         * modules/unictype/gen-ctype (Depends-on): Likewise.
40889         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
40890
40891 2008-11-02  Bruno Haible  <bruno@clisp.org>
40892
40893         Mark 'strcspn' obsolete.
40894         * modules/strcspn (Status, Notice): New sections.
40895
40896 2008-11-02  Bruno Haible  <bruno@clisp.org>
40897
40898         Mark 'rmdir' obsolete.
40899         * modules/rmdir (Status, Notice): New sections.
40900         * modules/clean-temp (Depends-on): Add rmdir.
40901         * modules/openat (Depends-on): Likewise.
40902
40903 2008-11-02  Bruno Haible  <bruno@clisp.org>
40904
40905         Mark 'raise' obsolete.
40906         * modules/raise (Status, Notice): New sections.
40907         (Include): Specify <signal.h>.
40908         * modules/stdio (Depends-on): Add raise.
40909         * modules/write (Depends-on): Likewise.
40910
40911 2008-11-02  Bruno Haible  <bruno@clisp.org>
40912
40913         Mark 'memset' obsolete.
40914         * modules/memset (Status, Notice): New sections.
40915
40916 2008-11-02  Bruno Haible  <bruno@clisp.org>
40917
40918         Mark 'memmove' obsolete.
40919         * modules/memmove (Status, Notice): New sections.
40920         * modules/argp (Depends-on): Add memmove.
40921         * modules/argz (Depends-on): Likewise.
40922         * modules/canonicalize (Depends-on): Likewise.
40923         * modules/canonicalize-lgpl (Depends-on): Likewise.
40924         * modules/fts (Depends-on): Likewise.
40925         * modules/getcwd (Depends-on): Likewise.
40926         * modules/human (Depends-on): Likewise.
40927         * modules/regex (Depends-on): Likewise.
40928         * modules/striconveh (Depends-on): Likewise.
40929         * modules/trim (Depends-on): Likewise.
40930         * modules/unistr/u8-move (Depends-on): Likewise.
40931         * modules/unistr/u16-move (Depends-on): Likewise.
40932         * modules/unistr/u32-move (Depends-on): Likewise.
40933
40934 2008-11-02  Bruno Haible  <bruno@clisp.org>
40935
40936         Mark 'memcpy' obsolete.
40937         * modules/memcpy (Status, Notice): New sections.
40938
40939 2008-11-02  Bruno Haible  <bruno@clisp.org>
40940
40941         Mark 'memcmp' obsolete.
40942         * modules/memcmp (Status, Notice): New sections.
40943         * modules/argmatch (Depends-on): Add memchr.
40944         * modules/backupfile (Depends-on): Likewise.
40945         * modules/c-strcasestr (Depends-on): Likewise.
40946         * modules/crypto/des (Depends-on): Likewise.
40947         * modules/csharpcomp (Depends-on): Likewise.
40948         * modules/fnmatch (Depends-on): Likewise.
40949         * modules/git-merge-changelog (Depends-on): Likewise.
40950         * modules/isnand (Depends-on): Likewise.
40951         * modules/isnand-nolibm (Depends-on): Likewise.
40952         * modules/isnanf (Depends-on): Likewise.
40953         * modules/isnanf-nolibm (Depends-on): Likewise.
40954         * modules/isnanl (Depends-on): Likewise.
40955         * modules/isnanl-nolibm (Depends-on): Likewise.
40956         * modules/mbchar (Depends-on): Likewise.
40957         * modules/memcoll (Depends-on): Likewise.
40958         * modules/quotearg (Depends-on): Likewise.
40959         * modules/regex (Depends-on): Likewise.
40960         * modules/relocatable-prog (Depends-on): Likewise.
40961         * modules/same (Depends-on): Likewise.
40962         * modules/signbit (Depends-on): Likewise.
40963         * modules/strcasestr-simple (Depends-on): Likewise.
40964         * modules/unictype/gen-ctype (Depends-on): Likewise.
40965         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
40966         * modules/uniname/uniname (Depends-on): Likewise.
40967         * modules/unistr/u8-cmp (Depends-on): Likewise.
40968
40969 2008-11-02  Bruno Haible  <bruno@clisp.org>
40970
40971         Mark 'memchr' obsolete.
40972         * modules/memchr (Status, Notice): New sections.
40973         * modules/argp (Depends-on): Add memchr.
40974         * modules/base64 (Depends-on): Likewise.
40975         * modules/c-strcasestr (Depends-on): Likewise.
40976         * modules/chdir-long (Depends-on): Likewise.
40977         * modules/fnmatch (Depends-on): Likewise.
40978         * modules/getsubopt (Depends-on): Likewise.
40979         * modules/git-merge-changelog (Depends-on): Likewise.
40980         * modules/glob (Depends-on): Likewise.
40981         * modules/strcasestr-simple (Depends-on): Likewise.
40982         * modules/strnlen (Depends-on): Likewise.
40983
40984 2008-11-02  Bruno Haible  <bruno@clisp.org>
40985
40986         Mark 'atexit' obsolete.
40987         * modules/atexit (Status, Notice): New sections.
40988         * modules/chdir-long (Depends-on): Add atexit.
40989         * modules/wait-process (Depends-on): Likewise.
40990
40991 2008-11-02  Bruno Haible  <bruno@clisp.org>
40992
40993         * gnulib-tool: New option --with-obsolete.
40994         (func_usage): Document it.
40995         (func_modules_transitive_closure): Drop obsolete dependencies if
40996         incobsolete is not true.
40997         (func_import): Read and save the incobsolete variable to the cache.
40998
40999 2008-11-02  Bruno Haible  <bruno@clisp.org>
41000
41001         * modules/TEMPLATE-EXTENDED: New field 'Status'.
41002         * gnulib-tool: New option --extract-status.
41003         (func_usage): Document it.
41004         (sed_extract_prog): Recognize it.
41005         (func_get_status): New function.
41006
41007 2008-10-30  Simon Josefsson  <simon@josefsson.org>
41008
41009         * modules/sockets (License): Change from LGPL to LGPLv2+.
41010
41011 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41012
41013         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
41014
41015 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41016
41017         * MODULES.html.sh (Support for systems lacking POSIX:2001):
41018         Mention times and sys_times.
41019         * modules/sys_times, modules/sys_times-tests: New modules.
41020         * modules/times, modules/times-tests: Likewise
41021         * m4/sys_times_h.m4: New file.
41022         * lib/sys_times.in.h: Likewise
41023         * lib/times.c: Likewise.
41024         * tests/test-sys_times.c: Likewise.
41025         * tests/test-times.c: Likewise.
41026         * doc/posix-headers/sys_times.texi: Update.
41027         * doc/posix-functions/times.texi: Update.
41028
41029 2008-10-28  Jim Meyering  <meyering@redhat.com>
41030
41031         * modules/tempname (Depends-on): Add lstat.
41032
41033         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
41034
41035 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41036
41037         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
41038         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
41039         using idiom used elsewhere in gnulib.
41040
41041 2008-10-27  Jim Meyering  <meyering@redhat.com>
41042
41043         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
41044
41045 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41046
41047         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
41048         TESTS_ENVIRONMENT, for shell scripts that needs to call built
41049         programs.
41050         * tests/test-argp-2.sh: Use $EXEEXT when needed.
41051
41052 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41053
41054         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
41055
41056 2008-10-27  Bruno Haible  <bruno@clisp.org>
41057
41058         * tests/test-lstat.c: Include <stdio.h>.
41059
41060 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41061
41062         * modules/lstat-tests: New module.
41063         * tests/test-lstat.c: New file.
41064
41065 2008-10-26  Jim Meyering  <meyering@redhat.com>
41066
41067         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
41068
41069 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41070             Bruno Haible  <bruno@clisp.org>
41071
41072         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
41073         * modules/configmake (Include): Add a note that the include must come
41074         after all system headers.
41075         * lib/javaversion.c: Include configmake.h after all other includes.
41076
41077 2008-10-26  Bruno Haible  <bruno@clisp.org>
41078
41079         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
41080         HAVE_STRUCT_RANDOM_DATA to 1.
41081         (gl_STDLIB_H): Simplify.
41082
41083 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41084
41085         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
41086         substitute HAVE_STRUCT_RANDOM_DATA.
41087         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
41088         random_data.
41089         * modules/stdlib (Makefile.am): Substitute
41090         HAVE_STRUCT_RANDOM_DATA.
41091
41092 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41093
41094         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
41095         * doc/gnulib-intro.texi (Copyright): Likewise.
41096
41097 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41098
41099         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
41100         findings.
41101
41102 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
41103             Bruno Haible  <bruno@clisp.org>
41104
41105         * lib/unistd.in.h: Include <winsock2.h>.
41106         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
41107         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
41108         Provide dummy declarations.
41109         (gethostname): Override.
41110         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
41111         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
41112         gl_PREREQ_SYS_H_WINSOCK2.
41113         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
41114         * doc/posix-functions/gethostname.texi: More details.
41115
41116 2008-10-25  Bruno Haible  <bruno@clisp.org>
41117
41118         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
41119         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
41120         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
41121
41122         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
41123         here ...
41124         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
41125         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
41126         gl_UNISTD_H_DEFAULTS.
41127
41128 2008-10-25  Eric Blake  <ebb9@byu.net>
41129
41130         signbit: avoid spurious compiler failure
41131         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
41132         declarations inside function.
41133
41134 2008-10-24  Simon Josefsson  <simon@josefsson.org>
41135             Bruno Haible  <bruno@clisp.org>
41136
41137         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
41138         * modules/random_r (Depends-on): Add stdint.
41139
41140 2008-10-24  Bruno Haible  <bruno@clisp.org>
41141
41142         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
41143         Eggert.
41144         * modules/strerror (License): Likewise.
41145
41146 2008-10-24  Jim Meyering  <meyering@redhat.com>
41147
41148         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
41149         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
41150
41151 2008-10-24  Eric Blake  <ebb9@byu.net>
41152
41153         getgroups: fix compilation when getgroups is available
41154         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
41155         but with <config.h> override of getgroups disabled.
41156
41157 2008-10-24  Simon Josefsson  <simon@josefsson.org>
41158
41159         * doc/gnulib.texi (Header files): Add note about C++ problems.
41160         Explained by Bruno Haible <bruno@clisp.org>.
41161
41162 2008-10-23  Bruno Haible  <bruno@clisp.org>
41163
41164         Define a dummy SA_NODEFER macro on Interix.
41165         * lib/signal.in.h (SA_NODEFER): Define fallback.
41166         Reported by Aleksey Cheusov <cheusov@tut.by> via
41167         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
41168
41169 2008-10-23  Bruno Haible  <bruno@clisp.org>
41170
41171         * modules/freadahead (License): Change to LGPLv2+.
41172         Suggested by Simon Josefsson.
41173
41174 2008-10-23  Jim Meyering  <meyering@redhat.com>
41175
41176         random_r: new module
41177         * modules/random_r: New file.
41178         * m4/random_r.m4: New file.
41179         * lib/random_r.c: New file, from glibc.
41180         * modules/random_r-tests: New file.
41181         * tests/test-random_r.c: New file.
41182         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
41183          Declare.
41184         (RAND_MAX): Define.
41185         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
41186         * modules/stdlib: Substitute them, too.
41187         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
41188         * doc/glibc-functions/initstate_r.texi: Mention the new module.
41189         * doc/glibc-functions/random_r.texi: Likewise.
41190         * doc/glibc-functions/setstate_r.texi: Likewise.
41191         * doc/glibc-functions/srandom_r.texi: Likewise.
41192         * config/srclist.txt: Mention it.
41193
41194 2008-10-23  David Lutterkort  <lutter@redhat.com>
41195
41196         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
41197         link requirement
41198
41199 2008-10-23  Jim Meyering  <meyering@redhat.com>
41200
41201         selinux-h: mark parameters of stub functions as intentionally unused
41202         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
41203         * lib/se-context.in.h: Likewise.
41204
41205 2008-10-22  Simon Josefsson  <simon@josefsson.org>
41206
41207         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
41208
41209 2008-10-22  Simon Josefsson  <simon@josefsson.org>
41210
41211         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
41212
41213 2008-10-22  Eric Blake  <ebb9@byu.net>
41214
41215         glthread/thread: avoid compiler warning
41216         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
41217         Add unreachable abort to silence compiler.
41218
41219 2008-10-22  Eric Blake  <ebb9@byu.net>
41220
41221         netdb: also supply struct addrinfo for cygwin 1.5.x
41222         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
41223         older cygwin.
41224         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
41225         cygwin.
41226         * doc/posix-headers/netdb.texi (netdb.h): Document this.
41227
41228 2008-10-22  Bruno Haible  <bruno@clisp.org>
41229
41230         * users.txt: Update entry about pspp.
41231
41232 2008-10-21  Bruno Haible  <bruno@clisp.org>
41233
41234         Simplification.
41235         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
41236         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
41237
41238         Simplification.
41239         * lib/ioctl.c (ioctl): Don't undefine.
41240         * lib/socket.c (socket): Don't undefine.
41241
41242         Remove unused module indicator macros.
41243         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
41244         GNULIB_$1 as a C macro.
41245
41246         * doc/posix-functions/close.texi: Undo last change.
41247         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
41248         Windows platforms.
41249
41250 2008-10-21  Bruno Haible  <bruno@clisp.org>
41251
41252         Add gethostname() declaration to <unistd.h>.
41253         * lib/unistd.in.h (gethostname): New declaration.
41254         * lib/gethostname.c: Include <unistd.h>.
41255         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
41256         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
41257         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
41258         and HAVE_GETHOSTNAME.
41259         * modules/gethostname (Depends-on): Add unistd.
41260         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41261         (Include): Specify <unistd.h>.
41262         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
41263         HAVE_GETHOSTNAME.
41264         * tests/test-gethostname.c: Include <unistd.h> first.
41265
41266 2008-10-21  Bruno Haible  <bruno@clisp.org>
41267
41268         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
41269         * modules/select-tests (Depends-on): Likewise.
41270         Reported by Simon Josefsson.
41271
41272 2008-10-21  Simon Josefsson  <simon@josefsson.org>
41273
41274         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
41275         * lib/accept.c: New file, based on winsock.c.
41276         * lib/bind.c: New file, based on winsock.c.
41277         * lib/connect.c: New file, based on winsock.c.
41278         * lib/getpeername.c: New file, based on winsock.c.
41279         * lib/getsockname.c: New file, based on winsock.c.
41280         * lib/getsockopt.c: New file, based on winsock.c.
41281         * lib/ioctl.c: New file, based on winsock.c.
41282         * lib/listen.c: New file, based on winsock.c.
41283         * lib/recv.c: New file, based on winsock.c.
41284         * lib/recvfrom.c: New file, based on winsock.c.
41285         * lib/send.c: New file, based on winsock.c.
41286         * lib/sendto.c: New file, based on winsock.c.
41287         * lib/setsockopt.c: New file, based on winsock.c.
41288         * lib/shutdown.c: New file, based on winsock.c.
41289         * lib/socket.c: New file, based on winsock.c.
41290         * lib/w32sock.h: New file, based on winsock.c.
41291         * lib/winsock.c: Remove file.
41292         * modules/accept: Likewise.
41293         * modules/bind: Likewise.
41294         * modules/connect: Likewise.
41295         * modules/getpeername: Likewise.
41296         * modules/getsockname: Likewise.
41297         * modules/getsockopt: Likewise.
41298         * modules/ioctl: Likewise.
41299         * modules/listen: Likewise.
41300         * modules/recv: Likewise.
41301         * modules/recvfrom: Likewise.
41302         * modules/send: Likewise.
41303         * modules/sendto: Likewise.
41304         * modules/setsockopt: Likewise.
41305         * modules/shutdown: Likewise.
41306         * modules/socket: Use socket.c instead of winsock.c.
41307         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
41308         * doc/posix-functions/accept.texi: Doc fix.
41309         * doc/posix-functions/bind.texi: Doc fix.
41310         * doc/posix-functions/close.texi: Doc fix.
41311         * doc/posix-functions/connect.texi: Doc fix.
41312         * doc/posix-functions/getpeername.texi: Doc fix.
41313         * doc/posix-functions/getsockname.texi: Doc fix.
41314         * doc/posix-functions/getsockopt.texi: Doc fix.
41315         * doc/posix-functions/ioctl.texi: Doc fix.
41316         * doc/posix-functions/listen.texi: Doc fix.
41317         * doc/posix-functions/recv.texi: Doc fix.
41318         * doc/posix-functions/recvfrom.texi: Doc fix.
41319         * doc/posix-functions/send.texi: Doc fix.
41320         * doc/posix-functions/sendto.texi: Doc fix.
41321         * doc/posix-functions/setsockopt.texi: Doc fix.
41322         * doc/posix-functions/shutdown.texi: Doc fix.
41323         * doc/posix-functions/socket.texi: Doc fix.
41324
41325 2008-10-20  Bruno Haible  <bruno@clisp.org>
41326
41327         Take into account the role of SIGABRT_COMPAT on Windows 2008.
41328         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
41329         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
41330         as an alias for SIGABRT.
41331         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
41332         (sigaction): Map it to SIGABRT.
41333         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
41334
41335 2008-10-20  Bruno Haible  <bruno@clisp.org>
41336
41337         * lib/fts.c: Don't include lstat.h.
41338         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
41339
41340         Move the lstat() declaration to <sys/stat.h>.
41341         * lib/lstat.h: Remove file.
41342         * lib/sys_stat.in.h: Add special invocation convention.
41343         (lstat): New declaration.
41344         * lib/lstat.c (orig_lstat): New function.
41345         (rpl_lstat): Use orig_lstat instead of lstat.
41346         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
41347         AC_C_INLINE. Set REPLACE_LSTAT.
41348         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
41349         and REPLACE_LSTAT.
41350         * modules/lstat (Files): Remove lib/lstat.h.
41351         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
41352         (Include): Specify <sys/stat.h> instead of lstat.h.
41353         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
41354         REPLACE_LSTAT.
41355         * NEWS: Mention the change.
41356
41357 2008-10-20  Bruno Haible  <bruno@clisp.org>
41358
41359         * modules/posix_spawn-tests: New file.
41360         * tests/test-posix_spawn3.c: New file.
41361
41362 2008-10-20  Bruno Haible  <bruno@clisp.org>
41363
41364         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
41365         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
41366         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
41367         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
41368         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
41369
41370 2008-10-20  Bruno Haible  <bruno@clisp.org>
41371
41372         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
41373         of posix_spawn on AIX 5.3.
41374
41375 2008-10-20  Bruno Haible  <bruno@clisp.org>
41376
41377         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
41378
41379 2008-10-20  Bruno Haible  <bruno@clisp.org>
41380
41381         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
41382         of AC_LANG_PROGRAM.
41383
41384 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41385
41386         * lib/netdb.in.h: Don't define GNU specific constants until they
41387         are supported or needed.  Reported by Bruno Haible
41388         <bruno@clisp.org>.
41389
41390 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41391
41392         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
41393
41394 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41395
41396         * lib/getaddrinfo.h: Remove file.
41397         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
41398         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
41399         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
41400         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
41401         * modules/netdb: Substitute GNULIB_GETADDRINFO.
41402         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
41403         * tests/test-getaddrinfo.c: Likewise.
41404         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
41405         * NEWS: Mention change.
41406
41407 2008-10-19  Bruno Haible  <bruno@clisp.org>
41408
41409         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
41410
41411 2008-10-19  Bruno Haible  <bruno@clisp.org>
41412
41413         * lib/wait-process.c: Include simply <sys/wait.h>.
41414         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
41415         WIFSTOPPED): Remove fallback definitions.
41416         * modules/wait-process (Depends-on): Add sys_wait.
41417
41418         New module 'sys_wait'.
41419         * modules/sys_wait: New file.
41420         * lib/sys_wait.in.h: New file, partially copied from
41421         lib/wait-process.c.
41422         * m4/sys_wait_h.m4: New file.
41423         * doc/posix-headers/sys_wait.texi: Mention the new module.
41424
41425 2008-10-19  Bruno Haible  <bruno@clisp.org>
41426
41427         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
41428
41429 2008-10-19  Bruno Haible  <bruno@clisp.org>
41430
41431         Assume that waitpid() fills an 'int' status, not a 'union wait'.
41432         * lib/wait-process.c (WAIT_T): Remove type.
41433         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
41434         (wait_subprocess): Update.
41435
41436 2008-10-19  Bruno Haible  <bruno@clisp.org>
41437
41438         New module 'atoll'.
41439         * modules/atoll: New file.
41440         * lib/stdlib.in.h (atoll): New declaration.
41441         * lib/atoll.c: New file, from glibc with modifications.
41442         * m4/atoll.m4: New file.
41443         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
41444         HAVE_ATOLL.
41445         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
41446         * doc/posix-functions/atoll.texi: Mention the new module.
41447
41448 2008-10-19  Bruno Haible  <bruno@clisp.org>
41449
41450         Add strtoull() declaration to <stdlib.h>.
41451         * lib/stdlib.in.h (strtoull): New declaration.
41452         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41453         Set HAVE_STRTOULL.
41454         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
41455         HAVE_STRTOULL.
41456         * modules/strtoull (Depends-on): Add stdlib.
41457         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41458         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
41459         HAVE_STRTOULL.
41460
41461 2008-10-19  Bruno Haible  <bruno@clisp.org>
41462
41463         Add strtoll() declaration to <stdlib.h>.
41464         * lib/stdlib.in.h (strtoll): New declaration.
41465         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41466         Set HAVE_STRTOLL.
41467         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
41468         HAVE_STRTOLL.
41469         * modules/strtoll (Depends-on): Add stdlib.
41470         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41471         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
41472
41473 2008-10-19  Bruno Haible  <bruno@clisp.org>
41474
41475         * modules/bcopy (Depends-on): Add strings.
41476         (Include): Specify <strings.h>.
41477
41478 2008-10-19  Bruno Haible  <bruno@clisp.org>
41479
41480         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
41481
41482 2008-10-19  Bruno Haible  <bruno@clisp.org>
41483
41484         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
41485         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
41486         mingw.
41487
41488 2008-10-19  Bruno Haible  <bruno@clisp.org>
41489
41490         * lib/atanl.c: Don't include isnanl.h.
41491         * lib/cosl.c: Likewise.
41492         * lib/ldexpl.c: Likewise.
41493         * lib/logl.c: Likewise.
41494         * lib/sinl.c: Likewise.
41495         * lib/sqrtl.c: Likewise.
41496         * lib/tanl.c: Likewise.
41497
41498         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
41499         * lib/isnanf.h: Remove file.
41500         * lib/isnand.h: Remove file.
41501         * lib/isnanl.h: Remove file.
41502         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
41503         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
41504         macros.
41505         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
41506         HAVE_ISNANF, don't define it as a C macro.
41507         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
41508         HAVE_ISNAND, don't define it as a C macro.
41509         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
41510         HAVE_ISNANL, don't define it as a C macro.
41511         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
41512         HAVE_ISNAN[FDL].
41513         * modules/isnanf (Files): Remove lib/isnanf.h.
41514         (Depends-on): Add math.
41515         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41516         (Include): Specify <math.h> instead of isnanf.h.
41517         * modules/isnand (Files): Remove lib/isnand.h.
41518         (Depends-on): Add math.
41519         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41520         (Include): Specify <math.h> instead of isnand.h.
41521         * modules/isnanl (Files): Remove lib/isnanl.h.
41522         (Depends-on): Add math.
41523         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41524         (Include): Specify <math.h> instead of isnanl.h.
41525         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
41526         HAVE_ISNAN[FDL].
41527         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
41528         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
41529         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
41530         * NEWS: Mention the change.
41531
41532 2008-10-18  Bruno Haible  <bruno@clisp.org>
41533
41534         Add getusershell(), setusershell(), endusershell() declarations to
41535         <unistd.h>.
41536         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
41537         declarations.
41538         * lib/getusershell.c: Include unistd.h.
41539         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
41540         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
41541         HAVE_GETUSERSHELL.
41542         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
41543         and HAVE_GETUSERSHELL.
41544         * modules/getusershell (Depends-on): Add unistd, extensions.
41545         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41546         (Include): Specify <unistd.h>.
41547         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
41548         HAVE_GETUSERSHELL.
41549
41550 2008-10-18  Bruno Haible  <bruno@clisp.org>
41551
41552         Add a getloadavg() declaration to <stdlib.h>.
41553         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
41554         getloadavg declaration.
41555         (getloadavg): New declaration.
41556         * lib/getloadavg.c: Include <stdlib.h> first.
41557         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
41558         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
41559         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
41560         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
41561         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
41562         * modules/getloadavg (Depends-on): Add stdlib, extensions.
41563         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41564         (Include): Specify <stdlib.h>.
41565         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
41566         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
41567
41568 2008-10-18  Bruno Haible  <bruno@clisp.org>
41569
41570         * lib/dirchownmod.c: Don't include lchmod.h.
41571
41572         Move the lchmod() declaration to <sys/stat.h>.
41573         * lib/lchmod.h: Remove file.
41574         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
41575         (lchmod): New declaration, moved here from lib/lchown.h.
41576         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
41577         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
41578         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
41579         and HAVE_LCHMOD.
41580         * modules/lchmod (Files): Remove lib/lchmod.h.
41581         (Depends-on): Add sys_stat, extensions.
41582         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
41583         (Include): Specify <sys/stat.h> instead of lchmod.h.
41584         * modules/sys_stat (Depends-on): Add link-warning.
41585         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
41586         definition of GL_LINK_WARNING.
41587         * NEWS: Mention the change.
41588
41589 2008-10-18  Bruno Haible  <bruno@clisp.org>
41590
41591         * lib/fchdir.c: Don't include dirfd.h.
41592         * lib/fts.c: Likewise.
41593         * lib/getcwd.c: Likewise.
41594         * lib/glob.c: Likewise.
41595
41596         Move the dirfd() declaration to <dirent.h>.
41597         * lib/dirfd.h: Remove file.
41598         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
41599         (dirfd): New declaration.
41600         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
41601         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
41602         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
41603         HAVE_DECL_DIRFD.
41604         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
41605         HAVE_DECL_DIRFD.
41606         * modules/dirfd (Files): Remove lib/dirfd.h.
41607         (Depends-on): Add dirent, extensions.
41608         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
41609         (Include): Specify <dirent.h> instead of dirfd.h.
41610         * modules/dirent (Depends-on): Add link-warning.
41611         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
41612         definition of GL_LINK_WARNING.
41613         * NEWS: Mention the change.
41614
41615 2008-10-18  Bruno Haible  <bruno@clisp.org>
41616
41617         Move the euidaccess() declaration to <unistd.h>.
41618         * lib/euidaccess.h: Remove file.
41619         * lib/unistd.in.h (euidaccess): New declaration.
41620         * lib/euidaccess.c: Don't include euidaccess.h.
41621         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
41622         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
41623         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
41624         and HAVE_EUIDACCESS.
41625         * modules/euidaccess (Files): Remove lib/euidaccess.h.
41626         (Depends-on): Add unistd.
41627         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41628         (Include): Specify <unistd.h> instead of euidaccess.h.
41629         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
41630         HAVE_EUIDACCESS.
41631         * NEWS: Mention the change.
41632
41633 2008-10-18  Bruno Haible  <bruno@clisp.org>
41634
41635         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
41636
41637         Move the getdomainname() declaration to <unistd.h>.
41638         * lib/getdomainname.h: Remove file.
41639         * lib/unistd.in.h (getdomainname): New declaration.
41640         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
41641         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
41642         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
41643         HAVE_GETDOMAINNAME.
41644         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41645         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
41646         * modules/getdomainname (Files): Remove lib/getdomainname.h.
41647         (Depends-on): Add unistd, extensions.
41648         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41649         (Includes): Specify <unistd.h> instead of getdomainname.h.
41650         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
41651         HAVE_GETDOMAINNAME.
41652         * NEWS: Mention the change.
41653
41654 2008-10-18  Bruno Haible  <bruno@clisp.org>
41655
41656         * modules/dirent: New file.
41657         * m4/dirent_h.m4: New file.
41658         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
41659         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
41660         * modules/fchdir (Files): Remove lib/dirent.in.h.
41661         (Depends-on): Add dirent.
41662         (Makefile.am): Move rules to modules/dirent.
41663         * doc/posix-headers/dirent.texi: Mention the new module.
41664
41665 2008-10-18  Bruno Haible  <bruno@clisp.org>
41666
41667         Avoid -Wunused-parameter warnings in public gnulib header files.
41668         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
41669         macro.
41670         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
41671
41672 2008-10-18  Bruno Haible  <bruno@clisp.org>
41673
41674         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
41675         * doc/glibc-functions/error.texi: Mention the module 'error'.
41676         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
41677         * doc/glibc-functions/getdomainname.texi: Mention the module
41678         'getdomainname'.
41679         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
41680         * doc/glibc-functions/getpagesize.texi: Mention the module
41681         'getpagesize'.
41682         * doc/glibc-functions/getusershell.texi: Mention the module
41683         'getusershell'.
41684         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
41685         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
41686         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
41687         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
41688         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
41689         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
41690         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
41691         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
41692         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
41693         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
41694         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
41695         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
41696         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
41697         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
41698
41699 2008-10-17  Bruno Haible  <bruno@clisp.org>
41700
41701         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
41702         HP-UX and IRIX, use -0.0L.
41703         * tests/test-ceill.c (minus_zero): Likewise.
41704         * tests/test-floorl.c (minus_zero): Likewise.
41705         * tests/test-frexpl.c (minus_zero): Likewise.
41706         * tests/test-isnan.c (minus_zerol): Likewise.
41707         * tests/test-isnanl.h (minus_zero): Likewise.
41708         * tests/test-ldexpl.c (minus_zero): Likewise.
41709         * tests/test-roundl.c (minus_zero): Likewise.
41710         * tests/test-signbit.c (minus_zerol): Likewise.
41711         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
41712         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
41713         * tests/test-truncl.c (minus_zero): Likewise.
41714         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
41715         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
41716         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
41717         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
41718
41719 2008-10-17  Bruno Haible  <bruno@clisp.org>
41720
41721         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
41722         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
41723         that it gets activated only for gcc >= 3.0.
41724         * lib/dirent.in.h: Likewise.
41725         * lib/errno.in.h: Likewise.
41726         * lib/fcntl.in.h: Likewise.
41727         * lib/float.in.h: Likewise.
41728         * lib/iconv.in.h: Likewise.
41729         * lib/inttypes.in.h: Likewise.
41730         * lib/locale.in.h: Likewise.
41731         * lib/math.in.h: Likewise.
41732         * lib/netdb.in.h: Likewise.
41733         * lib/netinet_in.in.h: Likewise.
41734         * lib/search.in.h: Likewise.
41735         * lib/signal.in.h: Likewise.
41736         * lib/spawn.in.h: Likewise.
41737         * lib/stdarg.in.h: Likewise.
41738         * lib/stdint.in.h: Likewise.
41739         * lib/stdio.in.h: Likewise.
41740         * lib/stdlib.in.h: Likewise.
41741         * lib/string.in.h: Likewise.
41742         * lib/strings.in.h: Likewise.
41743         * lib/sys_file.in.h: Likewise.
41744         * lib/sys_ioctl.in.h: Likewise.
41745         * lib/sys_select.in.h: Likewise.
41746         * lib/sys_socket.in.h: Likewise.
41747         * lib/sys_stat.in.h: Likewise.
41748         * lib/sys_time.in.h: Likewise.
41749         * lib/sysexits.in.h: Likewise.
41750         * lib/time.in.h: Likewise.
41751         * lib/unistd.in.h: Likewise.
41752         * lib/wchar.in.h: Likewise.
41753         * lib/wctype.in.h: Likewise.
41754         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41755
41756 2008-10-17  Jim Meyering  <meyering@redhat.com>
41757
41758         ignore-value: don't depend on inline module
41759         * modules/ignore-value (Depends-on): Remove 'inline'.
41760         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
41761         Suggestion from Bruno Haible.
41762
41763 2008-10-17  Bruno Haible  <bruno@clisp.org>
41764
41765         New implementation of condition variables for Win32.
41766         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
41767         (gl_linked_waitqueue_t): New type.
41768         (gl_cond_t): Use it.
41769         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
41770         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
41771         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
41772         (glthread_cond_init_func, glthread_cond_wait_func,
41773         glthread_cond_timedwait_func, glthread_cond_signal_func,
41774         glthread_cond_broadcast_func, glthread_cond_destroy_func):
41775         Reimplemented on the basis of gl_linked_waitqueue_t.
41776         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
41777         gl_waitqueue_t.
41778         (gl_rwlock_t): Update.
41779         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
41780
41781 2008-10-17  Simon Josefsson  <simon@josefsson.org>
41782
41783         * modules/recvfrom (Depends-on): Add dependency on getpeername.
41784         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41785
41786 2008-10-17  Jim Meyering  <meyering@redhat.com>
41787
41788         ignore-value: new module
41789         * modules/ignore-value: New file.
41790         * lib/ignore-value.h: New file.
41791         * MODULES.html.sh (Compiler warning management): New section,
41792         just for this module.  More to come.
41793
41794 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
41795
41796         open-safer.c: avoid 'signed and unsigned in conditional...' warning
41797         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
41798         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
41799
41800 2008-10-16  Jim Meyering  <meyering@redhat.com>
41801
41802         openat-die.c: avoid 'no previous prototype' warning
41803         * lib/openat-die.c: Include "openat.h".
41804         Reported by Reuben Thomas <rrt@sc3d.org>.
41805
41806 2008-10-16  Simon Josefsson  <simon@josefsson.org>
41807
41808         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
41809         * lib/netdb.in.h: Fix typo.
41810         Reported by Bruno Haible  <bruno@clisp.org>
41811
41812         * lib/netdb.in.h: Include sys/socket.h for platforms without
41813         netdb.h, to get structures like hostent on MinGW.
41814         * modules/netdb (Depends-on): Add sys_socket.
41815
41816 2008-10-15  Simon Josefsson  <simon@josefsson.org>
41817
41818         * modules/netdb, modules/netdb-tests: New file.
41819         * m4/netdb_h.m4: New file.
41820         * lib/netdb.in.h: Add, currently just an empty file pending
41821         definitions.
41822         * tests/test-netdb.c: New file.
41823         * doc/posix-headers/netdb.texi: Mention that we replace it if
41824         needed.
41825         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41826         netdb.
41827
41828 2008-10-15  Simon Josefsson  <simon@josefsson.org>
41829
41830         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
41831         with code.
41832
41833 2008-10-13  Bruno Haible  <bruno@clisp.org>
41834
41835         * lib/glthread/cond.c (glthread_cond_wait_func,
41836         glthread_cond_timedwait_func): Add a comment.
41837
41838 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
41839
41840         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
41841         * tests/test-select.c: Likewise,
41842
41843 2008-10-13  Bruno Haible  <bruno@clisp.org>
41844
41845         * lib/glthread/cond.c (glthread_cond_wait_func,
41846         glthread_cond_timedwait_func): Fix variable name.
41847         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41848
41849 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
41850
41851         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
41852         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
41853         struct sockaddr.sa_len.
41854         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
41855
41856 2008-10-13  Simon Josefsson  <simon@josefsson.org>
41857
41858         * build-aux/pmccabe2html: Add css and css_url parameters.
41859
41860 2008-10-12  Bruno Haible  <bruno@clisp.org>
41861
41862         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
41863         calling aclx_get.
41864         Reported by Rainer Tammer <tammer@tammer.net>.
41865
41866 2008-10-12  Bruno Haible  <bruno@clisp.org>
41867
41868         Use msvcrt aware primitives for creation/termination of Win32 threads.
41869         * lib/glthread/thread.c: Include <process.h>.
41870         (glthread_create_func): Use _beginthreadex instead of CreateThread.
41871         (wrapper_func): Update signature.
41872         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
41873
41874 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
41875             Bruno Haible  <bruno@clisp.org>
41876
41877         Provide a Win32 implementation of the 'cond' module.
41878         * lib/glthread/cond.h [USE_WIN32]: New implementation.
41879         * lib/glthread/cond.c (glthread_cond_init_func,
41880         glthread_cond_wait_func, glthread_cond_timedwait_func,
41881         glthread_cond_signal_func, glthread_cond_broadcast_func,
41882         glthread_cond_destroy_func) [USE_WIN32]: New functions.
41883         * modules/cond (Dependencies): Add gettimeofday.
41884
41885 2008-10-11  Bruno Haible  <bruno@clisp.org>
41886
41887         Make sleep work on older versions of mingw.
41888         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
41889         only whether it exists.
41890         * doc/posix-functions/sleep.texi: Mention the problem with older
41891         versions of mingw.
41892
41893 2008-10-11  Bruno Haible  <bruno@clisp.org>
41894
41895         New module 'shutdown'.
41896         * modules/shutdown: New file.
41897         * lib/sys_socket.in.h (shutdown): New declaration.
41898         * lib/winsock.c (shutdown): New function.
41899         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
41900         GNULIB_SHUTDOWN.
41901         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
41902         * doc/posix-functions/shutdown.texi: Document the new module.
41903
41904 2008-10-11  Jim Meyering  <meyering@redhat.com>
41905
41906         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
41907
41908 2008-10-11  Bruno Haible  <bruno@clisp.org>
41909
41910         New module 'fclose'.
41911         * modules/fclose: New file.
41912         * lib/stdio.in.h (fclose): New declaration.
41913         * lib/fclose.c: New file.
41914         * m4/fclose.m4: New file.
41915         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
41916         REPLACE_FCLOSE.
41917         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
41918         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
41919         REPLACE_FCLOSE.
41920         * modules/close (Depends-on): fclose.
41921         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
41922
41923 2008-10-11  Bruno Haible  <bruno@clisp.org>
41924
41925         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
41926         set errno and don't call _close.
41927
41928 2008-10-10  Bruno Haible  <bruno@clisp.org>
41929
41930         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
41931         ACL, not afterwards. Fixes test failure on Cygwin.
41932
41933 2008-10-09  Ben Pfaff  <blp@gnu.org>
41934
41935         * build-aux/announce-gen: Fix gnulib version related part of usage
41936         message.  Die with a useful error message if no tarballs are
41937         found.
41938
41939 2008-10-10  Jim Meyering  <meyering@redhat.com>
41940
41941         bootstrap: use git's --depth=N option only if it's supported
41942         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
41943         recognize the --depth option.  Reported by Pádraig Brady.
41944
41945 2008-10-09  Bruno Haible  <bruno@clisp.org>
41946
41947         New module 'ioctl'.
41948         * modules/ioctl: New file.
41949         * lib/sys_socket.in.h (ioctl): Remove declaration.
41950         * lib/winsock.c: Include <sys/ioctl.h>.
41951         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
41952         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
41953         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
41954         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
41955         * doc/posix-functions/ioctl.texi: Mention the new module.
41956
41957 2008-10-09  Bruno Haible  <bruno@clisp.org>
41958
41959         New module 'sys_ioctl'.
41960         * lib/sys_ioctl.in.h: New file.
41961         * m4/sys_ioctl_h.m4: New file.
41962         * modules/sys_ioctl: New file.
41963         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
41964
41965 2008-10-09  Bruno Haible  <bruno@clisp.org>
41966
41967         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
41968         * lib/winsock.c: Include <stdarg.h>.
41969         (rpl_ioctl): Change to second argument 'int' and then varargs.
41970
41971 2008-10-09  Bruno Haible  <bruno@clisp.org>
41972
41973         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
41974         when the sys_socket module is present and the system has <winsock2.h>.
41975
41976 2008-10-09  Bruno Haible  <bruno@clisp.org>
41977
41978         * doc/posix-functions/close.texi: Mention module 'close' instead of
41979         module 'sys_socket'.
41980
41981 2008-10-09  Bruno Haible  <bruno@clisp.org>
41982
41983         * doc/glibc-headers/sys_ioctl.texi: New file.
41984         * doc/gnulib.texi: Include it.
41985
41986 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41987             Bruno Haible  <bruno@clisp.org>
41988
41989         Combine the two replacements of 'close'.
41990         * lib/sys_socket.in.h (close): Define to a reminder to include
41991         <unistd.h>.
41992         (_gl_close_fd_maybe_socket): New declaration.
41993         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
41994         * lib/winsock.c (close): Remove undefinition.
41995         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
41996         needed for the gnulib module 'close'.
41997         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
41998         define to an error symbol or to a warning, if suitable.
41999         * lib/close.c: Include <sys/socket.h>.
42000         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
42001         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
42002         UNISTD_H_HAVE_WINSOCK2_H.
42003         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
42004         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42005         UNISTD_H_HAVE_WINSOCK2_H.
42006         * modules/sys_socket (Files): Add m4/unistd_h.m4.
42007         (configure.ac): Set a module indicator.
42008         (Makefile.am): Substitute GNULIB_CLOSE.
42009         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
42010         * modules/poll-tests (Depends-on): Add close.
42011         * modules/select-tests (Depends-on): Likewise.
42012
42013 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42014             Bruno Haible  <bruno@clisp.org>
42015
42016         New module 'close'.
42017         * modules/close: New file.
42018         * lib/unistd.in.h (close): Move declaration out of the
42019         FCHDIR_REPLACEMENT scope.
42020         (_gl_unregister_fd): New declaration.
42021         * lib/close.c: New file.
42022         * lib/fchdir.c (rpl_close): Remove function.
42023         * m4/close.m4: New file.
42024         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
42025         close.
42026         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
42027         REPLACE_CLOSE.
42028         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
42029         REPLACE_CLOSE.
42030         * modules/fchdir (Depends-on): Add close.
42031
42032 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42033             Bruno Haible  <bruno@clisp.org>
42034
42035         * lib/fcntl.in.h (open): Simplify conditionals.
42036         (_gl_register_fd): New declaration.
42037         * lib/fchdir.c (rpl_open): Remove function.
42038         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
42039         also.
42040         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
42041         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
42042         open.
42043
42044 2008-10-09  Jim Meyering  <meyering@redhat.com>
42045
42046         GNUmakefile: use the more name-space-friendly "_version"
42047         * top/GNUmakefile (_dummy): Update.
42048         (_version): Rename from "version".
42049
42050 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42051             Bruno Haible  <bruno@clisp.org>
42052
42053         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
42054         rpl_close.
42055         (_gl_register_fd): New function, extracted from rpl_open.
42056         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
42057         (rpl_open, rpl_opendir): Use _gl_register_fd.
42058
42059 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42060
42061         Fix organization of 'open' replacement.
42062         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
42063         (gl_FUNC_OPEN): Use it.
42064         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
42065
42066 2008-10-08  Bruno Haible  <bruno@clisp.org>
42067
42068         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
42069
42070 2008-10-08  Simon Josefsson  <simon@josefsson.org>
42071
42072         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
42073         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
42074         listen).
42075
42076 2008-10-08  Eric Blake  <ebb9@byu.net>
42077
42078         GNUmakefile: add 'make version' target
42079         * top/GNUmakefile (_curr-ver): Split version update rules...
42080         (version): ...into a target.
42081
42082 2008-10-07  Bruno Haible  <bruno@clisp.org>
42083
42084         Use a more portable replacement expression for -0.0L.
42085         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
42086         instead of -0.0L. Fix m4 quotation.
42087
42088         * tests/test-signbit.c: Include <float.h>.
42089         (minus_zero): New variable.
42090         (test_signbitl): Use minus_zero instead of -zero.
42091         * modules/signbit-tests (Depends-on): Add float.
42092
42093         * tests/test-ceill.c: Include <float.h>.
42094         (zero): Remove variable.
42095         (minus_zero): New variable.
42096         (main): Use minus_zero instead of -zero.
42097         * modules/ceill-tests (Depends-on): Add float.
42098
42099         * tests/test-floorl.c: Include <float.h>.
42100         (zero): Remove variable.
42101         (minus_zero): New variable.
42102         (main): Use minus_zero instead of -zero.
42103         * modules/floorl-tests (Depends-on): Add float.
42104
42105         * tests/test-roundl.c: Include <float.h>.
42106         (zero): Remove variable.
42107         (minus_zero): New variable.
42108         (main): Use minus_zero instead of -zero.
42109         * modules/roundl-tests (Depends-on): Add float.
42110
42111         * tests/test-truncl.c: Include <float.h>.
42112         (zero): Remove variable.
42113         (minus_zero): New variable.
42114         (main): Use minus_zero instead of -zero.
42115         * modules/truncl-tests (Depends-on): Add float.
42116
42117         * tests/test-frexpl.c (zero): Remove variable.
42118         (minus_zero): New variable.
42119         (main): Use minus_zero instead of -zero.
42120         * modules/frexpl-tests (Depends-on): Add float.
42121
42122         * tests/test-isnan.c (zerol): Remove variable.
42123         (minus_zerol): New variable.
42124         (test_long_double): Use minus_zerol instead of -zerol.
42125         * modules/isnan-tests (Depends-on): Add float.
42126
42127         * tests/test-isnanl.h (zero): Remove variable.
42128         (minus_zero): New variable.
42129         (main): Use minus_zero instead of -zero.
42130         * modules/isnanl-nolibm-tests (Depends-on): Add float.
42131         * modules/isnanl-tests (Depends-on): Add float.
42132
42133         * tests/test-ldexpl.c (zero): Remove variable.
42134         (minus_zero): New variable.
42135         (main): Use minus_zero instead of -zero.
42136         * modules/ldexpl-tests (Depends-on): Add float.
42137
42138         * tests/test-snprintf-posix.h (zerol): Remove variable.
42139         (minus_zerol): New variable.
42140         (test_function): Use minus_zerol instead of -zerol.
42141         * modules/snprintf-posix-tests (Depends-on): Add float.
42142         * modules/vsnprintf-posix-tests (Depends-on): Add float.
42143
42144         * tests/test-sprintf-posix.h (zerol): Remove variable.
42145         (minus_zerol): New variable.
42146         (test_function): Use minus_zerol instead of -zerol.
42147         * modules/sprintf-posix-tests (Depends-on): Add float.
42148         * modules/vsprintf-posix-tests (Depends-on): Add float.
42149
42150         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
42151         (minus_zerol): New variable.
42152         (test_function): Use minus_zerol instead of -zerol.
42153         * modules/vasnprintf-posix-tests (Depends-on): Add float.
42154
42155         * tests/test-vasprintf-posix.c (zerol): Remove variable.
42156         (minus_zerol): New variable.
42157         (test_function): Use minus_zerol instead of -zerol.
42158         * modules/vasprintf-posix-tests (Depends-on): Add float.
42159
42160 2008-10-07  Simon Josefsson  <simon@josefsson.org>
42161
42162         * MODULES.html.sh (Support for building documentation): Mention
42163         pmccabe2html.  Sort entries.
42164
42165         Add pmccabe2html module, from gnupdf.
42166         * build-aux/pmccabe.css: New file.
42167         * build-aux/pmccabe2html: New file.
42168         * m4/pmccabe2html.m4: New file.
42169         * modules/pmccabe2html: New file.
42170
42171 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
42172
42173         flock: new module
42174         * MODULES.html.sh: Add to list of modules.
42175         * lib/flock.c: flock implementation for Windows and Unix systems
42176         which have fcntl.
42177         * doc/glibc-functions/flock.texi: Update documentation.
42178         * lib/sys_file.in.h: <sys/file.h> header file.
42179         * m4/flock.m4: M4 macros.
42180         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
42181         * modules/flock: flock module.
42182         * modules/flock-tests: flock tests module.
42183         * modules/sys_file: sys/file.h module.
42184         * tests/test-flock.c: test suite for flock.
42185
42186 2008-10-06  Jim Meyering  <meyering@redhat.com>
42187
42188         bootstrap: check for LT_INIT more portably still ;-)
42189         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
42190         Spotted by Bruno Haible.
42191
42192 2008-10-06  Eric Blake  <ebb9@byu.net>
42193
42194         test-signbit: avoid tripping Irix cc bug on -0.0L
42195         * tests/test-signbit.c (minus_zerol): Delete, and replace with
42196         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
42197         entire testsuite consistent and avoids an Irix 6.2 bug.
42198
42199 2008-10-05  Bruno Haible  <bruno@clisp.org>
42200             Jim Meyering  <jim@meyering.net>
42201
42202         Add an option for ignoring EPIPE during close_stdout.
42203         * lib/closeout.h: Include <stdbool.h>.
42204         (close_stdout_set_ignore_EPIPE): New declaration.
42205         * lib/closeout.c: Include <stdbool.h>.
42206         (ignore_EPIPE): New variable.
42207         (close_stdout_set_ignore_EPIPE): New function.
42208         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
42209         * lib/close-stream.c (close_stream): Mention the possible EPIPE
42210         failure.
42211         * modules/closeout (Depends-on): Add stdbool.
42212
42213 2008-10-05  Bruno Haible  <bruno@clisp.org>
42214
42215         * modules/accept: New file.
42216         * modules/bind: New file.
42217         * modules/connect: New file.
42218         * modules/getpeername: New file.
42219         * modules/getsockname: New file.
42220         * modules/getsockopt: New file.
42221         * modules/listen: New file.
42222         * modules/recv: New file.
42223         * modules/recvfrom: New file.
42224         * modules/send: New file.
42225         * modules/sendto: New file.
42226         * modules/setsockopt: New file.
42227         * modules/socket: New file.
42228         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
42229         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
42230         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
42231         the particular module is requested. Add a link warning when the
42232         particular module is not requested.
42233         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
42234         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
42235         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
42236         the particular module is requested.
42237         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
42238         gl_SYS_SOCKET_H_DEFAULTS): New macros.
42239         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
42240         * modules/sys_socket (Depends-on): Add link-warning.
42241         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
42242         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
42243         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
42244         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
42245         GL_LINK_WARNING.
42246         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
42247         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
42248         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
42249         * doc/posix-functions/getpeername.texi: Mention the new module
42250         'getpeername'.
42251         * doc/posix-functions/getsockname.texi: Mention the new module
42252         'getsockname'.
42253         * doc/posix-functions/getsockopt.texi: Mention the new module
42254         'getsockopt'.
42255         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
42256         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
42257         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
42258         * doc/posix-functions/send.texi: Mention the new module 'send'.
42259         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
42260         * doc/posix-functions/setsockopt.texi: Mention the new module
42261         'setsockopt'.
42262         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
42263         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
42264         listen, connect, accept.
42265         * modules/select-tests (Depends-on): Likewise.
42266
42267 2008-10-05  Bruno Haible  <bruno@clisp.org>
42268
42269         * lib/winsock.c (strerror): Remove unused #undef.
42270         (rpl_close): Remove unused local variable.
42271
42272         * modules/sys_socket (Depends-on); Add errno.
42273
42274 2008-10-05  Bruno Haible  <bruno@clisp.org>
42275
42276         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
42277         (select): Add a link warning when the 'select' module is not used.
42278         * modules/sys_select (Depends-on): Add link-warning.
42279         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
42280         Suggested by Paolo Bonzini.
42281
42282 2008-10-05  Jim Meyering  <meyering@redhat.com>
42283
42284         bootstrap: check for LT_INIT more portably
42285         * build-aux/bootstrap: Avoid using grep -E, since it's not
42286         portable enough.  Suggestion from Bruno Haible.
42287
42288 2008-10-05  Bruno Haible  <bruno@clisp.org>
42289
42290         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
42291         as being fixed by gnulib.
42292
42293 2008-10-05  Bruno Haible  <bruno@clisp.org>
42294
42295         * modules/select-tests: New file, mostly copied from
42296         modules/sys_select-tests.
42297         * tests/test-select.c: New file, mostly copied from
42298         tests/test-sys_select.c.
42299         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
42300         * modules/sys_select-tests (Depends-on): Remove all dependencies.
42301         (Makefile.am): Remove test_sys_select_LDADD.
42302
42303         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
42304         to an undefined symbol, for an error message.
42305         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
42306         (gl_SYS_SELECT_H_DEFAULTS): New macro.
42307         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
42308         winsock-select.c here.
42309         * modules/sys_select (Files): Remove lib/winsock-select.c.
42310         (Depends-on): Remove alloca.
42311         (Makefile.am): Substitute GNULIB_SELECT.
42312         * modules/select: New file.
42313         * doc/posix-functions/select.texi: Update.
42314
42315 2008-10-05  Bruno Haible  <bruno@clisp.org>
42316
42317         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
42318         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
42319         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
42320         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
42321         getdtablesize.
42322         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
42323         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
42324
42325 2008-10-05  Bruno Haible  <bruno@clisp.org>
42326
42327         * modules/getdtablesize-tests: New file.
42328         * tests/test-getdtablesize.c: New file.
42329
42330         New module 'getdtablesize'.
42331         * lib/unistd.in.h (getdtablesize): New declaration.
42332         * lib/getdtablesize.c: New file.
42333         * m4/getdtablesize.m4: New file.
42334         * modules/getdtablesize: New file.
42335         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42336         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
42337         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
42338         HAVE_GETDTABLESIZE.
42339         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
42340
42341 2008-10-05  Bruno Haible  <bruno@clisp.org>
42342
42343         * modules/sched (Makefile.am): Fix typo.
42344         Reported by Simon Josefsson.
42345
42346 2008-10-05  Jim Meyering  <meyering@redhat.com>
42347
42348         bootstrap: check for LT_INIT, too
42349         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
42350         are deprecated.  Suggestion from Ralf Wildenhues.
42351
42352 2008-10-05  Bruno Haible  <bruno@clisp.org>
42353
42354         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
42355         overriding them by ours.
42356         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
42357
42358 2008-10-05  Jim Meyering  <meyering@redhat.com>
42359
42360         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
42361         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
42362         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
42363
42364 2008-10-04  Bruno Haible  <bruno@clisp.org>
42365
42366         * modules/dup2 (License): Change to LGPLv2+.
42367         * modules/sleep (License): Likewise.
42368         * modules/perror (License): Likewise.
42369         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
42370         Blake.
42371         * modules/signal (License): Likewise.
42372         * modules/sigprocmask (License): Likewise.
42373         * modules/raise (License): Change to LGPLv2+, with approval by Jim
42374         Meyering.
42375
42376 2008-10-04  Bruno Haible  <bruno@clisp.org>
42377
42378         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
42379         Reported by Rainer Tammer <tammer@tammer.net>.
42380
42381 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
42382             Bruno Haible  <bruno@clisp.org>
42383
42384         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
42385         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
42386         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
42387
42388 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
42389
42390         filevercmp: new module
42391         * lib/filevercmp.h: New function filevercmp comparing version strings.
42392         * lib/filevercmp.c: Implementation of filevercmp function.
42393         * modules/filevercmp: Module metadata.
42394         * tests/test-filevercmp.c: Unit test for new module.
42395         * modules/filevercmp-tests: Unit test metadata.
42396         * MODULES.html.sh: Add filevercmp module.
42397
42398 2008-10-03  Bruno Haible  <bruno@clisp.org>
42399
42400         * lib/c-ctype.h: Add comment.
42401         Reported by Jim Meyering.
42402
42403 2008-10-02  Bruno Haible  <bruno@clisp.org>
42404
42405         * modules/posix_spawn-internal (Depends-on): Add 'open'.
42406
42407 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42408
42409         * build-aux/bootstrap: Allow renaming bootstrap, and change the
42410         name of bootstrap.conf accordingly.
42411
42412 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42413
42414         * build-aux/bootstrap: Install git-merge-changelog configuration
42415         items into .gitconfig if needed.
42416
42417 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42418
42419         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
42420         git repository, and initialize/update it accordingly.
42421
42422 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
42423
42424         * modules/fsync-tests: New file.
42425         * tests/test-fsync.c: New file.
42426
42427         New module 'fsync'.
42428         * lib/fsync.c: New file.
42429         * m4/fsync.m4: New file.
42430         * modules/fsync: New file.
42431         * lib/unistd.in.h (fsync): New declaration.
42432         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
42433         GNULIB_FSYNC and HAVE_FSYNC.
42434         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
42435         * MODULES.html.sh (posix_functions): Add fsync.
42436         * doc/posix-functions/fsync.texi: Mention the new module.
42437
42438 2008-10-02  Jim Meyering  <meyering@redhat.com>
42439
42440         fts.c: sync with similar code from coreutils' remove.c
42441         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
42442         Guard also with "#if defined __linux__", since for now at least,
42443         this code is Linux-kernel-specific.
42444
42445 2008-10-02  Jim Meyering  <meyering@redhat.com>
42446
42447         fts: bug fixes
42448         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
42449         Include <sys/vfs.h>, not <sys/statfs.h>.
42450
42451         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
42452         Include <sys/vfs.h>, not <sys/statfs.h>.
42453
42454 2008-10-01  Bruno Haible  <bruno@clisp.org>
42455
42456         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
42457         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
42458         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
42459         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
42460         * doc/posix-functions/posix_spawnp.texi: Likewise.
42461         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
42462         whether posix_spawn actually works.
42463         * m4/pipe.m4 (gl_PIPE): Likewise.
42464         * modules/execute (Files): Add m4/posix_spawn.m4.
42465         * modules/pipe (Files): Add m4/posix_spawn.m4.
42466         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
42467
42468 2008-10-01  Jim Meyering  <meyering@redhat.com>
42469
42470         remove trailing spaces
42471         * NEWS: Likewise.
42472         * lib/poll.c (poll): Likewise.
42473         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
42474         * lib/winsock.c (rpl_close): Likewise.
42475         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
42476         * modules/yield: Likewise.
42477         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
42478         * tests/test-sys_select.c (connect_to_socket): Likewise.
42479
42480         fts.c: adjust a new interface to be more generally useful
42481         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
42482         (fts_build): Adjust caller.
42483
42484 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42485
42486         * modules/cond-tests: New file.
42487         * tests/test-cond.c: New file.
42488
42489 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42490             Bruno Haible  <bruno@clisp.org>
42491
42492         * modules/cond (Dependencies): Add errno, time.
42493         * lib/glthread/cond.h: Include <time.h>.
42494         (gl_cond_define, gl_cond_define_initialized): Use the same definition
42495         across platforms.
42496
42497 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42498             Bruno Haible  <bruno@clisp.org>
42499
42500         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
42501
42502 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42503             Bruno Haible  <bruno@clisp.org>
42504
42505         * modules/tls-tests (Depends-on): Add thread, yield.
42506         (configure.ac): Remove all checks.
42507         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
42508         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42509         gl_thread_self): Remove definitions. Include glthread/thread.h and
42510         glthread/yield.h instead.
42511         (test_tls): Pass an additional NULL argument to gl_thread_join.
42512
42513 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42514             Bruno Haible  <bruno@clisp.org>
42515
42516         * modules/lock-tests (Depends-on): Add thread, yield.
42517         (configure.ac): Remove all checks.
42518         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
42519         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42520         gl_thread_self): Remove definitions. Include glthread/thread.h and
42521         glthread/yield.h instead.
42522         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
42523         additional NULL argument to gl_thread_join.
42524
42525 2008-09-30  Bruno Haible  <bruno@clisp.org>
42526
42527         Fix the Win32 implementation of the 'thread' module.
42528         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
42529         pointer type.
42530         (gl_thread_self): Invoke gl_thread_self_func.
42531         (gl_thread_self_func): New declaration.
42532         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
42533         (do_init_self_key, init_self_key): New functions.
42534         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
42535         Remove some fields.
42536         (running_threads, running_lock): Remove variables.
42537         (get_current_thread_handle): New function.
42538         (gl_thread_self_func, wrapper_func, glthread_create_func,
42539         glthread_join_func, gl_thread_exit_func): Largely rewritten and
42540         simplified.
42541
42542 2008-09-30  Bruno Haible  <bruno@clisp.org>
42543
42544         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
42545         files.
42546
42547 2008-09-30  Jim Meyering  <meyering@redhat.com>
42548
42549         fts.m4: correct the test for statfs.f_type
42550         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
42551         when checking for statfs.f_type.
42552
42553 2008-09-15  Simon Josefsson  <simon@josefsson.org>
42554
42555         tests: avoid some compiler warnings
42556         * tests/test-memchr.c (main): Pass NULL indirectly.
42557         * tests/test-getdate.c (main): Remove unused variable 'ret'.
42558
42559 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
42560
42561         getdate.y: disallow countable dayshifts like "4 yesterday ago"
42562         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
42563         exactly specified dayshifts.
42564         (dayshift): New rule.
42565         (rel): Add dayshift.
42566         (relative_time_table) [tomorrow, yesterday, today, now]:
42567         Use tDAY_SHIFT in place of tDAY_UNIT.
42568         * tests/test-getdate.c: Add tests for now-disallowed countable
42569         dayshifts, e.g., "4 yesterday ago".
42570
42571 2008-09-29  Bruno Haible  <bruno@clisp.org>
42572
42573         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
42574         * tests/test-posix_spawn1.in.sh: Renamed from
42575         tests/test-posix_spawn.in.sh.
42576         * tests/test-posix_spawn2.c: New file.
42577         * tests/test-posix_spawn2.in.sh: New file.
42578         * modules/posix_spawnp-tests (Files): Update.
42579         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
42580
42581 2008-09-29  Bruno Haible  <bruno@clisp.org>
42582
42583         Propagate effects of putenv/setenv/unsetenv to child processes.
42584         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
42585         * lib/pipe.c (create_pipe): Likewise.
42586
42587 2008-09-29  Bruno Haible  <bruno@clisp.org>
42588
42589         Enable use of shell scripts as executables in mingw.
42590         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
42591         run the program as a shell script.
42592         * lib/pipe.c (create_pipe): Likewise.
42593         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
42594         resulting array.
42595
42596 2008-09-29  Eric Blake  <ebb9@byu.net>
42597
42598         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
42599
42600 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
42601
42602         * doc/posix-functions/accept.texi: Update mingw problems.
42603         * doc/posix-functions/bind.texi: Update mingw problems.
42604         * doc/posix-functions/close.texi: Update mingw problems.
42605         * doc/posix-functions/connect.texi: Update mingw problems.
42606         * doc/posix-functions/getpeername.texi: Update mingw problems.
42607         * doc/posix-functions/getsockname.texi: Update mingw problems.
42608         * doc/posix-functions/getsockopt.texi: Update mingw problems.
42609         * doc/posix-functions/ioctl.texi: Update mingw problems.
42610         * doc/posix-functions/listen.texi: Update mingw problems.
42611         * doc/posix-functions/recv.texi: Update mingw problems.
42612         * doc/posix-functions/recvfrom.texi: Update mingw problems.
42613         * doc/posix-functions/select.texi: Update mingw problems.
42614         * doc/posix-functions/send.texi: Update mingw problems.
42615         * doc/posix-functions/sendto.texi: Update mingw problems.
42616         * doc/posix-functions/setsockopt.texi: Update mingw problems.
42617         * doc/posix-functions/socket.texi: Update mingw problems.
42618
42619 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
42620             Bruno Haible  <bruno@clisp.org>
42621
42622         * lib/sys_select.in.h: Include sys/time.h.
42623         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
42624         * modules/sys_select: Depend on sys_time.
42625         * tests/test-sys_select.c: Test that sys/select.h defines struct
42626         timeval fully.
42627
42628 2008-09-29  Bruno Haible  <bruno@clisp.org>
42629
42630         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
42631         * lib/sys_select.in.h: Likewise.
42632
42633 2008-09-29  Bruno Haible  <bruno@clisp.org>
42634
42635         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
42636
42637 2008-09-29  Bruno Haible  <bruno@clisp.org>
42638
42639         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
42640         Set LIBSOCKET instead of augmenting LIBS.
42641         * modules/sockets (Link): New section.
42642         * modules/sockets-tests (test_sockets_LDADD): New variable.
42643         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
42644         * modules/poll-tests (test_poll_LDADD): New variable.
42645         * NEWS: Document the change.
42646
42647 2008-09-29  Bruno Haible  <bruno@clisp.org>
42648
42649         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
42650         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
42651         ARPA_INET_H directly.
42652         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42653
42654 2008-09-28  Bruno Haible  <bruno@clisp.org>
42655
42656         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
42657         from gl_HEADER_SYS_SOCKET.
42658         (gl_HEADER_SYS_SOCKET): Invoke it.
42659         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
42660
42661 2008-09-28  Bruno Haible  <bruno@clisp.org>
42662
42663         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
42664         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
42665         Needed on OSF/1 4.0.
42666
42667 2008-09-28  Bruno Haible  <bruno@clisp.org>
42668
42669         Override open more carefully.
42670         * lib/open.c (orig_open): New function.
42671         (rpl_open): Use orig_open instead of open.
42672         * lib/fcntl.in.h: Add special invocation convention.
42673         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
42674         (gl_FUNC_OPEN): Invoke it.
42675
42676         Override freopen more carefully.
42677         * lib/freopen.c (orig_freopen): New function.
42678         (rpl_freopen): Use orig_freopen instead of freopen.
42679         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
42680         (gl_FUNC_FREOPEN): Invoke it.
42681
42682         Override fopen more carefully.
42683         * lib/fopen.c (orig_fopen): New function.
42684         (rpl_fopen): Use orig_fopen instead of fopen.
42685         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
42686         (gl_FUNC_FOPEN): Invoke it.
42687         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
42688
42689 2008-09-28  Bruno Haible  <bruno@clisp.org>
42690
42691         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
42692         SIGPIPE.
42693
42694 2008-09-28  Bruno Haible  <bruno@clisp.org>
42695
42696         * tests/test-sigaction.c (handler, main): Disable the check whether
42697         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
42698         glibc systems with LinuxThreads.
42699
42700 2008-09-28  Bruno Haible  <bruno@clisp.org>
42701
42702         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
42703
42704         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
42705         with AIX xlc.
42706         * lib/fcntl.in.h (open): Likewise.
42707         Reported by Rainer Tammer <tammer@tammer.net>.
42708
42709 2008-09-28  Bruno Haible  <bruno@clisp.org>
42710
42711         * modules/posix_spawnp-tests: New file.
42712         * tests/test-posix_spawn.c: New file.
42713         * tests/test-posix_spawn.in.sh: New file.
42714
42715         New module 'posix_spawnp'.
42716         * modules/posix_spawnp: New file.
42717         * lib/spawnp.c: New file, from GNU libc with modifications.
42718         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
42719
42720         New module 'posix_spawn'.
42721         * modules/posix_spawn: New file.
42722         * lib/spawn.c: New file, from GNU libc with modifications.
42723         * doc/posix-functions/posix_spawn.texi: Mention the new module.
42724
42725         New module 'posix_spawnattr_destroy'.
42726         * modules/posix_spawnattr_destroy: New file.
42727         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
42728         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
42729         module.
42730
42731         New module 'posix_spawnattr_setsigmask'.
42732         * modules/posix_spawnattr_setsigmask: New file.
42733         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
42734         modifications.
42735         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
42736         new module.
42737
42738         New module 'posix_spawnattr_getsigmask'.
42739         * modules/posix_spawnattr_getsigmask: New file.
42740         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
42741         modifications.
42742         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
42743         new module.
42744
42745         New module 'posix_spawnattr_setsigdefault'.
42746         * modules/posix_spawnattr_setsigdefault: New file.
42747         * lib/spawnattr_setdefault.c: New file, from GNU libc with
42748         modifications.
42749         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
42750         new module.
42751
42752         New module 'posix_spawnattr_getsigdefault'.
42753         * modules/posix_spawnattr_getsigdefault: New file.
42754         * lib/spawnattr_getdefault.c: New file, from GNU libc with
42755         modifications.
42756         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
42757         new module.
42758
42759         New module 'posix_spawnattr_setschedpolicy'.
42760         * modules/posix_spawnattr_setschedpolicy: New file.
42761         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
42762         modifications.
42763         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
42764         new module.
42765
42766         New module 'posix_spawnattr_getschedpolicy'.
42767         * modules/posix_spawnattr_getschedpolicy: New file.
42768         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
42769         modifications.
42770         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
42771         new module.
42772
42773         New module 'posix_spawnattr_setschedparam'.
42774         * modules/posix_spawnattr_setschedparam: New file.
42775         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
42776         modifications.
42777         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
42778         new module.
42779
42780         New module 'posix_spawnattr_getschedparam'.
42781         * modules/posix_spawnattr_getschedparam: New file.
42782         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
42783         modifications.
42784         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
42785         new module.
42786
42787         New module 'posix_spawnattr_setpgroup'.
42788         * modules/posix_spawnattr_setpgroup: New file.
42789         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
42790         modifications.
42791         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
42792         module.
42793
42794         New module 'posix_spawnattr_getpgroup'.
42795         * modules/posix_spawnattr_getpgroup: New file.
42796         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
42797         modifications.
42798         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
42799         module.
42800
42801         New module 'posix_spawnattr_setflags'.
42802         * modules/posix_spawnattr_setflags: New file.
42803         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
42804         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
42805         module.
42806
42807         New module 'posix_spawnattr_getflags'.
42808         * modules/posix_spawnattr_getflags: New file.
42809         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
42810         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
42811         module.
42812
42813         New module 'posix_spawnattr_init'.
42814         * modules/posix_spawnattr_init: New file.
42815         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
42816         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
42817         module.
42818
42819         New module 'posix_spawn_file_actions_destroy'.
42820         * modules/posix_spawn_file_actions_destroy: New file.
42821         * lib/spawn_faction_destroy.c: New file, from GNU libc with
42822         modifications.
42823         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
42824         the new module.
42825
42826         New module 'posix_spawn_file_actions_addopen'.
42827         * modules/posix_spawn_file_actions_addopen: New file.
42828         * lib/spawn_faction_addopen.c: New file, from GNU libc with
42829         modifications.
42830         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
42831         the new module.
42832
42833         New module 'posix_spawn_file_actions_adddup2'.
42834         * modules/posix_spawn_file_actions_adddup2: New file.
42835         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
42836         modifications.
42837         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
42838         the new module.
42839
42840         New module 'posix_spawn_file_actions_addclose'.
42841         * modules/posix_spawn_file_actions_addclose: New file.
42842         * lib/spawn_faction_addclose.c: New file, from GNU libc with
42843         modifications.
42844         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
42845         the new module.
42846
42847         New module 'posix_spawn_file_actions_init'.
42848         * modules/posix_spawn_file_actions_init: New file.
42849         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
42850         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
42851         new module.
42852
42853         New module 'posix_spawn-internal'.
42854         * modules/posix_spawn-internal: New file.
42855         * lib/spawn_int.h: New file, from GNU libc with modifications.
42856         * lib/spawni.c: New file, from GNU libc with modifications.
42857         * m4/posix_spawn.m4: New file.
42858
42859         New module 'spawn'.
42860         * modules/spawn: New file.
42861         * lib/spawn.in.h: New file, from GNU libc with modifications.
42862         * m4/spawn_h.m4: New file.
42863         * doc/posix-headers/spawn.texi: Mention the new module.
42864
42865 2008-09-28  Bruno Haible  <bruno@clisp.org>
42866
42867         * modules/sched-tests: New file.
42868         * tests/test-sched.c: New file.
42869
42870         New module 'sched'.
42871         * modules/sched: New file.
42872         * lib/sched.in.h: New file.
42873         * m4/sched_h.m4: New file.
42874         * doc/posix-headers/sched.texi: Mention the new module.
42875
42876 2008-09-27  Eric Blake  <ebb9@byu.net>
42877
42878         Fix previous patch, and tweak references to $0.
42879         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
42880         (func_version, func_gnulib_dir): Don't call this program
42881         gnulib-tool.
42882         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
42883         with using $0 in function.
42884         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
42885         (func_fatal_error): Reuse the name the user invoked us with.
42886
42887 2008-09-27  Bruno Haible  <bruno@clisp.org>
42888
42889         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
42890         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
42891         (gl_ICONV_H): Not here.
42892         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
42893         instead of assigning ICONV_H directly.
42894
42895         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
42896         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
42897         WCHAR_H directly.
42898
42899 2008-09-27  Bruno Haible  <bruno@clisp.org>
42900
42901         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
42902         * modules/arpa_inet (Depends-on): Add link-warning.
42903         (Makefile.am): Insert the definition of GL_LINK-WARNING.
42904         * modules/unistd (Makefile.am): Likewise.
42905
42906 2008-09-26  Bruno Haible  <bruno@clisp.org>
42907
42908         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
42909         variables.
42910         (func_version): Essentially copied from gnulib-tool.
42911         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
42912         func_readlink): Copied from gnulib-tool.
42913
42914 2008-09-26  Bruno Haible  <bruno@clisp.org>
42915
42916         * gnulib-tool (func_version): Change directory to $gnulib_dir before
42917         invoking git-version-gen.
42918
42919 2008-09-26  Bruno Haible  <bruno@clisp.org>
42920
42921         * posix-modules: Update to directory names changed on 2008-01-19.
42922         Remove commas in output before splitting into words. No more need to
42923         avoid 'ftruncate' since 2007-02-19.
42924
42925 2008-09-26  Bruno Haible  <bruno@clisp.org>
42926
42927         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
42928
42929 2008-09-26  Bruno Haible  <bruno@clisp.org>
42930
42931         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
42932         * modules/fwriteerror (Depends-on): Add errno.
42933
42934 2008-09-26  Bruno Haible  <bruno@clisp.org>
42935
42936         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
42937         * tests/test-vc-list-files-cvs.sh: Likewise.
42938
42939 2008-09-26  Bruno Haible  <bruno@clisp.org>
42940
42941         * doc/posix-headers/sys_resource.texi: Reorder items.
42942
42943 2008-09-26  Jim Meyering  <meyering@redhat.com>
42944
42945         fts: tweak inode comparison function
42946         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
42947         inode numbers, as documented.
42948
42949         fts: sort dirent entries on inode number before traversing
42950         This avoids a quadratic, seek-related performance penalty when
42951         operating on a directory containing many entries (measurable at 10k;
42952         3.5 hours at 2 million entries with a cold cache) on certain types
42953         of file systems, including ext3 and ext4, but not tmpfs.
42954         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
42955         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
42956         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
42957         (fs_handles_readdir_ordered_dirents_efficiently): New function.
42958         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
42959         (fts_build): Set the stat.st_ino member from D_INO.
42960         If it is likely to be useful, sort dirent entries on inode number.
42961
42962         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
42963         and the struct statfs.f_type member.
42964         * modules/fts (Depends-on): Add d-ino.
42965
42966 2008-09-26  Bruno Haible  <bruno@clisp.org>
42967
42968         * modules/sigpipe-die (Depends-on): Add sigpipe.
42969
42970         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
42971         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
42972         and GNULIB_STDIO_H_SIGPIPE are set.
42973         * lib/stdio-write.c: New file.
42974         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
42975         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42976         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42977         REPLACE_STDIO_WRITE_FUNCS.
42978         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
42979         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42980         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42981         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
42982         * modules/stdio (Files): Add lib/stdio-write.c.
42983         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
42984         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42985         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42986         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
42987         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
42988         REPLACE_FPRINTF_POSIX.
42989         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
42990         REPLACE_PRINTF_POSIX.
42991         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
42992         REPLACE_VFPRINTF_POSIX.
42993         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
42994         REPLACE_VPRINTF_POSIX.
42995         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
42996         SIGPIPE issue.
42997         * doc/posix-functions/fputc.texi: Likewise.
42998         * doc/posix-functions/fputs.texi: Likewise.
42999         * doc/posix-functions/fwrite.texi: Likewise.
43000         * doc/posix-functions/printf.texi: Likewise.
43001         * doc/posix-functions/putc.texi: Likewise.
43002         * doc/posix-functions/putchar.texi: Likewise.
43003         * doc/posix-functions/puts.texi: Likewise.
43004         * doc/posix-functions/vfprintf.texi: Likewise.
43005         * doc/posix-functions/vprintf.texi: Likewise.
43006
43007         * modules/safe-write (Depends-on): Add write.
43008
43009         * modules/sigpipe-tests: New file.
43010         * tests/test-sigpipe.c: New file.
43011         * tests/test-sigpipe.sh: New file.
43012
43013         * modules/write: New file.
43014         * lib/unistd.in.h: Include <sys/types.h>.
43015         (write): New declaration.
43016         * lib/write.c: New file.
43017         * m4/write.m4: New file.
43018         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43019         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
43020         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
43021         GNULIB_WRITE, REPLACE_WRITE.
43022         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
43023         and the SIGPIPE issue.
43024
43025         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
43026         (raise): New declaration.
43027         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
43028         (ext_signal): New function.
43029         (rpl_raise): New function.
43030         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
43031         GNULIB_SIGNAL_H_SIGPIPE.
43032         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
43033         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
43034
43035         * modules/sigpipe: New file.
43036         * m4/sigpipe.m4: New file.
43037
43038 2008-09-25  Derek Price  <derek@ximbiot.com>
43039             Bruno Haible  <bruno@clisp.org>
43040
43041         * gnulib-tool (func_import): Report all license incompatibilities, not
43042         just the first one.
43043
43044 2008-09-25  Bruno Haible  <bruno@clisp.org>
43045
43046         * gnulib-tool (func_import): When computing the edits, consider not
43047         only the Makefile.ams that exist but also those that will be generated.
43048
43049 2008-09-25  Simon Josefsson  <simon@josefsson.org>
43050
43051         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
43052         fixes gnulib-tool --test warning about duplicate dependency.
43053
43054 2008-09-25  Bruno Haible  <bruno@clisp.org>
43055
43056         * gnulib-tool: Don't ask the user to perform edits in the generated
43057         Makefile.ams.
43058         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
43059         apply to the Makefile.am being generated.
43060         (func_emit_tests_Makefile_am): Execute edits that apply to the
43061         Makefile.am being generated.
43062         (func_import): Setup list of Makefile.am edits before emitting the
43063         Makefile.ams, not at the end.
43064         (func_create_testdir): Update.
43065         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43066
43067 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43068
43069         * gnulib-tool (func_import): Store the --tests-base option in the
43070         comment in gnulib-cache.m4.
43071
43072 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
43073
43074         * NEWS: Document increased portability that sys_select now provides.
43075
43076         * lib/sys_select.in.h: Install select wrapper.
43077         * lib/sys_socket.in.h: Use more descriptive name when there is no
43078         select wrapper.
43079         * lib/winsock-select.c: New.
43080         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
43081         Require gl_HEADER_SYS_SOCKET.
43082         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
43083         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
43084         * tests/test-sys_select.c: Add functional tests.
43085
43086 2008-09-24  Eric Blake  <ebb9@byu.net>
43087
43088         open, fopen: close fd leak in last patch
43089         * lib/open.c (rpl_open): Close fd before returning error.
43090         * lib/fopen.c (rpl_fopen): Close fd before returning error.
43091         * doc/posix-functions/open.texi (open): Document that Irix also
43092         has the bug.
43093         * doc/posix-functions/fopen.texi (fopen): Likewise.
43094         Reported by Paolo Bonzini.
43095
43096 2008-09-24  Bruno Haible  <bruno@clisp.org>
43097
43098         Ensure that a filename ending in a slash cannot be used to access a
43099         non-directory.
43100         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
43101         to check whether it's really a directory.
43102         * lib/fopen.c: Include fcntl.h, unistd.h.
43103         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
43104         and fdopen().
43105         * modules/fopen (Depends-on): Add unistd.
43106         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
43107         * tests/test-fopen.c (main): Likewise.
43108         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
43109         * doc/posix-functions/fopen.texi: Likewise.
43110         Reported by Eric Blake.
43111
43112 2008-09-23  Eric Blake  <ebb9@byu.net>
43113
43114         c-stack: avoid compiler optimizations when provoking overflow
43115         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
43116         recursion harder to optimize, to ensure a stack overflow occurs.
43117         * tests/test-c-stack.c (recurse): Likewise.
43118         Borrowed from libsigsegv.
43119
43120         c-stack: work around Irix sigaltstack bug
43121         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
43122         whether sigaltstack uses wrong end of stack_t (copied in part from
43123         libsigsegv).
43124         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
43125         Irix bug, without requiring an over-allocation.
43126         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
43127         bug.
43128
43129         fopen: document mingw bug on directories
43130         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
43131         not allowing a stream visiting a directory, even though reading
43132         from such a stream is not portable.
43133
43134 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43135
43136         * lib/poll.c: Rewrite.
43137         * modules/poll: Depend on alloca.
43138
43139 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43140
43141         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
43142         instead define prototypes for a full set of wrappers.  Ensure
43143         that Cygwin does not use the compatibility code, which is only
43144         for MinGW.
43145         * lib/winsock.c: New.
43146         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
43147         * modules/sys_socket: Add lib/winsock.c.
43148
43149         * modules/poll-tests: Add errno and perror.
43150         * tests/test-poll.c: Use ioctl, not ioctlsocket.
43151
43152 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43153
43154         * tests/test-poll.c: Downgrade minimum needed Winsock version.
43155
43156 2008-09-23  Bruno Haible  <bruno@clisp.org>
43157
43158         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
43159         * doc/glibc-functions/*: Likewise.
43160
43161 2008-09-23  Simon Josefsson  <simon@josefsson.org>
43162
43163         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
43164         success.
43165
43166 2008-09-22  Eric Blake  <ebb9@byu.net>
43167             Bruno Haible  <bruno@clisp.org>
43168
43169         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
43170         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
43171         supply %A but mishandle pseudo-NaN.
43172         Reported by Simon Josefsson.
43173
43174 2008-09-21  Bruno Haible  <bruno@clisp.org>
43175
43176         * tests/test-lock.c (main): Tweak skip message.
43177         * tests/test-tls.c (main): Likewise.
43178
43179 2008-09-21  Bruno Haible  <bruno@clisp.org>
43180
43181         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
43182         whether 'struct sigaction' has sa_sigaction here...
43183         (gl_PREREQ_SIG_HANDLER_H): ... not here.
43184         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
43185
43186 2008-09-21  Bruno Haible  <bruno@clisp.org>
43187
43188         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
43189         section.
43190         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
43191         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
43192         the new section.
43193         (Support for obsolete systems lacking POSIX:2001): New section.
43194         (String handling <string.h>): Move strdup to the new section.
43195         Suggested by Simon Josefsson and Paolo Bonzini.
43196
43197 2008-09-21  Bruno Haible  <bruno@clisp.org>
43198
43199         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
43200         exponents in %e and %g results on 'long double'. Needed for mingw's
43201         improved *printf functions.
43202         * tests/test-vasprintf-posix.c (test_function): Likewise.
43203         * tests/test-snprintf-posix.h (test_function): Likewise.
43204         * tests/test-sprintf-posix.h (test_function): Likewise.
43205         Reported by Eric Blake.
43206
43207 2008-09-21  Bruno Haible  <bruno@clisp.org>
43208
43209         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
43210         * tests/test-sprintf-posix.h (test_function): Likewise.
43211
43212 2008-09-21  Bruno Haible  <bruno@clisp.org>
43213
43214         * modules/getpass (Depends-on): Add strdup-posix.
43215
43216         New module 'strdup-posix'.
43217         * modules/strdup-posix: New file.
43218         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
43219         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
43220         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43221         REPLACE_STRDUP.
43222         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
43223         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
43224         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43225         strdup-posix.
43226
43227         * modules/strdup (Depends-on): Remove malloc-posix.
43228
43229 2008-09-20  Bruno Haible  <bruno@clisp.org>
43230
43231         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
43232         Wildenhues.
43233
43234 2008-09-20  Bruno Haible  <bruno@clisp.org>
43235
43236         Ensure that wint_t gets defined on IRIX 5.3.
43237         * lib/wchar.in.h (wint_t): Define if not defined by the system.
43238         * lib/wctype.in.h (wint_t): Likewise.
43239         (__wctype_wint_t): Remove type.
43240         (isw*): Use wint_t instead of __wctype_wint_t.
43241         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
43242         * modules/wchar (Files): Add m4/wint_t.m4.
43243         (Makefile.am): Substitute HAVE_WINT_T.
43244         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
43245         * tests/test-wctype.c: Check that wint_t is defined.
43246         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
43247         * doc/posix-headers/wctype.texi: Likewise.
43248         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43249
43250 2008-09-18  Bruno Haible  <bruno@clisp.org>
43251
43252         * gnulib-tool (func_exit): Update comment.
43253
43254 2008-09-18  Simon Josefsson  <simon@josefsson.org>
43255
43256         * modules/getaddrinfo (Depends-on): Remove strdup, this module
43257         assumes strdup exists and does not depend on strdup to return
43258         ENOMEM on out of memory conditions.
43259
43260 2008-09-18  Bruno Haible  <bruno@clisp.org>
43261
43262         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
43263         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
43264         digits for the exponent.
43265
43266 2008-09-18  Jim Meyering  <meyering@redhat.com>
43267             Bruno Haible  <bruno@clisp.org>
43268
43269         * lib/vasnprintf.c (decimal_point_char): Define also if
43270         NEED_PRINTF_INFINITE_LONG_DOUBLE.
43271
43272 2008-09-16  Bruno Haible  <bruno@clisp.org>
43273         and Eric Blake  <ebb9@byu.net>
43274
43275         vasnprintf: support Irix 5.3
43276         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
43277         that mishandle long double infinity.
43278         Reported by Tom G. Christensen.
43279
43280 2008-09-16  Bruno Haible  <bruno@clisp.org>
43281
43282         * doc/glibc-functions/scandir.texi: Mention the function is missing on
43283         Solaris 9.
43284         * doc/glibc-functions/alphasort.texi: Likewise.
43285         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
43286
43287 2008-09-16  Jim Meyering  <meyering@redhat.com>
43288
43289         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
43290         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
43291         a umask modification leak out of a subshell.  Otherwise, the
43292         opensolaris /bin/sh would be accepted and thus cause unwarranted
43293         failures in the coreutils test suite.
43294
43295 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
43296
43297         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
43298         to succeed.
43299
43300 2008-09-16  Jim Meyering  <meyering@redhat.com>
43301
43302         avoid spurious test failure when library is built without ACL support
43303         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
43304         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
43305         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
43306         * tests/test-copy-acl.sh: Likewise.
43307
43308 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43309
43310         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
43311         based on character occurrence counts.
43312
43313 2008-09-15  Eric Blake  <ebb9@byu.net>
43314
43315         tests: avoid some compiler warnings
43316         * tests/test-memchr.c (main): Pass NULL indirectly.
43317         * tests/test-closein.c (main): Avoid unused variable.
43318
43319 2008-09-15  Bruno Haible  <bruno@clisp.org>
43320
43321         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
43322         are missing on OpenBSD 4.0 individually.
43323         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43324
43325 2008-09-15  Bruno Haible  <bruno@clisp.org>
43326
43327         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
43328         * doc/posix-functions/strerror.texi: Mention also Cygwin.
43329         * doc/posix-functions/perror.texi: Likewise.
43330         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
43331         is missing.
43332         Reported by Eric Blake.
43333
43334         * lib/errno.in.h: Use replacement values >= 2000.
43335         Reported by Eric Blake.
43336
43337 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43338
43339         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
43340         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
43341         limit.
43342         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
43343         compareseq was aborted.
43344
43345 2008-09-14  Bruno Haible  <bruno@clisp.org>
43346
43347         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
43348         yvec_edit_count.
43349         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
43350         (fstrcmp_bounded): Simplify result computation accordingly.
43351
43352 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43353
43354         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
43355         (fstrcmp): Define in terms of fstrcmp_bounded.
43356         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
43357         lower_bound argument.
43358         Return quickly if the result is certainly < lower_bound.
43359         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
43360
43361 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43362
43363         * lib/diffseq.h (EARLY_ABORT): New macro.
43364         (compareseq): Change return type to bool. Return true when EARLY_ABORT
43365         evaluates to true.
43366
43367 2008-09-14  Bruno Haible  <bruno@clisp.org>
43368
43369         * modules/perror-tests: New file.
43370         * tests/test-perror.sh: New file.
43371         * tests/test-perror.c: New file.
43372
43373         New module 'perror'.
43374         * lib/stdio.in.h (perror): New declaration.
43375         * lib/perror.c: New file.
43376         * m4/perror.m4: New file.
43377         * modules/perror: New file.
43378         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
43379         * doc/posix-functions/perror.texi: Mention the perror module.
43380         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
43381         REPLACE_PERROR.
43382         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
43383         REPLACE_PERROR.
43384
43385 2008-09-14  Bruno Haible  <bruno@clisp.org>
43386
43387         * modules/stdio (Makefile.am): Reorder to match the order in
43388         lib/stdio.in.h.
43389         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43390
43391 2008-09-13  Bruno Haible  <bruno@clisp.org>
43392
43393         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
43394
43395 2008-09-13  Bruno Haible  <bruno@clisp.org>
43396
43397         Extend strerror to cover the added errno values.
43398         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
43399         (rpl_strerror): Provide error messages for the added errno values and
43400         for the WSA* values.
43401         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
43402         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
43403         strerror.
43404         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
43405         * modules/strerror (Depends-on): Add errno.
43406         * doc/posix-functions/strerror.texi: Document the change.
43407         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
43408         and EOVERFLOW.
43409
43410 2008-09-13  Bruno Haible  <bruno@clisp.org>
43411
43412         * modules/EOVERFLOW: Remove file.
43413         * m4/eoverflow.m4: Remove file.
43414         * modules/EOVERFLOW-tests: Remove file.
43415         * tests/test-EOVERFLOW.c: Remove file.
43416         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
43417         * modules/ftell (Depends-on): Likewise.
43418         * modules/getdelim (Depends-on): Likewise.
43419         * modules/getugroups (Depends-on): Likewise.
43420         * modules/poll (Depends-on): Likewise.
43421         * modules/snprintf (Depends-on): Likewise.
43422         * modules/sprintf-posix (Depends-on): Likewise.
43423         * modules/vasnprintf (Depends-on): Likewise.
43424         * modules/vasprintf (Depends-on): Likewise.
43425         * modules/vfprintf-posix (Depends-on): Likewise.
43426         * modules/vsnprintf (Depends-on): Likewise.
43427         * modules/vsprintf-posix (Depends-on): Likewise.
43428         * modules/xvasprintf (Depends-on): Likewise.
43429         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43430         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
43431         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
43432         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
43433         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43434         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
43435         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
43436         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
43437         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43438         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
43439         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
43440         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
43441         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43442         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
43443         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
43444         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
43445         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43446         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
43447         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
43448         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
43449         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43450         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
43451         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
43452         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
43453         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
43454         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43455         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
43456         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
43457         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
43458         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
43459         * MODULES.html.sh: Remove EOVERFLOW.
43460         * NEWS: Mention the change.
43461
43462 2008-09-13  Bruno Haible  <bruno@clisp.org>
43463
43464         * modules/errno-tests: New file.
43465         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
43466
43467         * lib/errno.in.h: New file.
43468         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
43469         * modules/errno: New file.
43470         * doc/posix-headers/errno.texi: Update documentation.
43471         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
43472
43473 2008-09-13  Bruno Haible  <bruno@clisp.org>
43474
43475         * tests/test-poll.c: Use #if for native Windows, rather than testing
43476         __MSVCRT__.
43477
43478 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43479             Bruno Haible  <bruno@clisp.org>
43480
43481         * lib/glob.c: Don't include <pwd.h> on native Windows.
43482         (WINDOWS32): New macro.
43483         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
43484
43485 2008-09-13  Bruno Haible  <bruno@clisp.org>
43486
43487         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
43488         (ETIMEDOUT): Remove macro.
43489         (glthread_cond_timedwait_multithreaded): New declaration.
43490         (glthread_cond_timedwait): Use it.
43491         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
43492         (glthread_cond_timedwait_multithreaded): New function.
43493
43494 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43495
43496         * modules/poll-tests: Do not check for io.h.
43497         * tests/test-poll.c: Check for __MSVCRT__ instead.
43498
43499 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43500
43501         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
43502         * modules/poll-tests: Add inet_pton, stdbool, sockets.
43503         * tests/test-poll.c: Use them.  Use _pipe on Windows.
43504
43505 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43506
43507         * modules/poll-tests: New.
43508         * tests/test-poll.c: New.
43509
43510 2008-09-12  Eric Blake  <ebb9@byu.net>
43511
43512         frexp: test for NetBSD failure on -0.0
43513         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
43514         not all, bugs from NetBSD 3.0 have been fixed.
43515         * doc/posix-functions/frexp.texi (frexp): Document bug.
43516         Reported by Thomas Klausner.
43517
43518         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
43519         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
43520         literal -0.0.
43521         Reported by Jonathan C. Patschke <jp@centtech.com>.
43522
43523 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43524
43525         * lib/glthread/cond.h: Use dummy implementation also if
43526         USE_WIN32_THREADS.
43527
43528 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43529
43530         * modules/fnmatch-posix (License): Change to LGPLv2+.
43531         * modules/fnmatch-gnu (License): Likewise.
43532
43533 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43534
43535         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
43536
43537 2008-09-11  Jim Meyering  <meyering@redhat.com>
43538
43539         * users.txt: Add gtk-vnc.
43540
43541 2008-09-08  Simon Josefsson  <simon@josefsson.org>
43542
43543         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
43544         rotate amounts.
43545
43546         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
43547         required for 16-bit and 8-bit rotates.
43548         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
43549         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
43550         UINT8_MAX instead of hard-coded constants.
43551         Suggested by Paul Eggert.
43552
43553 2008-09-07  Bruno Haible  <bruno@clisp.org>
43554
43555         * tests/test-striconveh.c (main): Check behaviour when converting from
43556         UTF-7.
43557
43558         Make striconveh work better with stateful encodings.
43559         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
43560         that iconv does not increment the inptr when returning -1/EINVAL.
43561
43562 2008-09-07  Bruno Haible  <bruno@clisp.org>
43563
43564         * build-aux/config.rpath: Update according to libtool-2.2.6.
43565         * build-aux/config.libpath: Likewise.
43566
43567 2008-09-06  Bruno Haible  <bruno@clisp.org>
43568
43569         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
43570         * lib/freadptr.c (freadptr): Likewise.
43571         * lib/freadseek.c (freadptrinc): Likewise.
43572         Reported by Simon Josefsson.
43573
43574 2008-09-06  Bruno Haible  <bruno@clisp.org>
43575
43576         * modules/freadptr (License): Change to LGPLv2+.
43577         * modules/freadseek (License): Likewise.
43578         Suggested by Eric Blake.
43579
43580         * modules/memchr2 (License): Change to LGPLv2+.
43581         Approved by Eric Blake.
43582
43583 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43584             Bruno Haible  <bruno@clisp.org>
43585
43586         Make gnulib-tool work with native 'sed' on AIX.
43587         * gnulib-tool (sed_noop): New variable.
43588         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
43589         func_add_or_update, func_create_testdir): Use it to initialize sed
43590         script variables.
43591         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43592
43593 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
43594             Bruno Haible  <bruno@clisp.org>
43595
43596         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
43597         also works after #include directives.
43598
43599 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
43600
43601         getdate.y: reject an out-of-range timezone value
43602         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
43603         the range [-24...+24].  When specified with only one or two digits,
43604         * tests/test-getdate.c: Tests for the fix.
43605         * doc/getdate.texi: Document this change.
43606
43607 2008-09-03  Bruno Haible  <bruno@clisp.org>
43608
43609         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
43610
43611 2008-09-02  Simon Josefsson  <simon@josefsson.org>
43612
43613         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
43614         <bruce.korb@gmail.com> with ideas from Ben Pfaff
43615         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
43616         Blake <ebb9@byu.net>.
43617
43618         * tests/test-bitrotate.c: Add more test vectors.
43619
43620 2008-09-02  Eric Blake  <ebb9@byu.net>
43621
43622         vasnprintf-posix: handle large precision via %.*d
43623         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
43624         when handling it ourselves.
43625         * tests/test-vasnprintf-posix.c (test_function): Add test.
43626         * tests/test-snprintf-posix.h (test_function): Likewise.
43627         * tests/test-sprintf-posix.h (test_function): Likewise.
43628         * tests/test-vasprintf-posix.c (test_function): Likewise.
43629         Reported by Alain Guibert.
43630
43631 2008-09-01  Eric Blake  <ebb9@byu.net>
43632
43633         c-stack: make configure-time check more robust
43634         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
43635         successful sigaction call.
43636         Reported by Tom G. Christensen.
43637
43638 2008-09-01  Bruno Haible  <bruno@clisp.org>
43639
43640         New module 'findprog-lgpl'.
43641         * modules/findprog-lgpl: New file.
43642         * lib/findprog-lgpl.c: New file.
43643         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
43644         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
43645         to decide whether to use strdup or xstrdup, concatenated_filename or
43646         xconcatenated_filename.
43647
43648 2008-09-01  Bruno Haible  <bruno@clisp.org>
43649
43650         Split module 'concat-filename' into 'concat-filename' (LGPL) and
43651         'xconcat-filename' (GPL).
43652         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
43653         (License): Change to LGPLv2+.
43654         * modules/xconcat-filename: New file.
43655         * lib/concat-filename.h (concatenated_filename): Change specification.
43656         (xconcatenated_filename): New declaration.
43657         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
43658         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
43659         memory situations.
43660         * lib/xconcat-filename.c: New file.
43661         * NEWS: Mention the change.
43662         * lib/findprog.c: Include concat-filename.h, not filename.h.
43663         (find_in_path): Use xconcatenated_filename instead of
43664         concatenated_filename.
43665         * lib/javacomp.c: Include concat-filename.h, not filename.h.
43666         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
43667         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
43668         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
43669         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
43670         instead of concatenated_filename.
43671         * lib/javaexec.c: Include concat-filename.h, not filename.h.
43672         (execute_java_class): Use xconcatenated_filename instead of
43673         concatenated_filename.
43674         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
43675         * modules/javacomp (Depends-on): Likewise.
43676         * modules/javaexec (Depends-on): Likewise.
43677
43678 2008-09-01  Bruno Haible  <bruno@clisp.org>
43679
43680         Split module 'filename' into 'filename' and 'concat-filename'.
43681         * modules/filename: Keep only lib/filename.h.
43682         (License): Change to LGPLv2+.
43683         * modules/concat-filename: New file, extracted from modules/filename.
43684         * lib/filename.h (concatenated_filename): Remove declaration.
43685         * lib/concat-filename.h: New file, extracted from lib/filename.h.
43686         * lib/concat-filename.c: Include concat-filename.h.
43687         * NEWS: Mention the change.
43688
43689 2008-09-01  Simon Josefsson  <simon@josefsson.org>
43690
43691         * lib/bitrotate.h (rotl8, rotr8): Add.
43692
43693         * modules/bitrotate (configure.ac): Need
43694         AC_REQUIRE([AC_C_INLINE]).
43695         (Description): Mention stdint.h.  Reported by Bruno Haible
43696         <bruno@clisp.org>.
43697
43698         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
43699         Paolo Bonzini <bonzini@gnu.org>.
43700
43701 2008-08-31  Bruno Haible  <bruno@clisp.org>
43702
43703         Assume Solaris specific bi-arch conventions on Solaris systems.
43704         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
43705         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
43706         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
43707         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
43708         like acl_libdirstem.
43709         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
43710         acl_libdirstem.
43711         * NEWS: Mention the change.
43712         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
43713
43714 2008-08-31  Jim Meyering  <meyering@redhat.com>
43715
43716         * lib/strftime.h: Add comments describing the two added arguments.
43717
43718         remove duplicate #include directives
43719         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
43720         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
43721
43722 2008-08-31  Bruno Haible  <bruno@clisp.org>
43723
43724         New module 'sigpipe-die'.
43725         * modules/sigpipe-die: New file.
43726         * lib/sigpipe-die.h: New file.
43727         * lib/sigpipe-die.c: New file.
43728         * MODULES.html.sh (Signal handling): Add sigpipe-die.
43729
43730 2008-08-31  Bruno Haible  <bruno@clisp.org>
43731
43732         Don't override previously installed signal handlers.
43733         * lib/fatal-signal.c (saved_sigactions): New variable.
43734         (uninstall_handlers): Reset the signal to the saved handler, not
43735         to SIG_DFL (except when ignored).
43736         (install_handlers): Save the previous handlers.
43737
43738 2008-08-30  Bruno Haible  <bruno@clisp.org>
43739
43740         * gnulib-tool (func_reset_sigpipe): New function.
43741         (func_get_automake_snippet, func_modules_transitive_closure,
43742         func_import): Invoke it before a join command that reads from stdin,
43743         to avoid "echo: write error: Broken pipe" error messages on stderr.
43744         Reported by Sam Steingold <sds@gnu.org>.
43745
43746 2008-08-30  Bruno Haible  <bruno@clisp.org>
43747
43748         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
43749         Code copied from m4/open.m4.
43750         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
43751         access and the filename ends in a slash. Code copied from lib/open.c.
43752         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
43753         * tests/test-fopen.c (main): Check against bug with trailing slash.
43754
43755 2008-08-29  Bruno Haible  <bruno@clisp.org>
43756
43757         Avoid some "gcc -pedantic" warnings.
43758         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
43759         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
43760         * lib/dirent.in.h: Likewise.
43761         * lib/fcntl.in.h: Likewise.
43762         * lib/float.in.h: Likewise.
43763         * lib/iconv.in.h: Likewise.
43764         * lib/inttypes.in.h: Likewise.
43765         * lib/locale.in.h: Likewise.
43766         * lib/math.in.h: Likewise.
43767         * lib/netinet_in.in.h: Likewise.
43768         * lib/search.in.h: Likewise.
43769         * lib/signal.in.h: Likewise.
43770         * lib/stdarg.in.h: Likewise.
43771         * lib/stdint.in.h: Likewise.
43772         * lib/stdio.in.h: Likewise.
43773         * lib/stdlib.in.h: Likewise.
43774         * lib/string.in.h: Likewise.
43775         * lib/strings.in.h: Likewise.
43776         * lib/sys_select.in.h: Likewise.
43777         * lib/sys_socket.in.h: Likewise.
43778         * lib/sys_stat.in.h: Likewise.
43779         * lib/sys_time.in.h: Likewise.
43780         * lib/sysexits.in.h: Likewise.
43781         * lib/time.in.h: Likewise.
43782         * lib/unistd.in.h: Likewise.
43783         * lib/wchar.in.h: Likewise.
43784         * lib/wctype.in.h: Likewise.
43785         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
43786         * modules/fchdir (Makefile.am): Likewise.
43787         * modules/fcntl (Makefile.am): Likewise.
43788         * modules/float (Makefile.am): Likewise.
43789         * modules/iconv_open (Makefile.am): Likewise.
43790         * modules/inttypes (Makefile.am): Likewise.
43791         * modules/locale (Makefile.am): Likewise.
43792         * modules/math (Makefile.am): Likewise.
43793         * modules/netinet_in (Makefile.am): Likewise.
43794         * modules/search (Makefile.am): Likewise.
43795         * modules/signal (Makefile.am): Likewise.
43796         * modules/stdarg (Makefile.am): Likewise.
43797         * modules/stdint (Makefile.am): Likewise.
43798         * modules/stdio (Makefile.am): Likewise.
43799         * modules/stdlib (Makefile.am): Likewise.
43800         * modules/string (Makefile.am): Likewise.
43801         * modules/strings (Makefile.am): Likewise.
43802         * modules/sys_select (Makefile.am): Likewise.
43803         * modules/sys_socket (Makefile.am): Likewise.
43804         * modules/sys_stat (Makefile.am): Likewise.
43805         * modules/sys_time (Makefile.am): Likewise.
43806         * modules/sysexits (Makefile.am): Likewise.
43807         * modules/time (Makefile.am): Likewise.
43808         * modules/unistd (Makefile.am): Likewise.
43809         * modules/wchar (Makefile.am): Likewise.
43810         * modules/wctype (Makefile.am): Likewise.
43811         Reported by Reuben Thomas <rrt@sc3d.org>.
43812
43813 2008-08-29  Bruno Haible  <bruno@clisp.org>
43814
43815         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
43816         any more.
43817
43818 2008-08-29  Simon Josefsson  <simon@josefsson.org>
43819
43820         * MODULES.html.sh (Misc): Add bitrotate.
43821
43822         * modules/bitrotate: New file.
43823
43824         * lib/bitrotate.h: New file.
43825
43826         * modules/bitrotate-tests: New file.
43827
43828         * tests/test-bitrotate.c: New file.
43829
43830         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
43831         on the bitrotate module.
43832
43833         * lib/arctwo.c: Use new bitrotate module.
43834
43835 2008-08-29  Jim Meyering  <meyering@redhat.com>
43836
43837         bootstrap: merge changes from coreutils
43838         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
43839         of copied files.  Remove a kludge, now that this is fixed.
43840         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
43841         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
43842         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
43843
43844 2008-08-29  Bruno Haible  <bruno@clisp.org>
43845
43846         * MODULES.html.sh: Remove --cvs-urls option.
43847
43848 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
43849
43850         maint.mk: adjust to file name change
43851         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
43852
43853 2008-08-28  Jim Meyering  <meyering@redhat.com>
43854
43855         * modules/getndelim2 (License): Relicense to LGPLv2+.
43856         Approved by Richard Stallman for the version of 1995, and by
43857         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
43858
43859 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
43860
43861         * lib/getdelim.c (flockfile, funlockfile): Make all of them
43862         dummy if one is not available.  Do not touch them if
43863         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
43864         (getc_maybe_unlocked): New.
43865         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
43866
43867 2008-08-26  Eric Blake  <ebb9@byu.net>
43868
43869         doc/INSTALL: resync from autoconf
43870         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
43871         (INSTALL_PRELUDE): Delete; this is done more efficiently by
43872         moving...
43873         * install.texi [!autoconf]: ...here.  Resync from autoconf.
43874         * INSTALL: Regenerate.
43875         * INSTALL.ISO: New file.
43876         * INSTALL.UTF-8: Likewise.
43877
43878 2008-08-26  Jim Meyering  <meyering@redhat.com>
43879
43880         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
43881         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
43882         these definitions conditional, so that they may be overridden, too.
43883
43884 2008-08-26  Bruno Haible  <bruno@clisp.org>
43885
43886         Generate INSTALL file variants with prettier quotes.
43887         * doc/Makefile (INSTALL_PRELUDE): New macro.
43888         (INSTALL): Use it.
43889         (INSTALL.ISO, INSTALL.UTF-8): New rules.
43890
43891 2008-08-26  Bruno Haible  <bruno@clisp.org>
43892
43893         Run makeinfo in an English locale.
43894         * doc/Makefile (MAKEINFO): New variable.
43895
43896 2008-08-26  Bruno Haible  <bruno@clisp.org>
43897
43898         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
43899         Suggested by Eric Blake.
43900
43901 2008-08-25  Bruno Haible  <bruno@clisp.org>
43902
43903         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
43904
43905 2008-08-25  Eric Blake  <ebb9@byu.net>
43906
43907         c-stack: test that stack overflow can be caught
43908         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
43909         that platform allows handling stack overflow; at least OS/2 EMX
43910         has sigaltstack, but crashes before transferring control to
43911         handler on stack overflow.
43912         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
43913         check for HAVE_STACK_OVERFLOW_HANDLING.
43914         Reported by Elbert Pol.
43915
43916 2008-08-25  Bruno Haible  <bruno@clisp.org>
43917
43918         * doc/posix-functions/strftime.texi: Fix description of strftime
43919         module.
43920
43921 2008-08-24  Bruno Haible  <bruno@clisp.org>
43922
43923         * tests/uniwidth/test-uc_width2.c: New file.
43924         * tests/uniwidth/test-uc_width2.sh: New file.
43925         * modules/uniwidth/width-tests (Files): Add the new files.
43926         (TESTS): Add uniwidth/test-uc_width2.sh.
43927         (TESTS_ENVIRONMENT): New variable.
43928         (check_PROGRAMS): Add test-uc_width2.
43929         (test_uc_width2_SOURCES): New variable.
43930
43931         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
43932         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
43933         not 0x00AB.
43934         Reported by Alexander V. Lukyanov <lav@netis.ru>.
43935
43936 2008-08-22  Eric Blake  <ebb9@byu.net>
43937
43938         test-lock, test-tls: mention why a test is skipped
43939         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
43940         skipped.
43941         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
43942
43943         count-one-bits: relax license
43944         * modules/count-one-bits (License): Relicense to LGPLv2+.
43945         Suggested by Ludovic Courtès, approved by Ben Pfaff.
43946
43947 2008-08-22  Andreas Schwab  <schwab@suse.de>
43948
43949         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
43950         Remove spurious space in assignment.
43951
43952 2008-08-21  Simon Josefsson  <simon@josefsson.org>
43953
43954         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
43955         Paul Eggert <eggert@CS.UCLA.EDU>.
43956
43957 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
43958
43959         * modules/gettext: Add m4/threadlib.m4.
43960
43961 2008-08-19  Eric Blake  <ebb9@byu.net>
43962
43963         test-c-stack: fix compilation failure on FreeBSD 5.0
43964         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
43965         headers before <sys/resource.h>.
43966         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
43967         the bug.
43968         Reported by Nelson H. F. Beebe.
43969
43970         strverscmp: migrate from "strverscmp.h" to <string.h>
43971         * modules/string (Makefile.am): Add new hooks.
43972         * modules/strverscmp (Files): Remove strverscmp.h.
43973         (Depends-on): Add string.
43974         (configure.ac): Add indicator.
43975         (Include): Mention new header.
43976         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
43977         defaults.
43978         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
43979         results.
43980         * lib/strverscmp.h: Delete.
43981         * lib/string.in.h (strverscmp): Provide declaration, when needed.
43982         * tests/test-strverscmp.c (includes): Adjust client.
43983         * lib/check-version.c (includes): Likewise.
43984         * NEWS: Document the change.
43985
43986         strverscmp: add unit test
43987         * modules/strverscmp-tests: New file.
43988         * tests/test-strverscmp.c: Likewise.
43989
43990 2008-08-19  Simon Josefsson  <simon@josefsson.org>
43991
43992         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
43993         regarding Windows crypto stuff, from Mono.
43994
43995 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
43996
43997         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
43998         if present, for intel RND.  Return error on failures.
43999
44000 2008-08-18  Ben Pfaff  <blp@gnu.org>
44001
44002         gitlog-to-changelog: give better diagnostic for failed pipe-open
44003         * build-aux/gitlog-to-changelog: Improve error message: suggest
44004         that the version of Git may be too old.
44005
44006 2008-08-18  Simon Josefsson  <simon@josefsson.org>
44007
44008         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
44009         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
44010
44011 2008-08-18  Bruno Haible  <bruno@clisp.org>
44012
44013         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
44014         pthread_in_use().
44015
44016 2008-08-18  Bruno Haible  <bruno@clisp.org>
44017
44018         * lib/glthread/threadlib.c: Include <pthread.h>.
44019
44020 2008-08-18  Bruno Haible  <bruno@clisp.org>
44021
44022         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
44023         glthread_recursive_lock_* macros.
44024         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
44025         Fix syntax error.
44026
44027 2008-08-18  Bruno Haible  <bruno@clisp.org>
44028
44029         * lib/glthread/thread.c: Avoid forcing a context switch right after
44030         thread creation.
44031
44032 2008-08-17  Bruno Haible  <bruno@clisp.org>
44033
44034         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
44035         * lib/glthread/thread.h: Provide Win32 specific implementation.
44036         * modules/thread (Files): Add lib/glthread/thread.c.
44037         (Depends-on): Add lock.
44038         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
44039
44040 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44041
44042         New module 'yield'.
44043         * modules/yield: New file.
44044         * lib/glthread/yield.h: New file.
44045         * m4/yield.m4: New file.
44046         * MODULES.html.sh (Multithreading): Add yield.
44047
44048 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44049
44050         New module 'thread'.
44051         * modules/thread: New file.
44052         * lib/glthread/thread.h: New file.
44053         * m4/thread.m4: New file.
44054         * MODULES.html.sh (Multithreading): Add thread.
44055
44056 2008-08-17  Bruno Haible  <bruno@clisp.org>
44057
44058         * lib/glthread/lock.h: Include <stdlib.h> always.
44059         * lib/glthread/tls.h: Likewise.
44060         * lib/glthread/cond.h: Likewise.
44061
44062 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44063
44064         New module 'cond'.
44065         * modules/cond: New file.
44066         * lib/glthread/cond.h: New file.
44067         * lib/glthread/cond.c: New file.
44068         * m4/cond.m4: New file.
44069         * MODULES.html.sh (Multithreading): Add cond.
44070
44071 2008-08-16  Eric Blake  <ebb9@byu.net>
44072
44073         c-stack: fix regression on Irix 5.3 from 2008-06-21
44074         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
44075         sa_sigaction...
44076         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
44077         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
44078         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
44079         * modules/signal (Makefile.am): Use the value.
44080         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
44081         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
44082         * doc/posix-headers/signal.texi (signal.h): Document this
44083         portability issue.
44084         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
44085         Reported by Tom G. Christensen.
44086
44087 2008-08-17  Bruno Haible  <bruno@clisp.org>
44088
44089         New module 'threadlib'.
44090         * modules/threadlib: New file.
44091         * lib/glthread/threadlib.c: New file, extracted from
44092         lib/glthread/lock.c.
44093         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
44094         functions.
44095         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
44096         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
44097         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
44098         macros.
44099         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
44100         (gl_DISABLE_THREADS): Remove macro.
44101         * modules/lock (Files): Remove build-aux/config.rpath.
44102         (Depends-on): Remove havelib. Add threadlib.
44103         (configure.ac-early): Remove section.
44104         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
44105         * modules/tls (Depends-on): Remove lock. Add threadlib.
44106         (Link): New section, copied from threadlib.
44107         * MODULES.html.sh (Multithreading): Add threadlib.
44108
44109 2008-08-14  Bruno Haible  <bruno@clisp.org>
44110
44111         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
44112         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
44113         glthread_rwlock_unlock, glthread_rwlock_destroy,
44114         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
44115         glthread_recursive_lock_destroy): Define as macros always.
44116         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
44117         glthread_lock_lock.
44118         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
44119         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
44120         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
44121         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
44122         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
44123         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
44124         (glthread_recursive_lock_lock_func): Renamed from
44125         glthread_recursive_lock_lock.
44126         (glthread_recursive_lock_unlock_func): Renamed from
44127         glthread_recursive_lock_unlock.
44128         (glthread_recursive_lock_destroy_func): Renamed from
44129         glthread_recursive_lock_destroy.
44130
44131 2008-08-14  Bruno Haible  <bruno@clisp.org>
44132
44133         * lib/glthread/lock.h: Renamed from lib/lock.h.
44134         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
44135         * lib/glthread/tls.h: Renamed from lib/tls.h.
44136         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
44137         * lib/fstrcmp.c: Update includes.
44138         * lib/strsignal.c: Update includes.
44139         * modules/lock (Files, Makefile.am): Update.
44140         (Include): Change to "glthread/lock.h".
44141         * modules/tls (Files, Makefile.am): Update.
44142         (Include): Change to "glthread/tls.h".
44143         * tests/test-lock.c: Update includes.
44144         * tests/test-tls.c: Update includes.
44145         * NEWS: Mention the renamed header files.
44146
44147 2008-08-11  Jim Meyering  <meyering@redhat.com>
44148
44149         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
44150
44151 2008-08-11  Eric Blake  <ebb9@byu.net>
44152
44153         test-c-stack: avoid C99-ism
44154         * tests/test-c-stack.c (main): Fix whitespace, move declaration
44155         before statement.
44156         Reported by Alain Guibert.
44157
44158 2008-08-10  Jim Meyering  <meyering@redhat.com>
44159
44160         ensure that return value of uinttostr et al are not ignored
44161         * lib/inttostr.h (__GNUC_PREREQ): Define.
44162         (__attribute_warn_unused_result__): Define.
44163         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
44164
44165 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
44166
44167         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
44168         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
44169
44170 2008-08-07  Jim Meyering  <meyering@redhat.com>
44171
44172         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
44173
44174         * modules/mkstemp (License): Relicense under LGPLv2+.
44175         * modules/tempname (License): Likewise.
44176
44177 2008-08-06  Bruno Haible  <bruno@clisp.org>
44178
44179         * lib/poll.c (poll): Further micro-optimization.
44180
44181 2008-08-06  Jim Meyering  <meyering@redhat.com>
44182
44183         inet_pton.c: use locale-independent tolower
44184         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
44185         (inet_pton6): Use c_tolower rather than tolower.
44186         * modules/inet_pton (Depends-on): Add c-ctype.
44187
44188 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
44189
44190         * lib/poll.c (poll): Avoid division when timeout is 0, cache
44191         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
44192
44193 2008-08-06  Jim Meyering  <meyering@redhat.com>
44194
44195         * modules/inet_pton (License): Relicense under LGPLv2+.
44196
44197 2008-08-03  Bruno Haible  <bruno@clisp.org>
44198
44199         Additional non-aborting API for lock and tls.
44200         * lib/lock.h: Include <errno.h>.
44201         (glthread_lock_init): New macro/function.
44202         (gl_lock_init): Define as wrapper around glthread_lock_init.
44203         (glthread_lock_lock): New macro/function.
44204         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
44205         (glthread_lock_unlock): New macro/function.
44206         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
44207         (glthread_lock_destroy): New macro/function.
44208         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
44209         (glthread_rwlock_init): New macro/function.
44210         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
44211         (glthread_rwlock_rdlock): New macro/function.
44212         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
44213         (glthread_rwlock_wrlock): New macro/function.
44214         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
44215         (glthread_rwlock_unlock): New macro/function.
44216         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
44217         (glthread_rwlock_destroy): New macro/function.
44218         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
44219         (glthread_recursive_lock_init): New macro/function.
44220         (gl_recursive_lock_init): Define as wrapper around
44221         glthread_recursive_lock_init.
44222         (glthread_recursive_lock_lock): New macro/function.
44223         (gl_recursive_lock_lock): Define as wrapper around
44224         glthread_recursive_lock_lock.
44225         (glthread_recursive_lock_unlock): New macro/function.
44226         (gl_recursive_lock_unlock): Define as wrapper around
44227         glthread_recursive_lock_unlock.
44228         (glthread_recursive_lock_destroy): New macro/function.
44229         (gl_recursive_lock_destroy): Define as wrapper around
44230         glthread_recursive_lock_destroy.
44231         (glthread_once): New macro/function.
44232         (gl_once): Define as wrapper around glthread_once.
44233         Update function declarations.
44234         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
44235         glthread_rwlock_init. Return error code.
44236         (glthread_rwlock_rdlock_multithreaded): Renamed from
44237         glthread_rwlock_rdlock. Return error code.
44238         (glthread_rwlock_wrlock_multithreaded): Renamed from
44239         glthread_rwlock_wrlock. Return error code.
44240         (glthread_rwlock_unlock_multithreaded): Renamed from
44241         glthread_rwlock_unlock. Return error code.
44242         (glthread_rwlock_destroy_multithreaded): Renamed from
44243         glthread_rwlock_destroy. Return error code.
44244         (glthread_recursive_lock_init_multithreaded): Renamed from
44245         glthread_recursive_lock_init. Return error code.
44246         (glthread_recursive_lock_lock_multithreaded): Renamed from
44247         glthread_recursive_lock_lock. Return error code.
44248         (glthread_recursive_lock_unlock_multithreaded): Renamed from
44249         glthread_recursive_lock_unlock. Return error code.
44250         (glthread_recursive_lock_destroy_multithreaded): Renamed from
44251         glthread_recursive_lock_destroy. Return error code.
44252         (glthread_once_call): Make static.
44253         (glthread_once_multithreaded): Renamed from glthread_once.
44254         * lib/tls.h: Include <errno.h>.
44255         (glthread_tls_key_init): New macro/function.
44256         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
44257         (glthread_tls_set): New macro/function.
44258         (gl_tls_set): Define as wrapper around glthread_tls_set.
44259         (glthread_tls_key_destroy): New macro/function.
44260         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
44261         Update function declarations.
44262         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
44263         glthread_tls_get.
44264         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44265
44266 2008-08-04  Eric Blake  <ebb9@byu.net>
44267
44268         gnumakefile: use space, not TAB, outside of targets
44269         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
44270
44271 2008-08-02  Jim Meyering  <meyering@redhat.com>
44272
44273         getdate.y: avoid locale-dependent date parsing failure
44274         In Turkish locales, getdate would fail to recognize keywords
44275         containing a lowercase "i".  The solution is not to rely on
44276         locale-sensitive case-conversion.
44277         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
44278         (lookup_word): Use c_toupper in place of toupper.
44279         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
44280         Reported by Vefa Bicakci <bicave@superonline.com> in
44281         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
44282         * modules/getdate (Depends-on): Add c-ctype.
44283
44284 2008-08-02  Bruno Haible  <bruno@clisp.org>
44285
44286         * gnulib-tool (func_import): When updating or creating a .gitignore
44287         file, prepend each added line with a slash, and ignore leading slashes
44288         from the existing lines.
44289         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
44290
44291 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44292
44293         Portability fix for GNU make 3.79.1.
44294         * top/GNUmakefile: Avoid 'else COND', which older GNU make
44295         versions do not understand.
44296
44297 2008-08-01  Bruno Haible  <bruno@clisp.org>
44298
44299         Work around bug of HP-UX 10.20 cc with -0.0 literal.
44300         * tests/test-isnanf.h (zero): New variable.
44301         (main): Avoid literal -0.0f.
44302         * tests/test-isnand.h (zero): New variable.
44303         (main): Avoid literal -0.0.
44304         * tests/test-isnanl.h (zero): New variable.
44305         (main): Avoid literal -0.0L.
44306         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
44307         (test_float, test_double, test_long_double): Avoid literals -0.0f,
44308         -0.0, -0.0L.
44309         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
44310         (test_signbitd): Avoid literal -0.0.
44311         (test_signbitl): Avoid literal -0.0L.
44312         * tests/test-ceilf1.c (zero): New variable.
44313         (main): Avoid literal -0.0f.
44314         * tests/test-ceill.c (zero): New variable.
44315         (main): Avoid literal -0.0L.
44316         * tests/test-floorf1.c (zero): New variable.
44317         (main): Avoid literal -0.0f.
44318         * tests/test-floorl.c (zero): New variable.
44319         (main): Avoid literal -0.0L.
44320         * tests/test-roundf1.c (zero): New variable.
44321         (main): Avoid literal -0.0f.
44322         * tests/test-round1.c (zero): New variable.
44323         (main): Avoid literal -0.0.
44324         * tests/test-roundl.c (zero): New variable.
44325         (main): Avoid literal -0.0L.
44326         * tests/test-truncf1.c (zero): New variable.
44327         (main): Avoid literal -0.0f.
44328         * tests/test-trunc1.c (zero): New variable.
44329         (main): Avoid literal -0.0.
44330         * tests/test-truncl.c (zero): New variable.
44331         (main): Avoid literal -0.0L.
44332         * tests/test-frexp.c (zero): New variable.
44333         (main): Avoid literal -0.0.
44334         * tests/test-frexpl.c (zero): New variable.
44335         (main): Avoid literal -0.0L.
44336         * tests/test-ldexpl.c (zero): New variable.
44337         (main): Avoid literal -0.0L.
44338         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
44339         (zerod, zerol): New variables.
44340         (test_function): Avoid literals -0.0, -0.0L.
44341         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
44342         (zerod, zerol): New variables.
44343         (test_function): Avoid literals -0.0, -0.0L.
44344         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
44345         (zerod, zerol): New variables.
44346         (test_function): Avoid literals -0.0, -0.0L.
44347         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
44348         (zerod, zerol): New variables.
44349         (test_function): Avoid literals -0.0, -0.0L.
44350         * tests/test-strtod.c (zero): New variable.
44351         (main): Avoid literal -0.0.
44352         Reported by Jonathan C. Patschke <jp@centtech.com>.
44353
44354 2008-07-31  Jim Meyering  <meyering@redhat.com>
44355
44356         sha256.h: correct definition of SHA224_DIGEST_SIZE
44357         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
44358         Reported by Paulie Pena IV <paulie4@gmail.com>.
44359         Define as 224 / 8, rather than as a literal.
44360         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
44361         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
44362         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
44363
44364 2008-07-31  Bruno Haible  <bruno@clisp.org>
44365
44366         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
44367         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
44368         Reported by Jonathan Patschke <jp@centtech.com>.
44369
44370 2008-07-31  Bruno Haible  <bruno@clisp.org>
44371
44372         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
44373         Reported by Paolo Bonzini <bonzini@gnu.org>.
44374
44375 2008-07-30  Eric Blake  <ebb9@byu.net>
44376
44377         test-strtod: allow compilation without -lm
44378         * tests/test-strtod.c (main): Avoid link dependence on fabs.
44379         Reported by Dennis Clarke <blastwave@gmail.com>.
44380
44381 2008-07-28  Jim Meyering  <meyering@redhat.com>
44382
44383         bootstrap: work also when there are no .po files in po/
44384         * build-aux/bootstrap (update_po_files): Complete the change
44385         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
44386
44387 2008-07-27  Jim Meyering  <meyering@redhat.com>
44388
44389         * users.txt: Add zile.
44390
44391 2008-07-26  Ben Pfaff  <blp@gnu.org>
44392
44393         Add missing dependencies on new m4/exponent[fdl].m4 files.
44394         * modules/isnanf-nolibm: Add m4/exponentf.m4.
44395         * modules/isnand-nolibm: Add m4/exponentd.m4.
44396         * modules/isnanl-nolibm: Add m4/exponentl.m4.
44397         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
44398         m4/isnan[fdl].m4, because the macros actually used moved.
44399         Reported by Jim Meyering.
44400
44401 2008-07-14  Ben Pfaff  <blp@gnu.org>
44402
44403         Add isinf module.
44404         * lib/isinf.c: New file.
44405         * lib/math.in.h: Define isinf macro if we have decided to replace
44406         it.
44407         * m4/isinf.m4: New file.
44408         * m4/math_h.m4: Initialize and substitute variables for isinf
44409         module.
44410         * modules/isinf: New file.
44411         * modules/isinf-tests: New file.
44412         * modules/math: Add substitutions for new module.
44413         * tests/test-isinf.c: New file.
44414         * doc/posix-functions/isinf.texi: Mention new module.
44415         * MODULES.html.sh: Mention new module.
44416
44417 2008-07-14  Ben Pfaff  <blp@gnu.org>
44418
44419         Factor out some macros for use by additional modules.
44420         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
44421         exponentf.m4.
44422         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
44423         exponentd.m4.
44424         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
44425         file exponentl.m4.
44426         * m4/exponentf.m4: New file.
44427         * m4/exponentd.m4: New file.
44428         * m4/exponentl.m4: New file.
44429         * modules/isnanf: Use new file m4/exponentf.m4.
44430         * modules/isnand: Use new file m4/exponentd.m4.
44431         * modules/isnanl: Use new file m4/exponentl.m4.
44432
44433 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
44434
44435         mktime.c: normalize tp->tm_isdst value to -1/0/1.
44436         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
44437         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
44438         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
44439
44440         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
44441         readlink on platforms without PATH_MAX.
44442
44443 2008-07-21  Eric Blake  <ebb9@byu.net>
44444
44445         Warn, not fail, on stale version.
44446         * top/GNUmakefile (_curr-ver): Tone down previous patch.
44447
44448         Don't allow installation with stale devel version number.
44449         * top/GNUmakefile (_is-install-target): New macro.
44450         (_curr-ver): Forbid installation with stale version number.
44451
44452 2008-07-20  Bruno Haible  <bruno@clisp.org>
44453
44454         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
44455         TESTS_ENVIRONMENT.
44456         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
44457
44458 2008-07-20  Bruno Haible  <bruno@clisp.org>
44459
44460         * lib/c-stack.h (c_stack_action): Add documentation.
44461         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
44462
44463 2008-07-20  Bruno Haible  <bruno@clisp.org>
44464
44465         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
44466         * modules/readlink (License): Likewise.
44467
44468 2008-07-17  Eric Blake  <ebb9@byu.net>
44469
44470         * modules/c-stack (Link): Fix typo.
44471
44472         Make c-stack use libsigsegv, when available.
44473         * modules/c-stack (Depends-on): Add libsigsegv.
44474         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
44475         needed.
44476         * lib/c-stack.c (SIGSTKSZ): Define fallback.
44477         (segv_handler, overflow_handler, c_stack_action)
44478         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
44479         implementation when libsigsegv is available, but only when using
44480         the library is necessary.
44481         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
44482         comment, explaining why XSI check fails on Linux.
44483         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
44484         * tests/test-c-stack2.sh: Tweak skip message.
44485         * NEWS: Document new link-time requirements.
44486
44487 2008-07-16  Eric Blake  <ebb9@byu.net>
44488
44489         c-stack: Expose false positives when not using libsigsegv.
44490         * modules/c-stack-tests (Files): Expand test.
44491         * tests/test-c-stack.c (main): Add means to conditionally trigger
44492         non-overflow SIGSEGV.
44493         * tests/test-c-stack2.sh: New file.
44494
44495 2008-07-14  Bruno Haible  <bruno@clisp.org>
44496
44497         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
44498         Reported by Eric Blake.
44499
44500 2008-07-14  Sam Steingold  <sds@gnu.org>
44501             Bruno Haible  <bruno@clisp.org>
44502
44503         New module libsigsegv.
44504         * modules/libsigsegv: New file.
44505         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
44506         modifications.
44507         * MODULES.html.sh (Signal handling): New section.
44508
44509 2008-07-14  Bruno Haible  <bruno@clisp.org>
44510
44511         * modules/unictype/ctype-* (Description): Add the word "function".
44512         Improves the resulting doc in MODULES.html.
44513
44514 2008-07-12  Ben Pfaff  <blp@gnu.org>
44515
44516         Add longlong module.
44517         * modules/longlong: New file.
44518
44519 2008-07-12  Bruno Haible  <bruno@clisp.org>
44520
44521         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
44522         to empty.
44523
44524 2008-07-10  Ben Pfaff  <blp@gnu.org>
44525
44526         Add isnan module.
44527         * doc/posix-functions/isnan.texi: Mention new module.
44528         * lib/math.in.h: Define isnan macro if we have decided to replace
44529         it.
44530         * m4/isnan.m4: New file.
44531         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
44532         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
44533         also.
44534         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
44535         redundancy.
44536         * m4/math_h.m4: Initialize and substitute variables for isnan
44537         module.
44538         * modules/isnan: New file.
44539         * modules/isnan-tests: New file.
44540         * modules/math: Add substitutions for new module.
44541         * tests/test-isnan.c: New file.
44542         * MODULES.html.sh: Mention new module.
44543
44544 2008-07-10  Ben Pfaff  <blp@gnu.org>
44545
44546         Add isnanf module.
44547         * lib/isnanf.m4: New file.
44548         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
44549         (gl_HAVE_ISNANF_IN_LIBM): New macro.
44550         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
44551         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
44552         * modules/isnanf: New file.
44553         * modules/isnanf-tests: New file.
44554         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
44555         files.
44556         * tests/test-isnanf-nolibm.c: factored most of its contents into
44557         new file tests/test-isnanf.h.
44558         * tests/test-isnanf.h: New file.
44559         * tests/test-isnanf.c: New file.
44560         * MODULES.html.sh: Mention new module.
44561         * doc/glibc-functions/isnanf.texi: Mention new module.
44562
44563 2008-07-10  Ben Pfaff  <blp@gnu.org>
44564
44565         Add isnand module.
44566         * lib/isnand.h: New file.
44567         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
44568         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
44569         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
44570         functionality also.
44571         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
44572         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
44573         (gl_HAVE_ISNAND_IN_LIBM): New macro.
44574         * modules/isnand: New file.
44575         * modules/isnand-tests: New file.
44576         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
44577         files.
44578         * tests/test-isnand-nolibm.c: factored most of its contents into
44579         new file tests/test-isnand.h.
44580         * tests/test-isnand.h: New file.
44581         * tests/test-isnand.c: New file.
44582         * MODULES.html.sh: Mention new module.
44583
44584 2008-07-10  Ben Pfaff  <blp@gnu.org>
44585
44586         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
44587         * lib/isnand.h: Rename lib/isnand-nolibm.h.
44588         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
44589         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
44590         * modules/isnanf-nolibm: Update references to renamed files.
44591         * modules/isnand-nolibm: Likewise.
44592         * modules/isnanf-nolibm-tests: Likewise.
44593         * modules/isnand-nolibm-tests: Likewise.
44594         * lib/frexp.c: Likewise.
44595         * lib/isfinite.c: Likewise.
44596         * lib/signbitd.c: Likewise.
44597         * lib/signbitf.c: Likewise.
44598         * lib/vasnprintf.c: Likewise.
44599         * tests/test-ceilf1.c: Likewise.
44600         * tests/test-ceilf2.c: Likewise.
44601         * tests/test-floorf1.c: Likewise.
44602         * tests/test-floorf2.c: Likewise.
44603         * tests/test-frexp.c: Likewise.
44604         * tests/test-round1.c: Likewise.
44605         * tests/test-round2.c: Likewise.
44606         * tests/test-roundf1.c: Likewise.
44607         * tests/test-strtod.c: Likewise.
44608         * tests/test-trunc1.c: Likewise.
44609         * tests/test-trunc2.c: Likewise.
44610         * tests/test-truncf1.c: Likewise.
44611         * tests/test-truncf2.c: Likewise.
44612         * NEWS: Mention the renamed header files.
44613
44614 2008-07-11  Jim Meyering  <meyering@redhat.com>
44615
44616         vc-list-files: make the last-resort awk code more portable
44617         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
44618         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
44619         does not support it.
44620
44621 2008-07-10  Eric Blake  <ebb9@byu.net>
44622
44623         Work with tar's bootstrap.
44624         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
44625         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
44626         an m4 comment.
44627
44628 2008-07-09  Jim Meyering  <meyering@redhat.com>
44629
44630         posix-shell.m4: fix typo that made this test malfunction
44631         * m4/posix-shell.m4: Remove capitalization in variable name.
44632
44633 2008-07-08  Bruno Haible  <bruno@clisp.org>
44634
44635         * m4/onceonly.m4: Update comments.
44636         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44637
44638 2008-07-04  Jim Meyering  <meyering@redhat.com>
44639
44640         * users.txt: Add vc-dwim.
44641         (bison, coreutils): Use the gitweb URL.
44642
44643 2008-07-03  Jim Meyering  <meyering@redhat.com>
44644
44645         * users.txt: Add libffcall.  From Sam Steingold.
44646
44647 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
44648
44649         getdate.y: do not ignore TZ with relative day, month or year offset
44650         * lib/getdate.y (get_date): Move the tz-handling block to follow the
44651         relative-date-handling, since otherwise, the latter would clobber the
44652         sole output (an updated Start value) of the tz-handling block.
44653         * tests/test-getdate.c: Tests for the fix
44654
44655 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44656
44657         Recognize 'foo_LIBRARIES += libgnu.a'.
44658         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
44659         makefile snippet has already specified an installation location,
44660         also using '+='.
44661
44662 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
44663
44664         getdate.y: factor out common actions
44665         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
44666         Use them in place of open-coded actions.
44667
44668 2008-07-01  Simon Josefsson  <simon@josefsson.org>
44669
44670         Add self-test for getdate module.
44671         * modules/getdate-tests: New file.
44672         * tests/test-getdate.c: New file.
44673
44674 2008-06-29  Bruno Haible  <bruno@clisp.org>
44675
44676         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
44677         .gitignore.
44678         Reported by Sylvain Beucler <beuc@beuc.net>.
44679
44680 2008-06-29  Bruno Haible  <bruno@clisp.org>
44681
44682         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
44683         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
44684
44685 2008-06-29  Bruno Haible  <bruno@clisp.org>
44686
44687         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
44688         EXTRA_DIST.
44689         Reported by Sylvain Beucler <beuc@beuc.net>.
44690
44691 2008-06-26  Jim Meyering  <meyering@redhat.com>
44692
44693         make several modules depend on the "open" module
44694         This provides slightly increased consistency when opening-for-write
44695         the name of a non-directory spelled with a trailing slash.
44696         * modules/chdir-safer: Likewise.
44697         * modules/chown: Likewise.
44698         * modules/clean-temp: Likewise.
44699         * modules/copy-file: Likewise.
44700         * modules/fchdir: Likewise.
44701         * modules/fcntl-safer: Likewise.
44702         * modules/pipe: Likewise.
44703         * modules/utime: Likewise.
44704         Prompted by Eric Blake and Bruno Haible.
44705
44706 2008-06-24  Andreas Schwab  <schwab@suse.de>
44707
44708         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
44709         literals can be used as initializers for global variables.
44710
44711 2008-06-23  Eric Blake  <ebb9@byu.net>
44712
44713         Make gnulib-cache.m4 easier to diff.
44714         * gnulib-tool (func_import): Allow newlines when reading cached
44715         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
44716
44717 2008-06-23  Bruno Haible  <bruno@clisp.org>
44718
44719         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
44720         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
44721         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
44722         m4/signalblocking.m4.
44723         (gl_PREREQ_SIGACTION): Don't invoke it.
44724         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
44725         gl_PREREQ_SIG_HANDLER_H.
44726         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
44727         Don't check for sigaction here.
44728
44729 2008-06-23  Bruno Haible  <bruno@clisp.org>
44730
44731         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
44732         (install_handlers): Don't set the SA_RESETHAND flag.
44733
44734 2008-06-23  Bruno Haible  <bruno@clisp.org>
44735
44736         * m4/sigaction.m4: Comment fixes.
44737         * lib/signal.in.h: Likewise.
44738
44739 2008-06-23  Eric Blake  <ebb9@byu.net>
44740
44741         Fix typo.
44742         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
44743
44744         Avoid SA_ namespace.
44745         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
44746         Reported by Ralf Wildenhues.
44747
44748         Avoid test failure due to SA_RESTORER.
44749         * tests/test-sigaction.c (SA_MASK): New macro.
44750         (main): Avoid failing due to extension flags being set.
44751         Reported by Jim Meyering.
44752
44753         Revert use of sig-handler.h in sigprocmask.c.
44754         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
44755         it requires the existence of struct sigaction.
44756         * lib/sigprocmask.c (handler_t): Restore typedef.
44757         (rpl_signal, old_handlers): Use local type.
44758
44759 2008-06-22  Bruno Haible  <bruno@clisp.org>
44760
44761         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
44762         conditionally.
44763         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44764
44765 2008-06-22  Bruno Haible  <bruno@clisp.org>
44766
44767         * doc/posix-functions/siginterrupt.texi: Move note.
44768
44769         * lib/signal.in.h (SA_RESTART): New macro.
44770         * lib/sigaction.c: Update comment.
44771
44772         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
44773
44774         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
44775         (gl_PREREQ_SIGPROCMASK): Invoke it.
44776         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
44777
44778         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
44779
44780         * lib/sigprocmask.c: Update a comment.
44781
44782 2008-06-21  Eric Blake  <ebb9@byu.net>
44783
44784         Use sigaction module rather than signal().
44785         * modules/c-stack (Depends-on): Add sigaction.
44786         * modules/fatal-signal (Depends-on): Likewise.
44787         * modules/nanosleep (Depends-on): Likewise.
44788         * modules/sigprocmask (Files): Add sig-handler.h.
44789         * modules/sigaction (Files): Likewise.
44790         * lib/sig-handler.h (get_handler): New file, suggested by Paul
44791         Eggert.
44792         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
44793         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
44794         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
44795         (init_fatal_signals): Likewise.
44796         * lib/nanosleep.c (rpl_nanosleep): Likewise.
44797         (siginterrupt): Delete fallback.
44798         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
44799         instead.
44800         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
44801         siginterrupt.
44802
44803         New module sigaction, for mingw.
44804         * modules/sigaction: New module...
44805         * modules/sigaction-tests: ...and its test.
44806         * m4/sigaction.m4: New file.
44807         * lib/sigaction.c: Likewise.
44808         * tests/test-sigaction.c: Likewise.
44809         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
44810         * modules/signal (Makefile.am): Likewise.
44811         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
44812         needed.
44813         * doc/posix-headers/signal.texi (signal.h): Mention provided
44814         types.
44815         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
44816         that sigaction is preferable.
44817         * doc/posix-functions/sigaction.texi (sigaction): Mention new
44818         module.
44819         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44820         sigaction.
44821
44822         Improve robustness of sigprocmask by overriding signal.
44823         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
44824         is in use.
44825         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
44826         (SIGKILL, SIGSTOP): Provide fallbacks.
44827         (rpl_signal): Implement.
44828         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
44829         signal can be called inside handlers.
44830
44831         Fix nanosleep module on mingw.
44832         * modules/nanosleep (Depends-on): Add sys_select.
44833         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
44834
44835         Fix licensing of sigprocmask.
44836         * modules/raise (License): Relicense as LGPL.
44837
44838 2008-06-21  Bruno Haible  <bruno@clisp.org>
44839
44840         * lib/propername.c (proper_name_utf8): Don't use the transliterated
44841         result if it contains question marks.
44842         Reported by Michael Geng <linux@michaelgeng.de>.
44843
44844 2008-06-19  Bruno Haible  <bruno@clisp.org>
44845
44846         Fix CVS-ism.
44847         * doc/gnulib.texi: Include updated-stamp.texi.
44848         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
44849         (updated-stamp.texi): New rule.
44850         (gnulib.info): Depend on it.
44851         * doc/.gitignore: Add updated-stamp.texi.
44852         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
44853
44854 2008-06-19  Bruno Haible  <bruno@clisp.org>
44855
44856         * doc/Makefile (gnulib.info): Update and simplify dependencies.
44857         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44858
44859 2008-06-19  Eric Blake  <ebb9@byu.net>
44860
44861         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
44862         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
44863         Reported by Stepan Kasal.
44864
44865 2008-06-18  Bruno Haible  <bruno@clisp.org>
44866
44867         * lib/fatal-signal.c (init_fatal_signals): Add comment.
44868         Reported by Eric Blake.
44869
44870 2008-06-18  Eric Blake  <ebb9@byu.net>
44871
44872         Work around cygwin 1.5.25 strsignal bug.
44873         * tests/test-strsignal.c: Allow for const char *.
44874         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
44875
44876 2008-06-18  Simon Josefsson  <simon@josefsson.org>
44877
44878         * users.txt: Update URL to article and add author/date
44879         information.
44880
44881 2008-06-17  Bruno Haible  <bruno@clisp.org>
44882
44883         New macro gl_DISABLE_THREADS.
44884         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
44885         if the user did not pass --enable-threads or --disable-threads option.
44886         (gl_DISABLE_THREADS): New macro.
44887         Reported by Eric Blake <ebb9@byu.net>.
44888
44889 2008-06-17  Bruno Haible  <bruno@clisp.org>
44890
44891         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
44892         when the macro ignores it.
44893         Based on a patch by Eric Blake <ebb9@byu.net>.
44894
44895 2008-06-17  Bruno Haible  <bruno@clisp.org>
44896
44897         * modules/tls (License): Change to LGPLv2+.
44898         Reported by Eric Blake.
44899
44900 2008-06-17  Eric Blake  <ebb9@byu.net>
44901
44902         Simplify c-stack prerequisites.
44903         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
44904         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
44905         no longer requires <ucontext.h> to exist.  Optimize setrlimit
44906         check.
44907         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
44908         <sys/resource.h>.
44909
44910         Move c-stack test into testsuite.
44911         * modules/c-stack-tests: New file.
44912         * lib/c-stack.c [DEBUG]: Move test program...
44913         * tests/test-c-stack.c: ...into this new file.  Skip rather than
44914         fail test if sigaltstack is lacking.
44915         * tests/test-c-stack.sh: New driver file.
44916
44917 2008-06-16  Eric Blake  <ebb9@byu.net>
44918
44919         Use raise module consistently.
44920         * modules/fatal-signal (Depends-on): Add raise.
44921         * modules/sigprocmask (Depends-on): Likewise.
44922         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
44923         * lib/sigprocmask.c (sigprocmask): Likewise.
44924         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
44925         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
44926
44927         Fix compliance bug in sigpending.
44928         * lib/sigprocmask.c (sigpending): Return pending array via
44929         parameter, not return value.
44930
44931 2008-06-14  Eric Blake  <ebb9@byu.net>
44932
44933         Improve obstack-printf test code.
44934         * tests/test-obstack-printf.c (test_function): Fix comment, and
44935         simplify usage of obstack_* in macros.  Add a test for coverage.
44936         Reported by Bruno Haible.
44937
44938 2008-06-14  Bruno Haible  <bruno@clisp.org>
44939
44940         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
44941         array size as a constant, not as a const variable.
44942         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
44943         AC_USE_SYSTEM_EXTENSIONS.
44944         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
44945         Test whether the obstack_printf function actually exists.
44946         * modules/obstack-printf (Depends-on): Add extensions.
44947         (Include): Remove obstack.h.
44948         * modules/obstack-printf-posix (Depends-on): Add extensions.
44949         (Include): Remove obstack.h.
44950
44951 2008-06-13  Eric Blake  <ebb9@byu.net>
44952
44953         Add obstack-printf and obstack-printf-posix modules.
44954         * modules/obstack-printf: New file.
44955         * modules/obstack-printf-posix: Likewise.
44956         * MODULES.html.sh (Misc): Mention them.
44957         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
44958         Likewise.
44959         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
44960         Likewise.
44961         * modules/stdio (Makefile.am): Accomodate new modules.
44962         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44963         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
44964         Declare.
44965         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
44966         functions.
44967         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
44968         (gl_REPLACE_OBSTACK_PRINTF): New macros
44969         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
44970         * tests/test-obstack-printf.c: New file.
44971         * modules/obstack-printf-tests: Likewise.
44972         * modules/obstack-printf-posix-tests: Likewise.
44973
44974 2008-06-11  Bruno Haible  <bruno@clisp.org>
44975
44976         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
44977         * lib/open.c: Include errno.h.
44978         (open): Fail when attempting to write to a file that has a trailing
44979         slash.
44980         * tests/test-open.c (main): Test against trailing slash bug.
44981         * doc/posix-functions/open.texi: Mention the trailing slash bug.
44982
44983 2008-06-10  Bruno Haible  <bruno@clisp.org>
44984
44985         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
44986         for $? to work inside the trap command, with various /bin/sh-s.
44987         * tests/test-vc-list-files-cvs.sh: Likewise.
44988
44989 2008-06-10  Bruno Haible  <bruno@clisp.org>
44990
44991         * lib/acl-internal.h: Don't include gettext.h here.
44992         * lib/set-mode-acl.c: Include gettext.h here.
44993         * lib/copy-acl.c: Likewise.
44994
44995 2008-06-10  Bruno Haible  <bruno@clisp.org>
44996
44997         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
44998         * lib/wait-process.c (wait_subprocess): Likewise.
44999         * lib/execute.h (execute): Add termsigp argument.
45000         * lib/execute.c (execute): Likewise.
45001         * lib/csharpcomp.c (compile_csharp_using_pnet,
45002         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
45003         * lib/csharpexec.c (execute_csharp_using_pnet,
45004         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
45005         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
45006         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
45007         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
45008         is_jikes_present): Update.
45009         * lib/javaexec.c (execute_java_class): Update.
45010         * lib/javaversion.c (execute_and_read_line): Update.
45011         * NEWS: Document the changes.
45012         Reported by Eric Blake.
45013
45014 2008-06-10  Eric Blake  <ebb9@byu.net>
45015
45016         Add missing include.
45017         * tests/test-strstr.c (includes): Add <signal.h>.
45018         * tests/test-strcasestr.c (includes): Likewise.
45019         * tests/test-memmem.c (includes): Likewise.
45020
45021 2008-06-10  Bruno Haible  <bruno@clisp.org>
45022
45023         * lib/wait-process.c (wait_subprocess): Add an assertion.
45024
45025 2008-06-10  Bruno Haible  <bruno@clisp.org>
45026
45027         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
45028
45029 2008-06-10  Bruno Haible  <bruno@clisp.org>
45030
45031         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
45032         using alarm().
45033         * tests/test-strcasestr.c (main): Likewise.
45034         * tests/test-strstr.c (main): Likewise.
45035
45036 2008-06-09  Bruno Haible  <bruno@clisp.org>
45037
45038         Work around the Solaris 10 ACE ACLs ABI change.
45039         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
45040         declare if ACL_NO_TRIVIAL is present.
45041         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
45042         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
45043         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
45044         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
45045         define if ACL_NO_TRIVIAL is present.
45046         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
45047         and use the current ABI.
45048         (file_has_acl): Use same #if condition as elsewhere.
45049         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
45050         in use, and use the current ABI.
45051         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
45052         Reported by Jim Meyering.
45053
45054 2008-06-09  Eric Blake  <ebb9@byu.net>
45055
45056         Work around environments that (stupidly) ignore SIGALRM.
45057         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
45058         before using alarm().
45059         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45060         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
45061         Reported by Ian Beckwith <ianb@erislabs.net>.
45062
45063         Produce autobuild blurb earlier in log.
45064         * modules/autobuild (configure.ac-early): Move AB_INIT here.
45065
45066 2008-06-09  Jim Meyering  <meyering@redhat.com>
45067         and OndÅ™ej Vašík  <ovasik@redhat.com>
45068
45069         utimens.c: correct kernel bug work-around
45070         OndÅ™ej Vašík found that the invalid return value of 280 indicates
45071         failure, not success, and the kernel bug we're trying to work
45072         around affects not just the utimensat call, but also the fallback
45073         futimens call.
45074         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
45075         not success.
45076         [HAVE_FUTIMENS]: Use the same work-around, here.
45077
45078 2008-06-09  Jim Meyering  <meyering@redhat.com>
45079
45080         add more guards around definition of ACE_-related code
45081         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
45082         ALLOW and ACE_OWNER are also defined.
45083
45084 2008-06-08  Bruno Haible  <bruno@clisp.org>
45085
45086         * lib/acl-internal.h: Add me as co-author.
45087         * lib/file-has-acl.c: Likewise.
45088         * lib/set-mode-acl.c: Likewise.
45089         * lib/copy-acl.c: Likewise.
45090
45091 2008-06-08  Bruno Haible  <bruno@clisp.org>
45092
45093         Add support for AIX ACLs.
45094         * lib/acl-internal.h (acl_nontrivial): New declaration.
45095         * lib/file-has-acl.c (acl_nontrivial): New function.
45096         (file_has_acl): Add implementation using AIX 4 ACL API.
45097         * lib/set-mode-acl.c (qset_acl): Likewise.
45098         * lib/copy-acl.c (qcopy_acl): Likewise.
45099
45100 2008-06-08  Bruno Haible  <bruno@clisp.org>
45101
45102         Add support for HP-UX ACLs.
45103         * lib/acl-internal.h (acl_nontrivial): New declaration.
45104         * lib/file-has-acl.c (acl_nontrivial): New function.
45105         (file_has_acl): Add implementation using HP-UX 11 ACL API.
45106         * lib/set-mode-acl.c (qset_acl): Likewise.
45107         * lib/copy-acl.c (qcopy_acl): Likewise.
45108
45109 2008-06-08  Bruno Haible  <bruno@clisp.org>
45110
45111         Add support for Cygwin ACLs.
45112         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
45113         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
45114         the chmod_or_fchmod call.
45115         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
45116
45117 2008-06-08  Bruno Haible  <bruno@clisp.org>
45118
45119         Fix bug with setuid modes in Solaris 10+ code.
45120         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
45121         succeeded, when the mode contains some special bits.
45122
45123 2008-06-08  Bruno Haible  <bruno@clisp.org>
45124
45125         Add support for Solaris 7..10 ACLs.
45126         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
45127         declarations.
45128         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
45129         functions.
45130         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
45131         * lib/set-mode-acl.c (qset_acl): Likewise.
45132         * lib/copy-acl.c (qcopy_acl): Likewise.
45133
45134 2008-06-08  Bruno Haible  <bruno@clisp.org>
45135
45136         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
45137         declaration.
45138         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
45139         (acl_access_nontrivial): Remove MacOS X case.
45140         (file_has_acl): Use acl_extended_nontrivial.
45141         * lib/copy-acl.c (qcopy_acl): Likewise.
45142
45143 2008-06-08  Bruno Haible  <bruno@clisp.org>
45144
45145         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
45146
45147 2008-06-08  Jim Meyering  <meyering@redhat.com>
45148
45149         * modules/acl (Maintainer): Add Bruno Haible.
45150
45151 2008-06-07  Bruno Haible  <bruno@clisp.org>
45152
45153         Improve support for Tru64 ACLs.
45154         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
45155         ACL on OSF/1.
45156
45157 2008-06-07  Bruno Haible  <bruno@clisp.org>
45158
45159         Add support for MacOS X ACLs.
45160         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
45161         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
45162         * lib/set-mode-acl.c (qset_acl): Likewise.
45163         * lib/copy-acl.c (qcopy_acl): Likewise.
45164
45165 2008-06-07  Bruno Haible  <bruno@clisp.org>
45166
45167         Fix memory leak introduced on 2008-05-22.
45168         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
45169         use.
45170
45171 2008-06-07  Bruno Haible  <bruno@clisp.org>
45172
45173         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
45174         to construct an empty ACL.
45175
45176 2008-06-07  Bruno Haible  <bruno@clisp.org>
45177
45178         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
45179         precisely.
45180         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
45181
45182 2008-06-07  Bruno Haible  <bruno@clisp.org>
45183
45184         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
45185         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
45186
45187 2008-06-07  Bruno Haible  <bruno@clisp.org>
45188
45189         * doc/posix-functions/_setjmp.texi: Explain the use of this function
45190         regardless of POSIX.
45191         * doc/posix-functions/_longjmp.texi: Likewise.
45192         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
45193         SystemV platform in this case.
45194
45195 2008-06-06  Eric Blake  <ebb9@byu.net>
45196
45197         Document abort() bugs.
45198         * doc/posix-functions/abort.texi (abort): Mention anomalies.
45199
45200         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
45201         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
45202         sigsetjmp.
45203         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
45204         siglongjmp, but only as a macro.
45205         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
45206         is obsolete.
45207         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
45208
45209         Tweak documentation to cover cygwin argz bugs.
45210         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
45211         argz bug fix; no code change needed since no cygwin releases
45212         occurred between the last fix and the bug being tested.
45213         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
45214         module and recently fixed cygwin bugs.
45215         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
45216         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
45217         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
45218         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
45219         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
45220         Likewise.
45221         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
45222         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
45223         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
45224         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
45225         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
45226         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
45227         Likewise.
45228
45229         Avoid gcc warning on cygwin.
45230         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
45231         !ACL_NO_TRIVIAL]: Avoid unused variable.
45232
45233 2008-06-05  Eric Blake  <ebb9@byu.net>
45234
45235         Be tolerant of UNKNOWN version in gnulib-tool test dir.
45236         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
45237         git-version-gen fails to come up with a version.
45238         Reported by Simon Josefsson.
45239
45240 2008-06-05  Jim Meyering  <meyering@redhat.com>
45241             Paul Eggert  <eggert@cs.ucla.edu>
45242
45243         utimens.c: work around a probable Linux kernel bug
45244         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
45245         appears to be a kernel bug that causes utimensat to return 280
45246         instead of 0, indicating success.
45247
45248 2008-06-04  Bruno Haible  <bruno@clisp.org>
45249
45250         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
45251         2008-06-01 commit.
45252
45253 2008-06-04  Bruno Haible  <bruno@clisp.org>
45254
45255         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
45256         * lib/file-has-acl.c (acl_access_nontrivial): New function.
45257         (file_has_acl): Use it. Save errno afterwards.
45258         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
45259
45260 2008-06-03  Bruno Haible  <bruno@clisp.org>
45261
45262         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
45263         draft code. Simplify #ifs.
45264         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
45265         Put Solaris code after POSIX-draft code. Fix comments regarding
45266         Solaris 10, HP-UX. Mention Cygwin.
45267         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
45268
45269 2008-06-03  Eric Blake  <ebb9@byu.net>
45270
45271         Provide fallback for older kernels.
45272         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
45273         Provide runtime fallback if kernel lacks support.
45274         Reported by Mike Frysinger.
45275
45276 2008-06-02  Bruno Haible  <bruno@clisp.org>
45277
45278         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
45279         it exists.
45280
45281 2008-06-02  Bruno Haible  <bruno@clisp.org>
45282
45283         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
45284         * lib/copy-acl.c (qcopy_acl): Update comment.
45285
45286 2008-06-02  Bruno Haible  <bruno@clisp.org>
45287
45288         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
45289         like ACL APIs.
45290
45291 2008-06-02  Bruno Haible  <bruno@clisp.org>
45292
45293         * tests/test-file-has-acl.sh: Use different code for Cygwin.
45294         * tests/test-set-mode-acl.sh: Likewise.
45295         * tests/test-copy-acl.sh: Likewise.
45296         * tests/test-copy-file.sh: Likewise.
45297
45298 2008-06-02  Bruno Haible  <bruno@clisp.org>
45299
45300         * tests/test-file-has-acl.sh: Remove unused code.
45301
45302 2008-06-01  Bruno Haible  <bruno@clisp.org>
45303
45304         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
45305         (copy_acl): Just a wrapper around qcopy_acl that emits the error
45306         messages.
45307         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
45308
45309 2008-06-01  Bruno Haible  <bruno@clisp.org>
45310
45311         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
45312         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
45313         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
45314         APIs.
45315         * modules/acl-tests (configure.ac): Remove tests now contained in
45316         m4/acl.m4.
45317
45318 2008-06-02  Jim Meyering  <meyering@redhat.com>
45319
45320         announce-gen: use a better key-server host name
45321         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
45322         it may be more consistently reliable.  Suggested by Werner Koch
45323         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
45324
45325 2008-06-01  Bruno Haible  <bruno@clisp.org>
45326
45327         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
45328         Reported by Voroskoi Andras <voroskoi@gmail.com>.
45329
45330 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
45331
45332         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
45333
45334 2008-06-01  Bruno Haible  <bruno@clisp.org>
45335
45336         New ACL tests.
45337         * tests/test-file-has-acl.sh: New file.
45338         * tests/test-file-has-acl.c: New file.
45339         * tests/test-set-mode-acl.sh: New file.
45340         * tests/test-set-mode-acl.c: New file.
45341         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
45342         * tests/test-copy-acl.c: New file.
45343         * modules/acl-tests: New file, based on modules/copy-file-tests.
45344         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
45345         (Depends-on): Add acl-tests.
45346         (configure.ac): Remove checks.
45347         (Makefile.am): Don't create test-sameacls program here any more.
45348
45349 2008-06-01  Bruno Haible  <bruno@clisp.org>
45350
45351         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
45352         * tests/test-sameacls.c: Include progname.h.
45353         (main): Invoke set_program_name. Portability fixes for MacOS X,
45354         Solaris, HP-UX.
45355
45356 2008-06-01  Bruno Haible  <bruno@clisp.org>
45357
45358         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
45359         function.
45360         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
45361
45362 2008-06-01  Bruno Haible  <bruno@clisp.org>
45363
45364         * modules/rpmatch (Depends-on): Add strdup.
45365
45366 2008-06-01  Bruno Haible  <bruno@clisp.org>
45367
45368         * lib/pipe.c: Include unistd-safer.h.
45369         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
45370         * modules/pipe (Depends-on): Add unistd-safer.
45371
45372 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45373
45374         * modules/autobuild (configure.ac): Call AB_INIT.
45375
45376 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45377
45378         * tests/test-getaddrinfo.c: Don't print debug messages by default.
45379         Suggested by Bruno Haible <bruno@clisp.org>.
45380
45381 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45382
45383         * tests/test-base64.c: Cast size_t to unsigned long when invoking
45384         printf.  Use %lu instead of %d.  Reported by Bruno Haible
45385         <bruno@clisp.org>.
45386
45387 2008-05-29  Eric Blake  <ebb9@byu.net>
45388
45389         Prefer new POSIX 200x interfaces over futimesat.
45390         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
45391         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
45392         when available.
45393         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
45394
45395 2008-05-28  Bruno Haible  <bruno@clisp.org>
45396
45397         * modules/stpcpy (License): Change to LGPLv2+.
45398         Requested by David Lutterkort <dlutter@redhat.com>.
45399
45400 2008-05-27  Bruno Haible  <bruno@clisp.org>
45401
45402         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
45403         current mingw.
45404         Reported by Jose E. Marchesi <jemarch@gnu.org>.
45405
45406 2008-05-27  Bruno Haible  <bruno@clisp.org>
45407
45408         * modules/iconv_open (Link): New section, from module 'iconv'.
45409         * modules/striconv (Link): Likewise.
45410         * modules/striconveh (Link): Likewise.
45411         * modules/xstriconv (Link): Likewise.
45412         * modules/unicodeio (Link): Likewise.
45413         * modules/propername (Link): Likewise.
45414         Reported by Jim Meyering.
45415
45416 2008-05-26  Jim Meyering  <meyering@redhat.com>
45417
45418         sha256: do not artificially restrict buffer length to be < 2^32
45419         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
45420         uint32_t to size_t.
45421         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
45422         to match.
45423
45424         avoid unaligned access errors, e.g., on sparc
45425         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
45426         direct access through a possibly-unaligned uint64* pointer.
45427         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
45428         direct access through a possibly-unaligned uint32* pointer.
45429         Prompted by this patch from Tom "spot" Callaway:
45430         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
45431
45432         sha512.c: fix typo in comment
45433         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
45434
45435 2008-05-25  Bruno Haible  <bruno@clisp.org>
45436
45437         * lib/set-mode-acl.c: Renamed from lib/acl.c.
45438         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
45439         (Makefile.am): Update lib_SOURCES.
45440
45441 2008-05-25  Bruno Haible  <bruno@clisp.org>
45442
45443         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
45444
45445 2008-05-25  Jim Meyering  <meyering@redhat.com>
45446
45447         useless-if-before-free: freed expr may have white-space differences
45448         * build-aux/useless-if-before-free: Recognize cases in which the
45449         freed expression differs from the tested one in embedded white
45450         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
45451         $1 was used, so we can't make any regexp shy.  Improved tests now
45452         detect this.
45453
45454         useless-if-before-free: accept white space in the expression.
45455         * build-aux/useless-if-before-free: For now, any white space
45456         in the expression must be identical in the free argument.
45457
45458         useless-if-before-free: efficiency tweak
45459         * build-aux/useless-if-before-free: Make the expression-matching
45460         regexp "shy".
45461         Make the *outer* regexp shy, not the expr-matching one.
45462
45463         update code-in-comment to accept cast of free arg
45464         * build-aux/useless-if-before-free: Update regexp.
45465
45466 2008-05-25  Bruno Haible  <bruno@clisp.org>
45467
45468         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
45469         * modules/copy-file-tests (Files, Makefile.am): Update.
45470         * tests/test-copy-file.c (func_test_copy): Update.
45471
45472 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
45473
45474         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
45475
45476 2008-05-23  Bruno Haible  <bruno@clisp.org>
45477
45478         Improve support for ACLs on OSF/1.
45479         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
45480         Remove fallback for unknown flavors of ACLs.
45481
45482 2008-05-22  Bruno Haible  <bruno@clisp.org>
45483
45484         Add support for ACLs on OSF/1.
45485         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
45486         replacements.
45487         (acl_free_text): New macro fallback.
45488         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
45489         acl_free.
45490         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
45491         acl_free_text function. Require AC_C_INLINE.
45492
45493 2008-05-22  Bruno Haible  <bruno@clisp.org>
45494
45495         Make copy_acl work on MacOS X 10.5.
45496         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
45497         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
45498         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
45499         If MODE_INSIDE_ACL, don't assume that every system has the same text
45500         representation for ACLs as FreeBSD.
45501         * lib/copy-acl.c (copy_acl): Add support for platforms with
45502         !MODE_INSIDE_ACL.
45503         * lib/file-has-acl.c (file_has_acl): Likewise.
45504         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
45505         FreeBSD, MacOS X, or IRIX, respectively.
45506
45507 2008-05-22  Bruno Haible  <bruno@clisp.org>
45508
45509         * lib/acl.h: Don't include <sys/acl.h>.
45510         (GETACLCNT): Move fallback to lib/acl-internal.h.
45511         * lib/acl-internal.h: Include <sys/acl.h> here.
45512         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
45513
45514 2008-05-22  Bruno Haible  <bruno@clisp.org>
45515
45516         Split off copy_acl function to separate file.
45517         * lib/copy-acl.c: New file, extracted from lib/acl.c.
45518         * lib/acl.c (copy_acl): Moved function to separate file.
45519         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
45520         * modules/acl (Files): Add lib/copy-acl.c.
45521         (Makefiles.am): Augment lib_SOURCES.
45522
45523 2008-05-22  Bruno Haible  <bruno@clisp.org>
45524
45525         * modules/copy-file-tests: New file.
45526         * tests/test-copy-file.sh: New file.
45527         * tests/test-copy-file.c: New file.
45528         * tests/test-copy-file-sameacls.c: New file.
45529
45530 2008-05-22  Eric Blake  <ebb9@byu.net>
45531
45532         Avoid gcc warning.
45533         * tests/test-memcmp.c (main): Pass NULL indirectly.
45534
45535 2008-05-21  Bruno Haible  <bruno@clisp.org>
45536
45537         Add reference doc about ACLs.
45538         * doc/acl-resources.txt: New file.
45539         * doc/acl-cygwin.txt: New file.
45540
45541 2008-05-21  Bruno Haible  <bruno@clisp.org>
45542
45543         Avoid one more warning from gcc.
45544         * lib/vasnprintf.c (IF_LINT): Update comments.
45545         (VASNPRINTF): Use it also for the 'prefix' array initializer.
45546
45547 2008-05-21  Jim Meyering  <meyering@redhat.com>
45548
45549         avoid a warning from gcc
45550         * lib/vasnprintf.c (IF_LINT): Define.
45551         (scale10_round_decimal_long_double):
45552         Use it to avoid a "may be used uninitialized" warning.
45553         (scale10_round_decimal_double): Likewise.
45554
45555 2008-05-21  Simon Josefsson  <simon@josefsson.org>
45556
45557         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
45558         declared.
45559
45560 2008-05-20  Bruno Haible  <bruno@clisp.org>
45561
45562         * tests/test-memcmp.c (main): Test also the sign of the result. Test
45563         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
45564
45565 2008-05-20  Simon Josefsson  <simon@josefsson.org>
45566
45567         * modules/memcmp-tests: New file.
45568         * tests/test-memcmp.c: New file.
45569
45570 2008-05-19  Bruno Haible  <bruno@clisp.org>
45571
45572         * modules/propername (Notice, configure.ac): Put quoted "..." into
45573         --keyword option.
45574         * lib/propername.h: Update comments accordingly.
45575         Reported by Eric Blake.
45576
45577 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
45578
45579         * modules/getpass-gnu (Depends-on): Add fseeko.
45580
45581 2008-05-19  Simon Josefsson  <simon@josefsson.org>
45582
45583         * modules/base64-tests: New file.
45584
45585 2008-05-19  Bo Borgerson <gigabo@gmail.com>
45586
45587         * lib/base64.c (base64_decode_ctx): If a decode context structure
45588         was passed in use it to ignore newlines.  If a context structure
45589         was _not_ passed in, continue to treat newlines as garbage (this
45590         is the historical behavior).  Formerly base64_decode.
45591         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
45592         takes a decode context structure.
45593         * lib/base64.h (base64_decode): Macro for four-argument calls.
45594         (base64_decode_alloc): Likewise.
45595         * lib/base64.c (base64_decode_ctx): If a decode context structure
45596         was passed in use it to ignore newlines.  If a context structure
45597         was _not_ passed in, continue to treat newlines as garbage (this
45598         is the historical behavior).  Formerly base64_decode.
45599         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
45600         takes a decode context structure.
45601         * lib/base64.h (base64_decode): Macro for four-argument calls.
45602         (base64_decode_alloc): Likewise.
45603
45604 2008-05-19  Jim Meyering  <meyering@redhat.com>
45605
45606         avoid a warning from gcc
45607         * lib/trim.c (IF_LINT): Define.
45608         (trim2): Use it to avoid a "may be used uninitialized" warning.
45609
45610         Fix doc typo.
45611         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
45612
45613 2008-05-19  Bruno Haible  <bruno@clisp.org>
45614
45615         * doc/glibc-functions/getpass.texi: Document limits of other
45616         implementations.
45617
45618 2008-05-19  Simon Josefsson  <simon@josefsson.org>
45619             Bruno Haible <bruno@clisp.org>
45620
45621         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
45622
45623 2008-05-18  Bruno Haible  <bruno@clisp.org>
45624
45625         * modules/propername: New file, from GNU gettext.
45626         * lib/propername.h: New file, from GNU gettext.
45627         * lib/propername.c: New file, from GNU gettext.
45628         * MODULES.html.sh (Internationalization functions): Add propername.
45629
45630 2008-05-16  Jim Meyering  <meyering@redhat.com>
45631             Bruno Haible  <bruno@clisp.org>
45632
45633         Avoid some warnings from "gcc -Wshadow".
45634         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
45635
45636 2008-05-15  Eric Blake  <ebb9@byu.net>
45637
45638         Extend previous patch to cygwin 1.7.0.
45639         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
45640         fast implementation in cygwin >= 1.7.0.
45641         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45642         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45643
45644 2008-05-15  Bruno Haible  <bruno@clisp.org>
45645
45646         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
45647         implementation in glibc >= 2.9.
45648         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45649         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45650
45651 2008-05-15  Bruno Haible  <bruno@clisp.org>
45652
45653         * MODULES.html.sh (Internationalization functions): Remove linebreak.
45654         (Unicode string functions): Add unilbrk/*.
45655         Reported by Karl Berry.
45656
45657 2008-05-15  Eric Blake  <ebb9@byu.net>
45658
45659         Fix violation of <stdbool.h> replacement in regex.
45660         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
45661         * lib/regexec.c (re_search_internal): Likewise.
45662         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
45663
45664 2008-05-15  Jim Meyering  <meyering@redhat.com>
45665
45666         avoid distracting test output when git or cvs is not found
45667         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
45668         * tests/test-vc-list-files-git.sh: Likewise.
45669
45670 2008-05-15  Eric Blake  <ebb9@byu.net>
45671
45672         Glibc finally accepted the memmem speedup code, bugzilla #5514.
45673         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
45674         glibc version.
45675         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
45676         * doc/posix-functions/strstr.texi (strstr): Likewise.
45677         * lib/str-two-way.h (MAX): Sychronize with glibc.
45678
45679 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
45680
45681         * lib/regcomp.c (optimize_utf8): Add a note on why we test
45682         opr.ctx_type.
45683         (calc_first): Initialize constraint field.
45684         (duplicate_node_closure): Use it instead of special casing ANCHORS.
45685         Fix grammar.
45686         (duplicate_node): Merge constraint field for all node types.
45687         (calc_eclosure_iter): Look at constraint field for all node types.
45688         * lib/regex_internal.c (create_cd_newstate): Don't look at
45689         opr.ctx_type.
45690
45691 2008-05-14  Bruno Haible  <bruno@clisp.org>
45692
45693         Help GCC to do better code generation.
45694         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
45695         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
45696         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
45697         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
45698         Declare with attribute 'malloc' if supported.
45699
45700 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
45701
45702         use "echo STR|wc -c" rather than unportable "expr length STR"
45703         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
45704         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
45705
45706 2008-05-14  Jim Meyering  <meyering@redhat.com>
45707
45708         use dd ibs=$n count=1 ... rather than less-portable head -c$n
45709         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
45710         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
45711         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
45712         via Collin Lasse.
45713
45714 2008-05-14  Eric Blake  <ebb9@byu.net>
45715
45716         Avoid quadratic growth in gl_LIBSOURCES.
45717         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
45718         Suggested by Bruno Haible.
45719
45720         Test xmemdup0.
45721         * modules/xmemdup0-tests: New file.
45722         * tests/test-xmemdup0.c: Likewise.
45723
45724 2008-05-13  Eric Blake  <ebb9@byu.net>
45725
45726         Split xmemdup0 into its own module.
45727         * modules/xmemdup0: New file.
45728         * lib/xmemdup0.h: Likewise.
45729         * lib/xmemdup0.c: Likewise.
45730         * MODULES.html.sh (Memory management functions): Add xmemdup0.
45731         * lib/xalloc.h (xmemdup0): Remove.
45732         * lib/xmalloc.c (xmemdup0): Likewise.
45733
45734 2008-05-13  Eric Blake  <ebb9@byu.net>
45735             Bruno Haible  <bruno@clisp.org>
45736
45737         Reduce number of forks required during autoconf.
45738         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
45739         and gl_LIBSOURCES_DIR.
45740         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
45741         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
45742         m4_syscmd per file.
45743         <m4_foreach_w>: Move...
45744         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
45745
45746 2008-05-13  Eric Blake  <ebb9@byu.net>
45747
45748         * gnulib-tool: Fix various comment typos.
45749
45750 2008-05-12  Bruno Haible  <bruno@clisp.org>
45751
45752         Tailor the linebreaking algorithm.
45753         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
45754
45755 2008-05-12  Bruno Haible  <bruno@clisp.org>
45756
45757         Update to Unicode 5.0.0.
45758         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
45759         LBP_JV, LBP_JT. Redistribute values.
45760         (unilbrk_table): Change size.
45761         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
45762         Unicode TR#14 rev. 22.
45763         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
45764         LBP_JV, LBP_JT. Redistribute values.
45765         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
45766         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
45767         Update.
45768         * lib/unilbrk/lbrkprop1.h: Regenerated.
45769         * lib/unilbrk/lbrkprop2.h: Regenerated.
45770         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
45771         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
45772         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
45773         Likewise.
45774         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
45775         Likewise.
45776         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
45777         result.
45778         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
45779         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
45780         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
45781         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
45782         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
45783         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
45784
45785 2008-05-11  Bruno Haible  <bruno@clisp.org>
45786
45787         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
45788
45789 2008-05-11  Bruno Haible  <bruno@clisp.org>
45790
45791         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
45792         * modules/unilbrk/gen-lbrk: New file.
45793
45794 2008-05-11  Bruno Haible  <bruno@clisp.org>
45795
45796         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
45797         * m4/sha512.m4 (gl_SHA512): Likewise.
45798
45799 2008-05-11  Jim Meyering  <meyering@redhat.com>
45800
45801         New modules: crypto/sha256, crypto/sha512 (from coreutils)
45802         * modules/crypto/sha256: New file.
45803         * modules/crypto/sha512: Likewise.
45804         * lib/sha256.c: Likewise.
45805         * lib/sha256.h: Likewise.
45806         * lib/sha512.c: Likewise.
45807         * lib/sha512.h: Likewise.
45808         * lib/u64.h: Likewise.
45809         * m4/sha256.m4: Likewise.
45810         * m4/sha512.m4: Likewise.
45811         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
45812
45813 2008-05-10  Bruno Haible  <bruno@clisp.org>
45814
45815         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
45816         (Input/Output <stdio.h>): Add xprintf.
45817         (Signal handling <signal.h>): Add strsignal.
45818         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
45819         (Core language properties): Add func.
45820         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
45821         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
45822         strings.
45823         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
45824         (Input/output): New section.
45825         (File system functions): Add openat-die, stat-macros.
45826         (Networking functions): Add sockets.
45827         (Unicode string functions): Add unictype/*.
45828         (Support for building libraries and executables): Add gperf.
45829         (Support for building documentation): Add agpl-3.0.
45830         (Misc): Add nocrash.
45831
45832 2008-05-10  Bruno Haible  <bruno@clisp.org>
45833
45834         * modules/unictype/gen-ctype: New file.
45835
45836 2008-05-10  Jim Meyering  <meyering@redhat.com>
45837
45838         Make chdir-safer.c more efficient on a system with no symlinks.
45839         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
45840         also if ELOOP is zero.  Suggested by Bruno Haible.
45841
45842         Make chdir-safer.c slightly safer.
45843         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
45844         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
45845
45846         Avoid compile failure on systems without ELOOP (like mingw).
45847         * lib/chdir-safer.c (ELOOP): Define if not already defined.
45848         Reported by Bruno Haible.
45849
45850 2008-05-10  Bruno Haible  <bruno@clisp.org>
45851
45852         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
45853         (is_utf8_encoding): Use a case-insensitive comparison.
45854         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
45855         streq.
45856
45857 2008-05-10  Bruno Haible  <bruno@clisp.org>
45858
45859         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
45860         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
45861         * lib/unilbrk/ulc-common.h (iconv_string_length,
45862         iconv_string_keeping_offsets): Remove declarations.
45863         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
45864         Don't include <iconv.h>, streq.h, xsize.h.
45865         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
45866         conversion.
45867         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
45868         <iconv.h>, streq.h, xsize.h.
45869         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
45870         conversion.
45871         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
45872         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
45873         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
45874         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
45875
45876 2008-05-10  Bruno Haible  <bruno@clisp.org>
45877
45878         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
45879         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
45880
45881         * modules/unilbrk/u32-width-linebreaks-tests: New file.
45882         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
45883
45884         * modules/unilbrk/u16-width-linebreaks-tests: New file.
45885         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
45886
45887         * modules/unilbrk/u8-width-linebreaks-tests: New file.
45888         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
45889
45890         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
45891         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
45892
45893         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
45894         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
45895
45896         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
45897         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
45898
45899         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
45900         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
45901
45902 2008-05-10  Bruno Haible  <bruno@clisp.org>
45903
45904         Split up 'linebreak' module.
45905         * lib/unilbrk.h: New file, based on lib/linebreak.h.
45906         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
45907         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
45908         modifications.
45909         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
45910         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
45911         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
45912         lib/linebreak.c.
45913         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
45914         lib/linebreak.c.
45915         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
45916         lib/linebreak.c.
45917         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
45918         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
45919         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
45920         lib/linebreak.c.
45921         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
45922         lib/linebreak.c.
45923         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
45924         lib/linebreak.c.
45925         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
45926         lib/linebreak.c.
45927         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
45928         lib/linebreak.c.
45929         * modules/unilbrk/base: New file.
45930         * modules/unilbrk/tables: New file.
45931         * modules/unilbrk/u8-possible-linebreaks: New file.
45932         * modules/unilbrk/u16-possible-linebreaks: New file.
45933         * modules/unilbrk/u32-possible-linebreaks: New file.
45934         * modules/unilbrk/ulc-common: New file.
45935         * modules/unilbrk/ulc-possible-linebreaks: New file.
45936         * modules/unilbrk/u8-width-linebreaks: New file.
45937         * modules/unilbrk/u16-width-linebreaks: New file.
45938         * modules/unilbrk/u32-width-linebreaks: New file.
45939         * modules/unilbrk/ulc-width-linebreaks: New file.
45940         * lib/linebreak.h: Remove file.
45941         * lib/linebreak.c: Remove file.
45942         * m4/linebreak.m4: Remove file.
45943         * modules/linebreak: Remove file.
45944         * NEWS: Mention the changes.
45945
45946 2008-05-09  Eric Blake  <ebb9@byu.net>
45947
45948         Add xmemdup0.
45949         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
45950         implementation.
45951         * lib/xmalloc.c (xmemdup0): New C implementation.
45952
45953 2008-05-08  Bruno Haible  <bruno@clisp.org>
45954
45955         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
45956
45957 2008-05-07  Eric Blake  <ebb9@byu.net>
45958
45959         Support cross-compilation of <wctype.h>.
45960         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
45961         AC_CACHE_CHECK.
45962
45963 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
45964
45965         * build-aux/vc-list-files: Add support for bzr.
45966
45967 2008-05-03  Jim Meyering  <meyering@redhat.com>
45968
45969         avoid failed assertion with tight malloc
45970         * tests/test-getndelim2.c: Correct an off-by-one assertion.
45971
45972 2008-05-03  Simon Josefsson  <simon@josefsson.org>
45973
45974         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
45975         are needed from arpa/inet.h.
45976         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
45977         Reported by Bruno Haible.
45978
45979 2008-05-02  Jim Meyering  <meyering@redhat.com>
45980
45981         avoid compilation error on FreeBSD 6
45982         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
45983
45984 2008-05-01  Jim Meyering  <meyering@redhat.com>
45985
45986         useless-if-before-free: correct --help's exit status description
45987         * build-aux/useless-if-before-free (usage): Like grep, exit 0
45988         for one or more matches, etc.  Reported by Bruno Haible.
45989
45990         vc-list-files: make the stand-alone gnulib test work
45991         * modules/vc-list-files-tests (configure.ac):
45992         Define and AC_SUBST abs_aux_dir.
45993         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
45994         $(abs_top_srcdir) to each script and having each of them
45995         duplicate the work of setting PATH, set PATH here, using
45996         the new variable, abs_aux_dir instead.
45997         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
45998         * tests/test-vc-list-files-git.sh: Likewise.
45999         Reported by Bruno Haible.
46000
46001 2008-05-01  Bruno Haible  <bruno@clisp.org>
46002
46003         * lib/getndelim2.c (getndelim2): Fix newsize computation during
46004         reallocation. Rename 'done' to 'found_delimiter'.
46005
46006 2008-05-01  Jim Meyering  <meyering@redhat.com>
46007
46008         vc-list-files: accommodate /bin/sh like the one from Solaris 10
46009         * build-aux/vc-list-files: Use `...`, not $(...).
46010
46011 2008-04-30  Jim Meyering  <meyering@redhat.com>
46012
46013         add tests for vc-list-files
46014         * modules/vc-list-files-tests: New module.
46015         * tests/test-vc-list-files-cvs.sh: New file.
46016         * tests/test-vc-list-files-git.sh: New file.
46017
46018         avoid a warning from gcc
46019         * lib/getndelim2.c (IF_LINT): Define.
46020         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
46021
46022         vc-list-files: work properly with build-aux/cvsu, too
46023         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
46024         to all cvs-based clauses.
46025
46026         vc-list-files: work properly in the CVS+awk case, too
46027         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
46028
46029         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
46030         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
46031         take more than one file argument, so .  Add quotes, just in case $dir
46032         ever contains a shell meta-character.  Prompted by Soren Hansen in
46033         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
46034
46035 2008-04-29  Eric Blake  <ebb9@byu.net>
46036
46037         Optimize getndelim2 to use block operations when possible.
46038         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
46039         freadseek, and memchr2.
46040         * lib/getndelim2.c (getndelim2): Use them for block reads.
46041
46042 2008-04-29  Bruno Haible  <bruno@clisp.org>
46043
46044         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
46045         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46046         * modules/inet_ntop (Depends-on): Add extensions.
46047         * modules/inet_pton (Depends-on): Likewise.
46048         Reported by Simon Josefsson.
46049
46050 2008-04-29  Jim Meyering  <meyering@redhat.com>
46051
46052         When the is more than one match in a block, match all of them.
46053         * build-aux/useless-if-before-free: Iterate through each block
46054         until there are no more matches.
46055
46056         Fix broken useless-if-before-free script.
46057         * build-aux/useless-if-before-free: Fix typo: missing "?" after
46058         the expression to match cast of argument to free-like function.
46059
46060 2008-04-29  Eric Blake  <ebb9@byu.net>
46061
46062         Use new header.
46063         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
46064
46065 2008-04-29  Jim Meyering  <meyering@redhat.com>
46066
46067         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
46068         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
46069         by gnulib to exist and to declare e.g., inet_ntop.
46070         Don't include "inet_ntop.h", now removed.
46071
46072         * m4/arpa_inet_h.m4: Remove trailing blanks.
46073
46074 2008-04-29  Eric Blake  <ebb9@byu.net>
46075
46076         Silence valgrind on safe reads beyond potential array bounds.
46077         * lib/rawmemchr.valgrind: New file.
46078         * lib/strchrnul.valgrind: Likewise.
46079         * modules/rawmemchr (Files): Distribute new file.
46080         * modules/strchrnul (Files): Likewise.
46081         Suggested by Bruno Haible.
46082
46083 2008-04-29  Bruno Haible  <bruno@clisp.org>
46084
46085         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
46086         (inet_ntop, inet_pton): Change portability warning's wording.
46087         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
46088         Invoke gl_CHECK_NEXT_HEADERS.
46089         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
46090         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
46091         set ARPA_INET_H.
46092         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46093         * modules/arpa_inet (Description): No longer only for systems that
46094         lack it.
46095         (Depends-on): Add include_next.
46096         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
46097         HAVE_ARPA_INET_H.
46098
46099 2008-04-29  Jim Meyering  <meyering@redhat.com>
46100
46101         * modules/mkdir (License): Re-license as LGPLv2+.
46102
46103 2008-04-29  Bruno Haible  <bruno@clisp.org>
46104
46105         * modules/rawmemchr (Maintainer): Set to Eric.
46106         * modules/strchrnul (Maintainer): Likewise.
46107
46108 2008-04-29  Simon Josefsson  <simon@josefsson.org>
46109
46110         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
46111         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
46112
46113         * modules/arpa_inet (arpa/inet.h): Use them.
46114
46115 2008-04-28  Eric Blake  <ebb9@byu.net>
46116
46117         Test getndelim2.
46118         * modules/getndelim2-tests: New file.
46119         * tests/test-getndelim2.c: Likewise.
46120         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
46121         stream.
46122         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
46123
46124         * MODULES.html.sh: Document new module.
46125
46126 2008-04-20  Bruno Haible  <bruno@clisp.org>
46127
46128         * lib/c-stack.c (die): Use raise.
46129         * modules/c-stack (Depends-on): Add raise.
46130
46131 2008-04-28  Bruno Haible  <bruno@clisp.org>
46132
46133         Expect rpmatch to be declared.
46134         * lib/yesno.c (rpmatch): Remove declaration.
46135
46136         Declare rpmatch.
46137         * lib/stdlib.in.h (rpmatch): New declaration.
46138         * lib/rpmatch.c: Include <stdlib.h> first.
46139         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
46140         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
46141         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
46142         HAVE_RPMATCH.
46143         * modules/rpmatch (Depends-on): Add stdlib, extensions.
46144         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46145         (Include): Set to <stdlib.h>.
46146         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
46147         HAVE_RPMATCH.
46148         * NEWS: Document the change.
46149
46150 2008-04-28  Bruno Haible  <bruno@clisp.org>
46151
46152         Change rpmatch to use nl_langinfo when appropriate.
46153         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
46154         (N_): New macro.
46155         (localized_pattern): New function/macro.
46156         (try): Remove match, nomatch arguments. Copy the pattern into safe
46157         memory before caching it.
46158         (rpmatch): Use localized_pattern. Add translator comments.
46159         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
46160         Suggested by Eric Blake.
46161         * modules/rpmatch (Depends-on): Add stdbool.
46162
46163 2008-04-28  Eric Blake  <ebb9@byu.net>
46164
46165         Add rawmemchr module, matching glibc.
46166         * modules/string (Makefile.am): New indicator.
46167         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
46168         * lib/string.in.h (rawmemchr): Declare when appropriate.
46169         * modules/rawmemchr: New file.
46170         * m4/rawmemchr.m4: Likewise.
46171         * lib/rawmemchr.c: Likewise.
46172         * modules/rawmemchr-tests: Likewise.
46173         * tests/test-rawmemchr.c: Likewise.
46174         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
46175         module.
46176         * modules/strchrnul (Depends-on): Add rawmemchr.
46177         * lib/strchrnul.c (strchrnul): Optimize a corner case.
46178
46179         Whitespace cleanup.
46180         * tests/test-strchrnul.c: Reindent.
46181         * lib/strchrnul.c: Likewise.
46182
46183         Optimize and test strchrnul.
46184         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
46185         * modules/strchrnul-tests: New file.
46186         * tests/test-strchrnul.c: Likewise.
46187
46188         Remove intprops dependency.
46189         * modules/memchr (Depends-on): Remove intprops.
46190         * modules/memrchr (Depends-on): Likewise.
46191         * modules/memchr2 (Depends-on): Likewise.
46192         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
46193         * lib/memrchr.c (__memrchr): Likewise.
46194         * lib/memrchr2.c (memchr2): Likewise.
46195         Reported by Simon Josefsson.
46196
46197 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46198
46199         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
46200         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46201
46202 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46203
46204         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
46205
46206         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
46207
46208         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
46209
46210         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
46211         declarations.
46212         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
46213
46214         * m4/inet_pton.m4: Don't check for header files.
46215
46216         * m4/inet_ntop.m4: Don't check for header files.
46217
46218 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46219
46220         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
46221         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
46222         trigger for cygwin).
46223         Reported by Bruno Haible  <bruno@clisp.org>.
46224
46225 2008-04-28  Bruno Haible  <bruno@clisp.org>
46226
46227         * doc/posix-functions/strdup.texi: Mention mingw problem.
46228
46229 2008-04-27  Bruno Haible  <bruno@clisp.org>
46230
46231         * modules/stat-time-tests (Depends-on): Add sleep.
46232         * tests/test-stat-time.c (force_unlink): New function.
46233         (cleanup): Use it.
46234         (test_mtime): Remove the ctime related tests.
46235         (test_ctime): New function, containing the ctime related tests.
46236         (main): Call test_ctime, except on native Windows platforms.
46237
46238 2008-04-27  Bruno Haible  <bruno@clisp.org>
46239
46240         * lib/rpmatch.c (rpmatch): Add some comments.
46241         Reported by James Youngman <jay@gnu.org>.
46242
46243 2008-04-27  Bruno Haible  <bruno@clisp.org>
46244
46245         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
46246         quiet NaNs.
46247
46248 2008-04-27  Bruno Haible  <bruno@clisp.org>
46249
46250         Make test-yesno.sh work on mingw.
46251         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
46252         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
46253         (main): Set stdin to binary mode.
46254         * modules/yesno-tests (Depends-on): Add binary-io.
46255
46256 2008-04-27  Bruno Haible  <bruno@clisp.org>
46257
46258         Fix 'isfinite' on x86, x86_64, ia64 platforms.
46259         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
46260         argument that lie outside the IEEE 854 domain.
46261         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
46262         (gl_ISFINITE): Use it.
46263         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
46264
46265 2008-04-27  Bruno Haible  <bruno@clisp.org>
46266
46267         Allow local renaming in config.h.
46268         * lib/memrchr.c (memrchr): Don't undefine outside libc.
46269
46270 2008-04-27  Bruno Haible  <bruno@clisp.org>
46271
46272         * lib/memchr.c (__memchr): Change type of 'i'.
46273         * lib/memchr2.c (memchr2): Likewise.
46274
46275 2008-04-26  Eric Blake  <ebb9@byu.net>
46276         and Bruno Haible  <bruno@clisp.org>
46277
46278         Optimize and test memrchr.
46279         * modules/memrchr (Depends-on): Add intprops.
46280         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
46281         * modules/memrchr-tests: New file.
46282         * tests/test-memrchr.c: New file.
46283
46284 2008-04-26  Bruno Haible  <bruno@clisp.org>
46285
46286         Add tentative support for DragonFly BSD.
46287         * lib/stdio-impl.h: Add macros for DragonFly BSD.
46288         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
46289         fp.
46290         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
46291         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
46292         * lib/fpurge.c (fpurge): Likewise.
46293         * lib/freadable.c (freaadable): Likewise.
46294         * lib/freadahead.c (freadahead): Likewise.
46295         * lib/freading.c (freading): Likewise.
46296         * lib/freadptr.c (freadptr): Likewise.
46297         * lib/freadseek.c (freadptrinc): Likewise.
46298         * lib/fseeko.c (fseeko): Likewise.
46299         * lib/fseterr.c (fseterr): Likewise.
46300         * lib/fwritable.c (fwritable): Likewise.
46301         * lib/fwriting.c (fwriting): Likewise.
46302
46303 2008-04-26  Bruno Haible  <bruno@clisp.org>
46304
46305         * lib/stdio-impl.h: New file.
46306         * lib/fbufmode.c: Include stdio-impl.h.
46307         (fbufmode): Use fp_, remove redundant #defines.
46308         * lib/fflush.c: Include stdio-impl.h.
46309         (clear_ungetc_buffer): Remove redundant #defines.
46310         * lib/fpurge.c: Include stdio-impl.h.
46311         (fpurge): Remove redundant #defines.
46312         * lib/freadable.c: Include stdio-impl.h.
46313         (freadable): Remove redundant #defines.
46314         * lib/freadahead.c: Include stdio-impl.h.
46315         (freadahead): Remove redundant #defines.
46316         * lib/freading.c: Include stdio-impl.h.
46317         (freading): Remove redundant #defines.
46318         * lib/freadptr.c: Include stdio-impl.h.
46319         (freadptr): Remove redundant #defines.
46320         * lib/freadseek.c: Include stdio-impl.h.
46321         (freadptrinc): Remove redundant #defines.
46322         * lib/fseeko.c: Include stdio-impl.h.
46323         (rpl_fseeko): Remove redundant #defines.
46324         * lib/fseterr.c: Include stdio-impl.h.
46325         (fseterr): Remove redundant #defines.
46326         * lib/fwritable.c: Include stdio-impl.h.
46327         (fwritable: Remove redundant #defines.
46328         * lib/fwriting.c: Include stdio-impl.h.
46329         (fwriting): Remove redundant #defines.
46330         * modules/fbufmode (Files): Add lib/stdio-impl.h.
46331         * modules/fflush (Files): Likewise.
46332         * modules/fpurge (Files): Likewise.
46333         * modules/freadable (Files): Likewise.
46334         * modules/freadahead (Files): Likewise.
46335         * modules/freading (Files): Likewise.
46336         * modules/freadptr (Files): Likewise.
46337         * modules/freadseek (Files): Likewise.
46338         * modules/fseeko (Files): Likewise.
46339         * modules/fseterr (Files): Likewise.
46340         * modules/fwritable (Files): Likewise.
46341         * modules/fwriting (Files): Likewise.
46342
46343 2008-04-26  Bruno Haible  <bruno@clisp.org>
46344
46345         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
46346         restore_seek_optimization, update_fpos_cache): New functions, extracted
46347         from rpl_fflush.
46348         (rpl_fflush): Use them.
46349         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
46350         (gl_REPLACE_FFLUSH): Use it.
46351
46352 2008-04-26  Bruno Haible  <bruno@clisp.org>
46353
46354         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
46355         on Solaris.
46356         * tests/test-xstrtoimax.sh: Likewise.
46357         * tests/test-xstrtoumax.sh: Likewise.
46358         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46359
46360 2008-04-26  Bruno Haible  <bruno@clisp.org>
46361
46362         * modules/memchr-tests: New file.
46363         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
46364
46365 2008-04-26  Eric Blake  <ebb9@byu.net>
46366             Bruno Haible  <bruno@clisp.org>
46367
46368         * lib/memchr.c: Include intprops.h.
46369         (__memchr): Optimize parallel detection of matching bytes. Rename local
46370         variables. Add explanatory comments.
46371
46372 2008-04-26  Bruno Haible  <bruno@clisp.org>
46373
46374         Fix module 'memchr', broken since 2000-10-28.
46375         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
46376
46377 2008-04-26  Bruno Haible  <bruno@clisp.org>
46378
46379         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
46380         comments.
46381
46382 2008-04-25  Eric Blake  <ebb9@byu.net>
46383
46384         Use native fstatat on cygwin 1.7.0.
46385         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
46386         first.
46387
46388 2008-04-23  Eric Blake  <ebb9@byu.net>
46389
46390         Improve memchr2 performance.
46391         * lib/memchr2.c (memchr2): Further optimize parallel detection of
46392         NUL bytes.
46393         * modules/memchr2 (Depends-on): Use intprops.h.
46394
46395 2008-04-23  Simon Josefsson  <simon@josefsson.org>
46396
46397         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
46398         an inline function instead of a CPP macro.  Patch by Ben Pfaff
46399         <blp@cs.stanford.edu>.
46400
46401 2008-04-23  Simon Josefsson  <simon@josefsson.org>
46402
46403         * lib/arpa_inet.in.h: New file.
46404
46405         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
46406         (Makefile.am): Sed in substitute header file.
46407
46408         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
46409         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
46410
46411         * modules/inet_ntop (configure.ac): Use
46412         gl_ARPA_INET_MODULE_INDICATOR.
46413
46414         * modules/inet_pton (configure.ac): Use
46415         gl_ARPA_INET_MODULE_INDICATOR.
46416
46417 2008-04-22  Jim Meyering  <meyering@redhat.com>
46418
46419         * modules/verify (License): Re-license as LGPLv2+.
46420
46421 2008-04-22  Simon Josefsson  <simon@josefsson.org>
46422
46423         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
46424         parameter to void* as per POSIX standard (MinGW uses char*).
46425
46426 2008-04-21  Bruno Haible  <bruno@clisp.org>
46427
46428         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
46429         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
46430         Define to replacements if REPLACE_ISWCNTRL is 1.
46431         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
46432         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
46433         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
46434         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
46435         what it fixes.
46436         * doc/posix-functions/iswalpha.texi: Likewise.
46437         * doc/posix-functions/iswblank.texi: Likewise.
46438         * doc/posix-functions/iswcntrl.texi: Likewise.
46439         * doc/posix-functions/iswdigit.texi: Likewise.
46440         * doc/posix-functions/iswgraph.texi: Likewise.
46441         * doc/posix-functions/iswlower.texi: Likewise.
46442         * doc/posix-functions/iswprint.texi: Likewise.
46443         * doc/posix-functions/iswpunct.texi: Likewise.
46444         * doc/posix-functions/iswspace.texi: Likewise.
46445         * doc/posix-functions/iswupper.texi: Likewise.
46446         * doc/posix-functions/iswxdigit.texi: Likewise.
46447         Reported by Alain Guibert.
46448
46449 2008-04-21  Bruno Haible  <bruno@clisp.org>
46450
46451         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
46452         Patch by Alain Guibert.
46453
46454 2008-04-21  Bruno Haible  <bruno@clisp.org>
46455
46456         Fix test failures on mingw.
46457         * tests/test-xstrtol.c (print_no_progname): New function.
46458         (main): Install it in error_print_progname hook.
46459         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
46460         * tests/test-xstrtoimax.sh: Likewise.
46461         * tests/test-xstrtoumax.sh: Likewise.
46462
46463 2008-04-21  Bruno Haible  <bruno@clisp.org>
46464
46465         Fix test failure on mingw.
46466         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
46467
46468 2008-04-21  Bruno Haible  <bruno@clisp.org>
46469
46470         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
46471         Actually assign a value.
46472
46473 2008-04-20  Bruno Haible  <bruno@clisp.org>
46474
46475         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
46476         take 2.
46477         * lib/canonicalize.c (canonicalize_file_name): Elide if the
46478         'canonicalize-lgpl' module is also used.
46479         * lib/canonicalize-lgpl.c: Undo last change.
46480         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
46481
46482 2008-04-20  Bruno Haible  <bruno@clisp.org>
46483
46484         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
46485         config.h. Provide _mkdir based fallback for mingw.
46486         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
46487         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
46488         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
46489         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
46490         rather than defining mkdir in config.h.
46491         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
46492         (gl_SYS_STAT_H_DEFAULTS): New macro.
46493         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
46494         HAVE_IO_H any more.
46495         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
46496         HAVE_DECL_MKDIR and HAVE_IO_H.
46497
46498 2008-04-20  Bruno Haible  <bruno@clisp.org>
46499
46500         * lib/isapipe.c: Port to native Windows platforms.
46501
46502 2008-04-20  Bruno Haible  <bruno@clisp.org>
46503
46504         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
46505
46506 2008-04-21  Eric Blake  <ebb9@byu.net>
46507
46508         Work around preprocessors that don't handle UINTMAX_MAX.
46509         * lib/memchr2.c (memchr2): Avoid embedded #if.
46510         Reported by Alain Guibert, fix suggested by Bruno Haible.
46511
46512 2008-04-21  Simon Josefsson  <simon@josefsson.org>
46513
46514         * doc/posix-functions/strftime.texi (strftime): Explain better
46515         Windows incompatibility.  Suggested by Micah Cowan
46516         <micah@cowan.name>.
46517
46518 2008-04-20  Bruno Haible  <bruno@clisp.org>
46519
46520         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
46521         unistr/u8-mblen.
46522
46523 2008-04-20  Bruno Haible  <bruno@clisp.org>
46524
46525         Fix test failure on platforms with non-GNU iconv.
46526         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
46527         (U_TO_U8): Use it, rather than u16_to_u8.
46528         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
46529         units at the end of the input string.
46530         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
46531
46532 2008-04-20  Bruno Haible  <bruno@clisp.org>
46533
46534         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
46535         when the resulting length is 0.
46536         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
46537
46538 2008-04-20  Bruno Haible  <bruno@clisp.org>
46539
46540         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
46541         works.
46542         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
46543
46544 2008-04-20  Bruno Haible  <bruno@clisp.org>
46545
46546         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
46547         * modules/tsearch-tests (configure.ac): Test for initstate function.
46548
46549 2008-04-20  Bruno Haible  <bruno@clisp.org>
46550
46551         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
46552         for nlink_t if missing.
46553         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
46554
46555 2008-04-19  Bruno Haible  <bruno@clisp.org>
46556
46557         Work around snprintf bug on Linux libc5.
46558         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
46559         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
46560         gl_SNPRINTF_SIZE1.
46561         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46562         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
46563         that test failed.
46564         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
46565         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
46566         * modules/snprintf (Files): Add m4/printf.m4.
46567         * modules/vsnprintf (Files): Likewise.
46568         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
46569         * doc/posix-functions/vsnprintf.texi: Likewise.
46570
46571 2008-04-19  Bruno Haible  <bruno@clisp.org>
46572
46573         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
46574         from 0.0058 to less than 10^-7.
46575
46576 2008-04-19  Bruno Haible  <bruno@clisp.org>
46577
46578         Fix rounding when a precision is given.
46579         * lib/vasnprintf.c (is_borderline): New function.
46580         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
46581         9...9x.
46582         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
46583         %e, %g.
46584         * tests/test-vasprintf-posix.c (test_function): Likewise.
46585         * tests/test-snprintf-posix.h (test_function): Likewise.
46586         * tests/test-sprintf-posix.h (test_function): Likewise.
46587         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
46588         * tests/test-printf-posix.h (test_function): Likewise.
46589         * tests/test-printf-posix.output: Update.
46590         Reported by John Darrington <john@darrington.wattle.id.au> via
46591         Ben Pfaff <blp@cs.stanford.edu>.
46592
46593 2008-04-18  Simon Josefsson  <simon@josefsson.org>
46594
46595         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
46596         Suggested by Bruno Haible <bruno@clisp.org>.
46597
46598 2008-04-17  Bruno Haible  <bruno@clisp.org>
46599
46600         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
46601         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
46602         implementation.
46603         Patch by Bruce Merry <bmerry@gmail.com>.
46604
46605 2008-04-17  Simon Josefsson  <simon@josefsson.org>
46606
46607         * doc/posix-functions/strftime.texi (strftime): Mention that %e
46608         doesn't work under Windows.
46609
46610 2008-04-16  Bruno Haible  <bruno@clisp.org>
46611
46612         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
46613         New macros.
46614         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
46615         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
46616         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
46617         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
46618         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
46619         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
46620         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
46621         macros.
46622         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
46623         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
46624         Northern Sotho, Uighur.
46625
46626 2008-04-16  Bruno Haible  <bruno@clisp.org>
46627
46628         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
46629         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
46630         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
46631         Reported by Daniel Bergström <daniel@octocode.com>.
46632
46633 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
46634             Bruno Haible  <bruno@clisp.org>
46635
46636         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
46637         function.
46638         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
46639         New functions, mostly extracted from gl_locale_name_default.
46640         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
46641
46642 2008-04-16  Eric Blake  <ebb9@byu.net>
46643
46644         Adjust strtod detection to catch glibc 2.7 bug.
46645         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
46646         Reported by John Gatewood Ham.
46647
46648 2008-04-16  Bruno Haible  <bruno@clisp.org>
46649
46650         Add tentative support for Linux libc5.
46651         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
46652         * lib/fpurge.c (fpurge): Likewise.
46653         * lib/freadable.c (freadable): Likewise.
46654         * lib/freadahead.c (freadahead): Likewise.
46655         * lib/freading.c (freading): Likewise.
46656         * lib/freadptr.c (freadptr): Likewise.
46657         * lib/freadseek.c (freadptrinc): Likewise.
46658         * lib/fseeko.c (rpl_fseeko): Likewise.
46659         * lib/fseterr.c (fseterr): Likewise.
46660         * lib/fwritable.c (fwritable): Likewise.
46661         * lib/fwriting.c (fwriting): Likewise.
46662         Reported by Alain Guibert <alguibert+bts@free.fr>.
46663
46664 2008-04-15  Bruno Haible  <bruno@clisp.org>
46665
46666         * modules/mathl (configure.ac): Define module indicator.
46667
46668 2008-04-15  Bruno Haible  <bruno@clisp.org>
46669
46670         * lib/logl.c (logl): Remove unused variables.
46671
46672 2008-04-15  Bruno Haible  <bruno@clisp.org>
46673
46674         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
46675         fails.
46676
46677 2008-04-15  Bruno Haible  <bruno@clisp.org>
46678
46679         * lib/trim.c (trim2): Fix argument of isspace() macro.
46680
46681 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
46682
46683         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
46684         to 0.
46685         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
46686
46687 2008-04-14  Bruno Haible  <bruno@clisp.org>
46688
46689         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
46690         AC_LANG_PROGRAM argument.
46691         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
46692         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
46693         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
46694         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
46695         * m4/math_h.m4 (gl_MATH_H): Likewise.
46696         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
46697         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46698         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
46699         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
46700         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
46701         * m4/regex.m4 (gl_REGEX): Likewise.
46702         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
46703         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
46704         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46705         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
46706         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46707         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46708         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46709         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
46710
46711 2008-04-14  Jim Meyering  <meyering@redhat.com>
46712
46713         test-strtod: fix typos: s/abs/fabs/
46714         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
46715
46716 2008-04-13  Bruno Haible  <bruno@clisp.org>
46717
46718         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
46719         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
46720         module is also used and while not building the reloc-wrapper.
46721
46722 2008-04-13  Bruno Haible  <bruno@clisp.org>
46723
46724         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
46725
46726 2008-04-13  Bruno Haible  <bruno@clisp.org>
46727
46728         Fix AIX compilation failure introduced on 2008-04-02.
46729         * tests/test-frexp.c (exp): Undefine before redefining.
46730         * tests/test-frexpl.c (exp): Likewise.
46731
46732 2008-04-13  Bruno Haible  <bruno@clisp.org>
46733
46734         Work around a HP-UX stdio bug.
46735         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
46736         * tests/test-ftello.c (main): Likewise.
46737         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
46738         * doc/posix-functions/ftello.texi: Likewise.
46739
46740 2008-04-13  Bruno Haible  <bruno@clisp.org>
46741
46742         Make test-signbit pass on HP-UX/hppa.
46743         * tests/test-signbit.c (minus_zerol): New variable.
46744         (test_signbitl): Use it.
46745
46746 2008-04-13  Bruno Haible  <bruno@clisp.org>
46747
46748         Make truncl work on OSF/1 4.0.
46749         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
46750         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
46751         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
46752         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
46753         HAVE_DECL_TRUNCL.
46754         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
46755         HAVE_DECL_TRUNCL.
46756         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
46757
46758 2008-04-13  Bruno Haible  <bruno@clisp.org>
46759
46760         * lib/unictype.h: Remove trailing comma from enumeration definitions.
46761
46762 2008-04-13  Bruno Haible  <bruno@clisp.org>
46763
46764         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
46765         expression, so as to avoid HP-UX 11 cc compiler bug.
46766
46767 2008-04-13  Bruno Haible  <bruno@clisp.org>
46768
46769         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
46770
46771 2008-04-13  Bruno Haible  <bruno@clisp.org>
46772
46773         * lib/git-merge-changelog.c: Remove empty declaration outside of
46774         functions.
46775
46776 2008-04-13  Bruno Haible  <bruno@clisp.org>
46777
46778         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
46779
46780 2008-04-13  Bruno Haible  <bruno@clisp.org>
46781
46782         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
46783         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
46784         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
46785         also if it exists but lacks definitions of the SHUT_* macros.
46786         * modules/sys_socket (Description): Update.
46787         Reported by Elbert Pol <e.pol@chello.nl>.
46788
46789 2008-04-13  Bruno Haible  <bruno@clisp.org>
46790
46791         * lib/localcharset.c (OS2): Don't redefine if already defined.
46792         Reported by Elbert Pol <e.pol@chello.nl>.
46793
46794 2008-04-13  Bruno Haible  <bruno@clisp.org>
46795
46796         * lib/binary-io.h [__EMX__]: Include <io.h>.
46797         Reported by Elbert Pol <e.pol@chello.nl>.
46798
46799 2008-04-12  Bruno Haible  <bruno@clisp.org>
46800
46801         * lib/fpucw.h: Enable the definitions also for x86_64.
46802         Needed for NetBSD/x86_64.
46803         Reported by Thomas Klausner <tk@giga.or.at>.
46804
46805 2008-04-12  Bruno Haible  <bruno@clisp.org>
46806
46807         * tests/test-strtod.c: Include isnand.h.
46808         (main): Use isnand instead of isnan.
46809         Reported by Jim Meyering.
46810
46811 2008-04-12  Bruno Haible  <bruno@clisp.org>
46812
46813         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
46814         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
46815
46816 2008-04-12  Jim Meyering  <meyering@redhat.com>
46817
46818         * m4/math_h.m4 (gl_MATH_H): Fix typos.
46819
46820 2008-04-12  Bruno Haible  <bruno@clisp.org>
46821
46822         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
46823         Reported by Elbert Pol <e.pol@chello.nl>.
46824
46825 2008-04-12  Eric Blake  <ebb9@byu.net>
46826
46827         Work around Solaris 10 math.h bug.
46828         * m4/math_h.m4 (gl_MATH_H): Check for bug.
46829         (gl_MATH_H_DEFAULTS): Set up default.
46830         * modules/math (Makefile.am): Replace new indicators.
46831         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
46832         * tests/test-math.c (main): Test this.
46833         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
46834         * doc/posix-headers/math.texi (math.h): Mention bug.
46835         Reported by Nelson H. F. Beebe and Jim Meyering.
46836
46837 2008-04-11  Bruno Haible  <bruno@clisp.org>
46838
46839         Adapt to future versions of Apple GCC.
46840         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
46841         Reported by Peter O'Gorman <peter@pogma.com>.
46842
46843 2008-04-11  Bruno Haible  <bruno@clisp.org>
46844
46845         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
46846
46847 2008-04-11  Bruno Haible  <bruno@clisp.org>
46848
46849         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
46850
46851         * modules/getaddrinfo-tests (Makefile.am): Define
46852         test_getaddrinfo_LDADD.
46853
46854 2008-04-11  Bruno Haible  <bruno@clisp.org>
46855
46856         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
46857         (init): Fix syntax error.
46858         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
46859         is declared.
46860
46861 2008-04-11  Bruno Haible  <bruno@clisp.org>
46862
46863         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
46864         * modules/glob (Depends-on): Add stdbool.
46865
46866 2008-04-11  Bruno Haible  <bruno@clisp.org>
46867
46868         * lib/trim.c: Include <string.h>.
46869
46870 2008-04-11  Eric Blake  <ebb9@byu.net>
46871
46872         Avoid compile failure on OS/2.
46873         * lib/regex_internal.h (internal_function): Disable optimization
46874         on OS/2 (__EMX__), where it caused compiler error.
46875         Reported by Elbert Pol.
46876
46877 2008-04-11  Bruno Haible  <bruno@clisp.org>
46878
46879         Flush the standard error stream before aborting. Needed on mingw.
46880         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
46881         * tests/test-array_list.c (ASSERT): Likewise.
46882         * tests/test-array_oset.c (ASSERT): Likewise.
46883         * tests/test-avltree_list.c (ASSERT): Likewise.
46884         * tests/test-avltree_oset.c (ASSERT): Likewise.
46885         * tests/test-avltreehash_list.c (ASSERT): Likewise.
46886         * tests/test-binary-io.c (ASSERT): Likewise.
46887         * tests/test-byteswap.c (ASSERT): Likewise.
46888         * tests/test-c-ctype.c (ASSERT): Likewise.
46889         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
46890         * tests/test-c-strcasestr.c (ASSERT): Likewise.
46891         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
46892         * tests/test-c-strstr.c (ASSERT): Likewise.
46893         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
46894         * tests/test-canonicalize.c (ASSERT): Likewise.
46895         * tests/test-carray_list.c (ASSERT): Likewise.
46896         * tests/test-ceilf1.c (ASSERT): Likewise.
46897         * tests/test-ceilf2.c (ASSERT): Likewise.
46898         * tests/test-ceill.c (ASSERT): Likewise.
46899         * tests/test-count-one-bits.c (ASSERT): Likewise.
46900         * tests/test-fbufmode.c (ASSERT): Likewise.
46901         * tests/test-fflush2.c (ASSERT): Likewise.
46902         * tests/test-floorf1.c (ASSERT): Likewise.
46903         * tests/test-floorf2.c (ASSERT): Likewise.
46904         * tests/test-floorl.c (ASSERT): Likewise.
46905         * tests/test-fopen.c (ASSERT): Likewise.
46906         * tests/test-fpending.c (ASSERT): Likewise.
46907         * tests/test-fprintf-posix.c (ASSERT): Likewise.
46908         * tests/test-fpurge.c (ASSERT): Likewise.
46909         * tests/test-freadable.c (ASSERT): Likewise.
46910         * tests/test-freadahead.c (ASSERT): Likewise.
46911         * tests/test-freading.c (ASSERT): Likewise.
46912         * tests/test-freadptr.c (ASSERT): Likewise.
46913         * tests/test-freadptr2.c (ASSERT): Likewise.
46914         * tests/test-freadseek.c (ASSERT): Likewise.
46915         * tests/test-freopen.c (ASSERT): Likewise.
46916         * tests/test-frexp.c (ASSERT): Likewise.
46917         * tests/test-frexpl.c (ASSERT): Likewise.
46918         * tests/test-fseek.c (ASSERT): Likewise.
46919         * tests/test-fseeko.c (ASSERT): Likewise.
46920         * tests/test-fstrcmp.c (ASSERT): Likewise.
46921         * tests/test-ftell.c (ASSERT): Likewise.
46922         * tests/test-ftello.c (ASSERT): Likewise.
46923         * tests/test-func.c (ASSERT): Likewise.
46924         * tests/test-fwritable.c (ASSERT): Likewise.
46925         * tests/test-fwriting.c (ASSERT): Likewise.
46926         * tests/test-getdelim.c (ASSERT): Likewise.
46927         * tests/test-getline.c (ASSERT): Likewise.
46928         * tests/test-i-ring.c (ASSERT): Likewise.
46929         * tests/test-iconv-utf.c (ASSERT): Likewise.
46930         * tests/test-iconv.c (ASSERT): Likewise.
46931         * tests/test-isfinite.c (ASSERT): Likewise.
46932         * tests/test-isnand.c (ASSERT): Likewise.
46933         * tests/test-isnanf.c (ASSERT): Likewise.
46934         * tests/test-isnanl.h (ASSERT): Likewise.
46935         * tests/test-ldexpl.c (ASSERT): Likewise.
46936         * tests/test-linked_list.c (ASSERT): Likewise.
46937         * tests/test-linkedhash_list.c (ASSERT): Likewise.
46938         * tests/test-localename.c (ASSERT): Likewise.
46939         * tests/test-lseek.c (ASSERT): Likewise.
46940         * tests/test-mbscasecmp.c (ASSERT): Likewise.
46941         * tests/test-mbscasestr1.c (ASSERT): Likewise.
46942         * tests/test-mbscasestr2.c (ASSERT): Likewise.
46943         * tests/test-mbscasestr3.c (ASSERT): Likewise.
46944         * tests/test-mbscasestr4.c (ASSERT): Likewise.
46945         * tests/test-mbschr.c (ASSERT): Likewise.
46946         * tests/test-mbscspn.c (ASSERT): Likewise.
46947         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
46948         * tests/test-mbspbrk.c (ASSERT): Likewise.
46949         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
46950         * tests/test-mbsrchr.c (ASSERT): Likewise.
46951         * tests/test-mbsspn.c (ASSERT): Likewise.
46952         * tests/test-mbsstr1.c (ASSERT): Likewise.
46953         * tests/test-mbsstr2.c (ASSERT): Likewise.
46954         * tests/test-mbsstr3.c (ASSERT): Likewise.
46955         * tests/test-memchr2.c (ASSERT): Likewise.
46956         * tests/test-memmem.c (ASSERT): Likewise.
46957         * tests/test-open.c (ASSERT): Likewise.
46958         * tests/test-printf-frexp.c (ASSERT): Likewise.
46959         * tests/test-printf-frexpl.c (ASSERT): Likewise.
46960         * tests/test-printf-posix.c (ASSERT): Likewise.
46961         * tests/test-quotearg.c (ASSERT): Likewise.
46962         * tests/test-rbtree_list.c (ASSERT): Likewise.
46963         * tests/test-rbtree_oset.c (ASSERT): Likewise.
46964         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
46965         * tests/test-round1.c (ASSERT): Likewise.
46966         * tests/test-roundf1.c (ASSERT): Likewise.
46967         * tests/test-roundl.c (ASSERT): Likewise.
46968         * tests/test-signbit.c (ASSERT): Likewise.
46969         * tests/test-sleep.c (ASSERT): Likewise.
46970         * tests/test-snprintf-posix.c (ASSERT): Likewise.
46971         * tests/test-snprintf.c (ASSERT): Likewise.
46972         * tests/test-sprintf-posix.c (ASSERT): Likewise.
46973         * tests/test-stat-time.c (ASSERT): Likewise.
46974         * tests/test-strcasestr.c (ASSERT): Likewise.
46975         * tests/test-strerror.c (ASSERT): Likewise.
46976         * tests/test-striconv.c (ASSERT): Likewise.
46977         * tests/test-striconveh.c (ASSERT): Likewise.
46978         * tests/test-striconveha.c (ASSERT): Likewise.
46979         * tests/test-strsignal.c (ASSERT): Likewise.
46980         * tests/test-strstr.c (ASSERT): Likewise.
46981         * tests/test-strtod.c (ASSERT): Likewise.
46982         * tests/test-trunc1.c (ASSERT): Likewise.
46983         * tests/test-trunc2.c (ASSERT): Likewise.
46984         * tests/test-truncf1.c (ASSERT): Likewise.
46985         * tests/test-truncf2.c (ASSERT): Likewise.
46986         * tests/test-truncl.c (ASSERT): Likewise.
46987         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
46988         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
46989         * tests/test-vasnprintf.c (ASSERT): Likewise.
46990         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
46991         * tests/test-vasprintf.c (ASSERT): Likewise.
46992         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
46993         * tests/test-vprintf-posix.c (ASSERT): Likewise.
46994         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
46995         * tests/test-vsnprintf.c (ASSERT): Likewise.
46996         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
46997         * tests/test-wcwidth.c (ASSERT): Likewise.
46998         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
46999         * tests/test-xprintf-posix.c (ASSERT): Likewise.
47000         * tests/test-xvasprintf.c (ASSERT): Likewise.
47001         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
47002         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
47003         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
47004         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
47005         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
47006         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
47007         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
47008         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
47009         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
47010         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
47011         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
47012         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
47013         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
47014         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
47015         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
47016         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
47017         * tests/unictype/test-block_list.c (ASSERT): Likewise.
47018         * tests/unictype/test-block_of.c (ASSERT): Likewise.
47019         * tests/unictype/test-block_test.c (ASSERT): Likewise.
47020         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
47021         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
47022         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
47023         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
47024         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
47025         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
47026         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
47027         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
47028         * tests/unictype/test-combining.c (ASSERT): Likewise.
47029         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
47030         * tests/unictype/test-digit.c (ASSERT): Likewise.
47031         * tests/unictype/test-mirror.c (ASSERT): Likewise.
47032         * tests/unictype/test-numeric.c (ASSERT): Likewise.
47033         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
47034         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
47035         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
47036         * tests/unictype/test-scripts.c (ASSERT): Likewise.
47037         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
47038         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
47039         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
47040         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
47041         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
47042         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
47043         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
47044         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
47045         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
47046         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
47047         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
47048         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
47049         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
47050         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
47051         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
47052         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
47053         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
47054         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
47055         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
47056         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
47057         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
47058         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
47059         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
47060         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
47061         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
47062         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
47063         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
47064         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
47065         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
47066         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
47067         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
47068         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
47069         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
47070         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
47071         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
47072         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
47073         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
47074         Reported by Eric Blake.
47075
47076 2008-04-11  Bruno Haible  <bruno@clisp.org>
47077
47078         * lib/wchar.in.h: Tweak comment.
47079
47080 2008-04-11  Bruno Haible  <bruno@clisp.org>
47081
47082         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
47083         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
47084         gl_COMMON.
47085         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
47086
47087 2008-04-11  Bruno Haible  <bruno@clisp.org>
47088
47089         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
47090
47091 2008-04-11  Simon Josefsson  <simon@josefsson.org>
47092
47093         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
47094         of attempting to use non-existing /dev/*random.  Based on patch
47095         from Adam Strzelecki <ono@java.pl> in
47096         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
47097
47098 2008-04-08  Bruno Haible  <bruno@clisp.org>
47099
47100         Add tentative support for emx+gcc.
47101         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
47102         * lib/fpurge.c (fpurge): Likewise.
47103         * lib/freadable.c (freadable): Likewise.
47104         * lib/freadahead.c (freadahead): Likewise.
47105         * lib/freading.c (freading): Likewise.
47106         * lib/freadptr.c (freadptr): Likewise.
47107         * lib/freadseek.c (freadptrinc): Likewise.
47108         * lib/fseeko.c (rpl_fseeko): Likewise.
47109         * lib/fseterr.c (fseterr): Likewise.
47110         * lib/fwritable.c (fwritable): Likewise.
47111         * lib/fwriting.c (fwriting): Likewise.
47112         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
47113
47114 2008-04-09  Eric Blake  <ebb9@byu.net>
47115
47116         Avoid some autoconf warnings.
47117         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
47118         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
47119         * m4/afs.m4 (gl_AFS): Likewise.
47120         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
47121         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
47122         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47123         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
47124         (gl_INTEGER_TYPE_SUFFIX): Likewise.
47125         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
47126         (AC_CHECK_DECLS_ONCE): Likewise.
47127         Rename file...
47128         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
47129         gnulib-tool requires autoconf 2.59 or better.
47130         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
47131
47132 2008-04-08  Eric Blake  <ebb9@byu.net>
47133
47134         Use 'git describe --match' if present (added in git 1.5.5).
47135         * build-aux/git-version-gen: Limit result to tags that match 'v*'
47136         if possible.
47137
47138 2008-04-08  Bruno Haible  <bruno@clisp.org>
47139
47140         Add tentative support for OpenServer.
47141         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
47142         _ptr, _cnt.
47143         * lib/fpurge.c (fpurge): Likewise.
47144         * lib/freadable.c (freadable): Likewise.
47145         * lib/freadahead.c (freadahead): Likewise.
47146         * lib/freading.c (freading): Likewise.
47147         * lib/freadptr.c (freadptr): Likewise.
47148         * lib/freadseek.c (freadptrinc): Likewise.
47149         * lib/fseeko.c (rpl_fseeko): Likewise.
47150         * lib/fseterr.c (fseterr): Likewise.
47151         * lib/fwritable.c (fwritable): Likewise.
47152         * lib/fwriting.c (fwriting): Likewise.
47153         Reported by Roger Cornelius <rac@tenzing.org> and
47154         Brian K. White <brian@aljex.com>.
47155
47156 2008-04-06  Jim Meyering  <meyering@redhat.com>
47157
47158         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
47159
47160 2008-04-06  Bruno Haible  <bruno@clisp.org>
47161
47162         Avoid possible error with non-ASCII bytes in UTF-8 locales.
47163         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
47164         * tests/test-printf-posix.sh: Likewise.
47165         * tests/test-vfprintf-posix.sh: Likewise.
47166         * tests/test-vprintf-posix.sh: Likewise.
47167         * tests/test-xprintf-posix.sh: Likewise.
47168
47169 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47170
47171         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
47172         hide error from 'ls', needed on OS/2.
47173         Report by Elbert Pol <elbert.pol@gmail.com>.
47174
47175 2008-04-04  Eric Blake  <ebb9@byu.net>
47176
47177         Make test-fseeko.c failures meaningful.
47178         * tests/test-fseeko.c: Print line number on failure.
47179         * tests/test-fseek.c: Likewise.
47180         Reported by Nelson H. F. Beebe.
47181
47182         Improve strtod bug detection check.
47183         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
47184         required for Solaris 10.
47185         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
47186
47187 2008-04-04  Bruno Haible  <bruno@clisp.org>
47188
47189         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
47190         by m4/setenv.m4.
47191
47192 2008-04-03  Eric Blake  <ebb9@byu.net>
47193
47194         Ensure sane .version contents.
47195         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
47196         version string.
47197         * build-aux/git-version-gen: Improve documentation.
47198
47199         Make GNU make output nicer.
47200         * top/GNUmakefile [!_have-Makefile]: Add dependency on
47201         MAKECMDGOALS to enforce message for all command line targets.  Set
47202         srcdir for use in maint.mk.
47203
47204         Another maintainer tweak.
47205         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
47206         a target that regenerates version.
47207
47208 2008-04-03  Jim Meyering  <meyering@redhat.com>
47209
47210         vc-list-files: don't cause coreutils "make po-check" failure
47211         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
47212
47213 2008-04-03  Eric Blake  <ebb9@byu.net>
47214
47215         Allow VPATH usage of vc-list-files.
47216         * build-aux/vc-list-files (scriptversion): Add timestamp.
47217         (options): Add --help, --version, -C.
47218         (CVS): Support installed cvsu.
47219
47220 2008-04-02  Bruno Haible  <bruno@clisp.org>
47221
47222         Avoid some "statement with no effect" warnings from gcc.
47223         * tests/test-wctype.c (main): Explicitly ignore unused values.
47224         Reported by Jim Meyering.
47225
47226 2008-04-02  Jim Meyering  <meyering@redhat.com>
47227
47228         Avoid some warnings from "gcc -Wshadow".
47229         * tests/test-frexp.c (exp): Define to a different identifier.
47230         * tests/test-frexpl.c (exp): Likewise.
47231
47232 2008-04-03  Jim Meyering  <meyering@redhat.com>
47233
47234         bootstrap: remove dangling *.[ch] symlinks from lib
47235         * build-aux/bootstrap [dangling symlink removal]: Move find's
47236         -depth option to precede all others, to avoid a warning.
47237         Remove *.[ch] files too, and from "$source_base" (usually lib/).
47238
47239 2008-04-02  Bruno Haible  <bruno@clisp.org>
47240
47241         Avoid some warnings from "gcc -Wshadow".
47242         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
47243         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
47244         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
47245         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
47246         Reported by Jim Meyering.
47247
47248 2008-04-01  Bruno Haible  <bruno@clisp.org>
47249
47250         Fix test to work on IRIX 6.5 with cc.
47251         * tests/test-math.c (numeric_equal): New function.
47252         (main): Use it.
47253
47254 2008-04-01  Bruno Haible  <bruno@clisp.org>
47255
47256         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
47257
47258 2008-04-01  Bruno Haible  <bruno@clisp.org>
47259
47260         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
47261         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47262         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
47263         (Depends-on): Remove math.
47264
47265         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
47266         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47267         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
47268         (Depends-on): Remove math.
47269
47270         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
47271         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47272         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
47273         (Depends-on): Remove math.
47274         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
47275         (Depends-on): Remove math.
47276
47277         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
47278         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47279         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
47280         (Depends-on): Remove math.
47281         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
47282         (Depends-on): Remove math.
47283
47284         * tests/test-round1.c: Include nan.h.
47285         (main): Use NaNd instead of NAN.
47286         * modules/round-tests (Files): Add tests/nan.h.
47287
47288         * tests/test-trunc1.c: Include nan.h.
47289         (main): Use NaNd instead of NAN.
47290         * modules/trunc-tests (Files): Add tests/nan.h.
47291
47292         * tests/test-roundf1.c: Include nan.h.
47293         (main): Use NaNf instead of NAN.
47294         * modules/roundf-tests (Files): Add tests/nan.h.
47295
47296         * tests/test-truncf1.c: Include nan.h.
47297         (main): Use NaNf instead of NAN.
47298         * modules/truncf-tests (Files): Add tests/nan.h.
47299
47300         * tests/test-ceilf1.c: Include nan.h.
47301         (main): Use NaNf instead of NAN.
47302         * modules/ceilf-tests (Files): Add tests/nan.h.
47303
47304         * tests/test-floorf1.c: Include nan.h.
47305         (main): Use NaNf instead of NAN.
47306         * modules/floorf-tests (Files): Add tests/nan.h.
47307
47308         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
47309         (main): Use NaNf instead of NAN.
47310         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
47311
47312         * tests/test-isnand.c: Include nan.h instead of <math.h>.
47313         (main): Use NaNd instead of NAN.
47314         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
47315
47316         * tests/test-frexp.c: Include nan.h.
47317         (main): Use NaNd instead of NAN.
47318         * modules/frexp-tests (Files): Add tests/nan.h.
47319
47320         * lib/isnan.c: Don't include <math.h>.
47321         (FUNC): Don't use NAN macro.
47322         * modules/isnand-nolibm (Depends-on): Remove math.
47323         * modules/isnanf-nolibm (Depends-on): Remove math.
47324         * modules/isnanl (Depends-on): Remove math.
47325         * modules/isnanl-nolibm (Depends-on): Remove math.
47326
47327         * tests/nan.h: New file.
47328
47329 2008-04-01  Eric Blake  <ebb9@byu.net>
47330
47331         Fix typos.
47332         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
47333         values to be the right type.
47334
47335         For now, cater to gnulib strtod inaccuracies.
47336         * tests/test-strtod.c (main): Allow 1-ulp error on expected
47337         fractional results.  While not as nice from a QoI perspective, it
47338         is a quicker patch than correctly implementing decimal to binary
47339         rounding.
47340
47341 2008-03-31  Eric Blake  <ebb9@byu.net>
47342
47343         Guarantee a definition of NAN.
47344         * lib/math.in.h (NAN): Define if missing.
47345         * tests/test-math.c (main): Test it.
47346         * doc/posix-headers/math.texi (math.h): Document this.
47347         * lib/isnan.c (rpl_isnand): Use it.
47348         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
47349         * tests/test-floorf1.c (NaN): Likewise.
47350         * tests/test-frexp.c (NaN): Likewise.
47351         * tests/test-isnand.c (NaN): Likewise.
47352         * tests/test-isnanf.c (NaN): Likewise.
47353         * tests/test-round1.c (NaN): Likewise.
47354         * tests/test-roundf1.c (NaN): Likewise.
47355         * tests/test-snprintf-posix.h (NaN): Likewise.
47356         * tests/test-sprintf-posix.h (NaN): Likewise.
47357         * tests/test-trunc1.c (NaN): Likewise.
47358         * tests/test-truncf1.c (NaN): Likewise.
47359         * tests/test-vasnprintf-posix.c (NaN): Likewise.
47360         * tests/test-vasprintf-posix.c (NaN): Likewise.
47361         * modules/isnand-nolibm (Depends-on): Add math.
47362         * modules/isnanf-nolibm (Depends-on): Likewise.
47363         * modules/isnanl (Depends-on): Likewise.
47364         * modules/isnanl-nolibm (Depends-on): Likewise.
47365         * modules/snprintf-posix-tests (Depends-on): Likewise.
47366         * modules/sprintf-posix-tests (Depends-on): Likewise.
47367         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
47368         * modules/vsprintf-posix-tests (Depends-on): Likewise.
47369         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
47370         * modules/vasprintf-posix-tests (Depends-on): Likewise.
47371
47372 2008-03-31  Bruno Haible  <bruno@clisp.org>
47373
47374         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
47375         * doc/posix-functions/strtod.texi: Likewise.
47376
47377 2008-03-31  Bruno Haible  <bruno@clisp.org>
47378
47379         * tests/test-strtod.c (main): Don't use C99 syntax.
47380
47381 2008-03-31  Bruno Haible  <bruno@clisp.org>
47382
47383         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
47384         Reported by Eric Blake.
47385
47386 2008-03-31  Jim Meyering  <meyering@redhat.com>
47387
47388         Don't compare actual signbit return values.
47389         * tests/test-strtod.c (main): Rather, compare only their
47390         zero/non-zero nature.
47391
47392 2008-03-31  Eric Blake  <ebb9@byu.net>
47393
47394         More strtod documentation.
47395         * doc/posix-functions/strtod.texi (strtod): Interpret more test
47396         failures as distinct bugs.
47397
47398 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
47399
47400         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
47401         Problem reported by Erik Benada in
47402         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
47403
47404 2008-03-30  Bruno Haible  <bruno@clisp.org>
47405
47406         * tests/test-strtod.c: Add comments about which assertion fails on which
47407         platform.
47408         * doc/posix-functions/strtod.texi: Add info about many more platforms.
47409
47410 2008-03-30  Eric Blake  <ebb9@byu.net>
47411
47412         Test signbit behavior on zeros.
47413         * tests/test-signbit.c (test_signbitf): Add tests for zero.
47414         (test_signbitd, test_signbitl): Likewise.
47415
47416         More strtod touchups.
47417         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
47418         sign of negative underflow, for now.  Use .5, not .1.
47419         * doc/posix-functions/strtod.texi (strtod): Mention these
47420         limitations.
47421         Reported by Jim Meyering.
47422
47423 2008-03-30  Bruno Haible  <bruno@clisp.org>
47424
47425         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
47426         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
47427
47428 2008-03-30  Bruno Haible  <bruno@clisp.org>
47429
47430         Avoid failure when attempting to return empty iconv results on some
47431         platforms.
47432         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
47433         allocation, don't report ENOMEM when the resulting string is empty.
47434
47435 2008-03-30  Bruno Haible  <bruno@clisp.org>
47436
47437         Fix buffer overrun.
47438         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
47439         Don't consider the width for tmp_length. Check count against tmp_length
47440         before doing the padding. Ensure enough allocation during padding.
47441
47442 2008-03-30  Eric Blake  <ebb9@byu.net>
47443
47444         strtod touchups.
47445         * lib/strtod.c (strtod): Avoid compiler warnings.
47446         Reported by Jim Meyering.
47447
47448 2008-03-30  Bruno Haible  <bruno@clisp.org>
47449
47450         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
47451         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
47452         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
47453         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
47454         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
47455         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
47456         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
47457         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
47458
47459         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
47460         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
47461         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
47462         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
47463         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
47464         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
47465         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
47466         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
47467
47468         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
47469         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
47470         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
47471         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
47472         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
47473         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
47474         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
47475         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
47476
47477         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
47478         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
47479
47480         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
47481         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
47482
47483         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
47484         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
47485
47486         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
47487         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
47488         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
47489
47490         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
47491         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
47492         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
47493
47494         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
47495         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
47496         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
47497
47498         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
47499         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
47500         * modules/vasprintf (Depends-on): Add EOVERFLOW.
47501
47502         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
47503         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
47504         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
47505         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
47506         (Depends-on): Add EOVERFLOW.
47507         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
47508         (Depends-on): Add EOVERFLOW.
47509         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47510         (Depends-on): Add EOVERFLOW.
47511         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47512         (Depends-on): Add EOVERFLOW.
47513         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47514         (Depends-on): Add EOVERFLOW.
47515         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47516         (Depends-on): Add EOVERFLOW.
47517         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47518         (Depends-on): Add EOVERFLOW.
47519         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47520         (Depends-on): Add EOVERFLOW.
47521
47522         * lib/sprintf.c (EOVERFLOW): Remove fallback.
47523         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
47524         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
47525
47526         * lib/snprintf.c (EOVERFLOW): Remove fallback.
47527         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
47528         * modules/snprintf (Depends-on): Add EOVERFLOW.
47529
47530         * lib/poll.c (EOVERFLOW): Remove fallback.
47531         * modules/poll (Depends-on): Add EOVERFLOW.
47532
47533         * lib/getugroups.c (EOVERFLOW): Remove fallback.
47534         * modules/getugroups (Depends-on): Add EOVERFLOW.
47535
47536         * lib/getdelim.c (EOVERFLOW): Remove fallback.
47537         * modules/getdelim (Depends-on): Add EOVERFLOW.
47538
47539         * lib/ftell.c (EOVERFLOW): Remove fallback.
47540         * modules/ftell (Depends-on): Add EOVERFLOW.
47541
47542         * lib/fprintf.c (EOVERFLOW): Remove fallback.
47543         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
47544         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
47545
47546         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
47547
47548         * modules/EOVERFLOW-tests: New file.
47549         * tests/test-EOVERFLOW.c: New file.
47550
47551         * modules/EOVERFLOW: New file.
47552         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
47553
47554 2008-03-30  Bruno Haible  <bruno@clisp.org>
47555
47556         Fix bug introduced on 2007-06-10.
47557         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
47558         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
47559
47560 2008-03-30  Bruno Haible  <bruno@clisp.org>
47561
47562         Improve freadseek's efficiency after ungetc.
47563         * lib/freadseek.c: Include freadahead.h.
47564         (freadptrinc): New function, extracted from freadseek.
47565         (freadseek): Use it in a loop. Use freadahead to determine the number
47566         of loop iterations.
47567         * modules/freadseek (Depends-on): Add freadahead.
47568         (configure.ac): Require AC_C_INLINE.
47569
47570 2008-03-30  Bruno Haible  <bruno@clisp.org>
47571
47572         * lib/freadseek.c (freadseek): Don't ignore the return value of
47573         freadptr.
47574
47575 2008-03-29  Eric Blake  <ebb9@byu.net>
47576
47577         Add hex float support.
47578         * modules/strtod (Depends-on): Add c-ctype.
47579         (Link): Mention POW_LIB.
47580         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
47581         whitespace between 'e' and exponent.
47582         * tests/test-strtod.c (main): Enable hex float tests.
47583         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
47584         now provides.
47585
47586         Document various strtod bugs, with some fixes.
47587         * doc/posix-functions/strtod.texi (strtod): Document bugs with
47588         "-0x", "inf", "nan", and hex constants.
47589         * doc/posix-functions/atof.texi (atof): Likewise.
47590         * modules/stdlib (Makefile.am): Support strtod.
47591         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
47592         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
47593         detect additional strtod bugs.
47594         * lib/stdlib.in.h (rpl_strtod): Add declarations.
47595         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
47596         bool where appropriate.  Parse 'inf' and 'nan'.
47597         * tests/test-strtod.c: New file.
47598         * modules/strtod (Depends-on): Add stdbool, stdlib.
47599         (configure.ac): Turn on module indicator.
47600         * modules/strtod-tests: New module.
47601
47602 2008-03-29  Eric Blake  <ebb9@byu.net>
47603
47604         Fix ftell on mingw.
47605         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
47606         * modules/ftell-tests (Depends-on): Add binary-io.
47607         * modules/ftello-tests (Depends-on): Likewise.
47608         * tests/test-ftell.c (main): Enhance test to cover behavior after
47609         ungetc.  Enforce binary mode.
47610         * tests/test-ftello.c (main): Likewise.
47611
47612         Pass test-freadseek on cygwin.
47613         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
47614         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
47615         ungetc buffer.
47616
47617         * tests/test-fflush2.c (main): Fix typo.
47618
47619 2008-03-29  Bruno Haible  <bruno@clisp.org>
47620
47621         * tests/test-fflush2.c (main): Temporarily disable the contents of
47622         this test.
47623         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
47624         Reported by Eric Blake.
47625
47626 2008-03-28  Simon Josefsson  <simon@josefsson.org>
47627
47628         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
47629         (GC_SHA224_DIGEST_SIZE): Add.
47630
47631         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
47632         (gc_hash_digest_length): Likewise.
47633         (gc_hash_buffer): Likewise.
47634
47635 2008-03-25  Bruno Haible  <bruno@clisp.org>
47636
47637         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
47638         detail which gettext release to use.
47639         Reported by Simon Josefsson.
47640
47641 2008-03-26  Jim Meyering  <meyering@redhat.com>
47642
47643         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
47644         * modules/gnumakefile (clean-GNUmakefile): Also, use
47645         test ... && ... || : syntax rather than if-then ... fi.
47646
47647         gnumakefile: Don't double-quote-expand $(VPATH) value.
47648         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
47649
47650 2008-03-24  Eric Blake  <ebb9@byu.net>
47651
47652         Alter GNUmakefile to install into top directory.
47653         * modules/maintainer-makefile: Split, and add dependency...
47654         * modules/gnumakefile: to this new module.
47655         * build-aux/GNUmakefile: Move...
47656         * top/GNUmakefile: ...here.
47657         * build-aux/maint.mk: Move...
47658         * top/maint.mk: ...here.
47659         * MODULES.html.sh (Support for maintaining...): Document new
47660         module.
47661
47662 2008-03-23  Bruno Haible  <bruno@clisp.org>
47663
47664         * gnulib-tool: New options --vc-files, --no-vc-files.
47665         (func_usage): Document them.
47666         (vc_files): New variable.
47667         (func_import): Consider vc_files.
47668         (func_create_testdir): Set vc_files to empty.
47669         Suggested by Jim Meyering and Karl Berry.
47670
47671 2008-03-23  Bruno Haible  <bruno@clisp.org>
47672
47673         Fix regex compilation error on HP-UX 11.
47674         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
47675         * modules/regex (Files): Add m4/mbstate_t.m4.
47676         Reported by Ton Voon <ton.voon@altinity.com>.
47677
47678 2008-03-23  Bruno Haible  <bruno@clisp.org>
47679
47680         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
47681
47682 2008-03-23  Eric Blake  <ebb9@byu.net>
47683             Bruno Haible  <bruno@clisp.org>
47684
47685         Install files from top/ in the destination directory.
47686         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
47687         augmentation also for the files from top/.
47688         (func_import, func_create_testdir): Rewrite file names:
47689         top/filename -> filename.
47690
47691 2008-03-23  Bruno Haible  <bruno@clisp.org>
47692
47693         Tweak "gnulib --version" output.
47694         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
47695
47696 2008-03-23  Bruno Haible  <bruno@clisp.org>
47697
47698         Tweak "gnulib --version" output.
47699         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
47700         rather than contents of ChangeLog, when possible.
47701
47702 2008-03-21  Eric Blake  <ebb9@byu.net>
47703
47704         More --version tweaks.
47705         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
47706         date of last ChangeLog entry.
47707
47708 2008-03-21  Jim Meyering  <meyering@redhat.com>
47709
47710         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
47711
47712 2008-03-20  Eric Blake  <ebb9@byu.net>
47713
47714         VPATH fix.
47715         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
47716
47717 2008-03-20  Simon Josefsson  <simon@josefsson.org>
47718
47719         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
47720         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
47721
47722 2008-03-20  Eric Blake  <ebb9@byu.net>
47723
47724         Sync GNUmakefile with coreutils.
47725         * build-aux/GNUmakefile (have-Makefile): Rename...
47726         (_have-Makefile): ...to this, for namespace consideration.
47727         (GNUmakefile.cfg): Include, if present.
47728         (_autoreconf): Define a default.
47729         (_is-dist-target): New rule for rebuilds to pick up intra-release
47730         version.
47731         (maint-cfg.mk): Rename...
47732         (cfg.mk): ...to this.
47733
47734 2008-03-18  Jim Meyering  <meyering@redhat.com>
47735
47736         New script and module: mktempd
47737         * MODULES.html.sh (maint+release support): Add mktempd.
47738         * build-aux/mktempd: New file.
47739         * modules/mktempd: New file.
47740
47741 2008-03-15  Jim Meyering  <meyering@redhat.com>
47742
47743         Undo last change.
47744         * lib/sha1.c, lib/md5.c: 63 != ~63.
47745         Reported by Andreas Schwab.
47746
47747         sha1.c, md5.c: Hoist a redundant expression.
47748         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
47749         "ctx->buflen" only once, before calling *_process_block.
47750         * lib/md5.c (md5_process_bytes): Likewise.
47751
47752 2008-03-14  Eric Blake  <ebb9@byu.net>
47753
47754         Bump copyright year in files generated by gnulib-tool.
47755         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
47756         gnulib-tool, rather than hard-coding it.
47757
47758         Fix 'gnulib-tool --version' output to work with git.
47759         * gnulib-tool (func_gnulib_dir): New function, extracted from...
47760         (startup): ...here.
47761         (func_version): Use it to invoke git-version-gen, rather than
47762         relying on CVS keyword expansion.  Modernize wording.
47763         (cvsdatestamp, last_checkin_date, version): Kill unused
47764         variables.
47765
47766 2008-03-12  Jim Meyering  <meyering@redhat.com>
47767
47768         Recognize optional cast of the argument to free.
47769         * build-aux/useless-if-before-free: Update regexps.
47770
47771         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
47772
47773 2008-03-11  Bruno Haible  <bruno@clisp.org>
47774
47775         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
47776         by a single package.
47777         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
47778         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
47779         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
47780         Reported by Sam Steingold <sds@gnu.org>.
47781
47782 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47783
47784         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
47785         repositories.
47786
47787 2008-03-11  Bruno Haible  <bruno@clisp.org>
47788
47789         Avoid conflicts between local macro definitions.
47790         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
47791         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
47792
47793 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
47794             Bruno Haible  <bruno@clisp.org>
47795
47796         Make va_copy work with some version of xlc on AIX 5.1.
47797         * lib/stdarg.in.h: New file.
47798         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
47799         On AIX, use a <stdarg.h> file substitute.
47800         * modules/stdarg (Files): Add lib/stdarg.in.h.
47801         (Depends-on): Add include_next.
47802         (Makefile.am): Build a stdarg.h substitute if requested.
47803         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
47804
47805 2008-03-10  Bruno Haible  <bruno@clisp.org>
47806
47807         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
47808         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47809         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
47810
47811 2008-03-10  Bruno Haible  <bruno@clisp.org>
47812
47813         * modules/stdlib (Depends-on): Add include_next, remove
47814         absolute-header.
47815
47816 2008-03-09  Bruno Haible  <bruno@clisp.org>
47817
47818         * lib/freadahead.h (freadahead): Document more precisely.
47819         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
47820         the sum of both buffer sizes.
47821         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
47822         * NEWS: Document the change.
47823
47824 2008-03-09  Bruno Haible  <bruno@clisp.org>
47825
47826         Extend freadptr to return also the buffer size.
47827         * lib/freadptr.h (freadptr): Add sizep argument.
47828         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
47829         (freadptr): Add sizep argument. Determine buffer size like freadahead
47830         does.
47831         * tests/test-freadptr.c: Don't include freadahead.h.
47832         (main): Adapt for new calling convention of freadptr.
47833         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
47834         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
47835         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
47836         tests/test-freadptr2.sh.
47837         (Depends): Remove freadahead.
47838         (TESTS): Add test-freadptr2.sh.
47839         (check_PROGRAMS): Add test-freadptr2.
47840
47841 2008-03-09  Bruno Haible  <bruno@clisp.org>
47842
47843         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
47844         Report and solution by Simon Josefsson.
47845
47846 2008-03-06  Bruno Haible  <bruno@clisp.org>
47847
47848         Make fflush after ungetc work on BSD platforms.
47849         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
47850         * tests/test-fflush2.c: New file.
47851         * tests/test-fflush2.sh: New file.
47852         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
47853         tests/test-fflush2.c.
47854         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
47855         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
47856
47857 2008-03-06  Eric Blake  <ebb9@byu.net>
47858
47859         Likewise for ftello.
47860         * modules/ftello (Dependencies): Add extensions.
47861         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
47862
47863 2008-03-06  Bruno Haible  <bruno@clisp.org>
47864
47865         * modules/fseeko (Dependencies): Add extensions.
47866         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
47867         Needed on glibc systems.
47868
47869 2008-03-06  Bruno Haible  <bruno@clisp.org>
47870
47871         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
47872         email address.
47873         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47874
47875 2008-03-06  Bruno Haible  <bruno@clisp.org>
47876
47877         * users.txt: Add libgnupdf.
47878
47879 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
47880
47881         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
47882         (Header File Substitutes, Function Substitutes,
47883         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
47884         (Build robot for gnulib): Fix typo.
47885
47886 2008-03-06  Bruno Haible  <bruno@clisp.org>
47887
47888         * doc/gnulib-tool.texi (VCS Issues): Small updates.
47889         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47890
47891 2008-03-06  Bruno Haible  <bruno@clisp.org>
47892
47893         * doc/func.texi: New file, extracted from doc/gnulib.texi.
47894         * doc/gnulib.texi: Include it.
47895
47896 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47897
47898         * modules/func (License): Change license to unlimited; there was
47899         no LGPL parts in the module anyway.
47900
47901 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47902
47903         * modules/__func__: Renamed to modules/func.
47904         * modules/__func__-tests: Renamed to modules/func-tests.
47905         * tests/test-__func__.c: Renamed to tests/test-func.c.
47906         * m4/__func__.m4: Renamed to m4/func.m4.
47907         * doc/gnulib.texi (__func__): Section renamed to func.
47908         Suggested by Eric Blake <ebb9@byu.net>.
47909
47910 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47911
47912         * doc/gnulib.texi (__func__): Use C99 terminology when talking
47913         about __func__.  Make example self-contained.  Suggested by Eric
47914         Blake <ebb9@byu.net>.
47915
47916         * tests/test-__func__.c (main): Avoid extraneous () around __func.
47917         Suggested by Eric Blake <ebb9@byu.net>.
47918
47919 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47920
47921         * modules/__func__: New file.
47922         * modules/__func__-tests: New file.
47923         * tests/test-__func__.c: New file.
47924         * m4/__func__.m4: New file.
47925         * doc/gnulib.texi (__func__): Document __func__ module.
47926
47927 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47928
47929         * modules/byteswap (License): Re-license as LGPLv2+.
47930
47931 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47932
47933         * doc/Makefile: Add pdf target.
47934
47935 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47936
47937         * modules/inline (License): Use 'unlimited', since there are only
47938         *.m4 files in this module.
47939
47940 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
47941             Bruno Haible  <bruno@clisp.org>
47942
47943         Add support for HP C 7.1 on OpenVMS 8.3.
47944         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
47945
47946 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
47947
47948         Update VMS specifics.
47949         * lib/getopt.c [VMS]: Remove include of unixlib.h.
47950
47951 2008-03-02  Jim Meyering  <meyering@redhat.com>
47952
47953         Remove the last dependency on the "free" module.
47954         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
47955         Reported by Bob Proulx.
47956
47957         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
47958
47959         Remove useless "if" tests before free.  Deprecate "free" module.
47960         * doc/posix-functions/free.texi: Mention that this
47961         module is no longer useful.
47962         * modules/free (Notice): Say this module is obsolete.
47963         * modules/readutmp (Depends-on): Remove free.
47964         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
47965         * lib/putenv.c (putenv): Likewise.
47966         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
47967         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
47968         * tests/test-c-strcasestr.c (main): Likewise.
47969         * tests/test-c-strstr.c (main): Likewise.
47970         * tests/test-mbscasestr1.c (main): Likewise.
47971         * tests/test-mbscasestr2.c (main): Likewise.
47972         * tests/test-mbsstr1.c (main): Likewise.
47973         * tests/test-mbsstr2.c (main): Likewise.
47974         * tests/test-memmem.c (main): Likewise.
47975         * tests/test-strcasestr.c (main): Likewise.
47976         * tests/test-striconv.c (main): Likewise.
47977         * tests/test-striconveh.c (main): Likewise.
47978         * tests/test-striconveha.c (main): Likewise.
47979         * tests/test-strstr.c (main): Likewise.
47980
47981         * build-aux/git-version-gen: Adjust a comment and the Usage string.
47982
47983         bootstrap: sync from coreutils again
47984         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
47985
47986 2008-03-01  Jim Meyering  <meyering@redhat.com>
47987
47988         bootstrap: sync from coreutils
47989         * build-aux/bootstrap (update_po_files): Copy a .po file into place
47990         also when the target doesn't exist.
47991
47992 2008-03-01  Eric Blake  <ebb9@byu.net>
47993
47994         Fix bugs in last patch.
47995         * lib/memchr2.c (memchr2): Fix typo.
47996         * tests/test-memchr2.c: Test previous bug, and don't use GNU
47997         extension.
47998         Reported by Bruce Korb.
47999
48000         New module 'memchr2'.
48001         * modules/memchr2: New file.
48002         * modules/memchr2-tests: Likewise.
48003         * lib/memchr2.h: Likewise.
48004         * lib/memchr2.c: Likewise, based on memchr.c.
48005         * tests/test-memchr2.c: New test.
48006         * MODULES.html.sh (String handling): Add memchr2.
48007
48008 2008-02-29  Bruno Haible  <bruno@clisp.org>
48009
48010         * modules/freadseek-tests: New file.
48011         * tests/test-freadseek.sh: New file.
48012         * tests/test-freadseek.c: New file.
48013
48014         New module 'freadseek'.
48015         * modules/freadseek: New file.
48016         * lib/freadseek.h: New file.
48017         * lib/freadseek.c: New file.
48018         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
48019
48020 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
48021
48022         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
48023         wydawca.
48024
48025         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
48026         program_invocation_name and program_invocation_short_name are
48027         present.
48028
48029 2008-02-28  Bruno Haible  <bruno@clisp.org>
48030
48031         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
48032         * tests/test-freadptr.sh: Also test non-seekable stdin.
48033
48034 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
48035
48036         * build-aux/bootstrap (source_base, m4_base)
48037         (doc_base, tests_base): New variables.
48038         (gnulib_tool_options): Do not hardcode base directories, use
48039         the above variables instead.
48040
48041 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
48042
48043         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
48044
48045 2008-02-28  Bruno Haible  <bruno@clisp.org>
48046
48047         * modules/freadptr-tests: New file.
48048         * tests/test-freadptr.sh: New file.
48049         * tests/test-freadptr.c: New file.
48050
48051         New module 'freadptr'.
48052         * modules/freadptr: New file.
48053         * lib/freadptr.h: New file.
48054         * lib/freadptr.c: New file.
48055         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
48056
48057 2008-02-26  Karl Berry  <karl@freefriends.org>
48058
48059         Sync from Libtool:
48060         * libltdl/argz.c (argz_add, argz_count): New functions.
48061         * libltdl/argz.in.h: Declare them.
48062         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
48063
48064 2008-02-22  Bruno Haible  <bruno@clisp.org>
48065
48066         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
48067         is a pointer type.  Needed for HP-UX 10.
48068         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
48069         * doc/posix-functions/gmtime_r.texi: Likewise.
48070         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
48071
48072 2008-02-24  Bruno Haible  <bruno@clisp.org>
48073
48074         * modules/environ-tests: New file.
48075         * tests/test-environ.c: New file.
48076
48077         New module 'environ'.
48078         * modules/environ: New file.
48079         * lib/unistd.in.h (environ): New declaration.
48080         * m4/environ.m4: New file.
48081         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
48082         after use.
48083         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
48084         HAVE_DECL_ENVIRON.
48085         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
48086         HAVE_DECL_ENVIRON.
48087         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
48088         wrong claim that 'environ' is missing on some systems.
48089         * modules/execute (Depends-on): Add environ.
48090         * lib/execute.c (environ): Remove fallback declaration.
48091         * modules/pipe (Depends-on): Add environ.
48092         * lib/pipe.c (environ): Remove fallback declaration.
48093         * modules/setenv (Depends-on): Add environ.
48094         * lib/setenv.c (environ): Remove fallback declaration.
48095         * modules/unsetenv (Depends-on): Add environ.
48096         * lib/unsetenv.c (environ): Remove fallback declaration.
48097         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
48098         m4/environ.m4.
48099         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
48100         (gl_PREREQ_UNSETENV): Likewise.
48101
48102 2008-02-24  Bruno Haible  <bruno@clisp.org>
48103
48104         * doc/posix-functions/environ.texi: Document the MacOS X problem.
48105
48106 2008-02-20  Bob Proulx  <bob@proulx.com>
48107
48108         Enable use of older two part flavor 'git describe'.
48109         * build-aux/git-version-gen: If using the older two part flavor of
48110         git version then recreate the third part now present in the
48111         newer three part flavor of git describe.
48112
48113 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
48114
48115         * lib/fts.c (fts_build): Typo correction to comment.
48116
48117 2008-02-17  Bruno Haible  <bruno@clisp.org>
48118
48119         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
48120         generating no-op conflicts.
48121
48122 2008-02-17  Bruno Haible  <bruno@clisp.org>
48123
48124         Speed up by 10%.
48125         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
48126         result_entries, rather than an index-based loop.
48127
48128 2008-02-17  Bruno Haible  <bruno@clisp.org>
48129
48130         Speed up by 25%.
48131         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
48132         'hashcode_cached'.
48133         (entry_create): New function.
48134         (entry_hashcode): Use the cached hashcode if possible.
48135         (read_changelog_file, try_split_merged_entry): Use entry_create.
48136
48137 2008-02-17  Bruno Haible  <bruno@clisp.org>
48138
48139         Speed up from O(n^2) to O(n) for long ChangeLog files.
48140         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
48141         (read_changelog_file): Change implementation of entries_reversed list
48142         to rbtreehash.
48143         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
48144
48145 2008-02-17  Bruno Haible  <bruno@clisp.org>
48146
48147         New option --split-merged-entry.
48148         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
48149         (find_paragraph_end, try_split_merged_entry): New functions.
48150         (long_options): Add option --split-merged-entry.
48151         (usage): Document option --split-merged-entry.
48152         (main): Implement option --split-merged-entry.
48153         Reported by Eric Blake.
48154
48155 2008-02-17  Bruno Haible  <bruno@clisp.org>
48156
48157         * lib/git-merge-changelog.c: Include c-strstr.h.
48158         (main): Support the "git pull --rebase" situation.
48159         * modules/git-merge-changelog (Depends-on): Add c-strstr.
48160         Reported by Eric Blake.
48161
48162 2008-02-16  Eric Blake  <ebb9@byu.net>
48163
48164         Avoid doubling \ in common case of "c-maybe" quoting style.
48165         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
48166         eliding outer quotes.
48167         * lib/quotearg.h: Document this.
48168         * tests/test-quotearg.c (result_strings, inputs, results_g)
48169         (flag_results, locale_results): Test it by adding a new string to
48170         each test group.
48171         (compare_strings): Test new string.
48172
48173 2008-02-13  Eric Blake  <ebb9@byu.net>
48174
48175         Avoid trigraph quoting in default output.
48176         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
48177         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
48178         unless explicitly requested.
48179         * tests/test-quotearg.c (flag_results, main): Add additional tests.
48180
48181 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
48182
48183         Don't rely on signed integer overflowing to negative value.
48184         * lib/getugroups.c (getugroups): Include <limits.h>.
48185         Instead, compare against INT_MAX, and increment only if the test passes.
48186
48187 2008-02-13  Jim Meyering  <meyering@redhat.com>
48188         and Eric Blake  <ebb9@byu.net>
48189
48190         Avoid shadowing warning and compile errors on Linux.
48191         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
48192         forwarding macros on Linux.
48193         (dcgettext): Define a stub, for Linux.
48194         (results_g, main): Avoid warnings.
48195
48196 2008-02-12  Eric Blake  <ebb9@byu.net>
48197
48198         Silence warning in last patch.
48199         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
48200
48201         Quotearg part 4: add tests, fix c-maybe colon quoting.
48202         * lib/quotearg.h: Improve documentation.
48203         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
48204         escapes when adding outer quotes.  When quoting trigraphs, use
48205         valid C notation.  When quoting NUL, omit extra characters if next
48206         character is not digit.  Alter prototype.
48207         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
48208         callers.
48209         * modules/quotearg-tests: New module.
48210         * tests/test-quotearg.c: New test.
48211
48212 2008-02-07  Eric Blake  <ebb9@byu.net>
48213
48214         Quotearg part 3: add flag to control outer quote elision.
48215         * lib/quotearg.h (c_maybe_quoting_style): New style.
48216         (enum quoting_flags): Better documentation of flags.
48217         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
48218         c-maybe style.
48219         (quotearg_buffer_restyled): Handle new flag to elide outer
48220         quotes.
48221
48222         Quotearg part 2: add flag that can control NUL elision.
48223         * lib/quotearg.h (set_quoting_flags): New prototype.
48224         * lib/quotearg.c (struct quoting_options): Add flag field.
48225         (set_quoting_flags): New function.
48226         (quotearg_buffer_restyled): Add flags parameter.
48227         (quotearg_alloc_mem): Set the flag if length cannot be returned.
48228         (quotearg_n_options): Set the flag, since length cannot be
48229         returned.
48230         (quoting_options_from_style): Default flags correctly.
48231
48232         Quotearg part 1: more wrappers, restore quotearg_char state.
48233         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
48234         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
48235         (quotearg_colon_mem): New wrappers.
48236         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
48237         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
48238         functions.
48239         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
48240         (quotearg_colon_mem): New functions.
48241
48242 2008-02-11  Bruno Haible  <bruno@clisp.org>
48243
48244         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
48245         library in the current directory: it does not work with parallel make.
48246         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48247
48248 2008-02-11  Bruno Haible  <bruno@clisp.org>
48249
48250         * .gitattributes: New file.
48251
48252 2008-02-11  Jim Meyering  <meyering@redhat.com>
48253
48254         useless-if-before-free: Fix reversed exit values.
48255         * build-aux/useless-if-before-free: Use correct values
48256         for EXIT_MATCH and EXIT_NO_MATCH.
48257
48258         * build-aux/useless-if-before-free: Close stdout carefully.
48259
48260 2008-02-10  Bruno Haible  <bruno@clisp.org>
48261
48262         New module 'git-merge-changelog'.
48263         * modules/git-merge-changelog: New file.
48264         * lib/git-merge-changelog.c: New file.
48265
48266 2008-02-10  Jim Meyering  <meyering@redhat.com>
48267
48268         useless-if-before-free: New option: --list (-l).
48269
48270         useless-if-before-free: Don't exit immediately upon open failure.
48271         * build-aux/useless-if-before-free: Exit 2 for errors.
48272         Upon failure to open a file, don't exit immediately.
48273         Rather, just warn and continue with any remaining files.
48274
48275 2008-02-10  Bruno Haible  <bruno@clisp.org>
48276
48277         New abstract list operation 'node_set_value'.
48278         * lib/gl_list.h (gl_list_node_set_value): New function.
48279         (struct gl_list_implementation): New field node_set_value.
48280         * lib/gl_list.c (gl_list_node_set_value): New function.
48281         * lib/gl_array_list.c (gl_array_node_set_value): New function.
48282         (gl_array_list_implementation): Update.
48283         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
48284         (gl_carray_list_implementation): Update.
48285         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
48286         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
48287         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
48288         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
48289         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
48290         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
48291         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
48292         Update.
48293         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
48294         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
48295         (gl_sublist_list_implementation): Update.
48296
48297 2008-02-10  Bruno Haible  <bruno@clisp.org>
48298
48299         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
48300         Needed when ELEMENT is #defined to 'some_type *'.
48301
48302 2008-02-10  Jim Meyering  <meyering@redhat.com>
48303
48304         New script and module: useless-if-before-free
48305         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
48306         * build-aux/useless-if-before-free: New file.
48307         * modules/useless-if-before-free: New file.
48308
48309         * build-aux/gitlog-to-changelog: Use committer date, not author date.
48310
48311         xstrtol_error: Fix typo.
48312         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
48313         s/exit_failure/exit_status/.
48314
48315 2008-02-09  Jim Meyering  <meyering@redhat.com>
48316
48317         New script and module: gitlog-to-changelog
48318         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
48319         * modules/gitlog-to-changelog: New file.
48320         * build-aux/gitlog-to-changelog: New file.
48321
48322 2008-02-08  Jim Meyering  <meyering@redhat.com>
48323
48324         Avoid two "parameter unused" warnings.
48325         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
48326         Mark "st" as used.
48327
48328         Use "git COMMAND", not "git-COMMAND".
48329         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
48330         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
48331         * build-aux/git-version-gen: Use "git status", not "git-status".
48332
48333 2008-02-07  Bruno Haible  <bruno@clisp.org>
48334
48335         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
48336         Avoids a crash on Windows Vista.
48337         Reported by Adam Strzelecki <ono@java.pl> via
48338         Simon Josefsson <simon@josefsson.org>.
48339
48340 2008-02-06  Bruno Haible  <bruno@clisp.org>
48341
48342         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
48343         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
48344         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
48345         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
48346         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48347         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48348         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
48349         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
48350         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48351         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48352         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48353         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48354         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48355         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48356         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48357         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
48358         left-adjust flag.
48359         * tests/test-snprintf-posix.h (test_function): Likewise.
48360         * tests/test-sprintf-posix.h (test_function): Likewise.
48361         * tests/test-vasprintf-posix.c (test_function): Likewise.
48362         * doc/posix-functions/fprintf.texi: Update.
48363         * doc/posix-functions/printf.texi: Update.
48364         * doc/posix-functions/snprintf.texi: Update.
48365         * doc/posix-functions/sprintf.texi: Update.
48366         * doc/posix-functions/vfprintf.texi: Update.
48367         * doc/posix-functions/vprintf.texi: Update.
48368         * doc/posix-functions/vsnprintf.texi: Update.
48369         * doc/posix-functions/vsprintf.texi: Update.
48370         Reported by Peter Fales <psfales@alcatel-lucent.com>.
48371
48372 2008-02-06  Bruno Haible  <bruno@clisp.org>
48373
48374         Fix bug introduced on 2008-01-26.
48375         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
48376
48377 2008-02-06  Bruno Haible  <bruno@clisp.org>
48378
48379         Fix bug introduced on 2007-06-10.
48380         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
48381         !NEED_PRINTF_FLAG_ZERO.
48382
48383 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
48384
48385         getloadavg: use libperfstat on AIX5
48386         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
48387
48388 2008-02-03  Bruno Haible  <bruno@clisp.org>
48389
48390         * lib/diffseq.h: Add comments about required #includes.
48391         Reported by Michael Biggs <gnulib@doubleplum.net>.
48392
48393 2008-02-01  Bruno Haible  <bruno@clisp.org>
48394
48395         * users.txt: Add gnuit.
48396
48397 2008-01-31  Bruno Haible  <bruno@clisp.org>
48398
48399         * lib/md4.c (set_uint32): Mark as inline.
48400         * lib/md5.c (set_uint32): Likewise.
48401         * lib/sha1.c (set_uint32): Likewise.
48402         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
48403         * m4/md5.m4 (gl_MD5): Likewise.
48404         * m4/sha1.m4 (gl_SHA1): Likewise.
48405
48406 2008-01-31  Jim Meyering  <meyering@redhat.com>
48407
48408         Use "sizeof VAR", rather than a literal "4".
48409         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
48410         * lib/md4.c (md4_read_ctx): Likewise.
48411         * lib/sha1.c (sha1_read_ctx): Likewise.
48412
48413 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48414
48415         * tests/test-sha1.c: New file, based on test-md5.c.
48416
48417         * modules/crypto/sha1-tests: New file.
48418
48419 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48420
48421         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
48422
48423 2008-01-31  Jim Meyering  <meyering@redhat.com>
48424
48425         Prefer "sizeof v" over the equivalent "4".
48426         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
48427         * lib/md5.c (set_uint32): Likewise.
48428         * lib/sha1.c (set_uint32): Likewise.
48429
48430 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48431
48432         * lib/sha1.c (set_uint32): Mark function as static.
48433
48434 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48435
48436         md2: clarify comments to say that alignment is not required.
48437         * lib/md2.h: Remove warning about alignment in comment.
48438         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
48439         never been required.
48440
48441 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48442
48443         md4: adapt alignment constraint fix from sha1.
48444         * lib/md4.c (set_uint32): New function, from sha1.c
48445         (md4_read_ctx): Use it.
48446         (md4_finish_ctx): Doc fix.
48447         * lib/md4.h: Doc fix.
48448
48449 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48450
48451         md5: adapt alignment constraint fix from sha1.
48452         * lib/md5.c (set_uint32): New function, from sha1.c
48453         (md5_read_ctx): Use it.
48454         (md5_finish_ctx): Doc fix.
48455         * lib/md5.h: Doc fix.
48456
48457 2008-01-30  Peter Palfrader  <weasel@debian.org>
48458
48459         sha1: remove the result buffer alignment constraint
48460         * lib/sha1.c (set_uint32): New function.
48461         (sha1_read_ctx): Rewrite to remove the result buffer alignment
48462         constraint.
48463         (sha1_finish_ctx): Remove comment warning about alignment constraint.
48464         * lib/sha1.h: Likewise.
48465
48466 2008-01-30  Andreas Schwab  <schwab@suse.de>
48467             Bruno Haible  <bruno@clisp.org>
48468
48469         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
48470         correct definition of LDBL_MIN_EXP.
48471
48472 2008-01-30  Karl Berry  <karl@gnu.org>
48473
48474         * config/srclist-update: try to preserve x bit on updates.
48475         * config/srclistvars.sh: update for karl.
48476
48477 2008-01-29  Jim Meyering  <meyering@redhat.com>
48478
48479         vasnprintf.c: Avoid warning about unused label
48480         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
48481         "overflow" label definition and associated code with the
48482         same cpp condition that guards the sole use of that label.
48483
48484 2008-01-26  Bruno Haible  <bruno@clisp.org>
48485
48486         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
48487         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
48488         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
48489         * lib/isnanl-nolibm.h (isnanl): Likewise.
48490         Reported by Paul Eggert <eggert@cs.ucla.edu>.
48491
48492 2008-01-26  Bruno Haible  <bruno@clisp.org>
48493
48494         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
48495         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
48496
48497 2008-01-26  Bruno Haible  <bruno@clisp.org>
48498
48499         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
48500         GCC >= 4.0 built-in.
48501         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
48502
48503 2008-01-26  Bruno Haible  <bruno@clisp.org>
48504
48505         Rename isnan, applicable to 'double' only, to isnand.
48506         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
48507         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
48508         (configure.ac): Update.
48509         (Include): Replace "isnan.h" with "isnand.h".
48510         * m4/isnand.m4: Renamed from m4/isnan.m4.
48511         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
48512         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
48513         instead of isnan.c.
48514         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
48515         instead of HAVE_ISNAN_IN_LIBC.
48516         (isnand): Renamed from isnan.
48517         * lib/isnand.c: New file.
48518         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
48519         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
48520         (Makefile.am): Update.
48521         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
48522         Include isnand.h instead of isnan.h.
48523         (main): Test isnand instead of isnan.
48524         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
48525         isnan-nolibm.
48526         * modules/frexp (Depends-on): Likewise.
48527         * modules/frexp-tests (Depends-on): Likewise.
48528         * modules/frexp-nolibm (Depends-on): Likewise.
48529         * modules/frexp-nolibm-tests (Depends-on): Likewise.
48530         * modules/isfinite (Depends-on): Likewise.
48531         * modules/round-tests (Depends-on): Likewise.
48532         * modules/signbit (Depends-on): Likewise.
48533         * modules/signbit-tests (Depends-on): Likewise.
48534         * modules/snprintf-posix (Depends-on): Likewise.
48535         * modules/sprintf-posix (Depends-on): Likewise.
48536         * modules/trunc-tests (Depends-on): Likewise.
48537         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48538         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48539         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48540         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48541         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48542         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48543         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48544         * modules/vasnprintf-posix (Depends-on): Likewise.
48545         * modules/vasprintf-posix (Depends-on): Likewise.
48546         * modules/vfprintf-posix (Depends-on): Likewise.
48547         * modules/vsnprintf-posix (Depends-on): Likewise.
48548         * modules/vsprintf-posix (Depends-on): Likewise.
48549         * lib/frexp.c: Include isnand.h instead of isnan.h.
48550         (ISNAN): Set to isnand instead of isnan.
48551         * lib/isfinite.c: Include isnand.h instead of isnan.h.
48552         (gl_isfinited): Use isnand instead of isnan.
48553         * lib/signbitd.c: Include isnand.h instead of isnan.h.
48554         (gl_signbitd): Use isnand instead of isnan.
48555         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
48556         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
48557         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
48558         (main): Use isnand instead of isnan.
48559         * tests/test-round1.c: Include isnand.h.
48560         (main): Use isnand instead of isnan.
48561         * tests/test-round2.c: Include isnand.h instead of isnan.h.
48562         (ISNAN): Set to isnand instead of isnan.
48563         * tests/test-trunc1.c: Include isnand.h.
48564         (main): Use isnand instead of isnan.
48565         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
48566         (equal): Use isnand instead of isnan.
48567         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
48568         isnand-nolibm.
48569         * NEWS: Mention the change.
48570
48571 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
48572             Bruno Haible  <bruno@clisp.org>
48573
48574         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
48575         the GCC builtins for signbits are present and set
48576         REPLACE_SIGNBIT_USING_GCC if so.
48577         * lib/math.in.h (signbit): Define using GCC builtins if
48578         REPLACE_SIGNBIT_USING_GCC is set.
48579         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
48580         REPLACE_SIGNBIT_USING_GCC.
48581         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
48582
48583 2008-01-25  Jim Meyering  <meyering@redhat.com>
48584
48585         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
48586         * lib/poll.c: Include <config.h>, not "config.h".
48587         * tests/test-getaddrinfo.c: Likewise.
48588
48589 2008-01-25  Simon Josefsson  <simon@josefsson.org>
48590
48591         * modules/sockets-tests: New file.
48592
48593 2008-01-24  Simon Josefsson  <simon@josefsson.org>
48594
48595         * modules/sockets: New module, can be used to call WSA_Startup and
48596         WSA_Cleanup when needed.
48597
48598         * lib/sockets.h, lib/sockets.c: New files.
48599
48600         * m4/sockets.m4: New file.
48601
48602         * tests/test-sockets.c: New file.
48603
48604 2008-01-19  Bruno Haible  <bruno@clisp.org>
48605
48606         * doc/posix-headers: Renamed from doc/headers.
48607         * doc/posix-functions: Renamed from doc/functions.
48608         * doc/gnulib.texi: Update.
48609
48610 2008-01-19  Bruno Haible  <bruno@clisp.org>
48611
48612         * doc/glibc-functions/strcasestr.texi: Include contents of
48613         doc/functions/strcasestr.texi, fixing the list of platforms.
48614         * doc/functions/strcasestr.texi: Remove file.
48615
48616 2008-01-19  Bruno Haible  <bruno@clisp.org>
48617
48618         * doc/glibc-functions/memmem.texi: Include contents of
48619         doc/functions/memmem.texi.
48620         * doc/functions/memmem.texi: Remove file.
48621
48622 2008-01-18  Bruno Haible  <bruno@clisp.org>
48623
48624         * doc/glibc-functions/*.texi: New files.
48625         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
48626         to use the new files.
48627
48628 2008-01-17  Bruno Haible  <bruno@clisp.org>
48629
48630         * tests/test-gethostname.c (main): Fix printf statement.
48631
48632 2008-01-17  Simon Josefsson  <simon@josefsson.org>
48633
48634         * modules/gethostname-tests: New file.
48635
48636         * tests/test-gethostname.c: New file.
48637
48638 2008-01-17  Simon Josefsson  <simon@josefsson.org>
48639
48640         * lib/gethostname.c: Include string.h unconditionally, strncpy is
48641         used by the UNAME case.  Reported by Bruno Haible
48642         <bruno@clisp.org>.
48643
48644 2008-01-17  Eric Blake  <ebb9@byu.net>
48645
48646         Convert c-strcasestr to be more efficient.
48647         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
48648         (Depends-on): Add c-strcase, remove malloca, strnlen.
48649         * tests/test-c-strcasestr.c (main): Enhance test.
48650         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
48651
48652 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
48653
48654         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
48655         Use it in creating po/Makevars.
48656
48657 2008-01-15  Simon Josefsson  <simon@josefsson.org>
48658
48659         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
48660         Applications that requires it should initialize libgcrypt
48661         manually.
48662
48663 2008-01-16  Simon Josefsson  <simon@josefsson.org>
48664
48665         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
48666
48667 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
48668
48669         Fix problem with getdate on mingw32 reported by Simon Josefsson
48670         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
48671         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
48672         tzname", when deciding whether to declare tzname.
48673         * lib/strftime.c (tzname): Likewise.
48674
48675 2008-01-15  Bruno Haible  <bruno@clisp.org>
48676
48677         Work around a MacOS X 10.5 bug in frexpl().
48678         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
48679         * doc/functions/frexpl.texi: Document the bug.
48680         Reported by Elias Pipping <pipping@gentoo.org>.
48681
48682 2008-01-14  Eric Blake  <ebb9@byu.net>
48683
48684         Touch up previous patch.
48685         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
48686         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
48687
48688         Convert strcasestr module to use Two-Way algorithm.
48689         * modules/strcasestr-simple: New module, based on the old
48690         strcasestr, but with Two-Way rather than KMP.
48691         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
48692         * lib/string.in.h (rpl_strcasestr): Declare.
48693         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
48694         performance.
48695         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
48696         * modules/string (Makefile.am): Support strcasestr.
48697         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
48698         * modules/strcasestr-tests (Depends-on): Check for alarm.
48699         * tests/test-strcasestr.c: Augment test.
48700         * lib/str-two-way.h: Clean up stray macro.
48701         * NEWS: Document new module.
48702         * MODULES.html.sh (string handling): Likewise.
48703         * doc/functions/strcasestr.texi: New file.
48704         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
48705         here, since it is not a POSIX function.
48706
48707 2008-01-14  Colin Watson  <cjwatson@debian.org>
48708             Bruno Haible  <bruno@clisp.org>
48709
48710         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
48711         works fine; if not, set REPLACE_STRSIGNAL.
48712         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
48713         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48714         REPLACE_STRSIGNAL.
48715         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
48716         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
48717         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
48718
48719 2008-01-14  Bruno Haible  <bruno@clisp.org>
48720
48721         * modules/strsignal (Include): Change to <string.h>.
48722
48723 2008-01-14  Colin Watson  <cjwatson@debian.org>
48724
48725         * modules/argp (Notice): Add a notice recommending to change
48726         XGETTEXT_OPTIONS.
48727         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
48728
48729 2008-01-13  Colin Watson  <cjwatson@debian.org>
48730
48731         * modules/strsignal-tests: New file.
48732         * tests/test-strsignal.c: New file.
48733
48734         * lib/strsignal.c: New file, from glibc with modifications.
48735         * lib/siglist.h: New file, from glibc with modifications.
48736         * lib/string.in.h (strsignal): New declaration.
48737         * m4/strsignal.m4: New file.
48738         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48739         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
48740         * modules/strsignal: New file.
48741         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
48742         HAVE_DECL_STRSIGNAL.
48743
48744 2008-01-13  Bruno Haible  <bruno@clisp.org>
48745
48746         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
48747         locale encoding is not ASCII. Needed for OpenBSD 4.0.
48748         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
48749         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
48750
48751 2008-01-13  Bruno Haible  <bruno@clisp.org>
48752
48753         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
48754         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
48755         * lib/argp.h (__attribute__): Likewise.
48756         * lib/c-stack.c (__attribute__): Likewise.
48757         * lib/error.h (__attribute__): Likewise.
48758         * lib/fts.c (__attribute__): Likewise.
48759         * lib/openat.h (__attribute__): Likewise.
48760         * lib/stdio.in.h (__attribute__): Likewise.
48761         * lib/string.in.h (__attribute__): Likewise.
48762         * lib/utimens.c (__attribute__): Likewise.
48763         * lib/vasnprintf.h (__attribute__): Likewise.
48764         * lib/xalloc.h (__attribute__): Likewise.
48765         * lib/xprintf.h (__attribute__): Likewise.
48766         * lib/xstrtol.h (__attribute__): Likewise.
48767         * lib/xvasprintf.h (__attribute__): Likewise.
48768
48769 2008-01-12  Bruno Haible  <bruno@clisp.org>
48770
48771         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
48772         * doc/glibc-headers/a.out.texi: New file.
48773         * doc/glibc-headers/aliases.texi: New file.
48774         * doc/glibc-headers/alloca.texi: New file.
48775         * doc/glibc-headers/ar.texi: New file.
48776         * doc/glibc-headers/argp.texi: New file.
48777         * doc/glibc-headers/argz.texi: New file.
48778         * doc/glibc-headers/byteswap.texi: New file.
48779         * doc/glibc-headers/crypt.texi: New file.
48780         * doc/glibc-headers/endian.texi: New file.
48781         * doc/glibc-headers/envz.texi: New file.
48782         * doc/glibc-headers/err.texi: New file.
48783         * doc/glibc-headers/error.texi: New file.
48784         * doc/glibc-headers/execinfo.texi: New file.
48785         * doc/glibc-headers/fpu_control.texi: New file.
48786         * doc/glibc-headers/fstab.texi: New file.
48787         * doc/glibc-headers/fts.texi: New file.
48788         * doc/glibc-headers/getopt.texi: New file.
48789         * doc/glibc-headers/ieee754.texi: New file.
48790         * doc/glibc-headers/ifaddrs.texi: New file.
48791         * doc/glibc-headers/libintl.texi: New file.
48792         * doc/glibc-headers/mcheck.texi: New file.
48793         * doc/glibc-headers/mntent.texi: New file.
48794         * doc/glibc-headers/obstack.texi: New file.
48795         * doc/glibc-headers/paths.texi: New file.
48796         * doc/glibc-headers/printf.texi: New file.
48797         * doc/glibc-headers/pty.texi: New file.
48798         * doc/glibc-headers/resolv.texi: New file.
48799         * doc/glibc-headers/shadow.texi: New file.
48800         * doc/glibc-headers/sysexits.texi: New file.
48801         * doc/glibc-headers/ttyent.texi: New file.
48802
48803 2008-01-12  Jim Meyering  <meyering@redhat.com>
48804
48805         announce-gen: emit Gnulib's git-based version string.
48806         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
48807         New option --gnulib-version=V, where V is expected to be
48808         the output of running git describe in the gnulib directory.
48809         (get_tool_versions): Request feedback on xdelta.  I suspect it's
48810         not useful, and plan to stop publishing an xdelta file with each
48811         coreutils release.
48812
48813         * build-aux/announce-gen: Also check for lzma-compressed files.
48814
48815 2008-01-11  Bruno Haible  <bruno@clisp.org>
48816
48817         * tests/test-memmem.c (main): Increase maximum allowed time.
48818         * tests/test-strstr.c (main): Likewise.
48819
48820 2008-01-11  Bruno Haible  <bruno@clisp.org>
48821
48822         * doc/functions/memmem.texi: Add more precisions about platforms.
48823         * doc/functions/strstr.texi: Likewise.
48824
48825 2008-01-10  Eric Blake  <ebb9@byu.net>
48826
48827         * m4/strstr.m4: Delete cruft from copy-n-paste.
48828         Reported by Bruno Haible.
48829
48830 2008-01-10  Bruno Haible  <bruno@clisp.org>
48831
48832         Make c-strstr rely on strstr.
48833         * lib/c-strstr.c: Don't include str-kmp.h.
48834         (c_strstr): Define in terms of strstr.
48835         * modules/c-strstr (Files): Remove lib/str-kmp.h.
48836         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
48837
48838 2008-01-10  Bruno Haible  <bruno@clisp.org>
48839
48840         * doc/gnulib.texi (String Functions in C Locale): New section.
48841         * doc/c-ctype.texi: New file.
48842         * doc/c-strcase.texi: New file.
48843         * doc/c-strcaseeq.texi: New file.
48844         * doc/c-strcasestr.texi: New file.
48845         * doc/c-strstr.texi: New file.
48846         * doc/c-strtod.texi: New file.
48847         * doc/c-strtold.texi: New file.
48848
48849 2008-01-10  Eric Blake  <ebb9@byu.net>
48850
48851         * lib/relocatable.h: Fix a comment.
48852
48853 2008-01-10  Eric Blake  <ebb9@byu.net>
48854
48855         Share two-way algorithm.
48856         * lib/str-two-way.h: New file, merged from...
48857         * lib/memmem.c: ...here...
48858         * lib/strstr.c: ...and here.
48859         * modules/memmem (Files): Use it.
48860         * modules/strstr (Files): Likewise.
48861
48862         Avoid quadratic strstr implementations.
48863         * lib/strstr.c: New file.
48864         * m4/strstr.m4: Likewise.
48865         * modules/strstr: Likewise.
48866         * modules/strstr-tests: Likewise.
48867         * tests/test-strstr.c: Likewise.
48868         * lib/string.in.h (rpl_strstr): Declare.
48869         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
48870         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
48871         * modules/string (Makefile.am): Likewise.
48872         * MODULES.html.sh (string handling): Mention new module.
48873         * doc/functions/strstr.texi (strstr): Document the bug.
48874
48875 2008-01-10  Bruno Haible  <bruno@clisp.org>
48876
48877         * lib/relocatable.h (relocate): State whether result is freshly
48878         allocated or not.
48879         * lib/relocatable.c (relocate): Return a freshly allocated string
48880         instead of a pointer to a privately held string.
48881         Reported by Sylvain Beucler <beuc@gnu.org>.
48882
48883 2008-01-10  Colin Watson  <cjwatson@debian.org>
48884
48885         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
48886         s/S_ISNLK/S_ISLNK/.
48887
48888 2008-01-09  Bruno Haible  <bruno@clisp.org>
48889
48890         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
48891         and other files.
48892         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
48893         if it's only a guess.
48894         * modules/memmem: Simplify by depending on memmem-simple.
48895
48896 2008-01-09  Bruno Haible  <bruno@clisp.org>
48897
48898         Work around OpenBSD 4.0 tdelete() bug.
48899         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
48900         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
48901         macros and don't redefine the enum values.
48902         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
48903         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
48904         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
48905
48906 2008-01-09  Bruno Haible  <bruno@clisp.org>
48907
48908         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
48909         (main): Don't perform the tests if setlocale did not install a UTF-8
48910         locale. Needed on OpenBSD 4.0.
48911         * modules/wcwidth-tests (Depends-on): Add localcharset.
48912
48913 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48914
48915         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
48916         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
48917         * NEWS: announce this.
48918         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
48919
48920 2008-01-09  Simon Josefsson  <simon@josefsson.org>
48921         and Eric Blake  <ebb9@byu.net>
48922
48923         Add memmem-simple module.
48924         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
48925         (gl_FUNC_MEMMEM): Separate performance from presence checks.
48926         * modules/memmem-simple: New file.
48927         * modules/memmem (Description): Tweak.
48928         * MODULES.html.sh (string handling): Mention new module.
48929         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
48930         addressed by memmem-simple.
48931         * NEWS: Document the difference.
48932
48933 2008-01-09  Eric Blake  <ebb9@byu.net>
48934
48935         Give gcc some memmem optimization hints.
48936         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
48937         (strcasestr): Declare as pure.
48938         * modules/memmem (Maintainer): Claim my implementation.
48939
48940 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48941
48942         Support AIX 6.1 and higher.
48943         * build-aux/config.libpath: Likewise.
48944         * build-aux/config.rpath: Likewise.
48945
48946 2008-01-08  Jim Meyering  <meyering@redhat.com>
48947             Bruno Haible  <bruno@clisp.org>
48948
48949         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
48950         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
48951         Reported by Peter Fales in
48952         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
48953
48954 2008-01-08  Bruno Haible  <bruno@clisp.org>
48955
48956         * modules/unictype/category-of (Depends-on): Add
48957         unictype/category-none.
48958         * modules/unictype/category-and-tests (Depends-on): Add
48959         unictype/category-{L,N,Lu,Nd}.
48960         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
48961         * modules/unictype/category-or-tests (Depends-on): Add
48962         unictype/category-{L,N}.
48963         * modules/unictype/category-name-tests (Depends-on): Add
48964         unictype/category-{Z,Nl}.
48965         Reported by Simon Josefsson.
48966
48967 2008-01-08  Bruno Haible  <bruno@clisp.org>
48968
48969         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
48970         convention better.
48971         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
48972         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
48973         Reported by Peter Miller <millerp@canb.auug.org.au>.
48974
48975 2008-01-08  Eric Blake  <ebb9@byu.net>
48976
48977         Rewrite memmem to guarantee linear complexity without malloc.
48978         * lib/memmem.c (memmem): Use Two-Way rather than
48979         Knuth-Morris-Pratt, to allow O(1) space usage.
48980         (critical_factorization, two_way_short_needle)
48981         (two_way_long_needle): New functions.
48982         (knuth_morris_pratt): Delete.
48983         * modules/memmem (Depends-on): No longer need malloca or stdbool.
48984         Add stdint.
48985         * tests/test-memmem.c (main): Add tests for periodic needle and
48986         sublinear performance.
48987         * doc/functions/memmem.texi (memmem): Document other deficiencies
48988         in cygwin and older glibc.
48989
48990 2008-01-08  Bruno Haible  <bruno@clisp.org>
48991
48992         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
48993         augmentation.
48994
48995 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
48996
48997         Add a configure time option: --disable-acl.
48998         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
48999         AC_ARG_ENABLE(acl).
49000
49001 2008-01-06  Simon Josefsson  <simon@josefsson.org>
49002
49003         * tests/test-localename.c: Don't include obsolete "setenv.h".
49004
49005         * modules/localename-tests (Depends-on): Need unsetenv.
49006
49007 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49008
49009         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
49010
49011 2008-01-06  Colin Watson  <cjwatson@debian.org>
49012
49013         * users.txt: Add man-db.
49014
49015 2008-01-07  Bruno Haible  <bruno@clisp.org>
49016
49017         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
49018         previous section name.
49019
49020 2008-01-07  Bruno Haible  <bruno@clisp.org>
49021
49022         * lib/progname.c (set_program_name): Don't strip off a leading
49023         "lt-" prefix outside a .libs directory.
49024         Suggested by Paul Eggert.
49025
49026 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
49027             Bruno Haible  <bruno@clisp.org>
49028
49029         Improve memory cleanup in 'relocatable' module.
49030         * lib/relocatable.h (compute_curr_prefix): Change return type to
49031         'char *'.
49032         * lib/relocatable.c (compute_curr_prefix): Change return type to
49033         'char *'. Free curr_installdir after use.
49034         (relocate): Free curr_prefix_better after use.
49035         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
49036
49037 2008-01-01  Bruno Haible  <bruno@clisp.org>
49038
49039         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
49040         failure on older glibc systems.
49041         Reported by Peter Fales <psfales@alcatel-lucent.com>.
49042
49043 2008-01-05  Eric Blake  <ebb9@byu.net>
49044
49045         Avoid quadratic system memmem.
49046         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
49047         Reported by Ralf Wildenhues.
49048
49049         Fix memmem test for mingw.
49050         * modules/memmem-tests (configure.ac): Check for alarm.
49051         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
49052         it.
49053         * doc/functions/memmem.texi: New file.
49054         * doc/gnulib.texi (Function Substitutes): Add memmem.
49055         Reported by Bruno Haible.
49056
49057 2008-01-04  Bruno Haible  <bruno@clisp.org>
49058
49059         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
49060         Require gl_HEADER_STRINGS_H_DEFAULTS, not
49061         gl_HEADER_STRING_H_DEFAULTS.
49062
49063 2008-01-04  Eric Blake  <ebb9@byu.net>
49064
49065         Shorten duration of memmem test.
49066         * tests/test-memmem.c (main): Use alarm to declare failure if test
49067         is taking too long.
49068         Reported by Ralf Wildenhues.
49069
49070 2007-12-21  Simon Josefsson  <simon@josefsson.org>
49071
49072         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
49073         string, needed by strerror.
49074
49075 2008-01-03  Colin Watson  <cjwatson@debian.org>
49076             Bruno Haible  <bruno@clisp.org>
49077
49078         * doc/gnulib-tool.texi (Localization): New section.
49079
49080 2008-01-02  Bruno Haible  <bruno@clisp.org>
49081
49082         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
49083         variables to 'unsigned char *' type.
49084         Reported by Paul Eggert.
49085
49086 2008-01-02  Jim Meyering  <jim@meyering.net>
49087
49088         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
49089
49090 2007-12-31  Jim Meyering  <jim@meyering.net>
49091
49092         Avoid use of private FTS type name.
49093         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
49094
49095 2007-12-30  Karl Berry  <karl@gnu.org>
49096
49097         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
49098         work around defect in Texinfo and/or the standalone Info browser.
49099
49100 2007-12-30  Bruno Haible  <bruno@clisp.org>
49101
49102         Unify 5 copies of the KMP code.
49103         * lib/str-kmp.h: New file.
49104         * lib/c-strcasestr.c: Include str-kmp.h.
49105         (knuth_morris_pratt): Remove function.
49106         (c_strcasestr): Update.
49107         * lib/c-strstr.c: Include str-kmp.h.
49108         (knuth_morris_pratt): Remove function.
49109         (c_strcasestr): Update.
49110         * lib/mbscasestr.c: Include str-kmp.h.
49111         (knuth_morris_pratt_unibyte): Remove function.
49112         * lib/mbsstr.c: Include str-kmp.h.
49113         (knuth_morris_pratt_unibyte): Remove function.
49114         * lib/strcasestr.c: Include str-kmp.h.
49115         (knuth_morris_pratt): Remove function.
49116         (strcasestr): Update.
49117         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
49118         * modules/c-strstr (Files): Likewise.
49119         * modules/mbscasestr (Files): Likewise.
49120         * modules/mbsstr (Files): Likewise.
49121         * modules/strcasestr (Files): Likewise.
49122         Suggested by Paul Eggert.
49123
49124 2007-12-30  Bruno Haible  <bruno@clisp.org>
49125
49126         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
49127         defined.
49128
49129 2007-12-30  Bruno Haible  <bruno@clisp.org>
49130
49131         * lib/xmalloca.h: Include xalloc.h.
49132         (xnmalloca): New macro.
49133
49134 2007-12-30  Bruno Haible  <bruno@clisp.org>
49135
49136         * lib/malloca.h (nmalloca): New macro.
49137         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
49138         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
49139         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
49140         knuth_morris_pratt_multibyte): Likewise.
49141         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
49142         knuth_morris_pratt_multibyte): Likewise.
49143         * lib/memmem.c (knuth_morris_pratt): Likewise.
49144         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
49145
49146 2007-12-25  Bruno Haible  <bruno@clisp.org>
49147
49148         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
49149         * lib/glob.c: Don't include openat.h.
49150         (link_exists2_p): Add back the code that deals with the
49151         !GLOB_ALTDIRFUNC case.
49152         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
49153         let it do the filename concatenation.
49154         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
49155         * modules/glob (Depends-on): Remove openat.
49156
49157 2007-12-31  Bruno Haible  <bruno@clisp.org>
49158
49159         * modules/dirfd (License): Change to LGPLv2+.
49160         Approved by Jim Meyering.
49161
49162 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
49163
49164         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
49165         when multiplying M by sizeof (size_t).
49166
49167 2007-12-10  Martin Lambers  <marlam@marlam.de>
49168
49169         Override getpagesize on mingw.
49170         * lib/getpagesize.c: New file.
49171         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
49172         * modules/getpagesize (Files): Add lib/getpagesize.c.
49173         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
49174         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49175         REPLACE_GETPAGESIZE.
49176         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
49177
49178 2007-12-25  Bruno Haible  <bruno@clisp.org>
49179
49180         * modules/localcharset (Notice): New field.
49181         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
49182         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
49183
49184 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
49185             Bruno Haible  <bruno@clisp.org>
49186
49187         Avoid using the syntax symbol() in formatted documentation.
49188         * MODULES.html.sh (func_module): When replacing symbol() with a
49189         hyperlink, remove the parentheses. Show an error if some remain.
49190         Recognize and render the '...' syntax.
49191         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
49192         Rework. Add paragraph about GCC's inlining.
49193         * doc/alloca.texi: Likewise.
49194         * doc/error.texi: Remove parentheses from symbol reference.
49195         * doc/gnulib-intro.texi: Likewise.
49196         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
49197         * modules/fnmatch (Description): Reword to say "the ... function".
49198         * modules/full-read (Description): Likewise.
49199         * modules/full-write (Description): Likewise.
49200         * modules/safe-read (Description): Likewise.
49201         * modules/safe-write (Description): Likewise.
49202         * modules/strchrnul (Description): Likewise.
49203         * modules/trim (Description): Likewise.
49204         * modules/error (Description): Remove parentheses from symbol
49205         references.
49206         * modules/verror (Description): Likewise.
49207         Reported by Karl Berry.
49208
49209 2007-12-25  Bruno Haible  <bruno@clisp.org>
49210
49211         Fixup after 2007-10-16 commit.
49212         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
49213
49214 2007-12-24  Bruno Haible  <bruno@clisp.org>
49215
49216         Make --enable-relocatable work with DESTDIR.
49217         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
49218         to compute installdir from destprog.
49219         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
49220         also set the RELOC_DESTDIR variable.
49221         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49222
49223 2007-12-24  Bruno Haible  <bruno@clisp.org>
49224
49225         Fix link error due to xalloc_die().
49226         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
49227         of xreadlink.
49228         * lib/relocwrapper.c: Update comments.
49229         * build-aux/install-reloc: Remove xreadlink.c from file list.
49230         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
49231         xreadlink.c.
49232         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49233
49234 2007-12-24  Bruno Haible  <bruno@clisp.org>
49235
49236         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
49237         * lib/setenv.h: Remove file.
49238         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
49239         lib/setenv.h.
49240         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
49241         (Depends-on): Add stdlib.
49242         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
49243         gl_FUNC_UNSETENV.
49244         (Include): Replace setenv.h with <stdlib.h>.
49245         * modules/unsetenv: New file.
49246         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
49247         * lib/unsetenv.c: Include <stdlib.h> first.
49248         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
49249         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
49250         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
49251         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
49252         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
49253         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
49254         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
49255         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
49256         * doc/functions/unsetenv.texi: Update.
49257         * modules/xsetenv (Depends-on): Add unsetenv.
49258         * modules/getdate (Depends-on): Likewise.
49259         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
49260         * lib/xsetenv.c: Don't include setenv.h.
49261         * lib/getdate.y: Likewise.
49262         * lib/relocwrapper.c: Likewise.
49263         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
49264         (Depends-on): Add stdlib.
49265         * NEWS: Mention the changes.
49266         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49267
49268 2007-12-23  Bruno Haible  <bruno@clisp.org>
49269
49270         * lib/memmem.c (memmem): Use lowercase variable names. Tab
49271         indentation.
49272
49273 2007-12-23  Bruno Haible  <bruno@clisp.org>
49274
49275         * lib/c-strcasestr.c: Add more comments.
49276         * lib/c-strstr.c: Likewise.
49277         * lib/mbscasestr.c: Likewise.
49278         * lib/mbsstr.c: Likewise.
49279         * lib/strcasestr.c: Likewise.
49280         * lib/memmem.c: Likewise.
49281
49282 2007-12-23  Bruno Haible  <bruno@clisp.org>
49283
49284         * tests/test-memmem.c: Include <string.h> first.
49285
49286 2007-12-22  Bruno Haible  <bruno@clisp.org>
49287
49288         * gnulib-tool (func_create_testdir): Change $auxdir while generating
49289         the contents of $testsbase.
49290         Reported by Ralf Wildenhues.
49291
49292 2007-12-22  Bruno Haible  <bruno@clisp.org>
49293
49294         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
49295         two variables local_ldadd_before, local_ldadd_last.
49296
49297 2007-12-20  Eric Blake  <ebb9@byu.net>
49298
49299         Work around circular library issue when cross-compiling.
49300         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
49301         that progname.o does not need to pull in rpl_memcmp.
49302
49303 2007-12-19  Eric Blake  <ebb9@byu.net>
49304
49305         Fix memmem to avoid O(n^2) worst-case complexity.
49306         * lib/memmem.c (knuth_morris_pratt): New function.
49307         (memmem): Use it if first few naive iterations fail.
49308         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
49309         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
49310         * modules/memchr (License): Likewise.
49311         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
49312         malloca.
49313         * tests/test-memmem.c: Rewrite, borrowing ideas from
49314         test-mbsstr1.c; the old version wouldn't even compile!
49315         * modules/memmem-tests: New file.
49316         * lib/string.in.h (rpl_memmem): Add declaration.
49317         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
49318         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
49319         REPLACE_MEMMEM.
49320
49321 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
49322
49323         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
49324         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
49325         before any system include files, and undef after them all.  This
49326         should fix a problem on VMS reported by John E. Malmberg in
49327         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
49328
49329 2007-12-17  Eric Blake  <ebb9@byu.net>
49330
49331         Revert addition of verify, for BSD/OS.
49332         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
49333         can't handle large files, for the sake of obsolete platforms.
49334         * modules/fseeko (Depends-on): Remove verify.
49335         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
49336         * doc/functions/ftello.texi (ftello): Likewise.
49337         * doc/functions/fgetpos.texi (fgetpos): Likewise.
49338         Reported by Larry Jones.
49339
49340 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
49341
49342         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
49343         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
49344
49345 2007-12-17  Jim Meyering  <meyering@redhat.com>
49346
49347         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
49348         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
49349         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
49350         * modules/getcwd (Depends-on): Add openat.
49351         Reported by Petr Salinger.
49352
49353 2007-12-17  Bruno Haible  <bruno@clisp.org>
49354
49355         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
49356         avoid a segmentation fault of the configure test on x86_64 systems.
49357
49358 2007-12-15  Jim Meyering  <meyering@redhat.com>
49359
49360         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
49361
49362 2007-12-13  Eric Blake  <ebb9@byu.net>
49363
49364         Another fseek test.
49365         * tests/test-fseek.c (main): Also test ungetc handling.
49366         * tests/test-fseeko.c (main): Likewise.
49367         * modules/fseeko (Depends-on): Add verify.
49368         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
49369         large.
49370         Reported by Larry Jones.
49371
49372         Fix fseeko on mingw.
49373         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
49374         seek.
49375
49376         Beef up fseek tests.
49377         * tests/test-fseek.c (main): Also test eof handling.
49378         * tests/test-fseeko.c (main): Likewise.
49379         Reported by Larry Jones.
49380
49381 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
49382
49383         Fix fseeko on BSD-based platforms.
49384         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
49385         successful seek.
49386
49387 2007-12-12  Eric Blake  <ebb9@byu.net>
49388
49389         Allow circular dependency of separate libtests.a
49390         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
49391         when use_libtests.
49392
49393 2007-12-11  Eric Blake  <ebb9@byu.net>
49394
49395         Fix bug with -0.0L in previous patch.
49396         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
49397         * tests/test-isnan.c (main): Also test on zeroes.
49398         * tests/test-isnanf.c (main): Likewise.
49399         * tests/test-isnanl.h (main): Likewise.
49400
49401         Detect pseudo-denormals on x86 even when cross-compiling.
49402         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
49403         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
49404         invalid bit patterns that happen to satisfy ==.
49405
49406         Avoid link failures with separate libtests.a.
49407         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
49408         last, to satisfy circular dependencies.
49409
49410 2007-12-11  Eric Blake  <ebb9@byu.net>
49411         and Bruno Haible  <bruno@clisp.org>
49412
49413         Fix OpenBSD 4.0 <float.h> handling of long double.
49414         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
49415         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
49416         * doc/headers/float.texi (float.h): Document OpenBSD bug.
49417
49418 2007-12-11  Jim Meyering  <meyering@redhat.com>
49419
49420         * users.txt: Add libvirt.
49421
49422         Support versions of autoconf prior to 2.59c.
49423         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
49424         if it is not already defined.
49425
49426 2007-12-09  Bruno Haible  <bruno@clisp.org>
49427
49428         Let 'gnulib-tool --import' collect sources needed for the tests in
49429         tests/ rather than in lib/.
49430         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
49431         argument. If true, add rules to generate libtests.a, and put libtests.a
49432         into $(LDADD). Consider source files in subdirectories and set
49433         uses_subdirs.
49434         (func_emit_initmacro_start, func_emit_initmacro_end,
49435         func_emit_initmacro_done): Pass all arguments explicitly.
49436         (func_import): Determine two module lists main_modules,
49437         testsrelated_modules. Determine use_libtests. Determine two variables
49438         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
49439         instead of just sed_transform_lib_file. Determine two variables
49440         main_files and testsrelated_files. Compute 'files' as the union of
49441         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
49442         func_add_or_update. In the generated gnulib-comp.m4, collect the
49443         object files for tests/ in different variables than those for lib/.
49444         Substitute LIBTESTS_LIBDEPS.
49445         (func_create_testdir): Combine the uses_subdirs results from
49446         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
49447
49448 2007-12-09  Bruno Haible  <bruno@clisp.org>
49449
49450         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
49451         the build-aux directory.
49452
49453 2007-12-09  Bruno Haible  <bruno@clisp.org>
49454
49455         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
49456         introduced on 2006-09-09.
49457
49458 2007-12-07  Jim Meyering  <meyering@redhat.com>
49459
49460         Let these macros work also with autoconf-2.59.
49461         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
49462         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
49463         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
49464
49465 2007-12-06  Jim Meyering  <meyering@redhat.com>
49466
49467         Avoid a configure-time syntax error in gl_FUNC_ACL.
49468         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
49469         function in each branch, before testing the cache variable.
49470
49471 2007-12-04  Eric Blake  <ebb9@byu.net>
49472
49473         Make scripts executable.
49474         * build-aux/config.guess: Add execute permissions.
49475         * build-aux/config.sub: Likewise.
49476         * build-aux/gendocs.sh: Likewise.
49477
49478         Fix frexp on mingw.
49479         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
49480         cross-compiling.
49481         * doc/functions/frexp.texi (frexp): Document the bug.
49482
49483         Make cygwin fseeko check more reliable.
49484         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
49485         version numbers, rather than unrelated feature check.
49486         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
49487         * doc/functions/ftello.texi (ftello): Likewise.
49488         Reported by Bruno Haible.
49489
49490         * m4/strerror.m4: Bump version number.
49491
49492 2007-12-03  Bruno Haible  <bruno@clisp.org>
49493
49494         * doc/functions/mprotect.texi: Mention the mingw problem.
49495
49496 2007-12-03  Eric Blake  <ebb9@byu.net>
49497
49498         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
49499         REPLACE_STRERROR is initialized before this macro.
49500
49501 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
49502
49503         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
49504         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
49505         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
49506         put -lsec in even for programs other than 'ls'.  This fixes a problem
49507         for gettext reported by Bruno Haible in
49508         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
49509         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
49510         Add support for Solaris 10.  This isn't efficient, but should get the
49511         job done for now.
49512
49513 2007-12-03  James Youngman  <jay@gnu.org>
49514
49515         * doc/regexprops-generic.texi: change "an close-group" to "a
49516         close-group" and "illegal" to "not allowed".
49517
49518 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49519
49520         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
49521         pr_byname.h. Needed for the rare case when the maintainer has done
49522         "make maintainer-clean" in the source directory and then attempts a
49523         build outside the source directory.
49524         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
49525         scripts_byname.h.
49526
49527 2007-12-02  Martin Lambers <marlam@marlam.de>
49528             Bruno Haible  <bruno@clisp.org>
49529
49530         * lib/getpagesize.h: Remove file.
49531         * lib/unistd.in.h: Include declaration of getpagesize here.
49532         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
49533         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
49534         HAVE_SYS_PARAM_H.
49535         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
49536         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49537         * modules/getpagesize (Files): Remove lib/getpagesize.h.
49538         (Depends-on): Add unistd.
49539         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49540         (Include): Use <unistd.h> instead of getpagesize.h.
49541         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
49542         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49543         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
49544         gl_GETPAGESIZE invocation, already handled by module dependency.
49545         * lib/pagealign_alloc.c: Don't include getpagesize.h.
49546
49547 2007-12-02  Bruno Haible  <bruno@clisp.org>
49548
49549         * modules/strings-tests: New file.
49550         * tests/test-strings.c: New file.
49551
49552         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
49553         * lib/strings.in.h: New file.
49554         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
49555         * m4/strings_h.m4: New file.
49556         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
49557         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
49558         * modules/strings: New file.
49559         * modules/string (Makefile.am): Update.
49560         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
49561         Reported by Karl Berry.
49562
49563 2007-12-01  Eric Blake  <ebb9@byu.net>
49564
49565         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
49566         accomodate fix in cygwin 1.5.25.
49567
49568 2007-12-01  Jim Meyering  <meyering@redhat.com>
49569
49570         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
49571         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
49572         that would inhibit utf8-optimization of a regexp containing line-
49573         or buffer-anchors, e.g., `^', `$'.
49574
49575 2007-11-30  Bruno Haible  <bruno@clisp.org>
49576
49577         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
49578         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
49579         glthread_recursive_lock_init.
49580         * lib/lock.c (glthread_recursive_lock_init)
49581         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
49582         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49583
49584 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
49585
49586         New function qset_acl, like set_acl but with syscall semantics.
49587         * lib/acl.h (qset_acl): New decl.
49588         * lib/acl.c (qset_acl): New function.
49589         (set_acl): Use new function.  Use more-consistent diagnostics.
49590
49591 2007-11-28  Jim Meyering  <meyering@redhat.com>
49592
49593         * modules/physmem (License): Change from GPL to LGPLv2+.
49594
49595 2007-11-26  Bruno Haible  <bruno@clisp.org>
49596
49597         * lib/vasnprintf.c (decode_long_double): Don't abort if the
49598         'long double' type has excess precision.
49599         Reported by Jim Meyering in
49600         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
49601
49602 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49603
49604         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
49605         Sync from <http://gnu.org/licenses>.
49606         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
49607         with license text from same location.
49608         * doc/maintain.texi, doc/standards.texi:  Sync from
49609         <http://savannah.gnu.org/projects/gnustandards>.
49610
49611 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
49612         and Jim Meyering  <meyering@redhat.com>
49613
49614         Adjust getdate' grammar to accept a slightly more regular language.
49615         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
49616         Before, the former was rejected.
49617         * lib/getdate.y (digits_to_date_time): New function, factored
49618         out of ...
49619         (number): ...here.  Just call digits_to_date_time.
49620         (hybrid): New non-terminal to handle an <unsigned number,
49621         signed relative offset> sequence consistently.
49622
49623 2007-11-18  Jim Meyering  <meyering@redhat.com>
49624
49625         Pull my changes from coreutils:
49626         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
49627         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
49628         use of $gnulib_tool_option_extras, so that it's separated from the
49629         preceding argument.
49630
49631         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
49632         * build-aux/bootstrap (cp_mark_as_generated): Create any required
49633         parent destination directories before copying a file into place.
49634
49635 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
49636
49637         bootstrap: work also with 4-argument variant of AC_INIT
49638         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
49639
49640 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
49641
49642         Port test-getaddrinfo to Solaris.
49643         Problem reported by Bruno Haible in
49644         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
49645         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
49646         explanation of setting 'hints'.
49647         Don't reject an implementation merely because it returns EAI_SERVICE.
49648         (EAI_SERVICE): Define to 0 if not defined.
49649
49650 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
49651
49652         The license of gnu-make and posix-shell is now "GPLed build tool".
49653         * modules/gnu-make (License): Likewise.
49654         * modules/posix-shell (License): Likewise.
49655
49656         New module posix-shell, for determining a POSIX shell
49657         or perhaps something that is close enough to a POSIX shell.
49658         * m4/posix-shell.m4: New file.
49659         * modules/posix-shell: New file.
49660
49661         * MODULES.html.sh: Mention new module.
49662
49663         New module gnu-make, for determining whether we're using GNU Make.
49664         * m4/gnu-make.m4: New file.
49665         * modules/gnu-make: New file.
49666         * MODULES.html.sh: Mention new module.
49667
49668 2007-11-14  Jim Meyering  <meyering@redhat.com>
49669
49670         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
49671         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
49672         use this macro to create a function _definition_.
49673         Remove useless "#undef ARGMATCH_DIE".
49674
49675 2007-11-14  Bruno Haible  <bruno@clisp.org>
49676
49677         * lib/config.charset: Update for OpenBSD 4.1.
49678         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
49679
49680 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
49681
49682         Document 64-bit #if problems in stdint.texi.
49683         * doc/headers/stdint.texi (stdint.h): Mention problems with
49684         64-bit-#if, and how to work around them.
49685
49686         Don't insist on 'long long int' support in the preprocessor.  It
49687         breaks too many things.  For example, PRIdMAX still uses a 'long
49688         long int' format with the latest Sun compiler, even though
49689         HAVE_LONG_LONG_INT isn't defined due to that compiler's
49690         preprocessor problem.  This causes the latest coreutils to dump
49691         core on Solaris 10 sparc with the Sun C compiler.
49692         Instead, fix the 2007-10-16 problem in a different way, by evaluating
49693         the troublesome expressions at configure-time, not at #if-time.
49694         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
49695         preprocessor.
49696         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
49697         compile-time C checks, done at 'configure'-time.
49698         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
49699         * modules/inttypes (Makefile): Substitute the new symbols that
49700         gl_INTTYPES_H now generates.
49701         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
49702
49703 2007-11-12  Bruno Haible  <bruno@clisp.org>
49704
49705         Tests for Unicode character classification functions.
49706
49707         * modules/unictype/bidicategory-byname-tests: New file.
49708         * modules/unictype/bidicategory-name-tests: New file.
49709         * modules/unictype/bidicategory-of-tests: New file.
49710         * modules/unictype/bidicategory-test-tests: New file.
49711         * modules/unictype/block-list-tests: New file.
49712         * modules/unictype/block-of-tests: New file.
49713         * modules/unictype/block-test-tests: New file.
49714         * modules/unictype/category-C-tests: New file.
49715         * modules/unictype/category-Cc-tests: New file.
49716         * modules/unictype/category-Cf-tests: New file.
49717         * modules/unictype/category-Cn-tests: New file.
49718         * modules/unictype/category-Co-tests: New file.
49719         * modules/unictype/category-Cs-tests: New file.
49720         * modules/unictype/category-L-tests: New file.
49721         * modules/unictype/category-Ll-tests: New file.
49722         * modules/unictype/category-Lm-tests: New file.
49723         * modules/unictype/category-Lo-tests: New file.
49724         * modules/unictype/category-Lt-tests: New file.
49725         * modules/unictype/category-Lu-tests: New file.
49726         * modules/unictype/category-M-tests: New file.
49727         * modules/unictype/category-Mc-tests: New file.
49728         * modules/unictype/category-Me-tests: New file.
49729         * modules/unictype/category-Mn-tests: New file.
49730         * modules/unictype/category-N-tests: New file.
49731         * modules/unictype/category-Nd-tests: New file.
49732         * modules/unictype/category-Nl-tests: New file.
49733         * modules/unictype/category-No-tests: New file.
49734         * modules/unictype/category-P-tests: New file.
49735         * modules/unictype/category-Pc-tests: New file.
49736         * modules/unictype/category-Pd-tests: New file.
49737         * modules/unictype/category-Pe-tests: New file.
49738         * modules/unictype/category-Pf-tests: New file.
49739         * modules/unictype/category-Pi-tests: New file.
49740         * modules/unictype/category-Po-tests: New file.
49741         * modules/unictype/category-Ps-tests: New file.
49742         * modules/unictype/category-S-tests: New file.
49743         * modules/unictype/category-Sc-tests: New file.
49744         * modules/unictype/category-Sk-tests: New file.
49745         * modules/unictype/category-Sm-tests: New file.
49746         * modules/unictype/category-So-tests: New file.
49747         * modules/unictype/category-Z-tests: New file.
49748         * modules/unictype/category-Zl-tests: New file.
49749         * modules/unictype/category-Zp-tests: New file.
49750         * modules/unictype/category-Zs-tests: New file.
49751         * modules/unictype/category-and-not-tests: New file.
49752         * modules/unictype/category-and-tests: New file.
49753         * modules/unictype/category-byname-tests: New file.
49754         * modules/unictype/category-name-tests: New file.
49755         * modules/unictype/category-none-tests: New file.
49756         * modules/unictype/category-of-tests: New file.
49757         * modules/unictype/category-or-tests: New file.
49758         * modules/unictype/category-test-withtable-tests: New file.
49759         * modules/unictype/combining-class-tests: New file.
49760         * modules/unictype/ctype-alnum-tests: New file.
49761         * modules/unictype/ctype-alpha-tests: New file.
49762         * modules/unictype/ctype-blank-tests: New file.
49763         * modules/unictype/ctype-cntrl-tests: New file.
49764         * modules/unictype/ctype-digit-tests: New file.
49765         * modules/unictype/ctype-graph-tests: New file.
49766         * modules/unictype/ctype-lower-tests: New file.
49767         * modules/unictype/ctype-print-tests: New file.
49768         * modules/unictype/ctype-punct-tests: New file.
49769         * modules/unictype/ctype-space-tests: New file.
49770         * modules/unictype/ctype-upper-tests: New file.
49771         * modules/unictype/ctype-xdigit-tests: New file.
49772         * modules/unictype/decimal-digit-tests: New file.
49773         * modules/unictype/digit-tests: New file.
49774         * modules/unictype/mirror-tests: New file.
49775         * modules/unictype/numeric-tests: New file.
49776         * modules/unictype/property-alphabetic-tests: New file.
49777         * modules/unictype/property-ascii-hex-digit-tests: New file.
49778         * modules/unictype/property-bidi-arabic-digit-tests: New file.
49779         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
49780         * modules/unictype/property-bidi-block-separator-tests: New file.
49781         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
49782         * modules/unictype/property-bidi-common-separator-tests: New file.
49783         * modules/unictype/property-bidi-control-tests: New file.
49784         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
49785         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
49786         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
49787         * modules/unictype/property-bidi-european-digit-tests: New file.
49788         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
49789         * modules/unictype/property-bidi-left-to-right-tests: New file.
49790         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
49791         * modules/unictype/property-bidi-other-neutral-tests: New file.
49792         * modules/unictype/property-bidi-pdf-tests: New file.
49793         * modules/unictype/property-bidi-segment-separator-tests: New file.
49794         * modules/unictype/property-bidi-whitespace-tests: New file.
49795         * modules/unictype/property-byname-tests: New file.
49796         * modules/unictype/property-combining-tests: New file.
49797         * modules/unictype/property-composite-tests: New file.
49798         * modules/unictype/property-currency-symbol-tests: New file.
49799         * modules/unictype/property-dash-tests: New file.
49800         * modules/unictype/property-decimal-digit-tests: New file.
49801         * modules/unictype/property-default-ignorable-code-point-tests: New file.
49802         * modules/unictype/property-deprecated-tests: New file.
49803         * modules/unictype/property-diacritic-tests: New file.
49804         * modules/unictype/property-extender-tests: New file.
49805         * modules/unictype/property-format-control-tests: New file.
49806         * modules/unictype/property-grapheme-base-tests: New file.
49807         * modules/unictype/property-grapheme-extend-tests: New file.
49808         * modules/unictype/property-grapheme-link-tests: New file.
49809         * modules/unictype/property-hex-digit-tests: New file.
49810         * modules/unictype/property-hyphen-tests: New file.
49811         * modules/unictype/property-id-continue-tests: New file.
49812         * modules/unictype/property-id-start-tests: New file.
49813         * modules/unictype/property-ideographic-tests: New file.
49814         * modules/unictype/property-ids-binary-operator-tests: New file.
49815         * modules/unictype/property-ids-trinary-operator-tests: New file.
49816         * modules/unictype/property-ignorable-control-tests: New file.
49817         * modules/unictype/property-iso-control-tests: New file.
49818         * modules/unictype/property-join-control-tests: New file.
49819         * modules/unictype/property-left-of-pair-tests: New file.
49820         * modules/unictype/property-line-separator-tests: New file.
49821         * modules/unictype/property-logical-order-exception-tests: New file.
49822         * modules/unictype/property-lowercase-tests: New file.
49823         * modules/unictype/property-math-tests: New file.
49824         * modules/unictype/property-non-break-tests: New file.
49825         * modules/unictype/property-not-a-character-tests: New file.
49826         * modules/unictype/property-numeric-tests: New file.
49827         * modules/unictype/property-other-alphabetic-tests: New file.
49828         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
49829         * modules/unictype/property-other-grapheme-extend-tests: New file.
49830         * modules/unictype/property-other-id-continue-tests: New file.
49831         * modules/unictype/property-other-id-start-tests: New file.
49832         * modules/unictype/property-other-lowercase-tests: New file.
49833         * modules/unictype/property-other-math-tests: New file.
49834         * modules/unictype/property-other-uppercase-tests: New file.
49835         * modules/unictype/property-paired-punctuation-tests: New file.
49836         * modules/unictype/property-paragraph-separator-tests: New file.
49837         * modules/unictype/property-pattern-syntax-tests: New file.
49838         * modules/unictype/property-pattern-white-space-tests: New file.
49839         * modules/unictype/property-private-use-tests: New file.
49840         * modules/unictype/property-punctuation-tests: New file.
49841         * modules/unictype/property-quotation-mark-tests: New file.
49842         * modules/unictype/property-radical-tests: New file.
49843         * modules/unictype/property-sentence-terminal-tests: New file.
49844         * modules/unictype/property-soft-dotted-tests: New file.
49845         * modules/unictype/property-space-tests: New file.
49846         * modules/unictype/property-terminal-punctuation-tests: New file.
49847         * modules/unictype/property-test-tests: New file.
49848         * modules/unictype/property-titlecase-tests: New file.
49849         * modules/unictype/property-unassigned-code-value-tests: New file.
49850         * modules/unictype/property-unified-ideograph-tests: New file.
49851         * modules/unictype/property-uppercase-tests: New file.
49852         * modules/unictype/property-variation-selector-tests: New file.
49853         * modules/unictype/property-white-space-tests: New file.
49854         * modules/unictype/property-xid-continue-tests: New file.
49855         * modules/unictype/property-xid-start-tests: New file.
49856         * modules/unictype/property-zero-width-tests: New file.
49857         * modules/unictype/scripts-tests: New file.
49858         * modules/unictype/syntax-c-ident-tests: New file.
49859         * modules/unictype/syntax-c-whitespace-tests: New file.
49860         * modules/unictype/syntax-java-ident-tests: New file.
49861         * modules/unictype/syntax-java-whitespace-tests: New file.
49862         * tests/unictype/test-bidi_byname.c: New file.
49863         * tests/unictype/test-bidi_name.c: New file.
49864         * tests/unictype/test-bidi_of.c: New file.
49865         * tests/unictype/test-bidi_test.c: New file.
49866         * tests/unictype/test-block_list.c: New file.
49867         * tests/unictype/test-block_of.c: New file.
49868         * tests/unictype/test-block_test.c: New file.
49869         * tests/unictype/test-categ_and.c: New file.
49870         * tests/unictype/test-categ_and_not.c: New file.
49871         * tests/unictype/test-categ_byname.c: New file.
49872         * tests/unictype/test-categ_name.c: New file.
49873         * tests/unictype/test-categ_none.c: New file.
49874         * tests/unictype/test-categ_of.c: New file.
49875         * tests/unictype/test-categ_or.c: New file.
49876         * tests/unictype/test-categ_test_withtable.c: New file.
49877         * tests/unictype/test-combining.c: New file.
49878         * tests/unictype/test-decdigit.c: New file.
49879         * tests/unictype/test-digit.c: New file.
49880         * tests/unictype/test-mirror.c: New file.
49881         * tests/unictype/test-numeric.c: New file.
49882         * tests/unictype/test-pr_byname.c: New file.
49883         * tests/unictype/test-pr_test.c: New file.
49884         * tests/unictype/test-predicate-part1.h: New file.
49885         * tests/unictype/test-predicate-part2.h: New file.
49886         * tests/unictype/test-scripts.c: New file.
49887         * tests/unictype/test-sy_c_ident.c: New file.
49888         * tests/unictype/test-sy_java_ident.c: New file.
49889
49890         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
49891         for Unicode 5.0.0.
49892         * tests/unictype/test-categ_Cc.c: Likewise.
49893         * tests/unictype/test-categ_Cf.c: Likewise.
49894         * tests/unictype/test-categ_Cn.c: Likewise.
49895         * tests/unictype/test-categ_Co.c: Likewise.
49896         * tests/unictype/test-categ_Cs.c: Likewise.
49897         * tests/unictype/test-categ_L.c: Likewise.
49898         * tests/unictype/test-categ_Ll.c: Likewise.
49899         * tests/unictype/test-categ_Lm.c: Likewise.
49900         * tests/unictype/test-categ_Lo.c: Likewise.
49901         * tests/unictype/test-categ_Lt.c: Likewise.
49902         * tests/unictype/test-categ_Lu.c: Likewise.
49903         * tests/unictype/test-categ_M.c: Likewise.
49904         * tests/unictype/test-categ_Mc.c: Likewise.
49905         * tests/unictype/test-categ_Me.c: Likewise.
49906         * tests/unictype/test-categ_Mn.c: Likewise.
49907         * tests/unictype/test-categ_N.c: Likewise.
49908         * tests/unictype/test-categ_Nd.c: Likewise.
49909         * tests/unictype/test-categ_Nl.c: Likewise.
49910         * tests/unictype/test-categ_No.c: Likewise.
49911         * tests/unictype/test-categ_P.c: Likewise.
49912         * tests/unictype/test-categ_Pc.c: Likewise.
49913         * tests/unictype/test-categ_Pd.c: Likewise.
49914         * tests/unictype/test-categ_Pe.c: Likewise.
49915         * tests/unictype/test-categ_Pf.c: Likewise.
49916         * tests/unictype/test-categ_Pi.c: Likewise.
49917         * tests/unictype/test-categ_Po.c: Likewise.
49918         * tests/unictype/test-categ_Ps.c: Likewise.
49919         * tests/unictype/test-categ_S.c: Likewise.
49920         * tests/unictype/test-categ_Sc.c: Likewise.
49921         * tests/unictype/test-categ_Sk.c: Likewise.
49922         * tests/unictype/test-categ_Sm.c: Likewise.
49923         * tests/unictype/test-categ_So.c: Likewise.
49924         * tests/unictype/test-categ_Z.c: Likewise.
49925         * tests/unictype/test-categ_Zl.c: Likewise.
49926         * tests/unictype/test-categ_Zp.c: Likewise.
49927         * tests/unictype/test-categ_Zs.c: Likewise.
49928         * tests/unictype/test-ctype_alnum.c: Likewise.
49929         * tests/unictype/test-ctype_alpha.c: Likewise.
49930         * tests/unictype/test-ctype_blank.c: Likewise.
49931         * tests/unictype/test-ctype_cntrl.c: Likewise.
49932         * tests/unictype/test-ctype_digit.c: Likewise.
49933         * tests/unictype/test-ctype_graph.c: Likewise.
49934         * tests/unictype/test-ctype_lower.c: Likewise.
49935         * tests/unictype/test-ctype_print.c: Likewise.
49936         * tests/unictype/test-ctype_punct.c: Likewise.
49937         * tests/unictype/test-ctype_space.c: Likewise.
49938         * tests/unictype/test-ctype_upper.c: Likewise.
49939         * tests/unictype/test-ctype_xdigit.c: Likewise.
49940         * tests/unictype/test-decdigit.h: Likewise.
49941         * tests/unictype/test-digit.h: Likewise.
49942         * tests/unictype/test-numeric.h: Likewise.
49943         * tests/unictype/test-pr_alphabetic.c: Likewise.
49944         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
49945         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
49946         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
49947         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
49948         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
49949         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
49950         * tests/unictype/test-pr_bidi_control.c: Likewise.
49951         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
49952         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
49953         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
49954         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
49955         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
49956         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
49957         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
49958         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
49959         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
49960         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
49961         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
49962         * tests/unictype/test-pr_combining.c: Likewise.
49963         * tests/unictype/test-pr_composite.c: Likewise.
49964         * tests/unictype/test-pr_currency_symbol.c: Likewise.
49965         * tests/unictype/test-pr_dash.c: Likewise.
49966         * tests/unictype/test-pr_decimal_digit.c: Likewise.
49967         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
49968         * tests/unictype/test-pr_deprecated.c: Likewise.
49969         * tests/unictype/test-pr_diacritic.c: Likewise.
49970         * tests/unictype/test-pr_extender.c: Likewise.
49971         * tests/unictype/test-pr_format_control.c: Likewise.
49972         * tests/unictype/test-pr_grapheme_base.c: Likewise.
49973         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
49974         * tests/unictype/test-pr_grapheme_link.c: Likewise.
49975         * tests/unictype/test-pr_hex_digit.c: Likewise.
49976         * tests/unictype/test-pr_hyphen.c: Likewise.
49977         * tests/unictype/test-pr_id_continue.c: Likewise.
49978         * tests/unictype/test-pr_id_start.c: Likewise.
49979         * tests/unictype/test-pr_ideographic.c: Likewise.
49980         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
49981         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
49982         * tests/unictype/test-pr_ignorable_control.c: Likewise.
49983         * tests/unictype/test-pr_iso_control.c: Likewise.
49984         * tests/unictype/test-pr_join_control.c: Likewise.
49985         * tests/unictype/test-pr_left_of_pair.c: Likewise.
49986         * tests/unictype/test-pr_line_separator.c: Likewise.
49987         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
49988         * tests/unictype/test-pr_lowercase.c: Likewise.
49989         * tests/unictype/test-pr_math.c: Likewise.
49990         * tests/unictype/test-pr_non_break.c: Likewise.
49991         * tests/unictype/test-pr_not_a_character.c: Likewise.
49992         * tests/unictype/test-pr_numeric.c: Likewise.
49993         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
49994         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
49995         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
49996         * tests/unictype/test-pr_other_id_continue.c: Likewise.
49997         * tests/unictype/test-pr_other_id_start.c: Likewise.
49998         * tests/unictype/test-pr_other_lowercase.c: Likewise.
49999         * tests/unictype/test-pr_other_math.c: Likewise.
50000         * tests/unictype/test-pr_other_uppercase.c: Likewise.
50001         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
50002         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
50003         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
50004         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
50005         * tests/unictype/test-pr_private_use.c: Likewise.
50006         * tests/unictype/test-pr_punctuation.c: Likewise.
50007         * tests/unictype/test-pr_quotation_mark.c: Likewise.
50008         * tests/unictype/test-pr_radical.c: Likewise.
50009         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
50010         * tests/unictype/test-pr_soft_dotted.c: Likewise.
50011         * tests/unictype/test-pr_space.c: Likewise.
50012         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
50013         * tests/unictype/test-pr_titlecase.c: Likewise.
50014         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
50015         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
50016         * tests/unictype/test-pr_uppercase.c: Likewise.
50017         * tests/unictype/test-pr_variation_selector.c: Likewise.
50018         * tests/unictype/test-pr_white_space.c: Likewise.
50019         * tests/unictype/test-pr_xid_continue.c: Likewise.
50020         * tests/unictype/test-pr_xid_start.c: Likewise.
50021         * tests/unictype/test-pr_zero_width.c: Likewise.
50022         * tests/unictype/test-sy_c_whitespace.c: Likewise.
50023         * tests/unictype/test-sy_java_whitespace.c: Likewise.
50024
50025 2007-11-12  Bruno Haible  <bruno@clisp.org>
50026
50027         Unicode character classification functions.
50028         * lib/unictype.h: New file.
50029         * modules/unictype/base: New file.
50030         * modules/unictype/category-L: New file.
50031         * modules/unictype/category-Lu: New file.
50032         * modules/unictype/category-Ll: New file.
50033         * modules/unictype/category-Lt: New file.
50034         * modules/unictype/category-Lm: New file.
50035         * modules/unictype/category-Lo: New file.
50036         * modules/unictype/category-M: New file.
50037         * modules/unictype/category-Mn: New file.
50038         * modules/unictype/category-Mc: New file.
50039         * modules/unictype/category-Me: New file.
50040         * modules/unictype/category-N: New file.
50041         * modules/unictype/category-Nd: New file.
50042         * modules/unictype/category-Nl: New file.
50043         * modules/unictype/category-No: New file.
50044         * modules/unictype/category-P: New file.
50045         * modules/unictype/category-Pc: New file.
50046         * modules/unictype/category-Pd: New file.
50047         * modules/unictype/category-Ps: New file.
50048         * modules/unictype/category-Pe: New file.
50049         * modules/unictype/category-Pi: New file.
50050         * modules/unictype/category-Pf: New file.
50051         * modules/unictype/category-Po: New file.
50052         * modules/unictype/category-S: New file.
50053         * modules/unictype/category-Sm: New file.
50054         * modules/unictype/category-Sc: New file.
50055         * modules/unictype/category-Sk: New file.
50056         * modules/unictype/category-So: New file.
50057         * modules/unictype/category-Z: New file.
50058         * modules/unictype/category-Zs: New file.
50059         * modules/unictype/category-Zl: New file.
50060         * modules/unictype/category-Zp: New file.
50061         * modules/unictype/category-C: New file.
50062         * modules/unictype/category-Cc: New file.
50063         * modules/unictype/category-Cf: New file.
50064         * modules/unictype/category-Cs: New file.
50065         * modules/unictype/category-Co: New file.
50066         * modules/unictype/category-Cn: New file.
50067         * modules/unictype/category-or: New file.
50068         * modules/unictype/category-of: New file.
50069         * modules/unictype/category-test: New file.
50070         * modules/unictype/category-test-withtable: New file.
50071         * modules/unictype/category-byname: New file.
50072         * modules/unictype/category-none: New file.
50073         * modules/unictype/category-and: New file.
50074         * modules/unictype/category-and-not: New file.
50075         * modules/unictype/category-name: New file.
50076         * modules/unictype/combining-class: New file.
50077         * modules/unictype/category-all: New file.
50078         * modules/unictype/bidicategory-all: New file.
50079         * modules/unictype/bidicategory-byname: New file.
50080         * modules/unictype/bidicategory-name: New file.
50081         * modules/unictype/bidicategory-of: New file.
50082         * modules/unictype/bidicategory-test: New file.
50083         * modules/unictype/decimal-digit: New file.
50084         * modules/unictype/digit: New file.
50085         * modules/unictype/numeric: New file.
50086         * modules/unictype/mirror: New file.
50087         * modules/unictype/property-white-space: New file.
50088         * modules/unictype/property-alphabetic: New file.
50089         * modules/unictype/property-other-alphabetic: New file.
50090         * modules/unictype/property-not-a-character: New file.
50091         * modules/unictype/property-default-ignorable-code-point: New file.
50092         * modules/unictype/property-other-default-ignorable-code-point: New
50093         file.
50094         * modules/unictype/property-deprecated: New file.
50095         * modules/unictype/property-logical-order-exception: New file.
50096         * modules/unictype/property-variation-selector: New file.
50097         * modules/unictype/property-private-use: New file.
50098         * modules/unictype/property-unassigned-code-value: New file.
50099         * modules/unictype/property-uppercase: New file.
50100         * modules/unictype/property-other-uppercase: New file.
50101         * modules/unictype/property-lowercase: New file.
50102         * modules/unictype/property-other-lowercase: New file.
50103         * modules/unictype/property-titlecase: New file.
50104         * modules/unictype/property-soft-dotted: New file.
50105         * modules/unictype/property-id-start: New file.
50106         * modules/unictype/property-other-id-start: New file.
50107         * modules/unictype/property-id-continue: New file.
50108         * modules/unictype/property-other-id-continue: New file.
50109         * modules/unictype/property-xid-start: New file.
50110         * modules/unictype/property-xid-continue: New file.
50111         * modules/unictype/property-pattern-white-space: New file.
50112         * modules/unictype/property-pattern-syntax: New file.
50113         * modules/unictype/property-join-control: New file.
50114         * modules/unictype/property-grapheme-base: New file.
50115         * modules/unictype/property-grapheme-extend: New file.
50116         * modules/unictype/property-other-grapheme-extend: New file.
50117         * modules/unictype/property-grapheme-link: New file.
50118         * modules/unictype/property-bidi-control: New file.
50119         * modules/unictype/property-bidi-left-to-right: New file.
50120         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
50121         * modules/unictype/property-bidi-arabic-right-to-left: New file.
50122         * modules/unictype/property-bidi-european-digit: New file.
50123         * modules/unictype/property-bidi-eur-num-separator: New file.
50124         * modules/unictype/property-bidi-eur-num-terminator: New file.
50125         * modules/unictype/property-bidi-arabic-digit: New file.
50126         * modules/unictype/property-bidi-common-separator: New file.
50127         * modules/unictype/property-bidi-block-separator: New file.
50128         * modules/unictype/property-bidi-segment-separator: New file.
50129         * modules/unictype/property-bidi-whitespace: New file.
50130         * modules/unictype/property-bidi-non-spacing-mark: New file.
50131         * modules/unictype/property-bidi-boundary-neutral: New file.
50132         * modules/unictype/property-bidi-pdf: New file.
50133         * modules/unictype/property-bidi-embedding-or-override: New file.
50134         * modules/unictype/property-bidi-other-neutral: New file.
50135         * modules/unictype/property-hex-digit: New file.
50136         * modules/unictype/property-ascii-hex-digit: New file.
50137         * modules/unictype/property-ideographic: New file.
50138         * modules/unictype/property-unified-ideograph: New file.
50139         * modules/unictype/property-radical: New file.
50140         * modules/unictype/property-ids-binary-operator: New file.
50141         * modules/unictype/property-ids-trinary-operator: New file.
50142         * modules/unictype/property-zero-width: New file.
50143         * modules/unictype/property-space: New file.
50144         * modules/unictype/property-non-break: New file.
50145         * modules/unictype/property-iso-control: New file.
50146         * modules/unictype/property-format-control: New file.
50147         * modules/unictype/property-dash: New file.
50148         * modules/unictype/property-hyphen: New file.
50149         * modules/unictype/property-punctuation: New file.
50150         * modules/unictype/property-line-separator: New file.
50151         * modules/unictype/property-paragraph-separator: New file.
50152         * modules/unictype/property-quotation-mark: New file.
50153         * modules/unictype/property-sentence-terminal: New file.
50154         * modules/unictype/property-terminal-punctuation: New file.
50155         * modules/unictype/property-currency-symbol: New file.
50156         * modules/unictype/property-math: New file.
50157         * modules/unictype/property-other-math: New file.
50158         * modules/unictype/property-paired-punctuation: New file.
50159         * modules/unictype/property-left-of-pair: New file.
50160         * modules/unictype/property-combining: New file.
50161         * modules/unictype/property-composite: New file.
50162         * modules/unictype/property-decimal-digit: New file.
50163         * modules/unictype/property-numeric: New file.
50164         * modules/unictype/property-diacritic: New file.
50165         * modules/unictype/property-extender: New file.
50166         * modules/unictype/property-ignorable-control: New file.
50167         * modules/unictype/property-test: New file.
50168         * modules/unictype/property-byname: New file.
50169         * modules/unictype/property-all: New file.
50170         * modules/unictype/scripts: New file.
50171         * modules/unictype/scripts-all: New file.
50172         * modules/unictype/block-of: New file.
50173         * modules/unictype/block-test: New file.
50174         * modules/unictype/block-list: New file.
50175         * modules/unictype/block-all: New file.
50176         * modules/unictype/syntax-c-whitespace: New file.
50177         * modules/unictype/syntax-java-whitespace: New file.
50178         * modules/unictype/syntax-c-ident: New file.
50179         * modules/unictype/syntax-java-ident: New file.
50180         * modules/unictype/ctype-alnum: New file.
50181         * modules/unictype/ctype-alpha: New file.
50182         * modules/unictype/ctype-cntrl: New file.
50183         * modules/unictype/ctype-digit: New file.
50184         * modules/unictype/ctype-graph: New file.
50185         * modules/unictype/ctype-lower: New file.
50186         * modules/unictype/ctype-print: New file.
50187         * modules/unictype/ctype-punct: New file.
50188         * modules/unictype/ctype-space: New file.
50189         * modules/unictype/ctype-upper: New file.
50190         * modules/unictype/ctype-xdigit: New file.
50191         * modules/unictype/ctype-blank: New file.
50192         * lib/unictype/bidi_byname.c: New file.
50193         * lib/unictype/bidi_name.c: New file.
50194         * lib/unictype/bidi_of.c: New file.
50195         * lib/unictype/bidi_test.c: New file.
50196         * lib/unictype/bitmap.h: New file.
50197         * lib/unictype/block_test.c: New file.
50198         * lib/unictype/blocks.c: New file.
50199         * lib/unictype/categ_C.c: New file.
50200         * lib/unictype/categ_Cc.c: New file.
50201         * lib/unictype/categ_Cf.c: New file.
50202         * lib/unictype/categ_Cn.c: New file.
50203         * lib/unictype/categ_Co.c: New file.
50204         * lib/unictype/categ_Cs.c: New file.
50205         * lib/unictype/categ_L.c: New file.
50206         * lib/unictype/categ_Ll.c: New file.
50207         * lib/unictype/categ_Lm.c: New file.
50208         * lib/unictype/categ_Lo.c: New file.
50209         * lib/unictype/categ_Lt.c: New file.
50210         * lib/unictype/categ_Lu.c: New file.
50211         * lib/unictype/categ_M.c: New file.
50212         * lib/unictype/categ_Mc.c: New file.
50213         * lib/unictype/categ_Me.c: New file.
50214         * lib/unictype/categ_Mn.c: New file.
50215         * lib/unictype/categ_N.c: New file.
50216         * lib/unictype/categ_Nd.c: New file.
50217         * lib/unictype/categ_Nl.c: New file.
50218         * lib/unictype/categ_No.c: New file.
50219         * lib/unictype/categ_P.c: New file.
50220         * lib/unictype/categ_Pc.c: New file.
50221         * lib/unictype/categ_Pd.c: New file.
50222         * lib/unictype/categ_Pe.c: New file.
50223         * lib/unictype/categ_Pf.c: New file.
50224         * lib/unictype/categ_Pi.c: New file.
50225         * lib/unictype/categ_Po.c: New file.
50226         * lib/unictype/categ_Ps.c: New file.
50227         * lib/unictype/categ_S.c: New file.
50228         * lib/unictype/categ_Sc.c: New file.
50229         * lib/unictype/categ_Sk.c: New file.
50230         * lib/unictype/categ_Sm.c: New file.
50231         * lib/unictype/categ_So.c: New file.
50232         * lib/unictype/categ_Z.c: New file.
50233         * lib/unictype/categ_Zl.c: New file.
50234         * lib/unictype/categ_Zp.c: New file.
50235         * lib/unictype/categ_Zs.c: New file.
50236         * lib/unictype/categ_and.c: New file.
50237         * lib/unictype/categ_and_not.c: New file.
50238         * lib/unictype/categ_byname.c: New file.
50239         * lib/unictype/categ_name.c: New file.
50240         * lib/unictype/categ_none.c: New file.
50241         * lib/unictype/categ_of.c: New file.
50242         * lib/unictype/categ_or.c: New file.
50243         * lib/unictype/categ_test.c: New file.
50244         * lib/unictype/combining.c: New file.
50245         * lib/unictype/ctype_alnum.c: New file.
50246         * lib/unictype/ctype_alpha.c: New file.
50247         * lib/unictype/ctype_blank.c: New file.
50248         * lib/unictype/ctype_cntrl.c: New file.
50249         * lib/unictype/ctype_digit.c: New file.
50250         * lib/unictype/ctype_graph.c: New file.
50251         * lib/unictype/ctype_lower.c: New file.
50252         * lib/unictype/ctype_print.c: New file.
50253         * lib/unictype/ctype_punct.c: New file.
50254         * lib/unictype/ctype_space.c: New file.
50255         * lib/unictype/ctype_upper.c: New file.
50256         * lib/unictype/ctype_xdigit.c: New file.
50257         * lib/unictype/decdigit.c: New file.
50258         * lib/unictype/digit.c: New file.
50259         * lib/unictype/identsyntaxmap.h: New file.
50260         * lib/unictype/mirror.c: New file.
50261         * lib/unictype/numeric.c: New file.
50262         * lib/unictype/pr_alphabetic.c: New file.
50263         * lib/unictype/pr_ascii_hex_digit.c: New file.
50264         * lib/unictype/pr_bidi_arabic_digit.c: New file.
50265         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
50266         * lib/unictype/pr_bidi_block_separator.c: New file.
50267         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
50268         * lib/unictype/pr_bidi_common_separator.c: New file.
50269         * lib/unictype/pr_bidi_control.c: New file.
50270         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
50271         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
50272         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
50273         * lib/unictype/pr_bidi_european_digit.c: New file.
50274         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
50275         * lib/unictype/pr_bidi_left_to_right.c: New file.
50276         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
50277         * lib/unictype/pr_bidi_other_neutral.c: New file.
50278         * lib/unictype/pr_bidi_pdf.c: New file.
50279         * lib/unictype/pr_bidi_segment_separator.c: New file.
50280         * lib/unictype/pr_bidi_whitespace.c: New file.
50281         * lib/unictype/pr_byname.c: New file.
50282         * lib/unictype/pr_byname.gperf: New file.
50283         * lib/unictype/pr_combining.c: New file.
50284         * lib/unictype/pr_composite.c: New file.
50285         * lib/unictype/pr_currency_symbol.c: New file.
50286         * lib/unictype/pr_dash.c: New file.
50287         * lib/unictype/pr_decimal_digit.c: New file.
50288         * lib/unictype/pr_default_ignorable_code_point.c: New file.
50289         * lib/unictype/pr_deprecated.c: New file.
50290         * lib/unictype/pr_diacritic.c: New file.
50291         * lib/unictype/pr_extender.c: New file.
50292         * lib/unictype/pr_format_control.c: New file.
50293         * lib/unictype/pr_grapheme_base.c: New file.
50294         * lib/unictype/pr_grapheme_extend.c: New file.
50295         * lib/unictype/pr_grapheme_link.c: New file.
50296         * lib/unictype/pr_hex_digit.c: New file.
50297         * lib/unictype/pr_hyphen.c: New file.
50298         * lib/unictype/pr_id_continue.c: New file.
50299         * lib/unictype/pr_id_start.c: New file.
50300         * lib/unictype/pr_ideographic.c: New file.
50301         * lib/unictype/pr_ids_binary_operator.c: New file.
50302         * lib/unictype/pr_ids_trinary_operator.c: New file.
50303         * lib/unictype/pr_ignorable_control.c: New file.
50304         * lib/unictype/pr_iso_control.c: New file.
50305         * lib/unictype/pr_join_control.c: New file.
50306         * lib/unictype/pr_left_of_pair.c: New file.
50307         * lib/unictype/pr_line_separator.c: New file.
50308         * lib/unictype/pr_logical_order_exception.c: New file.
50309         * lib/unictype/pr_lowercase.c: New file.
50310         * lib/unictype/pr_math.c: New file.
50311         * lib/unictype/pr_non_break.c: New file.
50312         * lib/unictype/pr_not_a_character.c: New file.
50313         * lib/unictype/pr_numeric.c: New file.
50314         * lib/unictype/pr_other_alphabetic.c: New file.
50315         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
50316         * lib/unictype/pr_other_grapheme_extend.c: New file.
50317         * lib/unictype/pr_other_id_continue.c: New file.
50318         * lib/unictype/pr_other_id_start.c: New file.
50319         * lib/unictype/pr_other_lowercase.c: New file.
50320         * lib/unictype/pr_other_math.c: New file.
50321         * lib/unictype/pr_other_uppercase.c: New file.
50322         * lib/unictype/pr_paired_punctuation.c: New file.
50323         * lib/unictype/pr_paragraph_separator.c: New file.
50324         * lib/unictype/pr_pattern_syntax.c: New file.
50325         * lib/unictype/pr_pattern_white_space.c: New file.
50326         * lib/unictype/pr_private_use.c: New file.
50327         * lib/unictype/pr_punctuation.c: New file.
50328         * lib/unictype/pr_quotation_mark.c: New file.
50329         * lib/unictype/pr_radical.c: New file.
50330         * lib/unictype/pr_sentence_terminal.c: New file.
50331         * lib/unictype/pr_soft_dotted.c: New file.
50332         * lib/unictype/pr_space.c: New file.
50333         * lib/unictype/pr_terminal_punctuation.c: New file.
50334         * lib/unictype/pr_test.c: New file.
50335         * lib/unictype/pr_titlecase.c: New file.
50336         * lib/unictype/pr_unassigned_code_value.c: New file.
50337         * lib/unictype/pr_unified_ideograph.c: New file.
50338         * lib/unictype/pr_uppercase.c: New file.
50339         * lib/unictype/pr_variation_selector.c: New file.
50340         * lib/unictype/pr_white_space.c: New file.
50341         * lib/unictype/pr_xid_continue.c: New file.
50342         * lib/unictype/pr_xid_start.c: New file.
50343         * lib/unictype/pr_zero_width.c: New file.
50344         * lib/unictype/scripts.c: New file.
50345         * lib/unictype/sy_c_ident.c: New file.
50346         * lib/unictype/sy_c_whitespace.c: New file.
50347         * lib/unictype/sy_java_ident.c: New file.
50348         * lib/unictype/sy_java_whitespace.c: New file.
50349
50350         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
50351         Unicode 5.0.0.
50352         * lib/unictype/blocks.h: Likewise.
50353         * lib/unictype/categ_C.h: Likewise.
50354         * lib/unictype/categ_Cc.h: Likewise.
50355         * lib/unictype/categ_Cf.h: Likewise.
50356         * lib/unictype/categ_Cn.h: Likewise.
50357         * lib/unictype/categ_Co.h: Likewise.
50358         * lib/unictype/categ_Cs.h: Likewise.
50359         * lib/unictype/categ_L.h: Likewise.
50360         * lib/unictype/categ_Ll.h: Likewise.
50361         * lib/unictype/categ_Lm.h: Likewise.
50362         * lib/unictype/categ_Lo.h: Likewise.
50363         * lib/unictype/categ_Lt.h: Likewise.
50364         * lib/unictype/categ_Lu.h: Likewise.
50365         * lib/unictype/categ_M.h: Likewise.
50366         * lib/unictype/categ_Mc.h: Likewise.
50367         * lib/unictype/categ_Me.h: Likewise.
50368         * lib/unictype/categ_Mn.h: Likewise.
50369         * lib/unictype/categ_N.h: Likewise.
50370         * lib/unictype/categ_Nd.h: Likewise.
50371         * lib/unictype/categ_Nl.h: Likewise.
50372         * lib/unictype/categ_No.h: Likewise.
50373         * lib/unictype/categ_P.h: Likewise.
50374         * lib/unictype/categ_Pc.h: Likewise.
50375         * lib/unictype/categ_Pd.h: Likewise.
50376         * lib/unictype/categ_Pe.h: Likewise.
50377         * lib/unictype/categ_Pf.h: Likewise.
50378         * lib/unictype/categ_Pi.h: Likewise.
50379         * lib/unictype/categ_Po.h: Likewise.
50380         * lib/unictype/categ_Ps.h: Likewise.
50381         * lib/unictype/categ_S.h: Likewise.
50382         * lib/unictype/categ_Sc.h: Likewise.
50383         * lib/unictype/categ_Sk.h: Likewise.
50384         * lib/unictype/categ_Sm.h: Likewise.
50385         * lib/unictype/categ_So.h: Likewise.
50386         * lib/unictype/categ_Z.h: Likewise.
50387         * lib/unictype/categ_Zl.h: Likewise.
50388         * lib/unictype/categ_Zp.h: Likewise.
50389         * lib/unictype/categ_Zs.h: Likewise.
50390         * lib/unictype/categ_of.h: Likewise.
50391         * lib/unictype/combining.h: Likewise.
50392         * lib/unictype/ctype_alnum.h: Likewise.
50393         * lib/unictype/ctype_alpha.h: Likewise.
50394         * lib/unictype/ctype_blank.h: Likewise.
50395         * lib/unictype/ctype_cntrl.h: Likewise.
50396         * lib/unictype/ctype_digit.h: Likewise.
50397         * lib/unictype/ctype_graph.h: Likewise.
50398         * lib/unictype/ctype_lower.h: Likewise.
50399         * lib/unictype/ctype_print.h: Likewise.
50400         * lib/unictype/ctype_punct.h: Likewise.
50401         * lib/unictype/ctype_space.h: Likewise.
50402         * lib/unictype/ctype_upper.h: Likewise.
50403         * lib/unictype/ctype_xdigit.h: Likewise.
50404         * lib/unictype/decdigit.h: Likewise.
50405         * lib/unictype/digit.h: Likewise.
50406         * lib/unictype/mirror.h: Likewise.
50407         * lib/unictype/numeric.h: Likewise.
50408         * lib/unictype/pr_alphabetic.h: Likewise.
50409         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
50410         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
50411         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
50412         * lib/unictype/pr_bidi_block_separator.h: Likewise.
50413         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
50414         * lib/unictype/pr_bidi_common_separator.h: Likewise.
50415         * lib/unictype/pr_bidi_control.h: Likewise.
50416         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
50417         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
50418         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
50419         * lib/unictype/pr_bidi_european_digit.h: Likewise.
50420         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
50421         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
50422         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
50423         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
50424         * lib/unictype/pr_bidi_pdf.h: Likewise.
50425         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
50426         * lib/unictype/pr_bidi_whitespace.h: Likewise.
50427         * lib/unictype/pr_combining.h: Likewise.
50428         * lib/unictype/pr_composite.h: Likewise.
50429         * lib/unictype/pr_currency_symbol.h: Likewise.
50430         * lib/unictype/pr_dash.h: Likewise.
50431         * lib/unictype/pr_decimal_digit.h: Likewise.
50432         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
50433         * lib/unictype/pr_deprecated.h: Likewise.
50434         * lib/unictype/pr_diacritic.h: Likewise.
50435         * lib/unictype/pr_extender.h: Likewise.
50436         * lib/unictype/pr_format_control.h: Likewise.
50437         * lib/unictype/pr_grapheme_base.h: Likewise.
50438         * lib/unictype/pr_grapheme_extend.h: Likewise.
50439         * lib/unictype/pr_grapheme_link.h: Likewise.
50440         * lib/unictype/pr_hex_digit.h: Likewise.
50441         * lib/unictype/pr_hyphen.h: Likewise.
50442         * lib/unictype/pr_id_continue.h: Likewise.
50443         * lib/unictype/pr_id_start.h: Likewise.
50444         * lib/unictype/pr_ideographic.h: Likewise.
50445         * lib/unictype/pr_ids_binary_operator.h: Likewise.
50446         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
50447         * lib/unictype/pr_ignorable_control.h: Likewise.
50448         * lib/unictype/pr_iso_control.h: Likewise.
50449         * lib/unictype/pr_join_control.h: Likewise.
50450         * lib/unictype/pr_left_of_pair.h: Likewise.
50451         * lib/unictype/pr_line_separator.h: Likewise.
50452         * lib/unictype/pr_logical_order_exception.h: Likewise.
50453         * lib/unictype/pr_lowercase.h: Likewise.
50454         * lib/unictype/pr_math.h: Likewise.
50455         * lib/unictype/pr_non_break.h: Likewise.
50456         * lib/unictype/pr_not_a_character.h: Likewise.
50457         * lib/unictype/pr_numeric.h: Likewise.
50458         * lib/unictype/pr_other_alphabetic.h: Likewise.
50459         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
50460         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
50461         * lib/unictype/pr_other_id_continue.h: Likewise.
50462         * lib/unictype/pr_other_id_start.h: Likewise.
50463         * lib/unictype/pr_other_lowercase.h: Likewise.
50464         * lib/unictype/pr_other_math.h: Likewise.
50465         * lib/unictype/pr_other_uppercase.h: Likewise.
50466         * lib/unictype/pr_paired_punctuation.h: Likewise.
50467         * lib/unictype/pr_paragraph_separator.h: Likewise.
50468         * lib/unictype/pr_pattern_syntax.h: Likewise.
50469         * lib/unictype/pr_pattern_white_space.h: Likewise.
50470         * lib/unictype/pr_private_use.h: Likewise.
50471         * lib/unictype/pr_punctuation.h: Likewise.
50472         * lib/unictype/pr_quotation_mark.h: Likewise.
50473         * lib/unictype/pr_radical.h: Likewise.
50474         * lib/unictype/pr_sentence_terminal.h: Likewise.
50475         * lib/unictype/pr_soft_dotted.h: Likewise.
50476         * lib/unictype/pr_space.h: Likewise.
50477         * lib/unictype/pr_terminal_punctuation.h: Likewise.
50478         * lib/unictype/pr_titlecase.h: Likewise.
50479         * lib/unictype/pr_unassigned_code_value.h: Likewise.
50480         * lib/unictype/pr_unified_ideograph.h: Likewise.
50481         * lib/unictype/pr_uppercase.h: Likewise.
50482         * lib/unictype/pr_variation_selector.h: Likewise.
50483         * lib/unictype/pr_white_space.h: Likewise.
50484         * lib/unictype/pr_xid_continue.h: Likewise.
50485         * lib/unictype/pr_xid_start.h: Likewise.
50486         * lib/unictype/pr_zero_width.h: Likewise.
50487         * lib/unictype/scripts.h: Likewise.
50488         * lib/unictype/scripts_byname.gperf: Likewise.
50489         * lib/unictype/sy_c_ident.h: Likewise.
50490         * lib/unictype/sy_c_whitespace.h: Likewise.
50491         * lib/unictype/sy_java_ident.h: Likewise.
50492         * lib/unictype/sy_java_whitespace.h: Likewise.
50493
50494         * lib/unictype/Makefile: New file.
50495         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
50496         glibc.
50497         * lib/unictype/3level.h: New file, copied from glibc.
50498         * lib/unictype/3levelbit.h: New file.
50499
50500 2007-11-11  Bruno Haible  <bruno@clisp.org>
50501
50502         * modules/gperf: New file.
50503         * modules/iconv_open (Depends-on): Add it.
50504         (Makefile.am): Remove the GPERF definition.
50505
50506 2007-11-11  Bruno Haible  <bruno@clisp.org>
50507
50508         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
50509         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
50510
50511 2007-11-11  Bruno Haible  <bruno@clisp.org>
50512
50513         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
50514         (usage): Remove function.
50515
50516 2007-11-11  Bruno Haible  <bruno@clisp.org>
50517
50518         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
50519         gl_FUNC_CEILF_LIBS.
50520         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
50521         gl_FUNC_CEIL_LIBS.
50522         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
50523         gl_FUNC_CEILL_LIBS.
50524         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
50525         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
50526         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
50527
50528 2007-11-11  Bruno Haible  <bruno@clisp.org>
50529
50530         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
50531         roundf were declared but do not exist on functions.
50532         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
50533         roundl were declared but do not exist on functions.
50534         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
50535         HAVE_FLOORL_AND_CEILL, respectively.
50536         Needed for Sun C on Solaris 10.
50537
50538 2007-11-11  Bruno Haible  <bruno@clisp.org>
50539
50540         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
50541         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
50542         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
50543         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
50544         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
50545         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
50546         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
50547         HAVE_DECL_ROUNDF.
50548         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
50549         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
50550         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
50551         of HAVE_DECL_ROUND*.
50552         * modules/math (Makefile.am): Update.
50553
50554 2007-11-10  Bruno Haible  <bruno@clisp.org>
50555
50556         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
50557         ptrdiff_t as m4/intl.m4.
50558
50559 2007-11-10  Jim Meyering  <meyering@redhat.com>
50560
50561         Avoid link failure for the argmatch test.
50562         * tests/test-argmatch.c (usage): Define function to avoid a link
50563         failure: argmatch_die requires a usage function.
50564
50565 2007-11-09  Bruno Haible  <bruno@clisp.org>
50566
50567         * doc/functions/snprintf.texi: Mention BeOS deficiency.
50568         * doc/functions/vsnprintf.texi: Likewise.
50569         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
50570         with a size argument < 2.
50571
50572 2007-11-09  Bruno Haible  <bruno@clisp.org>
50573
50574         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
50575         buffer. Fixes an inefficiency introduced on 2007-11-03.
50576
50577 2007-11-09  Bruno Haible  <bruno@clisp.org>
50578
50579         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
50580         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
50581
50582 2007-11-08  Jim Meyering  <meyering@redhat.com>
50583
50584         Change cache variable name prefix "jm_" to "gl_" everywhere.
50585         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
50586         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
50587         * m4/uptime.m4: s/gl_/jm_/
50588
50589 2007-11-07  Bruno Haible  <bruno@clisp.org>
50590
50591         Update to GNU gettext 0.17.
50592         * m4/intl.m4: Update to GNU gettext 0.17.
50593         * m4/po.m4: Likewise.
50594         * modules/gettext (Files): Remove m4/ulonglong.m4.
50595         (configure.ac): Require gettext infrastructure from version 0.17.
50596
50597 2007-11-06  Bruno Haible  <bruno@clisp.org>
50598
50599         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
50600         symbolic values are not defined in a public header.
50601         * lib/freadable.c (freadable) [QNX]: Likewise.
50602         * lib/freadahead.c (freadahead) [QNX]: Likewise.
50603         * lib/freading.c (freading) [QNX]: Likewise.
50604         * lib/fseterr.c (fseterr) [QNX]: Likewise.
50605         * lib/fwritable.c (fwritable) [QNX]: Likewise.
50606         * lib/fwriting.c (fwriting) [QNX]: Likewise.
50607         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
50608         Reported by Alain Magloire.
50609
50610         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
50611
50612 2007-11-05  Bruno Haible  <bruno@clisp.org>
50613
50614         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
50615         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
50616         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
50617         Reported by Eric Blake.
50618
50619 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50620             Bruno Haible  <bruno@clisp.org>
50621
50622         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
50623         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
50624         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
50625         (malloc): Undefine also before including <stdlib.h>.
50626         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
50627         Needed on OSF/1 4.0.
50628
50629 2007-11-05  Jim Meyering  <meyering@redhat.com>
50630
50631         git-version-gen: sync from coreutils.
50632         * build-aux/git-version-gen: Add comments.
50633         Change the first '-' to '.' in the snapshot version string,
50634         e.g., 6.9-377-08144 -> 6.9.377-08144
50635         Remove first parameter.
50636         Don't declare a version "-dirty" merely because a time
50637         stamp has changed.
50638
50639 2007-11-04  Bruno Haible  <bruno@clisp.org>
50640
50641         * lib/lock.h: Protect all macro definitions containing an 'if'
50642         statement through a "do { ... } while (0)".
50643         * lib/tls.h: Likewise.
50644
50645 2007-11-04  Bruno Haible  <bruno@clisp.org>
50646
50647         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
50648
50649 2007-11-04  Bruno Haible  <bruno@clisp.org>
50650
50651         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
50652         * modules/fprintf-posix (Depends-on): Add nocrash.
50653         * modules/snprintf-posix (Depends-on): Likewise.
50654         * modules/sprintf-posix (Depends-on): Likewise.
50655         * modules/vasnprintf-posix (Depends-on): Likewise.
50656         * modules/vasprintf-posix (Depends-on): Likewise.
50657         * modules/vfprintf-posix (Depends-on): Likewise.
50658         * modules/vsnprintf-posix (Depends-on): Likewise.
50659         * modules/vsprintf-posix (Depends-on): Likewise.
50660         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
50661         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
50662         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
50663         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
50664         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
50665         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
50666         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
50667
50668 2007-11-04  Bruno Haible  <bruno@clisp.org>
50669
50670         * modules/nocrash: New file.
50671         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
50672         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
50673
50674 2007-11-04  Bruno Haible  <bruno@clisp.org>
50675
50676         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
50677         precision handling.
50678         * tests/test-vasprintf-posix.c (test_function): Likewise.
50679         * tests/test-snprintf-posix.h (test_function): Likewise.
50680         * tests/test-sprintf-posix.h (test_function): Likewise.
50681
50682         Fix *printf behaviour for large precisions on mingw and BeOS.
50683         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
50684         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
50685         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
50686         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50687         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50688         gl_PRINTF_PRECISION and test its result. Invoke
50689         gl_PREREQ_VASNPRINTF_PRECISION.
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         * doc/functions/fprintf.texi: Update.
50698         * doc/functions/printf.texi: Update.
50699         * doc/functions/snprintf.texi: Update.
50700         * doc/functions/sprintf.texi: Update.
50701         * doc/functions/vfprintf.texi: Update.
50702         * doc/functions/vprintf.texi: Update.
50703         * doc/functions/vsnprintf.texi: Update.
50704         * doc/functions/vsprintf.texi: Update.
50705
50706 2007-11-04  Bruno Haible  <bruno@clisp.org>
50707
50708         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
50709
50710 2007-11-04  Bruno Haible  <bruno@clisp.org>
50711
50712         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
50713         Reported by Sylvain Beucler <beuc@gnu.org>.
50714
50715 2007-11-03  Bruno Haible  <bruno@clisp.org>
50716
50717         * tests/test-fprintf-posix2.sh: New file.
50718         * tests/test-fprintf-posix2.c: New file.
50719         * modules/fprintf-posix-tests (Files): Add them.
50720         (TESTS): Add test-fprintf-posix2.sh.
50721         (configure.ac): Check for getrlimit and setrlimit.
50722         (check_PROGRAMS): Add test-fprintf-posix2.
50723
50724         * tests/test-printf-posix2.sh: New file.
50725         * tests/test-printf-posix2.c: New file.
50726         * modules/printf-posix-tests (Files): Add them.
50727         (TESTS): Add test-printf-posix2.sh.
50728         (configure.ac): Check for getrlimit and setrlimit.
50729         (check_PROGRAMS): Add test-printf-posix2.
50730
50731         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
50732         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
50733         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
50734         (decode_double): New function, copied from decode_long_double.
50735         (scale10_round_decimal_decoded): New function, extracted from
50736         scale10_round_decimal_long_double.
50737         (scale10_round_decimal_long_double): Use it.
50738         (scale10_round_decimal_double): New function.
50739         (floorlog10): New function.
50740         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
50741         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
50742         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50743         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50744         gl_PRINTF_ENOMEM and test its result. Invoke
50745         gl_PREREQ_VASNPRINTF_ENOMEM.
50746         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50747         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50748         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50749         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50750         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50751         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50752         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50753         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
50754         * modules/snprintf-posix (Depends-on): Likewise.
50755         * modules/sprintf-posix (Depends-on): Likewise.
50756         * modules/vasnprintf-posix (Depends-on): Likewise.
50757         * modules/vasprintf-posix (Depends-on): Likewise.
50758         * modules/vfprintf-posix (Depends-on): Likewise.
50759         * modules/vsnprintf-posix (Depends-on): Likewise.
50760         * modules/vsprintf-posix (Depends-on): Likewise.
50761         * doc/functions/fprintf.texi: Update.
50762         * doc/functions/printf.texi: Update.
50763         * doc/functions/snprintf.texi: Update.
50764         * doc/functions/sprintf.texi: Update.
50765         * doc/functions/vfprintf.texi: Update.
50766         * doc/functions/vprintf.texi: Update.
50767         * doc/functions/vsnprintf.texi: Update.
50768         * doc/functions/vsprintf.texi: Update.
50769
50770 2007-11-03  Bruno Haible  <bruno@clisp.org>
50771
50772         * modules/frexp-nolibm-tests: New file.
50773
50774         * modules/frexp-nolibm: New file.
50775         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
50776
50777 2007-11-03  Bruno Haible  <bruno@clisp.org>
50778
50779         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
50780         value is C99 compliant.
50781         Needed for OSF/1 5.1.
50782
50783 2007-11-03  Bruno Haible  <bruno@clisp.org>
50784
50785         Fix out-of-memory handling of vasnprintf.
50786         * lib/printf-parse.c: Include <errno.h>.
50787         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
50788         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
50789         is already set.
50790
50791 2007-11-02  Eric Blake  <ebb9@byu.net>
50792
50793         Fix tests on cygwin.
50794         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
50795
50796 2007-11-01  Bruno Haible  <bruno@clisp.org>
50797
50798         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
50799         warning.
50800         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
50801         needed for POSIX compatibility.
50802
50803 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
50804
50805         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
50806         for compatibility with GNU.
50807
50808 2007-11-01  Bruno Haible  <bruno@clisp.org>
50809
50810         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
50811         (putenv): Renamed from rpl_putenv. Change argument type from
50812         'const char *' to 'char *'.
50813         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
50814         of defining putenv in config.h, just set REPLACE_PUTENV.
50815         * modules/putenv (Depends-on): Add stdlib.
50816         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50817         (Include): Use <stdlib.h>.
50818         * lib/stdlib.in.h (putenv): New declaration.
50819         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
50820         REPLACE_PUTENV.
50821         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
50822         REPLACE_PUTENV.
50823         Needed for MacOS X 10.5.0.
50824         Reported by Peter O'Gorman <peter@pogma.com>.
50825
50826 2007-11-01  Jim Meyering  <meyering@redhat.com>
50827
50828         Treat an empty date string exactly like "0".
50829         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
50830         if the remaining date string (to be parsed) is empty, use "0".
50831         Reported by Mischa Molhoek and discussed in this thread:
50832         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
50833
50834 2007-10-31  Bruno Haible  <bruno@clisp.org>
50835
50836         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
50837         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
50838         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
50839         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
50840         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
50841         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
50842
50843 2007-10-31  Bruno Haible  <bruno@clisp.org>
50844
50845         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
50846         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
50847         (AC_TYPE_LONG_LONG_INT): Use it.
50848         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
50849         it as well.
50850         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
50851         to m4/longlong.m4.
50852         * modules/stdint (Files): Remove m4/ulonglong.m4.
50853         * modules/strtoull (Files): Use m4/longlong.m4 instead of
50854         m4/ulonglong.m4.
50855         * modules/strtoumax (Files): Likewise.
50856
50857 2007-10-30  Bruno Haible  <bruno@clisp.org>
50858
50859         * modules/xvasprintf-posix: New file.
50860         Suggested by Eric Blake.
50861
50862 2007-10-30  Bruno Haible  <bruno@clisp.org>
50863
50864         * modules/xprintf-posix-tests: New file.
50865         * tests/test-xprintf-posix.sh: New file.
50866         * tests/test-xprintf-posix.c: New file.
50867         * tests/test-xfprintf-posix.c: New file.
50868
50869         * modules/xprintf-posix: New file.
50870
50871 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50872
50873         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
50874         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
50875         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
50876
50877 2007-10-29  Bruno Haible  <bruno@clisp.org>
50878
50879         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
50880         contain the special marker '_cv_'.
50881         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
50882         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
50883         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
50884         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
50885         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
50886         Reported by Ralf Wildenhues.
50887
50888 2007-10-29  Bruno Haible  <bruno@clisp.org>
50889
50890         * gnulib-tool (func_import): When --lgpl is not specified, set
50891         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
50892         GPLv3.
50893         Reported by Simon Josefsson.
50894
50895 2007-10-28  Bruno Haible  <bruno@clisp.org>
50896
50897         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
50898         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
50899         HAVE_DECL_ISFINITE.
50900         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
50901         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
50902         HAVE_DECL_ISFINITE.
50903
50904 2007-10-28  Bruno Haible  <bruno@clisp.org>
50905
50906         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
50907         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
50908
50909 2007-10-28  Bruno Haible  <bruno@clisp.org>
50910
50911         Fix link errors with Sun C 5.0 on Solaris 10.
50912         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
50913         function is declared but not present in the compiler's libm.
50914         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
50915         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
50916         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
50917         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
50918         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
50919         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
50920         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
50921         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
50922         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
50923         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
50924         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
50925         HAVE_DECL_FLOORL.
50926
50927 2007-10-28  Bruno Haible  <bruno@clisp.org>
50928
50929         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
50930         gl_FUNC_FLOORL. Cache the result.
50931         (gl_FUNC_FLOORL): Use it.
50932         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
50933         gl_FUNC_CEILL. Cache the result.
50934         (gl_FUNC_CEILL): Use it.
50935
50936         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
50937         gl_FUNC_FLOOR. Cache the result.
50938         (gl_FUNC_FLOOR): Use it.
50939         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
50940         gl_FUNC_CEIL. Cache the result.
50941         (gl_FUNC_CEIL): Use it.
50942
50943         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
50944         gl_FUNC_FLOORF. Cache the result.
50945         (gl_FUNC_FLOORF): Use it.
50946         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
50947         gl_FUNC_CEILF. Cache the result.
50948         (gl_FUNC_CEILF): Use it.
50949
50950 2007-10-28  Bruno Haible  <bruno@clisp.org>
50951
50952         * gnulib-tool: Allow specifying the LGPL version number through
50953         --lgpl=2 or --lgpl=3.
50954         (func_usage): Document --lgpl with argument.
50955         Handle --lgpl=... arguments.
50956         (func_import): Recognize also gl_LGPL calls with an argument. When
50957         --lgpl=2 is used and the module's license is just LGPL, report an
50958         error. Set sed_transform_lib_file according to the lgpl variable. In
50959         the generated files, use --lgpl or gl_LGPL invocations with argument,
50960         if necessary.
50961         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
50962         an LGPv2+ license.
50963         * doc/gnulib-tool.texi (Modified imports): Update explanation of
50964         gl_LGPL macro.
50965
50966 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50967             Bruno Haible  <bruno@clisp.org>
50968
50969         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
50970         (u16_uctomb_aux): Likewise.
50971         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
50972         !HAVE_INLINE.
50973         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
50974
50975 2007-10-28  Bruno Haible  <bruno@clisp.org>
50976
50977         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
50978         Invoke AM_GETTEXT_OPTION if it exists.
50979         * modules/vasprintf: Likewise.
50980         * modules/verror: Likewise.
50981         * modules/xprintf: Likewise.
50982         * modules/xvasprintf: Likewise.
50983
50984 2007-10-27  Ben Pfaff  <blp@gnu.org>
50985
50986         * lib/math.in.h: Define isfinite macro and prototypes for
50987         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
50988         implementations.
50989         * m4/math_h.m4: New substitutions for isfinite module.
50990         * lib/isfinite.c: New file.
50991         * m4/isfinite.m4: New file.
50992         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
50993         * modules/isfinite: New file.
50994         * modules/isfinite-tests: New file.
50995         * tests/tests-isfinite.c: New file.
50996         * doc/functions/isfinite.texi: Mention isfinite module.
50997         * MODULES.html.sh: Mention new module.
50998
50999 2007-10-27  Ben Pfaff  <blp@gnu.org>
51000
51001         Ralf Wildenhues reported that Tru64 4.0D declares the round
51002         functions but does not have definitions.
51003         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
51004         cannot be found in any library, set the output variable to
51005         "missing" instead of "".
51006         * m4/round.m4: Also use our substitute if we cannot find round in
51007         any library, even if it is declared.
51008         * m4/roundf.m4: Likewise for roundf.
51009         * m4/roundl.m4: Likewise for roundl.
51010         * lib/math.in.h: Undefine roundf, round, roundl before defining
51011         their replacements, to allow for hypothetical systems where these
51012         may be defined as macros but not available in libraries.
51013
51014 2007-10-27  Bruno Haible  <bruno@clisp.org>
51015
51016         * doc/gnulib.texi: Invoke @firstparagraphindent.
51017         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
51018         changes in gnulib.
51019         (Source changes): New section.
51020
51021 2007-10-26  Bruno Haible  <bruno@clisp.org>
51022
51023         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
51024         borrowed from autoconf.
51025
51026 2007-10-26  Bruno Haible  <bruno@clisp.org>
51027
51028         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
51029         strerror returned the empty string. Needed on HP-UX 11.00.
51030
51031 2007-10-24  Micah Cowan  <micah@cowan.name>
51032
51033         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
51034         * build-aux/bootstrap: Remove support for now-unnecessary option,
51035         --cvs-user, and envvars CVS_USER, CVS_RSH.
51036
51037 2007-10-24  Jim Meyering  <meyering@redhat.com>
51038
51039         Avoid diagnostics from sha1sum when there is no cached checksum.
51040         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
51041         if the po.s1 file hasn't been created yet.
51042
51043         * build-aux/bootstrap: Sync from coreutils:
51044         2007-10-24  Jim Meyering  <meyering@redhat.com>
51045         Get gnulib from the git repository, not from an obsolete cvs one.
51046         * build-aux/bootstrap: Suggestion from Micah Cowan.
51047         2007-10-04  Jim Meyering  <jim@meyering.net>
51048         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
51049         (update_po_files): Work also when there are no .po files in po/.
51050
51051 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51052
51053         * README: Append ".git" to git and cg examples.
51054         Problem reported by Benoit Sigoure.
51055
51056 2007-10-23  Micah Cowan  <micah@cowan.name>
51057
51058         * users.txt: Add wget.
51059
51060 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51061
51062         Fix linking of some unistdio tests on FreeBSD.
51063         * modules/unistdio/u16-vsnprintf-tests
51064         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
51065         * modules/unistdio/u16-vsprintf-tests
51066         (test_u16_vsnprintf1_LDADD): Likewise.
51067         * modules/unistdio/u32-vsnprintf-tests
51068         (test_u32_vsnprintf1_LDADD): Likewise.
51069         * modules/unistdio/u32-vsprintf-tests
51070         (test_u32_vsprintf1_LDADD): Likewise.
51071         * modules/unistdio/u8-vsnprintf-tests
51072         (test_u8_vsnprintf1_LDADD): Likewise.
51073         * modules/unistdio/u8-vsprintf-tests
51074         (test_u8_vsprintf1_LDADD): Likewise.
51075         * modules/unistdio/ulc-vsnprintf-tests
51076         (test_ulc_vsnprintf1_LDADD): Likewise.
51077         * modules/unistdio/ulc-vsprintf-tests
51078         (test_ulc_vsprintf1_LDADD): Likewise.
51079
51080         Fix linking of some uniconv tests on FreeBSD.
51081         * modules/uniconv/u16-conv-from-enc-tests
51082         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
51083         * modules/uniconv/u16-conv-to-enc-tests
51084         (test_u16_conv_to_enc_LDADD): Likewise.
51085         * modules/uniconv/u16-strconv-from-enc-tests
51086         (test_u16_strconv_from_enc_LDADD): Likewise.
51087         * modules/uniconv/u16-strconv-to-enc-tests
51088         (test_u16_strconv_to_enc_LDADD): Likewise.
51089         * modules/uniconv/u32-conv-from-enc-tests
51090         (test_u32_conv_from_enc_LDADD): Likewise.
51091         * modules/uniconv/u32-conv-to-enc-tests
51092         (test_u32_conv_to_enc_LDADD): Likewise.
51093         * modules/uniconv/u32-strconv-from-enc-tests
51094         (test_u32_strconv_from_enc_LDADD): Likewise.
51095         * modules/uniconv/u32-strconv-to-enc-tests
51096         (test_u32_strconv_to_enc_LDADD): Likewise.
51097         * modules/uniconv/u8-conv-from-enc-tests
51098         (test_u8_conv_from_enc_LDADD): Likewise.
51099         * modules/uniconv/u8-conv-to-enc-tests
51100         (test_u8_conv_to_enc_LDADD): Likewise.
51101         * modules/uniconv/u8-strconv-from-enc-tests
51102         (test_u8_strconv_from_enc_LDADD): Likewise.
51103         * modules/uniconv/u8-strconv-to-enc-tests
51104         (test_u8_strconv_to_enc_LDADD): Likewise.
51105
51106 2007-10-22  Bruno Haible  <bruno@clisp.org>
51107
51108         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
51109         size.
51110
51111 2007-10-22  Eric Blake  <ebb9@byu.net>
51112
51113         Tweak x*printf documentation.
51114         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
51115         variable name and comments.
51116         Suggested by Bruno Haible.
51117
51118 2007-10-22  Bruno Haible  <bruno@clisp.org>
51119
51120         * lib/acl.c (copy_acl): Fix file name in comment.
51121
51122 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
51123
51124         Fix Tru64 problem with stdbool.h.
51125         * lib/stdbool.in.h (false, true):
51126         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
51127         Don't declare as an enum in this situation; it runs afoul of Tru64.
51128         Problem reported by Steven M. Schweda in
51129         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
51130
51131 2007-10-22  Eric Blake  <ebb9@byu.net>
51132
51133         Also wrap vf?printf.
51134         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
51135         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
51136         (xvprintf, xvfprintf): New functions.
51137
51138 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51139
51140         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
51141         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
51142
51143         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
51144         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
51145
51146 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
51147
51148         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
51149         by Bruno Haible.
51150
51151 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51152
51153         * lib/getloadavg.c
51154         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
51155         Undef `sys' after including sys/table.h, for Tru64 4.0D.
51156
51157         * tests/test-i-ring.c: Work for C89.
51158
51159 2007-10-22  Bruno Haible  <bruno@clisp.org>
51160
51161         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
51162         -1u, in preprocessor expression, so that we don't test for the bug
51163         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
51164         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
51165
51166 2007-10-22  Eric Blake  <ebb9@byu.net>
51167
51168         * tests/test-yesno.sh: Silence stderr during test.
51169
51170 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51171
51172         * modules/crypto/gc-camellia: New file.
51173
51174         * m4/gc-camellia.m4: New file.
51175
51176         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
51177
51178         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
51179
51180 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51181
51182         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
51183         --help to stdout.  Reported by sms@antinode.org (Steven
51184         M. Schweda).
51185
51186 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51187
51188         * users.txt: Fix link to libksba.
51189
51190 2007-10-21  Ben Pfaff  <blp@gnu.org>
51191
51192         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
51193         round.c roundf implementation that depends on floorf and ceilf to
51194         be tested unconditionally.
51195
51196 2007-10-21  Ben Pfaff  <blp@gnu.org>
51197
51198         * m4/check-libm-func.m4: Removed.
51199         * m4/check-math-lib.m4: New file.
51200         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
51201         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
51202         definition and lack of AC_LIBOBJ([roundf]).
51203         * m4/roundl.m4: Ditto, and similarly for roundl.
51204         * modules/round: Reference new m4 file.
51205         * modules/roundf: Ditto.
51206         * modules/roundl: Ditto.
51207         * tests/test-round2.c (main): Use ROUND instead of round.
51208         Bug report from Bruno Haible.
51209
51210 2007-10-21  Bruno Haible  <bruno@clisp.org>
51211
51212         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
51213         context.
51214
51215 2007-10-21  Bruno Haible  <bruno@clisp.org>
51216
51217         * tests/test-wcwidth.c (main): Allow negative result for some control
51218         characters.
51219
51220         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
51221         Needed on OSF/1 5.1.
51222
51223 2007-10-21  Bruno Haible  <bruno@clisp.org>
51224
51225         * tests/test-floorf1.c: Include isnanf.h.
51226         (main): Use isnanf() instead of isnan().
51227         * tests/test-ceilf1.c: Include isnanf.h.
51228         (main): Use isnanf() instead of isnan().
51229         * tests/test-truncf1.c: Include isnanf.h.
51230         (main): Use isnanf() instead of isnan().
51231         * tests/test-roundf1.c: Include isnanf.h.
51232         (main): Use isnanf() instead of isnan().
51233
51234 2007-10-21  Eric Blake  <ebb9@byu.net>
51235
51236         * users.txt: Update URL for m4.
51237
51238 2007-10-21  Bruno Haible  <bruno@clisp.org>
51239
51240         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
51241
51242 2007-10-21  Bruno Haible  <bruno@clisp.org>
51243
51244         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
51245         Git's management files if the CVS files are not present.
51246
51247 2007-10-20  Bruno Haible  <bruno@clisp.org>
51248
51249         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
51250         gcc-3.4.x.
51251
51252 2007-10-20  Ben Pfaff  <blp@gnu.org>
51253
51254         * lib/math.in.h: Declare round, roundf, roundl if we are providing
51255         implementations.
51256         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
51257         * lib/round.c: New file.
51258         * lib/roundf.c: New file.
51259         * lib/roundl.c: New file.
51260         * m4/round.m4: New file.
51261         * m4/roundf.m4: New file.
51262         * m4/roundl.m4: New file.
51263         * m4/check-libm-func-m4: New file.
51264         * modules/math: Replace round, roundf, roundl related @VARS@ in
51265         math.in.h.
51266         * modules/round: New file.
51267         * modules/round-tests: New file.
51268         * modules/roundf: New file.
51269         * modules/roundf-tests: New file.
51270         * modules/roundl: New file.
51271         * modules/roundl-tests: New file.
51272         * tests/test-round1.c: New file.
51273         * tests/test-round2.c: New file.
51274         * tests/test-roundf1.c: New file.
51275         * tests/test-roundf2.c: New file.
51276         * tests/test-roundl.c: New file.
51277         * doc/functions/round.texi: Mention round module.
51278         * doc/functions/roundf.texi: Mention roundf module.
51279         * doc/functions/roundl.texi: Mention roundl module.
51280         * MODULES.html.sh: Mention new modules.
51281         Thanks to Bruno Haible for suggestions.
51282
51283 2007-10-20  Jim Meyering  <meyering@redhat.com>
51284
51285         * lib/xprintf.c: Include <config.h> unconditionally.
51286
51287         Change xprintf's license to GPL.
51288         * modules/xprintf (License): s/LGPL/GPL/, since this module
51289         depends on modules (exit and exitfail) which are GPL.
51290         Suggestion from Bruno Haible.
51291
51292         xprintf fixes.
51293         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
51294         Use a clearer diagnostic.
51295         Patch from Bruno Haible.
51296
51297 2007-10-20  Bruno Haible  <bruno@clisp.org>
51298
51299         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
51300         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
51301         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51302
51303 2007-10-20  Bruno Haible  <bruno@clisp.org>
51304
51305         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
51306         precision in the comparison result > x - 1 or similar.
51307         * tests/test-ceilf2.c (correct_result_p): Likewise.
51308         * tests/test-truncf2.c (correct_result_p): Likewise.
51309         * tests/test-trunc2.c (correct_result_p): Likewise.
51310         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51311
51312 2007-10-20  Bruno Haible  <bruno@clisp.org>
51313
51314         * modules/ceil: New file.
51315         * m4/ceil.m4: New file.
51316         * doc/functions/ceil.texi: Mention the 'ceil' module.
51317
51318 2007-10-20  Bruno Haible  <bruno@clisp.org>
51319
51320         * modules/floor: New file.
51321         * m4/floor.m4: New file.
51322         * doc/functions/floor.texi: Mention the 'floor' module.
51323
51324 2007-10-20  Bruno Haible  <bruno@clisp.org>
51325
51326         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
51327         of %a.
51328         * modules/floorf-tests (Depends-on): Likewise.
51329         * modules/truncf-tests (Depends-on): Likewise.
51330         * modules/trunc-tests (Depends-on): Likewise.
51331         Reported by Ben Pfaff.
51332
51333 2007-10-19  Jim Meyering  <meyering@redhat.com>
51334
51335         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
51336         Don't bother testing specific errno values.  Just test ferror.
51337
51338         New module: xprintf
51339         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
51340
51341 2007-10-19  Bruno Haible  <bruno@clisp.org>
51342
51343         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
51344         syntax.
51345         * modules/javaexec (Makefile.am): Likewise.
51346         * modules/relocatable-prog (Makefile.am): Likewise.
51347         Suggested by Jim Meyering.
51348
51349 2007-10-18  Bruno Haible  <bruno@clisp.org>
51350
51351         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
51352         Reported by Jim Meyering.
51353
51354 2007-10-18  Eric Blake  <ebb9@byu.net>
51355
51356         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
51357
51358 2007-10-18  Bruno Haible  <bruno@clisp.org>
51359
51360         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
51361         the format string into writable memory. Needed in Fortify conditions.
51362
51363 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
51364             Bruno Haible  <bruno@clisp.org>
51365
51366         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
51367         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
51368         * modules/trim (Depends-on): Add mbchar.
51369         (configure.ac): Add gl_FUNC_MBRTOWC.
51370         (Makefile.am): Augment lib_SOURCES.
51371
51372 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
51373
51374         Modify glob.c to use fstatat and dirfd, to simplify it.
51375         Suggested by Eric Blake.
51376         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
51377         Don't include <stdbool.h>; not used.
51378         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
51379         (link_exists_p): Simplify implementation, since we can now assume
51380         dirfd and fstatat.
51381         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
51382
51383 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51384
51385         * gnulib-tool (func_get_dependencies): Fix sed script to
51386         match only tests.
51387
51388 2007-10-17  Bruno Haible  <bruno@clisp.org>
51389
51390         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
51391         allow locale names without encoding suffix.
51392         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
51393         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51394
51395 2007-10-16  Bruno Haible  <bruno@clisp.org>
51396
51397         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
51398         * lib/getgroups.c (getgroups): Likewise.
51399         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
51400
51401 2007-10-16  Bruno Haible  <bruno@clisp.org>
51402
51403         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
51404         * modules/malloc-posix (License): Likewise.
51405         * modules/realloc-posix (License): Likewise.
51406         * modules/calloc-posix (License): Likewise.
51407         * modules/intprops (License): Change from GPL to LGPL, with
51408         Paul Eggert's approval.
51409
51410 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51411
51412         Merge glibc changes into lib/glob.c.
51413
51414         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
51415         2007-10-15 04:59:03 UTC.  Here are the changes:
51416
51417         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
51418
51419         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
51420
51421         * lib/glob.c: Add some branch prediction throughout.
51422
51423         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
51424
51425         [BZ #5103]
51426         * lib/glob.c (glob): Recognize patterns starting \/.
51427
51428         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
51429
51430         [BZ #3996]
51431         * lib/glob.c (attribute_hidden): Define if not defined.
51432         (glob): Unescape dirname, filename or username when needed and not
51433         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
51434         is NULL.  Handle unescaped [ in pattern without closing ].
51435         Don't pass GLOB_CHECK down to recursive glob for directories.
51436         (__glob_pattern_type): New function.
51437         (__glob_pattern_p): Implement using __glob_pattern_type.
51438         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
51439         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
51440         Remove unreachable code.
51441
51442         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
51443
51444         * lib/glob.c (glob_in_dir): Add some comments and asserts to
51445         explain why there are no leaks.
51446
51447         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
51448
51449         [BZ #3253]
51450         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
51451         time, rather allocate increasingly bigger arrays of pointers, if
51452         possible with alloca, if too large with malloc.
51453
51454 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51455
51456         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
51457         Problem reported by H.Merijn Brand in
51458         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
51459         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
51460         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
51461
51462 2007-10-15  Bruno Haible  <bruno@clisp.org>
51463
51464         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
51465         with explicit rpl_ prefix.
51466         * lib/fopen.c (fopen): Likewise.
51467         * lib/freopen.c (freopen): Likewise.
51468         * lib/iconv.c (iconv): Likewise.
51469         * lib/iconv_close.c (iconv_close): Likewise.
51470
51471 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51472
51473         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
51474
51475 2007-10-15  Bruno Haible  <bruno@clisp.org>
51476
51477         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
51478         <stddef.h> instead of <stdlib.h> since we only need NULL.
51479         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51480
51481 2007-10-15  Bruno Haible  <bruno@clisp.org>
51482
51483         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
51484         Replace paragraph talking about LIBOBJS.
51485         Reported by Colin Watson <cjwatson@debian.org>.
51486
51487 2007-10-15  Bruno Haible  <bruno@clisp.org>
51488
51489         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
51490         <stdlib.h> before using NULL.
51491
51492 2007-10-15  Simon Josefsson  <simon@josefsson.org>
51493
51494         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
51495         Reported by Albert Chin <china@thewrittenword.com>.
51496
51497 2007-10-14  Bruno Haible  <bruno@clisp.org>
51498
51499         * modules/iconv_open-utf-tests: New file.
51500         * tests/test-iconv-utf.c: New file.
51501
51502         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
51503         * modules/iconv_open-utf: New file.
51504         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
51505         (iconv, iconv_close): New declarations.
51506         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
51507         be defined.
51508         (iconv_open): Add special handling of conversion between UTF-8 and
51509         UTF-{16,32}{BE,LE}.
51510         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
51511         * lib/iconv_close.c: New file.
51512         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
51513         gl_FUNC_ICONV_OPEN.
51514         (gl_FUNC_ICONV_OPEN): Use it.
51515         (gl_FUNC_ICONV_OPEN_UTF): New macro.
51516         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
51517         and REPLACE_ICONV_UTF.
51518         * modules/iconv_open (Depends-on): Add c-strcase.
51519         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
51520         ICONV_CONST.
51521         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
51522
51523 2007-10-13  Albert Chin  <china@thewrittenword.com>
51524             Bruno Haible  <bruno@clisp.org>
51525
51526         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
51527         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
51528
51529 2007-10-13  Bruno Haible  <bruno@clisp.org>
51530
51531         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
51532         defined, use the ISO C99 inline semantics.
51533         * lib/argp.h (ARGP_EI): Likewise.
51534
51535 2007-10-13  Bruno Haible  <bruno@clisp.org>
51536
51537         Handle 'inline' change in gcc 4.3.0.
51538         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
51539         argp_fmtstream_write, argp_fmtstream_set_lmargin,
51540         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
51541         argp_fmtstream_point): Disable 'extern' declaration if the function
51542         definition is going to be provided inline.
51543         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
51544         semantics, not the ISO C99 inline semantics.
51545         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
51546         'extern' declaration if the function definition is going to be provided
51547         inline.
51548         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
51549         the GNU C inline semantics, not the ISO C99 inline semantics. With
51550         GCC 4.2, avoid a warning.
51551
51552 2007-10-13  Bruno Haible  <bruno@clisp.org>
51553
51554         * lib/freading.h (freading): Enable the use of __freading for
51555         glibc >= 2.7.
51556         * lib/freading.c (freading): Likewise.
51557
51558 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
51559
51560         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
51561         "warning: C99 inline functions are not supported; using GNU89".
51562
51563 2007-10-12  Bruno Haible  <bruno@clisp.org>
51564
51565         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
51566         of 2.
51567         * tests/test-ceilf2.c: New file.
51568         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
51569
51570         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
51571         * modules/ceilf-tests: Update.
51572
51573 2007-10-12  Bruno Haible  <bruno@clisp.org>
51574
51575         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
51576         of 2.
51577         * tests/test-floorf2.c: New file.
51578         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
51579
51580         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
51581         * modules/floorf-tests: Update.
51582
51583 2007-10-12  Bruno Haible  <bruno@clisp.org>
51584
51585         * tests/test-trunc2.c: New file.
51586         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
51587
51588         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
51589         * modules/trunc-tests: Update.
51590
51591 2007-10-12  Bruno Haible  <bruno@clisp.org>
51592
51593         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
51594         of 2.
51595         * tests/test-truncf2.c: New file.
51596         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
51597
51598         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
51599         * modules/truncf-tests: Update.
51600
51601 2007-10-11  Eric Blake  <ebb9@byu.net>
51602
51603         Don't claim strerror is broken on Interix.
51604         * doc/functions/strerror.texi (strerror): Known broken systems are
51605         now Solaris 8, and not Interix.
51606         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
51607         Interix on cross-compile.
51608         Reported by Martin Koeppe in
51609         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
51610
51611 2007-10-11  Bruno Haible  <bruno@clisp.org>
51612
51613         * modules/i-ring-tests: New file.
51614         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
51615         instead of assert.
51616
51617 2007-10-11  Bruno Haible  <bruno@clisp.org>
51618
51619         * modules/filenamecat-tests: New file.
51620         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
51621         * lib/filenamecat.c: Remove test code.
51622
51623 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
51624
51625         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
51626
51627         * lib/strerror.c: Include <string.h> always, to test interface,
51628         and to remove the need for the dummy.
51629         Include intprops.h to compute width instead of doing it ourselves
51630         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
51631         (strerror): Define it to return NULL if there's no system strerror.
51632         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
51633         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
51634         ancient pre-strerror Unix systems well any more.  Saying "unknown
51635         system error" is enough.
51636         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
51637         simpler strerror.c implementation.
51638         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
51639         Simplify the tests to reflect the simpler strerror implementation.
51640         * modules/strerror (Depends-on): Add intprops.
51641
51642 2007-10-09  Eric Blake  <ebb9@byu.net>
51643
51644         Silence test-fpending.
51645         * modules/fpending-tests (Files): Add wrapper script.
51646         * tests/test-fpending.sh: New file.
51647
51648 2007-10-09  Bruno Haible  <bruno@clisp.org>
51649
51650         * MODULES.html.sh (func_module): Don't create a hyperlink for
51651         function names like 'printf_frexp'.
51652         (Misc): Add crc, memxor.
51653         (Characteristics of floating types): New section.
51654         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
51655         isnanf-nolibm, signbit, trunc, truncf, truncl.
51656         (Enhancements for ISO C 99 functions): New subsection Input/output.
51657         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
51658         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
51659         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
51660         (Compatibility checks for POSIX:2001 functions): Add clock-time.
51661         (Enhancements for POSIX:2001 functions): Add chdir-long.
51662         (File system functions): Add areadlink, chdir-safer, read-file.
51663         Remove cycle-check.
51664         (File system as inode set): New section.
51665         (Date and time): Add gethrxtime.
51666         (Multithreading): Add openmp.
51667         (Internationalization functions): Add localename.
51668         (Unicode string functions): Add unistr/u*-mbsnlen.
51669         (Support for maintaining and releasing projects): Add git-version-gen.
51670         (Lone files): Remove directories.
51671
51672 2007-10-08  Ben Pfaff  <blp@gnu.org>
51673
51674         * lib/xmalloca.h: Fix typo in comment.
51675
51676 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
51677
51678         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
51679         when avoiding problems with integer overflow.  Use a portable test
51680         instead.
51681
51682 2007-10-08  Simon Josefsson  <simon@josefsson.org>
51683
51684         * modules/dummy (License): Change to LGPLv2+.
51685         * modules/float (License): Likewise
51686         * modules/realloc (License): Likewise
51687         * modules/stdlib (License): Likewise
51688
51689 2007-10-07  Bruno Haible  <bruno@clisp.org>
51690
51691         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
51692         * floor.c (TWO_MANT_DIG): Likewise.
51693         * ceil.c (TWO_MANT_DIG): Likewise.
51694         Reported by Ben Pfaff.
51695
51696 2007-10-07  Bruno Haible  <bruno@clisp.org>
51697
51698         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
51699         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
51700         * lib/frexp.c (FUNC): Likewise.
51701         * lib/printf-frexp.h (printf_frexp): Likewise.
51702         * lib/printf-frexpl.h (printf_frexpl): Likewise.
51703         * lib/printf-frexp.c (FUNC): Likewise.
51704         Suggested by Jim Meyering.
51705
51706 2007-10-07  Jim Meyering  <meyering@redhat.com>
51707
51708         Make xnanosleep's integer overflow test more robust.
51709         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
51710         so that gcc-4.3.0 doesn't optimize away this test for overflow.
51711
51712 2007-10-07  Bruno Haible  <bruno@clisp.org>
51713
51714         * NEWS: Mention the license change.
51715
51716         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
51717         abbreviations in the modules files.
51718
51719         Change copyright notice from GPLv2+ to GPLv3+.
51720         * README: Change copyright notice.
51721         * MODULES.html.sh: Likewise.
51722         * build-aux/bootstrap.conf: Likewise.
51723         * build-aux/config.libpath: Likewise.
51724         * build-aux/csharpcomp.sh.in: Likewise.
51725         * build-aux/csharpexec.sh.in: Likewise.
51726         * build-aux/install-reloc: Likewise.
51727         * build-aux/javacomp.sh.in: Likewise.
51728         * build-aux/javaexec.sh.in: Likewise.
51729         * build-aux/ldd.sh.in: Likewise.
51730         * build-aux/reloc-ldflags: Likewise.
51731         * build-aux/relocatable.sh.in: Likewise.
51732         * build-aux/x-to-1.in: Likewise.
51733         * check-module: Likewise.
51734         * config/srclistvars.sh: Likewise.
51735         * gnulib-tool: Likewise.
51736         * lib/acl-internal.h: Likewise.
51737         * lib/acl.c: Likewise.
51738         * lib/acl.h: Likewise.
51739         * lib/acl_entries.c: Likewise.
51740         * lib/areadlink-with-size.c: Likewise.
51741         * lib/areadlink.c: Likewise.
51742         * lib/areadlink.h: Likewise.
51743         * lib/argmatch.c: Likewise.
51744         * lib/argmatch.h: Likewise.
51745         * lib/argp-ba.c: Likewise.
51746         * lib/argp-eexst.c: Likewise.
51747         * lib/argp-fmtstream.c: Likewise.
51748         * lib/argp-fmtstream.h: Likewise.
51749         * lib/argp-fs-xinl.c: Likewise.
51750         * lib/argp-help.c: Likewise.
51751         * lib/argp-namefrob.h: Likewise.
51752         * lib/argp-parse.c: Likewise.
51753         * lib/argp-pin.c: Likewise.
51754         * lib/argp-pv.c: Likewise.
51755         * lib/argp-pvh.c: Likewise.
51756         * lib/argp-xinl.c: Likewise.
51757         * lib/argp.h: Likewise.
51758         * lib/at-func.c: Likewise.
51759         * lib/atanl.c: Likewise.
51760         * lib/backupfile.c: Likewise.
51761         * lib/backupfile.h: Likewise.
51762         * lib/basename.c: Likewise.
51763         * lib/binary-io.h: Likewise.
51764         * lib/byteswap.in.h: Likewise.
51765         * lib/c-stack.c: Likewise.
51766         * lib/c-stack.h: Likewise.
51767         * lib/c-strcasestr.c: Likewise.
51768         * lib/c-strcasestr.h: Likewise.
51769         * lib/c-strstr.c: Likewise.
51770         * lib/c-strstr.h: Likewise.
51771         * lib/c-strtod.c: Likewise.
51772         * lib/calloc.c: Likewise.
51773         * lib/canon-host.c: Likewise.
51774         * lib/canon-host.h: Likewise.
51775         * lib/canonicalize-lgpl.c: Likewise.
51776         * lib/canonicalize.c: Likewise.
51777         * lib/canonicalize.h: Likewise.
51778         * lib/ceil.c: Likewise.
51779         * lib/ceilf.c: Likewise.
51780         * lib/ceill.c: Likewise.
51781         * lib/chdir-long.c: Likewise.
51782         * lib/chdir-long.h: Likewise.
51783         * lib/chdir-safer.c: Likewise.
51784         * lib/chdir-safer.h: Likewise.
51785         * lib/chown.c: Likewise.
51786         * lib/classpath.c: Likewise.
51787         * lib/classpath.h: Likewise.
51788         * lib/clean-temp.c: Likewise.
51789         * lib/clean-temp.h: Likewise.
51790         * lib/cloexec.c: Likewise.
51791         * lib/close-stream.c: Likewise.
51792         * lib/closein.c: Likewise.
51793         * lib/closein.h: Likewise.
51794         * lib/closeout.c: Likewise.
51795         * lib/closeout.h: Likewise.
51796         * lib/concat-filename.c: Likewise.
51797         * lib/copy-file.c: Likewise.
51798         * lib/copy-file.h: Likewise.
51799         * lib/count-one-bits.h: Likewise.
51800         * lib/crc.c: Likewise.
51801         * lib/crc.h: Likewise.
51802         * lib/creat-safer.c: Likewise.
51803         * lib/csharpcomp.c: Likewise.
51804         * lib/csharpcomp.h: Likewise.
51805         * lib/csharpexec.c: Likewise.
51806         * lib/csharpexec.h: Likewise.
51807         * lib/cycle-check.c: Likewise.
51808         * lib/cycle-check.h: Likewise.
51809         * lib/diacrit.c: Likewise.
51810         * lib/diacrit.h: Likewise.
51811         * lib/diffseq.h: Likewise.
51812         * lib/dirchownmod.c: Likewise.
51813         * lib/dirent.in.h: Likewise.
51814         * lib/dirfd.c: Likewise.
51815         * lib/dirfd.h: Likewise.
51816         * lib/dirname.c: Likewise.
51817         * lib/dirname.h: Likewise.
51818         * lib/dummy.c: Likewise.
51819         * lib/dup-safer.c: Likewise.
51820         * lib/dup2.c: Likewise.
51821         * lib/eealloc.h: Likewise.
51822         * lib/error.c: Likewise.
51823         * lib/error.h: Likewise.
51824         * lib/euidaccess.c: Likewise.
51825         * lib/exclude.c: Likewise.
51826         * lib/exclude.h: Likewise.
51827         * lib/execute.c: Likewise.
51828         * lib/execute.h: Likewise.
51829         * lib/exitfail.c: Likewise.
51830         * lib/exitfail.h: Likewise.
51831         * lib/expl.c: Likewise.
51832         * lib/fatal-signal.c: Likewise.
51833         * lib/fatal-signal.h: Likewise.
51834         * lib/fbufmode.c: Likewise.
51835         * lib/fbufmode.h: Likewise.
51836         * lib/fchdir.c: Likewise.
51837         * lib/fchmodat.c: Likewise.
51838         * lib/fchownat.c: Likewise.
51839         * lib/fcntl--.h: Likewise.
51840         * lib/fcntl-safer.h: Likewise.
51841         * lib/fcntl.in.h: Likewise.
51842         * lib/fd-safer.c: Likewise.
51843         * lib/fflush.c: Likewise.
51844         * lib/file-has-acl.c: Likewise.
51845         * lib/file-set.c: Likewise.
51846         * lib/file-type.c: Likewise.
51847         * lib/file-type.h: Likewise.
51848         * lib/fileblocks.c: Likewise.
51849         * lib/filemode.c: Likewise.
51850         * lib/filemode.h: Likewise.
51851         * lib/filename.h: Likewise.
51852         * lib/filenamecat.c: Likewise.
51853         * lib/filenamecat.h: Likewise.
51854         * lib/findprog.c: Likewise.
51855         * lib/findprog.h: Likewise.
51856         * lib/float.in.h: Likewise.
51857         * lib/floor.c: Likewise.
51858         * lib/floorf.c: Likewise.
51859         * lib/floorl.c: Likewise.
51860         * lib/fopen-safer.c: Likewise.
51861         * lib/fopen.c: Likewise.
51862         * lib/fpending.c: Likewise.
51863         * lib/fpending.h: Likewise.
51864         * lib/fprintf.c: Likewise.
51865         * lib/fprintftime.h: Likewise.
51866         * lib/fpucw.h: Likewise.
51867         * lib/fpurge.c: Likewise.
51868         * lib/fpurge.h: Likewise.
51869         * lib/freadable.c: Likewise.
51870         * lib/freadable.h: Likewise.
51871         * lib/freadahead.c: Likewise.
51872         * lib/freadahead.h: Likewise.
51873         * lib/freading.c: Likewise.
51874         * lib/freading.h: Likewise.
51875         * lib/free.c: Likewise.
51876         * lib/freopen.c: Likewise.
51877         * lib/frexp.c: Likewise.
51878         * lib/frexpl.c: Likewise.
51879         * lib/fseek.c: Likewise.
51880         * lib/fseterr.c: Likewise.
51881         * lib/fseterr.h: Likewise.
51882         * lib/fstatat.c: Likewise.
51883         * lib/fstrcmp.c: Likewise.
51884         * lib/fstrcmp.h: Likewise.
51885         * lib/fsusage.c: Likewise.
51886         * lib/fsusage.h: Likewise.
51887         * lib/ftell.c: Likewise.
51888         * lib/ftello.c: Likewise.
51889         * lib/fts-cycle.c: Likewise.
51890         * lib/fts.c: Likewise.
51891         * lib/fts_.h: Likewise.
51892         * lib/full-read.c: Likewise.
51893         * lib/full-read.h: Likewise.
51894         * lib/full-write.c: Likewise.
51895         * lib/full-write.h: Likewise.
51896         * lib/fwritable.c: Likewise.
51897         * lib/fwritable.h: Likewise.
51898         * lib/fwriteerror.c: Likewise.
51899         * lib/fwriteerror.h: Likewise.
51900         * lib/fwriting.c: Likewise.
51901         * lib/fwriting.h: Likewise.
51902         * lib/gcd.c: Likewise.
51903         * lib/gcd.h: Likewise.
51904         * lib/getcwd.c: Likewise.
51905         * lib/getdate.h: Likewise.
51906         * lib/getdate.y: Likewise.
51907         * lib/getdomainname.c: Likewise.
51908         * lib/getdomainname.h: Likewise.
51909         * lib/getgroups.c: Likewise.
51910         * lib/gethostname.c: Likewise.
51911         * lib/gethrxtime.c: Likewise.
51912         * lib/gethrxtime.h: Likewise.
51913         * lib/getloadavg.c: Likewise.
51914         * lib/getndelim2.c: Likewise.
51915         * lib/getndelim2.h: Likewise.
51916         * lib/getnline.c: Likewise.
51917         * lib/getnline.h: Likewise.
51918         * lib/getopt.c: Likewise.
51919         * lib/getopt.in.h: Likewise.
51920         * lib/getopt1.c: Likewise.
51921         * lib/getopt_int.h: Likewise.
51922         * lib/getpagesize.h: Likewise.
51923         * lib/getsubopt.c: Likewise.
51924         * lib/gettime.c: Likewise.
51925         * lib/getugroups.c: Likewise.
51926         * lib/getugroups.h: Likewise.
51927         * lib/getusershell.c: Likewise.
51928         * lib/gl_anyavltree_list1.h: Likewise.
51929         * lib/gl_anyavltree_list2.h: Likewise.
51930         * lib/gl_anyhash_list1.h: Likewise.
51931         * lib/gl_anyhash_list2.h: Likewise.
51932         * lib/gl_anylinked_list1.h: Likewise.
51933         * lib/gl_anylinked_list2.h: Likewise.
51934         * lib/gl_anyrbtree_list1.h: Likewise.
51935         * lib/gl_anyrbtree_list2.h: Likewise.
51936         * lib/gl_anytree_list1.h: Likewise.
51937         * lib/gl_anytree_list2.h: Likewise.
51938         * lib/gl_anytree_oset.h: Likewise.
51939         * lib/gl_anytreehash_list1.h: Likewise.
51940         * lib/gl_anytreehash_list2.h: Likewise.
51941         * lib/gl_array_list.c: Likewise.
51942         * lib/gl_array_list.h: Likewise.
51943         * lib/gl_array_oset.c: Likewise.
51944         * lib/gl_array_oset.h: Likewise.
51945         * lib/gl_avltree_list.c: Likewise.
51946         * lib/gl_avltree_list.h: Likewise.
51947         * lib/gl_avltree_oset.c: Likewise.
51948         * lib/gl_avltree_oset.h: Likewise.
51949         * lib/gl_avltreehash_list.c: Likewise.
51950         * lib/gl_avltreehash_list.h: Likewise.
51951         * lib/gl_carray_list.c: Likewise.
51952         * lib/gl_carray_list.h: Likewise.
51953         * lib/gl_linked_list.c: Likewise.
51954         * lib/gl_linked_list.h: Likewise.
51955         * lib/gl_linkedhash_list.c: Likewise.
51956         * lib/gl_linkedhash_list.h: Likewise.
51957         * lib/gl_list.c: Likewise.
51958         * lib/gl_list.h: Likewise.
51959         * lib/gl_oset.c: Likewise.
51960         * lib/gl_oset.h: Likewise.
51961         * lib/gl_rbtree_list.c: Likewise.
51962         * lib/gl_rbtree_list.h: Likewise.
51963         * lib/gl_rbtree_oset.c: Likewise.
51964         * lib/gl_rbtree_oset.h: Likewise.
51965         * lib/gl_rbtreehash_list.c: Likewise.
51966         * lib/gl_rbtreehash_list.h: Likewise.
51967         * lib/gl_sublist.c: Likewise.
51968         * lib/gl_sublist.h: Likewise.
51969         * lib/group-member.c: Likewise.
51970         * lib/group-member.h: Likewise.
51971         * lib/hard-locale.c: Likewise.
51972         * lib/hard-locale.h: Likewise.
51973         * lib/hash-pjw.c: Likewise.
51974         * lib/hash-pjw.h: Likewise.
51975         * lib/hash-triple.c: Likewise.
51976         * lib/hash.c: Likewise.
51977         * lib/hash.h: Likewise.
51978         * lib/human.c: Likewise.
51979         * lib/human.h: Likewise.
51980         * lib/i-ring.c: Likewise.
51981         * lib/i-ring.h: Likewise.
51982         * lib/idcache.c: Likewise.
51983         * lib/imaxabs.c: Likewise.
51984         * lib/imaxdiv.c: Likewise.
51985         * lib/inet_pton.c: Likewise.
51986         * lib/inet_pton.h: Likewise.
51987         * lib/intprops.h: Likewise.
51988         * lib/inttostr.c: Likewise.
51989         * lib/inttostr.h: Likewise.
51990         * lib/inttypes.in.h: Likewise.
51991         * lib/isapipe.c: Likewise.
51992         * lib/isdir.c: Likewise.
51993         * lib/isnan.c: Likewise.
51994         * lib/isnan.h: Likewise.
51995         * lib/isnanf.c: Likewise.
51996         * lib/isnanf.h: Likewise.
51997         * lib/isnanl-nolibm.h: Likewise.
51998         * lib/isnanl.c: Likewise.
51999         * lib/isnanl.h: Likewise.
52000         * lib/javacomp.c: Likewise.
52001         * lib/javacomp.h: Likewise.
52002         * lib/javaexec.c: Likewise.
52003         * lib/javaexec.h: Likewise.
52004         * lib/javaversion.c: Likewise.
52005         * lib/javaversion.h: Likewise.
52006         * lib/javaversion.java: Likewise.
52007         * lib/lbrkprop.h: Likewise.
52008         * lib/lchmod.h: Likewise.
52009         * lib/lchown.c: Likewise.
52010         * lib/ldexpl.c: Likewise.
52011         * lib/linebreak.c: Likewise.
52012         * lib/linebreak.h: Likewise.
52013         * lib/linebuffer.c: Likewise.
52014         * lib/linebuffer.h: Likewise.
52015         * lib/locale.in.h: Likewise.
52016         * lib/logl.c: Likewise.
52017         * lib/long-options.c: Likewise.
52018         * lib/long-options.h: Likewise.
52019         * lib/lstat.c: Likewise.
52020         * lib/lstat.h: Likewise.
52021         * lib/math.in.h: Likewise.
52022         * lib/mbchar.c: Likewise.
52023         * lib/mbchar.h: Likewise.
52024         * lib/mbfile.h: Likewise.
52025         * lib/mbiter.h: Likewise.
52026         * lib/mbscasecmp.c: Likewise.
52027         * lib/mbscasestr.c: Likewise.
52028         * lib/mbschr.c: Likewise.
52029         * lib/mbscspn.c: Likewise.
52030         * lib/mbslen.c: Likewise.
52031         * lib/mbsncasecmp.c: Likewise.
52032         * lib/mbsnlen.c: Likewise.
52033         * lib/mbspbrk.c: Likewise.
52034         * lib/mbspcasecmp.c: Likewise.
52035         * lib/mbsrchr.c: Likewise.
52036         * lib/mbssep.c: Likewise.
52037         * lib/mbsspn.c: Likewise.
52038         * lib/mbsstr.c: Likewise.
52039         * lib/mbstok_r.c: Likewise.
52040         * lib/mbswidth.c: Likewise.
52041         * lib/mbswidth.h: Likewise.
52042         * lib/mbuiter.h: Likewise.
52043         * lib/memcasecmp.c: Likewise.
52044         * lib/memcasecmp.h: Likewise.
52045         * lib/memchr.c: Likewise.
52046         * lib/memcmp.c: Likewise.
52047         * lib/memcoll.c: Likewise.
52048         * lib/memcoll.h: Likewise.
52049         * lib/memcpy.c: Likewise.
52050         * lib/memrchr.c: Likewise.
52051         * lib/mkancesdirs.c: Likewise.
52052         * lib/mkdir-p.c: Likewise.
52053         * lib/mkdir-p.h: Likewise.
52054         * lib/mkdir.c: Likewise.
52055         * lib/mkdirat.c: Likewise.
52056         * lib/mkdtemp.c: Likewise.
52057         * lib/mkstemp-safer.c: Likewise.
52058         * lib/mkstemp.c: Likewise.
52059         * lib/modechange.c: Likewise.
52060         * lib/modechange.h: Likewise.
52061         * lib/mountlist.c: Likewise.
52062         * lib/mountlist.h: Likewise.
52063         * lib/mpsort.c: Likewise.
52064         * lib/nanosleep.c: Likewise.
52065         * lib/obstack.c: Likewise.
52066         * lib/obstack.h: Likewise.
52067         * lib/open-safer.c: Likewise.
52068         * lib/open.c: Likewise.
52069         * lib/openat-die.c: Likewise.
52070         * lib/openat-priv.h: Likewise.
52071         * lib/openat-proc.c: Likewise.
52072         * lib/openat.c: Likewise.
52073         * lib/openat.h: Likewise.
52074         * lib/pagealign_alloc.c: Likewise.
52075         * lib/pagealign_alloc.h: Likewise.
52076         * lib/physmem.c: Likewise.
52077         * lib/physmem.h: Likewise.
52078         * lib/pipe-safer.c: Likewise.
52079         * lib/pipe.c: Likewise.
52080         * lib/pipe.h: Likewise.
52081         * lib/posixtm.c: Likewise.
52082         * lib/posixtm.h: Likewise.
52083         * lib/posixver.c: Likewise.
52084         * lib/printf-frexp.c: Likewise.
52085         * lib/printf-frexp.h: Likewise.
52086         * lib/printf-frexpl.c: Likewise.
52087         * lib/printf-frexpl.h: Likewise.
52088         * lib/printf.c: Likewise.
52089         * lib/progname.c: Likewise.
52090         * lib/progname.h: Likewise.
52091         * lib/progreloc.c: Likewise.
52092         * lib/putenv.c: Likewise.
52093         * lib/quote.c: Likewise.
52094         * lib/quote.h: Likewise.
52095         * lib/quotearg.c: Likewise.
52096         * lib/quotearg.h: Likewise.
52097         * lib/raise.c: Likewise.
52098         * lib/readline.c: Likewise.
52099         * lib/readline.h: Likewise.
52100         * lib/readlink.c: Likewise.
52101         * lib/readtokens.c: Likewise.
52102         * lib/readtokens.h: Likewise.
52103         * lib/readtokens0.c: Likewise.
52104         * lib/readtokens0.h: Likewise.
52105         * lib/readutmp.c: Likewise.
52106         * lib/readutmp.h: Likewise.
52107         * lib/realloc.c: Likewise.
52108         * lib/relocwrapper.c: Likewise.
52109         * lib/rename-dest-slash.c: Likewise.
52110         * lib/rename.c: Likewise.
52111         * lib/rmdir.c: Likewise.
52112         * lib/rpmatch.c: Likewise.
52113         * lib/safe-read.c: Likewise.
52114         * lib/safe-read.h: Likewise.
52115         * lib/safe-write.c: Likewise.
52116         * lib/safe-write.h: Likewise.
52117         * lib/same-inode.h: Likewise.
52118         * lib/same.c: Likewise.
52119         * lib/same.h: Likewise.
52120         * lib/save-cwd.c: Likewise.
52121         * lib/save-cwd.h: Likewise.
52122         * lib/savedir.c: Likewise.
52123         * lib/savedir.h: Likewise.
52124         * lib/savewd.c: Likewise.
52125         * lib/savewd.h: Likewise.
52126         * lib/search.in.h: Likewise.
52127         * lib/setenv.c: Likewise.
52128         * lib/setenv.h: Likewise.
52129         * lib/settime.c: Likewise.
52130         * lib/sh-quote.c: Likewise.
52131         * lib/sh-quote.h: Likewise.
52132         * lib/sig2str.c: Likewise.
52133         * lib/sig2str.h: Likewise.
52134         * lib/signal.in.h: Likewise.
52135         * lib/signbitd.c: Likewise.
52136         * lib/signbitf.c: Likewise.
52137         * lib/signbitl.c: Likewise.
52138         * lib/sigprocmask.c: Likewise.
52139         * lib/sincosl.c: Likewise.
52140         * lib/sleep.c: Likewise.
52141         * lib/sprintf.c: Likewise.
52142         * lib/sqrtl.c: Likewise.
52143         * lib/stat-time.h: Likewise.
52144         * lib/stdio--.h: Likewise.
52145         * lib/stdio-safer.h: Likewise.
52146         * lib/stdlib--.h: Likewise.
52147         * lib/stdlib-safer.h: Likewise.
52148         * lib/stdlib.in.h: Likewise.
52149         * lib/stpcpy.c: Likewise.
52150         * lib/stpncpy.c: Likewise.
52151         * lib/strchrnul.c: Likewise.
52152         * lib/strcspn.c: Likewise.
52153         * lib/strerror.c: Likewise.
52154         * lib/strftime.c: Likewise.
52155         * lib/strftime.h: Likewise.
52156         * lib/striconveh.c: Likewise.
52157         * lib/striconveh.h: Likewise.
52158         * lib/striconveha.c: Likewise.
52159         * lib/striconveha.h: Likewise.
52160         * lib/stripslash.c: Likewise.
52161         * lib/strnlen1.c: Likewise.
52162         * lib/strnlen1.h: Likewise.
52163         * lib/strtod.c: Likewise.
52164         * lib/strtoimax.c: Likewise.
52165         * lib/strtok_r.c: Likewise.
52166         * lib/strtol.c: Likewise.
52167         * lib/strtoll.c: Likewise.
52168         * lib/strtoul.c: Likewise.
52169         * lib/strtoull.c: Likewise.
52170         * lib/sysexits.in.h: Likewise.
52171         * lib/tempname.c: Likewise.
52172         * lib/tempname.h: Likewise.
52173         * lib/timespec.h: Likewise.
52174         * lib/tls.c: Likewise.
52175         * lib/tls.h: Likewise.
52176         * lib/tmpdir.c: Likewise.
52177         * lib/tmpdir.h: Likewise.
52178         * lib/tmpfile-safer.c: Likewise.
52179         * lib/tmpfile.c: Likewise.
52180         * lib/trigl.c: Likewise.
52181         * lib/trigl.h: Likewise.
52182         * lib/trim.c: Likewise.
52183         * lib/trim.h: Likewise.
52184         * lib/trunc.c: Likewise.
52185         * lib/truncf.c: Likewise.
52186         * lib/truncl.c: Likewise.
52187         * lib/tsearch.c: Likewise.
52188         * lib/unicodeio.c: Likewise.
52189         * lib/unicodeio.h: Likewise.
52190         * lib/unistd--.h: Likewise.
52191         * lib/unistd-safer.h: Likewise.
52192         * lib/unistdio/ulc-fprintf.c: Likewise.
52193         * lib/unistdio/ulc-vfprintf.c: Likewise.
52194         * lib/unlinkdir.c: Likewise.
52195         * lib/unlinkdir.h: Likewise.
52196         * lib/unlocked-io.h: Likewise.
52197         * lib/unsetenv.c: Likewise.
52198         * lib/userspec.c: Likewise.
52199         * lib/utime.c: Likewise.
52200         * lib/utimecmp.c: Likewise.
52201         * lib/utimecmp.h: Likewise.
52202         * lib/utimens.c: Likewise.
52203         * lib/verify.h: Likewise.
52204         * lib/verror.c: Likewise.
52205         * lib/verror.h: Likewise.
52206         * lib/version-etc-fsf.c: Likewise.
52207         * lib/version-etc.c: Likewise.
52208         * lib/version-etc.h: Likewise.
52209         * lib/vfprintf.c: Likewise.
52210         * lib/vprintf.c: Likewise.
52211         * lib/vsprintf.c: Likewise.
52212         * lib/w32spawn.h: Likewise.
52213         * lib/wait-process.c: Likewise.
52214         * lib/wait-process.h: Likewise.
52215         * lib/wcwidth.c: Likewise.
52216         * lib/write-any-file.c: Likewise.
52217         * lib/xalloc-die.c: Likewise.
52218         * lib/xalloc.h: Likewise.
52219         * lib/xasprintf.c: Likewise.
52220         * lib/xgetcwd.c: Likewise.
52221         * lib/xgetcwd.h: Likewise.
52222         * lib/xgetdomainname.c: Likewise.
52223         * lib/xgetdomainname.h: Likewise.
52224         * lib/xgethostname.c: Likewise.
52225         * lib/xmalloc.c: Likewise.
52226         * lib/xmalloca.c: Likewise.
52227         * lib/xmalloca.h: Likewise.
52228         * lib/xmemcoll.c: Likewise.
52229         * lib/xnanosleep.c: Likewise.
52230         * lib/xreadlink.c: Likewise.
52231         * lib/xreadlink.h: Likewise.
52232         * lib/xsetenv.c: Likewise.
52233         * lib/xsetenv.h: Likewise.
52234         * lib/xstriconv.c: Likewise.
52235         * lib/xstriconv.h: Likewise.
52236         * lib/xstrndup.c: Likewise.
52237         * lib/xstrndup.h: Likewise.
52238         * lib/xstrtod.c: Likewise.
52239         * lib/xstrtod.h: Likewise.
52240         * lib/xstrtol-error.c: Likewise.
52241         * lib/xstrtol.c: Likewise.
52242         * lib/xstrtol.h: Likewise.
52243         * lib/xtime.h: Likewise.
52244         * lib/xvasprintf.c: Likewise.
52245         * lib/xvasprintf.h: Likewise.
52246         * lib/yesno.c: Likewise.
52247         * lib/yesno.h: Likewise.
52248         * posix-modules: Likewise.
52249         * tests/test-alloca-opt.c: Likewise.
52250         * tests/test-arcfour.c: Likewise.
52251         * tests/test-arctwo.c: Likewise.
52252         * tests/test-argmatch.c: Likewise.
52253         * tests/test-argp-2.sh: Likewise.
52254         * tests/test-argp.c: Likewise.
52255         * tests/test-arpa_inet.c: Likewise.
52256         * tests/test-array_list.c: Likewise.
52257         * tests/test-array_oset.c: Likewise.
52258         * tests/test-atexit.c: Likewise.
52259         * tests/test-avltree_list.c: Likewise.
52260         * tests/test-avltree_oset.c: Likewise.
52261         * tests/test-avltreehash_list.c: Likewise.
52262         * tests/test-base64.c: Likewise.
52263         * tests/test-binary-io.c: Likewise.
52264         * tests/test-byteswap.c: Likewise.
52265         * tests/test-c-ctype.c: Likewise.
52266         * tests/test-c-strcasecmp.c: Likewise.
52267         * tests/test-c-strcasestr.c: Likewise.
52268         * tests/test-c-strncasecmp.c: Likewise.
52269         * tests/test-c-strstr.c: Likewise.
52270         * tests/test-canonicalize-lgpl.c: Likewise.
52271         * tests/test-canonicalize.c: Likewise.
52272         * tests/test-carray_list.c: Likewise.
52273         * tests/test-ceilf.c: Likewise.
52274         * tests/test-ceill.c: Likewise.
52275         * tests/test-count-one-bits.c: Likewise.
52276         * tests/test-crc.c: Likewise.
52277         * tests/test-dirname.c: Likewise.
52278         * tests/test-fbufmode.c: Likewise.
52279         * tests/test-fcntl.c: Likewise.
52280         * tests/test-fflush.c: Likewise.
52281         * tests/test-floorf.c: Likewise.
52282         * tests/test-floorl.c: Likewise.
52283         * tests/test-fopen.c: Likewise.
52284         * tests/test-fprintf-posix.c: Likewise.
52285         * tests/test-fprintf-posix.h: Likewise.
52286         * tests/test-fpurge.c: Likewise.
52287         * tests/test-freadable.c: Likewise.
52288         * tests/test-freadahead.c: Likewise.
52289         * tests/test-freading.c: Likewise.
52290         * tests/test-freopen.c: Likewise.
52291         * tests/test-frexp.c: Likewise.
52292         * tests/test-frexpl.c: Likewise.
52293         * tests/test-fseek.c: Likewise.
52294         * tests/test-fseeko.c: Likewise.
52295         * tests/test-fseterr.c: Likewise.
52296         * tests/test-fstrcmp.c: Likewise.
52297         * tests/test-ftell.c: Likewise.
52298         * tests/test-ftello.c: Likewise.
52299         * tests/test-fwritable.c: Likewise.
52300         * tests/test-fwriting.c: Likewise.
52301         * tests/test-getaddrinfo.c: Likewise.
52302         * tests/test-getpass.c: Likewise.
52303         * tests/test-gettimeofday.c: Likewise.
52304         * tests/test-hmac-md5.c: Likewise.
52305         * tests/test-hmac-sha1.c: Likewise.
52306         * tests/test-iconv.c: Likewise.
52307         * tests/test-iconvme.c: Likewise.
52308         * tests/test-inttypes.c: Likewise.
52309         * tests/test-isnan.c: Likewise.
52310         * tests/test-isnanf.c: Likewise.
52311         * tests/test-isnanl-nolibm.c: Likewise.
52312         * tests/test-isnanl.c: Likewise.
52313         * tests/test-isnanl.h: Likewise.
52314         * tests/test-ldexpl.c: Likewise.
52315         * tests/test-linked_list.c: Likewise.
52316         * tests/test-linkedhash_list.c: Likewise.
52317         * tests/test-locale.c: Likewise.
52318         * tests/test-localename.c: Likewise.
52319         * tests/test-lock.c: Likewise.
52320         * tests/test-lseek.c: Likewise.
52321         * tests/test-malloca.c: Likewise.
52322         * tests/test-math.c: Likewise.
52323         * tests/test-mbscasecmp.c: Likewise.
52324         * tests/test-mbscasestr1.c: Likewise.
52325         * tests/test-mbscasestr2.c: Likewise.
52326         * tests/test-mbscasestr3.c: Likewise.
52327         * tests/test-mbscasestr4.c: Likewise.
52328         * tests/test-mbschr.c: Likewise.
52329         * tests/test-mbscspn.c: Likewise.
52330         * tests/test-mbsncasecmp.c: Likewise.
52331         * tests/test-mbspbrk.c: Likewise.
52332         * tests/test-mbspcasecmp.c: Likewise.
52333         * tests/test-mbsrchr.c: Likewise.
52334         * tests/test-mbsspn.c: Likewise.
52335         * tests/test-mbsstr1.c: Likewise.
52336         * tests/test-mbsstr2.c: Likewise.
52337         * tests/test-mbsstr3.c: Likewise.
52338         * tests/test-md5.c: Likewise.
52339         * tests/test-memmem.c: Likewise.
52340         * tests/test-netinet_in.c: Likewise.
52341         * tests/test-open.c: Likewise.
52342         * tests/test-printf-frexp.c: Likewise.
52343         * tests/test-printf-frexpl.c: Likewise.
52344         * tests/test-printf-posix.c: Likewise.
52345         * tests/test-printf-posix.h: Likewise.
52346         * tests/test-rbtree_list.c: Likewise.
52347         * tests/test-rbtree_oset.c: Likewise.
52348         * tests/test-rbtreehash_list.c: Likewise.
52349         * tests/test-read-file.c: Likewise.
52350         * tests/test-rijndael.c: Likewise.
52351         * tests/test-search.c: Likewise.
52352         * tests/test-signbit.c: Likewise.
52353         * tests/test-sleep.c: Likewise.
52354         * tests/test-snprintf-posix.c: Likewise.
52355         * tests/test-snprintf-posix.h: Likewise.
52356         * tests/test-snprintf.c: Likewise.
52357         * tests/test-sprintf-posix.c: Likewise.
52358         * tests/test-sprintf-posix.h: Likewise.
52359         * tests/test-stat-time.c: Likewise.
52360         * tests/test-stdbool.c: Likewise.
52361         * tests/test-stdint.c: Likewise.
52362         * tests/test-stdio.c: Likewise.
52363         * tests/test-stdlib.c: Likewise.
52364         * tests/test-stpncpy.c: Likewise.
52365         * tests/test-strcasestr.c: Likewise.
52366         * tests/test-striconv.c: Likewise.
52367         * tests/test-striconveh.c: Likewise.
52368         * tests/test-striconveha.c: Likewise.
52369         * tests/test-string.c: Likewise.
52370         * tests/test-sys_select.c: Likewise.
52371         * tests/test-sys_socket.c: Likewise.
52372         * tests/test-sys_stat.c: Likewise.
52373         * tests/test-sys_time.c: Likewise.
52374         * tests/test-sysexits.c: Likewise.
52375         * tests/test-time.c: Likewise.
52376         * tests/test-tls.c: Likewise.
52377         * tests/test-trunc.c: Likewise.
52378         * tests/test-truncf.c: Likewise.
52379         * tests/test-truncl.c: Likewise.
52380         * tests/test-unistd.c: Likewise.
52381         * tests/test-vasnprintf-posix.c: Likewise.
52382         * tests/test-vasnprintf-posix2.c: Likewise.
52383         * tests/test-vasnprintf.c: Likewise.
52384         * tests/test-vasprintf-posix.c: Likewise.
52385         * tests/test-vasprintf.c: Likewise.
52386         * tests/test-verify.c: Likewise.
52387         * tests/test-vfprintf-posix.c: Likewise.
52388         * tests/test-vprintf-posix.c: Likewise.
52389         * tests/test-vsnprintf-posix.c: Likewise.
52390         * tests/test-vsnprintf.c: Likewise.
52391         * tests/test-vsprintf-posix.c: Likewise.
52392         * tests/test-wchar.c: Likewise.
52393         * tests/test-wctype.c: Likewise.
52394         * tests/test-wcwidth.c: Likewise.
52395         * tests/test-xstrtol.c: Likewise.
52396         * tests/test-xvasprintf.c: Likewise.
52397         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
52398         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
52399         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
52400         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
52401         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
52402         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
52403         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
52404         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
52405         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
52406         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
52407         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
52408         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
52409         * tests/uniname/test-uninames.c: Likewise.
52410         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
52411         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
52412         * tests/unistdio/test-u16-printf1.h: Likewise.
52413         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
52414         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
52415         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
52416         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
52417         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
52418         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
52419         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
52420         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
52421         * tests/unistdio/test-u32-printf1.h: Likewise.
52422         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
52423         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
52424         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
52425         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
52426         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
52427         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
52428         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
52429         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
52430         * tests/unistdio/test-u8-printf1.h: Likewise.
52431         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
52432         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
52433         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
52434         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
52435         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
52436         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
52437         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
52438         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
52439         * tests/unistdio/test-ulc-printf1.h: Likewise.
52440         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
52441         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
52442         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
52443         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
52444         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
52445         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
52446         * tests/uniwidth/test-u16-strwidth.c: Likewise.
52447         * tests/uniwidth/test-u16-width.c: Likewise.
52448         * tests/uniwidth/test-u32-strwidth.c: Likewise.
52449         * tests/uniwidth/test-u32-width.c: Likewise.
52450         * tests/uniwidth/test-u8-strwidth.c: Likewise.
52451         * tests/uniwidth/test-u8-width.c: Likewise.
52452         * tests/uniwidth/test-uc_width.c: Likewise.
52453         * config/srclist-update: Likewise.
52454         (fixlicense): Update to GPLv3+.
52455
52456         Change copyright notice from LGPLv2.1+ to LGPLv3+.
52457         * tests/test-tsearch.c: Change copyright notice.
52458
52459         Change copyright notice from LGPLv2.0+ to LGPLv3+.
52460         * lib/c-strcaseeq.h: Change copyright notice.
52461         * lib/streq.h: Likewise.
52462         * lib/uniconv.h: Likewise.
52463         * lib/uniconv/u-conv-from-enc.h: Likewise.
52464         * lib/uniconv/u-conv-to-enc.h: Likewise.
52465         * lib/uniconv/u-strconv-from-enc.h: Likewise.
52466         * lib/uniconv/u-strconv-to-enc.h: Likewise.
52467         * lib/uniconv/u16-conv-from-enc.c: Likewise.
52468         * lib/uniconv/u16-conv-to-enc.c: Likewise.
52469         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
52470         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
52471         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
52472         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
52473         * lib/uniconv/u32-conv-from-enc.c: Likewise.
52474         * lib/uniconv/u32-conv-to-enc.c: Likewise.
52475         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
52476         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
52477         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
52478         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
52479         * lib/uniconv/u8-conv-from-enc.c: Likewise.
52480         * lib/uniconv/u8-conv-to-enc.c: Likewise.
52481         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
52482         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
52483         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
52484         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
52485         * lib/uniname.h: Likewise.
52486         * lib/uniname/uniname.c: Likewise.
52487         * lib/unistdio.h: Likewise.
52488         * lib/unistdio/u-asnprintf.h: Likewise.
52489         * lib/unistdio/u-asprintf.h: Likewise.
52490         * lib/unistdio/u-printf-args.c: Likewise.
52491         * lib/unistdio/u-printf-args.h: Likewise.
52492         * lib/unistdio/u-printf-parse.h: Likewise.
52493         * lib/unistdio/u-snprintf.h: Likewise.
52494         * lib/unistdio/u-sprintf.h: Likewise.
52495         * lib/unistdio/u-vasprintf.h: Likewise.
52496         * lib/unistdio/u-vsnprintf.h: Likewise.
52497         * lib/unistdio/u-vsprintf.h: Likewise.
52498         * lib/unistdio/u16-asnprintf.c: Likewise.
52499         * lib/unistdio/u16-asprintf.c: Likewise.
52500         * lib/unistdio/u16-printf-parse.c: Likewise.
52501         * lib/unistdio/u16-snprintf.c: Likewise.
52502         * lib/unistdio/u16-sprintf.c: Likewise.
52503         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
52504         * lib/unistdio/u16-u16-asprintf.c: Likewise.
52505         * lib/unistdio/u16-u16-snprintf.c: Likewise.
52506         * lib/unistdio/u16-u16-sprintf.c: Likewise.
52507         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
52508         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
52509         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
52510         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
52511         * lib/unistdio/u16-vasnprintf.c: Likewise.
52512         * lib/unistdio/u16-vasprintf.c: Likewise.
52513         * lib/unistdio/u16-vsnprintf.c: Likewise.
52514         * lib/unistdio/u16-vsprintf.c: Likewise.
52515         * lib/unistdio/u32-asnprintf.c: Likewise.
52516         * lib/unistdio/u32-asprintf.c: Likewise.
52517         * lib/unistdio/u32-printf-parse.c: Likewise.
52518         * lib/unistdio/u32-snprintf.c: Likewise.
52519         * lib/unistdio/u32-sprintf.c: Likewise.
52520         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
52521         * lib/unistdio/u32-u32-asprintf.c: Likewise.
52522         * lib/unistdio/u32-u32-snprintf.c: Likewise.
52523         * lib/unistdio/u32-u32-sprintf.c: Likewise.
52524         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
52525         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
52526         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
52527         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
52528         * lib/unistdio/u32-vasnprintf.c: Likewise.
52529         * lib/unistdio/u32-vasprintf.c: Likewise.
52530         * lib/unistdio/u32-vsnprintf.c: Likewise.
52531         * lib/unistdio/u32-vsprintf.c: Likewise.
52532         * lib/unistdio/u8-asnprintf.c: Likewise.
52533         * lib/unistdio/u8-asprintf.c: Likewise.
52534         * lib/unistdio/u8-printf-parse.c: Likewise.
52535         * lib/unistdio/u8-snprintf.c: Likewise.
52536         * lib/unistdio/u8-sprintf.c: Likewise.
52537         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
52538         * lib/unistdio/u8-u8-asprintf.c: Likewise.
52539         * lib/unistdio/u8-u8-snprintf.c: Likewise.
52540         * lib/unistdio/u8-u8-sprintf.c: Likewise.
52541         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
52542         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
52543         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
52544         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
52545         * lib/unistdio/u8-vasnprintf.c: Likewise.
52546         * lib/unistdio/u8-vasprintf.c: Likewise.
52547         * lib/unistdio/u8-vsnprintf.c: Likewise.
52548         * lib/unistdio/u8-vsprintf.c: Likewise.
52549         * lib/unistdio/ulc-asnprintf.c: Likewise.
52550         * lib/unistdio/ulc-asprintf.c: Likewise.
52551         * lib/unistdio/ulc-printf-parse.c: Likewise.
52552         * lib/unistdio/ulc-snprintf.c: Likewise.
52553         * lib/unistdio/ulc-sprintf.c: Likewise.
52554         * lib/unistdio/ulc-vasnprintf.c: Likewise.
52555         * lib/unistdio/ulc-vasprintf.c: Likewise.
52556         * lib/unistdio/ulc-vsnprintf.c: Likewise.
52557         * lib/unistdio/ulc-vsprintf.c: Likewise.
52558         * lib/unistr.h: Likewise.
52559         * lib/unistr/u-cpy-alloc.h: Likewise.
52560         * lib/unistr/u-cpy.h: Likewise.
52561         * lib/unistr/u-endswith.h: Likewise.
52562         * lib/unistr/u-move.h: Likewise.
52563         * lib/unistr/u-set.h: Likewise.
52564         * lib/unistr/u-startswith.h: Likewise.
52565         * lib/unistr/u-stpcpy.h: Likewise.
52566         * lib/unistr/u-stpncpy.h: Likewise.
52567         * lib/unistr/u-strcat.h: Likewise.
52568         * lib/unistr/u-strcpy.h: Likewise.
52569         * lib/unistr/u-strcspn.h: Likewise.
52570         * lib/unistr/u-strdup.h: Likewise.
52571         * lib/unistr/u-strlen.h: Likewise.
52572         * lib/unistr/u-strncat.h: Likewise.
52573         * lib/unistr/u-strncpy.h: Likewise.
52574         * lib/unistr/u-strnlen.h: Likewise.
52575         * lib/unistr/u-strpbrk.h: Likewise.
52576         * lib/unistr/u-strspn.h: Likewise.
52577         * lib/unistr/u-strstr.h: Likewise.
52578         * lib/unistr/u-strtok.h: Likewise.
52579         * lib/unistr/u16-check.c: Likewise.
52580         * lib/unistr/u16-chr.c: Likewise.
52581         * lib/unistr/u16-cmp.c: Likewise.
52582         * lib/unistr/u16-cpy-alloc.c: Likewise.
52583         * lib/unistr/u16-cpy.c: Likewise.
52584         * lib/unistr/u16-endswith.c: Likewise.
52585         * lib/unistr/u16-mblen.c: Likewise.
52586         * lib/unistr/u16-mbsnlen.c: Likewise.
52587         * lib/unistr/u16-mbtouc-aux.c: Likewise.
52588         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
52589         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
52590         * lib/unistr/u16-mbtouc.c: Likewise.
52591         * lib/unistr/u16-mbtoucr.c: Likewise.
52592         * lib/unistr/u16-move.c: Likewise.
52593         * lib/unistr/u16-next.c: Likewise.
52594         * lib/unistr/u16-prev.c: Likewise.
52595         * lib/unistr/u16-set.c: Likewise.
52596         * lib/unistr/u16-startswith.c: Likewise.
52597         * lib/unistr/u16-stpcpy.c: Likewise.
52598         * lib/unistr/u16-stpncpy.c: Likewise.
52599         * lib/unistr/u16-strcat.c: Likewise.
52600         * lib/unistr/u16-strchr.c: Likewise.
52601         * lib/unistr/u16-strcmp.c: Likewise.
52602         * lib/unistr/u16-strcpy.c: Likewise.
52603         * lib/unistr/u16-strcspn.c: Likewise.
52604         * lib/unistr/u16-strdup.c: Likewise.
52605         * lib/unistr/u16-strlen.c: Likewise.
52606         * lib/unistr/u16-strmblen.c: Likewise.
52607         * lib/unistr/u16-strmbtouc.c: Likewise.
52608         * lib/unistr/u16-strncat.c: Likewise.
52609         * lib/unistr/u16-strncmp.c: Likewise.
52610         * lib/unistr/u16-strncpy.c: Likewise.
52611         * lib/unistr/u16-strnlen.c: Likewise.
52612         * lib/unistr/u16-strpbrk.c: Likewise.
52613         * lib/unistr/u16-strrchr.c: Likewise.
52614         * lib/unistr/u16-strspn.c: Likewise.
52615         * lib/unistr/u16-strstr.c: Likewise.
52616         * lib/unistr/u16-strtok.c: Likewise.
52617         * lib/unistr/u16-to-u32.c: Likewise.
52618         * lib/unistr/u16-to-u8.c: Likewise.
52619         * lib/unistr/u16-uctomb-aux.c: Likewise.
52620         * lib/unistr/u16-uctomb.c: Likewise.
52621         * lib/unistr/u32-check.c: Likewise.
52622         * lib/unistr/u32-chr.c: Likewise.
52623         * lib/unistr/u32-cmp.c: Likewise.
52624         * lib/unistr/u32-cpy-alloc.c: Likewise.
52625         * lib/unistr/u32-cpy.c: Likewise.
52626         * lib/unistr/u32-endswith.c: Likewise.
52627         * lib/unistr/u32-mblen.c: Likewise.
52628         * lib/unistr/u32-mbsnlen.c: Likewise.
52629         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
52630         * lib/unistr/u32-mbtouc.c: Likewise.
52631         * lib/unistr/u32-mbtoucr.c: Likewise.
52632         * lib/unistr/u32-move.c: Likewise.
52633         * lib/unistr/u32-next.c: Likewise.
52634         * lib/unistr/u32-prev.c: Likewise.
52635         * lib/unistr/u32-set.c: Likewise.
52636         * lib/unistr/u32-startswith.c: Likewise.
52637         * lib/unistr/u32-stpcpy.c: Likewise.
52638         * lib/unistr/u32-stpncpy.c: Likewise.
52639         * lib/unistr/u32-strcat.c: Likewise.
52640         * lib/unistr/u32-strchr.c: Likewise.
52641         * lib/unistr/u32-strcmp.c: Likewise.
52642         * lib/unistr/u32-strcpy.c: Likewise.
52643         * lib/unistr/u32-strcspn.c: Likewise.
52644         * lib/unistr/u32-strdup.c: Likewise.
52645         * lib/unistr/u32-strlen.c: Likewise.
52646         * lib/unistr/u32-strmblen.c: Likewise.
52647         * lib/unistr/u32-strmbtouc.c: Likewise.
52648         * lib/unistr/u32-strncat.c: Likewise.
52649         * lib/unistr/u32-strncmp.c: Likewise.
52650         * lib/unistr/u32-strncpy.c: Likewise.
52651         * lib/unistr/u32-strnlen.c: Likewise.
52652         * lib/unistr/u32-strpbrk.c: Likewise.
52653         * lib/unistr/u32-strrchr.c: Likewise.
52654         * lib/unistr/u32-strspn.c: Likewise.
52655         * lib/unistr/u32-strstr.c: Likewise.
52656         * lib/unistr/u32-strtok.c: Likewise.
52657         * lib/unistr/u32-to-u16.c: Likewise.
52658         * lib/unistr/u32-to-u8.c: Likewise.
52659         * lib/unistr/u32-uctomb.c: Likewise.
52660         * lib/unistr/u8-check.c: Likewise.
52661         * lib/unistr/u8-chr.c: Likewise.
52662         * lib/unistr/u8-cmp.c: Likewise.
52663         * lib/unistr/u8-cpy-alloc.c: Likewise.
52664         * lib/unistr/u8-cpy.c: Likewise.
52665         * lib/unistr/u8-endswith.c: Likewise.
52666         * lib/unistr/u8-mblen.c: Likewise.
52667         * lib/unistr/u8-mbsnlen.c: Likewise.
52668         * lib/unistr/u8-mbtouc-aux.c: Likewise.
52669         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
52670         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
52671         * lib/unistr/u8-mbtouc.c: Likewise.
52672         * lib/unistr/u8-mbtoucr.c: Likewise.
52673         * lib/unistr/u8-move.c: Likewise.
52674         * lib/unistr/u8-next.c: Likewise.
52675         * lib/unistr/u8-prev.c: Likewise.
52676         * lib/unistr/u8-set.c: Likewise.
52677         * lib/unistr/u8-startswith.c: Likewise.
52678         * lib/unistr/u8-stpcpy.c: Likewise.
52679         * lib/unistr/u8-stpncpy.c: Likewise.
52680         * lib/unistr/u8-strcat.c: Likewise.
52681         * lib/unistr/u8-strchr.c: Likewise.
52682         * lib/unistr/u8-strcmp.c: Likewise.
52683         * lib/unistr/u8-strcpy.c: Likewise.
52684         * lib/unistr/u8-strcspn.c: Likewise.
52685         * lib/unistr/u8-strdup.c: Likewise.
52686         * lib/unistr/u8-strlen.c: Likewise.
52687         * lib/unistr/u8-strmblen.c: Likewise.
52688         * lib/unistr/u8-strmbtouc.c: Likewise.
52689         * lib/unistr/u8-strncat.c: Likewise.
52690         * lib/unistr/u8-strncmp.c: Likewise.
52691         * lib/unistr/u8-strncpy.c: Likewise.
52692         * lib/unistr/u8-strnlen.c: Likewise.
52693         * lib/unistr/u8-strpbrk.c: Likewise.
52694         * lib/unistr/u8-strrchr.c: Likewise.
52695         * lib/unistr/u8-strspn.c: Likewise.
52696         * lib/unistr/u8-strstr.c: Likewise.
52697         * lib/unistr/u8-strtok.c: Likewise.
52698         * lib/unistr/u8-to-u16.c: Likewise.
52699         * lib/unistr/u8-to-u32.c: Likewise.
52700         * lib/unistr/u8-uctomb-aux.c: Likewise.
52701         * lib/unistr/u8-uctomb.c: Likewise.
52702         * lib/unitypes.h: Likewise.
52703         * lib/uniwidth.h: Likewise.
52704         * lib/uniwidth/cjk.h: Likewise.
52705         * lib/uniwidth/u16-strwidth.c: Likewise.
52706         * lib/uniwidth/u16-width.c: Likewise.
52707         * lib/uniwidth/u32-strwidth.c: Likewise.
52708         * lib/uniwidth/u32-width.c: Likewise.
52709         * lib/uniwidth/u8-strwidth.c: Likewise.
52710         * lib/uniwidth/u8-width.c: Likewise.
52711         * lib/uniwidth/width.c: Likewise.
52712
52713 2007-10-07  Bruno Haible  <bruno@clisp.org>
52714
52715         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
52716         The file is still under LGPL (see modules/inttypes).
52717
52718 2007-10-06  Bruno Haible  <bruno@clisp.org>
52719
52720         * modules/trunc (Dependencies): Add 'extensions'.
52721         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
52722         Reported by Ben Pfaff <blp@gnu.org>.
52723
52724 2007-10-06  Bruno Haible  <bruno@clisp.org>
52725
52726         * modules/freopen-tests: New file.
52727         * tests/test-freopen.c: New file.
52728
52729         * modules/fopen-tests: New file.
52730         * tests/test-fopen.c: New file.
52731
52732         * modules/fopen: New file.
52733         * lib/fopen.c: New file.
52734         * m4/fopen.m4: New file.
52735         * modules/freopen: New file.
52736         * lib/freopen.c: New file.
52737         * m4/freopen.m4: New file.
52738         * lib/stdio.in.h (fopen, freopen): New declarations.
52739         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
52740         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
52741         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
52742         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
52743         * doc/functions/fopen.texi: Mention the 'fopen' module.
52744         * doc/functions/freopen.texi: Mention the 'freopen' module.
52745
52746 2007-10-06  Bruno Haible  <bruno@clisp.org>
52747
52748         * modules/open-tests: New file.
52749         * tests/test-open.c: New file.
52750
52751         * modules/open: New file.
52752         * lib/open.c: New file.
52753         * m4/open.m4: New file.
52754         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
52755         lib/open.c does.
52756         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
52757         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
52758         macros.
52759         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
52760         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
52761         REPLACE_OPEN.
52762         * doc/functions/open.texi: Mention the 'open' module.
52763
52764 2007-10-04  Bruno Haible  <bruno@clisp.org>
52765
52766         * modules/ceill-tests: New file.
52767         * tests/test-ceill.c: New file.
52768
52769         * modules/ceill: New file.
52770         * lib/ceill.c: Replace entire file.
52771         * m4/ceill.m4: New file.
52772         * lib/math.in.h (ceill): Replace declaration.
52773         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
52774         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
52775         * doc/functions/ceill.texi: Mention the 'ceill' module.
52776         * modules/mathl (Files): Remove lib/ceill.c.
52777         (Depends-on): Add ceill.
52778
52779 2007-10-04  Bruno Haible  <bruno@clisp.org>
52780
52781         * modules/ceilf-tests: New file.
52782         * tests/test-ceilf.c: New file.
52783
52784         * modules/ceilf: New file.
52785         * lib/ceil.c: New file.
52786         * lib/ceilf.c: New file.
52787         * m4/ceilf.m4: New file.
52788         * lib/math.in.h (ceilf): New declaration.
52789         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
52790         HAVE_DECL_CEILF.
52791         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
52792         HAVE_DECL_CEILF.
52793         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
52794
52795 2007-10-04  Bruno Haible  <bruno@clisp.org>
52796
52797         * modules/floorl-tests: New file.
52798         * tests/test-floorl.c: New file.
52799
52800         * modules/floorl: New file.
52801         * lib/floorl.c: Replace entire file.
52802         * m4/floorl.m4: New file.
52803         * lib/math.in.h (floorl): Replace declaration.
52804         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
52805         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
52806         * doc/functions/floorl.texi: Mention the 'floorl' module.
52807         * modules/mathl (Files): Remove lib/floorl.c.
52808         (Depends-on): Add floorl.
52809
52810 2007-10-04  Bruno Haible  <bruno@clisp.org>
52811
52812         * modules/floorf-tests: New file.
52813         * tests/test-floorf.c: New file.
52814
52815         * modules/floorf: New file.
52816         * lib/floor.c: New file.
52817         * lib/floorf.c: New file.
52818         * m4/floorf.m4: New file.
52819         * lib/math.in.h (floorf): New declaration.
52820         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
52821         HAVE_DECL_FLOORF.
52822         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
52823         HAVE_DECL_FLOORF.
52824         * doc/functions/floorf.texi: Mention the 'floorf' module.
52825
52826 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
52827             Bruno Haible  <bruno@clisp.org>
52828
52829         Advertise for the Git server instead of the CVS server.
52830         * doc/gnulib-intro.texi (Steady Development): Mention the Git
52831         repository instead of the CVS one.
52832         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
52833         about all VCS systems generically.
52834         * doc/gnulib.texi (Introduction): Capitalize `Git'.
52835
52836 2007-10-04  Bruno Haible  <bruno@clisp.org>
52837
52838         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
52839         means.
52840         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
52841
52842 2007-10-04  Bruno Haible  <bruno@clisp.org>
52843
52844         * modules/truncl-tests: New file.
52845         * tests/test-truncl.c: New file.
52846
52847         * modules/truncl: New file.
52848         * lib/truncl.c: New file.
52849         * m4/truncl.m4: New file.
52850         * lib/math.in.h (truncl): New declaration.
52851         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
52852         HAVE_DECL_TRUNCL.
52853         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
52854         HAVE_DECL_TRUNCL.
52855         * doc/functions/truncl.texi: Mention the 'truncl' module.
52856
52857 2007-10-04  Bruno Haible  <bruno@clisp.org>
52858
52859         * modules/truncf-tests: New file.
52860         * tests/test-truncf.c: New file.
52861
52862         * modules/truncf: New file.
52863         * lib/trunc.c: Make paramerizable through USE_* macros.
52864         * lib/truncf.c: New file.
52865         * m4/truncf.m4: New file.
52866         * lib/math.in.h (truncf): New declaration.
52867         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
52868         HAVE_DECL_TRUNCF.
52869         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
52870         HAVE_DECL_TRUNCF.
52871         * doc/functions/truncf.texi: Mention the 'truncf' module.
52872
52873 2007-10-03  Bruno Haible  <bruno@clisp.org>
52874
52875         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
52876         augmentation also for tests modules.
52877         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
52878         * modules/atexit-tests (Makefile.am): Likewise.
52879         * modules/binary-io-tests (Makefile.am): Likewise.
52880         * modules/c-strcase-tests (Makefile.am): Likewise.
52881         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
52882         * modules/canonicalize-tests (Makefile.am): Likewise.
52883         * modules/closein-tests (Makefile.am): Likewise.
52884         * modules/fprintf-posix-tests (Makefile.am): Likewise.
52885         * modules/freadahead-tests (Makefile.am): Likewise.
52886         * modules/fseek-tests (Makefile.am): Likewise.
52887         * modules/fseeko-tests (Makefile.am): Likewise.
52888         * modules/ftell-tests (Makefile.am): Likewise.
52889         * modules/ftello-tests (Makefile.am): Likewise.
52890         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
52891         * modules/isnanl-tests (Makefile.am): Likewise.
52892         * modules/lseek-tests (Makefile.am): Likewise.
52893         * modules/mbscasecmp-tests (Makefile.am): Likewise.
52894         * modules/mbscasestr-tests (Makefile.am): Likewise.
52895         * modules/mbschr-tests (Makefile.am): Likewise.
52896         * modules/mbscspn-tests (Makefile.am): Likewise.
52897         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
52898         * modules/mbspbrk-tests (Makefile.am): Likewise.
52899         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
52900         * modules/mbsrchr-tests (Makefile.am): Likewise.
52901         * modules/mbsspn-tests (Makefile.am): Likewise.
52902         * modules/mbsstr-tests (Makefile.am): Likewise.
52903         * modules/printf-posix-tests (Makefile.am): Likewise.
52904         * modules/snprintf-posix-tests (Makefile.am): Likewise.
52905         * modules/sprintf-posix-tests (Makefile.am): Likewise.
52906         * modules/tsearch-tests (Makefile.am): Likewise.
52907         * modules/uniname/uniname-tests (Makefile.am): Likewise.
52908         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
52909         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
52910         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
52911         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
52912         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
52913         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
52914         * modules/vprintf-posix-tests (Makefile.am): Likewise.
52915         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
52916         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
52917         * modules/xstrtoimax-tests (Makefile.am): Likewise.
52918         * modules/xstrtol-tests (Makefile.am): Likewise.
52919         * modules/xstrtoumax-tests (Makefile.am): Likewise.
52920         * modules/yesno-tests (Makefile.am): Likewise.
52921
52922 2007-10-03  Bruno Haible  <bruno@clisp.org>
52923
52924         * modules/trunc-tests: New file.
52925         * tests/test-trunc.c: New file.
52926
52927         * modules/trunc: New file.
52928         * lib/trunc.c: New file.
52929         * m4/trunc.m4: New file.
52930         * lib/math.in.h (trunc): New declaration.
52931         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
52932         HAVE_DECL_TRUNC.
52933         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
52934         HAVE_DECL_TRUNC.
52935         * doc/functions/trunc.texi: Mention the 'trunc' module.
52936
52937 2007-10-03  Bruno Haible  <bruno@clisp.org>
52938
52939         * tests/test-fpending.c: New file, mostly copied
52940         from coreutils/lib/t-fpending.c.
52941         * modules/fpending-tests: New file.
52942
52943 2007-10-03  Bruno Haible  <bruno@clisp.org>
52944
52945         Port the stdio extensions to QNX (untested).
52946         * lib/fseterr.c (fseterr): Add support for QNX.
52947         * lib/fbufmode.c (fbufmode): Likewise.
52948         * lib/freadable.c (freadable): Likewise.
52949         * lib/fwritable.c (fwritable): Likewise.
52950         * lib/freading.c (freading): Likewise.
52951         * lib/fwriting.c (fwriting): Likewise.
52952         * lib/freadahead.c (freadahed): Likewise.
52953         * lib/fpurge.c (fpurge): Likewise.
52954         * lib/fseeko.c (rpl_fseeko): Likewise.
52955
52956 2007-10-03  Bruno Haible  <bruno@clisp.org>
52957             Jim Meyering  <jim@meyering.net>
52958             Eric Blake  <ebb9@byu.net>
52959
52960         * doc/relocatable.texi: Use @command instead of @program.
52961
52962 2007-10-02  Jim Meyering  <jim@meyering.net>
52963
52964         Perform one more "_.h" -> ".in.h" substitution.
52965         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
52966         instead of unistd_.h here, too.
52967
52968 2007-10-01  Bruno Haible  <bruno@clisp.org>
52969
52970         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
52971         Needed for the alloca-opt module.
52972
52973 2007-09-30  Bruno Haible  <bruno@clisp.org>
52974
52975         * lib/alloca.in.h: Renamed from lib/alloca_.h.
52976         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
52977         alloca_.h.
52978         * lib/argz.in.h: Renamed from lib/argz_.h.
52979         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
52980         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
52981         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
52982         byteswap_.h.
52983         * lib/dirent.in.h: Renamed from lib/dirent_.h.
52984         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
52985         dirent_.h.
52986         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
52987         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
52988         fcntl_.h.
52989         * lib/float.in.h: Renamed from lib/float_.h.
52990         * modules/float (Files, Makefile.am): Use float.in.h instead of
52991         float_.h.
52992         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
52993         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
52994         fnmatch_.h.
52995         * lib/getopt.in.h: Renamed from lib/getopt_.h.
52996         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
52997         getopt_.h.
52998         * lib/glob.in.h: Renamed from lib/glob_.h.
52999         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
53000         * lib/iconv.in.h: Renamed from lib/iconv_.h.
53001         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
53002         iconv_.h.
53003         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
53004         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
53005         inttypes_.h.
53006         * lib/locale.in.h: Renamed from lib/locale_.h.
53007         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
53008         locale_.h.
53009         * lib/math.in.h: Renamed from lib/math_.h.
53010         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
53011         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
53012         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
53013         of netinet_in_.h. Add dependency.
53014         * lib/poll.in.h: Renamed from lib/poll_.h.
53015         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
53016         * lib/search.in.h: Renamed from lib/search_.h.
53017         * modules/search (Files, Makefile.am): Use search.in.h instead of
53018         search_.h.
53019         * lib/signal.in.h: Renamed from lib/signal_.h.
53020         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
53021         _signal.h.
53022         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
53023         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
53024         stdbool_.h.
53025         * lib/stdint.in.h: Renamed from lib/stdint_.h.
53026         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
53027         stdint_.h.
53028         * lib/stdio.in.h: Renamed from lib/stdio_.h.
53029         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
53030         stdio_.h.
53031         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
53032         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
53033         stdlib_.h.
53034         * lib/string.in.h: Renamed from lib/string_.h.
53035         * modules/string (Files, Makefile.am): Use string.in.h instead of
53036         string_.h.
53037         * doc/gnulib-tool.texi (Initial import): Update.
53038         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
53039         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
53040         of sys_select_.h. Add dependency.
53041         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
53042         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
53043         of sys_socket_.h.
53044         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
53045         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
53046         sys_stat_.h.
53047         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
53048         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
53049         sys_time_.h.
53050         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
53051         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
53052         sysexits_.h.
53053         * lib/time.in.h: Renamed from lib/time_.h.
53054         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
53055         * lib/unistd.in.h: Renamed from lib/unistd_.h.
53056         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
53057         unistd_.h.
53058         * lib/wchar.in.h: Renamed from lib/wchar_.h.
53059         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
53060         wchar_.h.
53061         * lib/wctype.in.h: Renamed from lib/wctype_.h.
53062         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
53063         wctype_.h.
53064         * build-aux/bootstrap (slurp): Update.
53065         * lib/.cppi-disable: Update.
53066
53067 2007-09-30  Bruno Haible  <bruno@clisp.org>
53068
53069         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
53070         Needed on BeOS.
53071
53072 2007-09-30  Bruno Haible  <bruno@clisp.org>
53073
53074         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
53075
53076 2007-09-29  Bruno Haible  <bruno@clisp.org>
53077
53078         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
53079
53080 2007-09-29  Bruno Haible  <bruno@clisp.org>
53081
53082         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
53083         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
53084         * build-aux/install-reloc: Compile also areadlink.c.
53085         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
53086
53087 2007-09-29  Bruno Haible  <bruno@clisp.org>
53088
53089         * gnulib-tool (func_emit_initmacro_done): Indentation.
53090
53091 2007-09-29  Bruno Haible  <bruno@clisp.org>
53092
53093         * README: Add CVS checkout update instructions.
53094         Info from Bob Proulx <bob@proulx.com>.
53095
53096 2007-09-28  Eric Blake  <ebb9@byu.net>
53097
53098         Provide move-if-change.
53099         * build-aux/move-if-change: New file, based on best practice
53100         rather than any canonical upstream location.
53101
53102 2007-09-28  Jim Meyering  <jim@meyering.net>
53103
53104         Fix canonicalize loop-detection corner case.
53105         Do not attempt to stat the symlink values stored via seen_triple.
53106         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
53107         on linux-2.6.18, (but not 2.6.22).
53108         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
53109         triple_compare.  The former compares dev,ino,filename, while the latter
53110         would actually stat dirname(filename) when dev and ino were equal.
53111         * lib/hash-triple.c: Install <string.h>.
53112         (STREQ): Define.
53113         (triple_compare_ino_str): New function.
53114         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
53115
53116 2007-09-28  Eric Blake  <ebb9@byu.net>
53117
53118         Enforce that AC_REPLACE_FUNCS files exist.
53119         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
53120         override check for typos.
53121
53122         Fix test-closein on Solaris 10.
53123         * tests/test-closein.c (main): Don't assume stdin can be inherited
53124         closed on all systems.
53125         * tests/test-closein.sh: Likewise.
53126         Reported by Piotr Tarnowski.
53127
53128 2007-09-28  Jim Meyering  <jim@meyering.net>
53129
53130         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
53131
53132 2007-09-27  Jim Meyering  <jim@meyering.net>
53133
53134         canonicalize: Avoid a false-positive cycle failure.
53135         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
53136         Sort.  Remove cycle-check.
53137         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
53138         not cycle-check.h.
53139         (seen_triple): New function.
53140         (canonicalize_filename_mode): Use it instead of cycle-check.
53141         * tests/test-canonicalize.c: Add a test for this bug.
53142         * tests/test-canonicalize.sh: Set up and run the test.
53143
53144         New module, file-set, from coreutils.
53145         * modules/file-set: Define it.
53146         * lib/file-set.c, lib/file-set.h: Implement.
53147
53148         New module, hash-triple, from coreutils.
53149         * modules/hash-triple: Define it.
53150         * lib/hash-triple.c, lib/hash-triple.h: Implement.
53151
53152 2007-09-25  Eric Blake  <ebb9@byu.net>
53153
53154         Fix strerror on Interix.
53155         * lib/string_.h (strerror): Declare replacement.
53156         * doc/functions/strerror.texi (strerror): Document the Interix
53157         shortcoming.
53158         * modules/string (Makefile.am): Support new hooks.
53159         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
53160         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
53161         gl_FUNC_STRERROR_SEPARATE.
53162         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
53163         * lib/strerror.c (rpl_strerror): Provide replacement.
53164         * modules/strerror (Depends-on): Add string.
53165         (configure.ac): Detect use of module.
53166         * tests/test-strerror.c: New file.
53167         * modules/strerror-tests: New test module.
53168         * modules/argp (Depends-on): Add strerror.
53169         * modules/error (Depends-on): Likewise.
53170         Reported by Martin Koeppe.
53171
53172 2007-09-24  Bruno Haible  <bruno@clisp.org>
53173
53174         * README: Update git instructions.
53175
53176 2007-09-24  Eric Blake  <ebb9@byu.net>
53177
53178         Revert fpending breakage from 2007-09-08.
53179         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
53180         __fpending.c.
53181
53182 2007-09-24  Jim Meyering  <jim@meyering.net>
53183
53184         filenamecat.c: Add a test.
53185         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
53186         showing how the function works when DIR is the empty string.
53187
53188 2007-09-21  Simon Josefsson  <simon@josefsson.org>
53189
53190         * tests/test-canonicalize.sh: Turn on executable bit.
53191
53192 2007-09-19  Eric Blake  <ebb9@byu.net>
53193
53194         * README: Update CVS instructions.
53195
53196 2007-09-18  Bruno Haible  <bruno@clisp.org>
53197
53198         * modules/areadlink: New file.
53199         * lib/areadlink.h (areadlink): New declaration.
53200         * lib/areadlink.c: New file, based on lib/xreadlink.c.
53201
53202 2007-09-17  Jim Meyering  <jim@meyering.net>
53203
53204         * lib/savewd.c (ESTALE) [!defined]: Define.
53205         Reported to be required on Interix by Martin Koeppe.
53206
53207 2007-09-17  Bruno Haible  <bruno@clisp.org>
53208
53209         * gnulib-tool (func_version): Use $version.
53210
53211 2007-09-16  Bruno Haible  <bruno@clisp.org>
53212
53213         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
53214         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
53215         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
53216         Reported by Greg Schafer <gschafer@zip.com.au>.
53217
53218 2007-09-15  Bruno Haible  <bruno@clisp.org>
53219
53220         * gnulib-tool (sed): Try a little harder to make bash understand the
53221         alias.
53222         Reported by Bruce Korb <bruce.korb@gmail.com>.
53223
53224 2007-09-13  Eric Blake  <ebb9@byu.net>
53225
53226         * ChangeLog: Remove conflict markers.
53227
53228 2007-09-13  Simon Josefsson  <simon@josefsson.org>
53229
53230         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
53231         Reported by Bruno Haible <bruno@clisp.org>.
53232
53233 2007-09-12  Bruno Haible  <bruno@clisp.org>
53234
53235         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
53236         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
53237         is not defined.
53238
53239 2007-09-12  Eric Blake  <ebb9@byu.net>
53240
53241         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
53242         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
53243         Autoconf definition.
53244         * modules/euidaccess (Depends-on): Add extensions, for
53245         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
53246         * modules/fnmatch (Depends-on): Likewise.
53247         * modules/getaddrinfo (Depends-on): Likewise.
53248         * modules/getdelim (Depends-on): Likewise.
53249         * modules/getline (Depends-on): Likewise.
53250         * modules/getsubopt (Depends-on): Likewise.
53251         * modules/gettext (Depends-on): Likewise.
53252         * modules/group-member (Depends-on): Likewise.
53253         * modules/mbchar (Depends-on): Likewise.
53254         * modules/memmem (Depends-on): Likewise.
53255         * modules/mempcpy (Depends-on): Likewise.
53256         * modules/memrchr (Depends-on): Likewise.
53257         * modules/pagealign_alloc (Depends-on): Likewise.
53258         * modules/readutmp (Depends-on): Likewise.
53259         * modules/stpcpy (Depends-on): Likewise.
53260         * modules/stpncpy (Depends-on): Likewise.
53261         * modules/strchrnul (Depends-on): Likewise.
53262         * modules/strndup (Depends-on): Likewise.
53263         * modules/strsep (Depends-on): Likewise.
53264         * modules/strverscmp (Depends-on): Likewise.
53265         * modules/vasprintf (Depends-on): Likewise.
53266         * modules/wcwidth (Depends-on): Likewise.
53267         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
53268         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
53269         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
53270         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
53271         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53272         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
53273         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
53274         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
53275         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
53276         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
53277         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53278         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
53279         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
53280         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
53281         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
53282         * m4/readutmp.m4 (gl_READUTMP): Likewise.
53283         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
53284         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
53285         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53286         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
53287         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
53288         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
53289         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
53290         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
53291         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
53292         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
53293         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
53294         so that lock.m4 can be used in gettext without extensions module.
53295
53296 2007-09-11  Bruno Haible  <bruno@clisp.org>
53297
53298         * m4/isc-posix.m4: Remove file.
53299         Suggested by Eric Blake.
53300
53301 2007-09-11  Eric Blake  <ebb9@byu.net>
53302
53303         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
53304
53305 2007-09-10  Bruno Haible  <bruno@clisp.org>
53306
53307         * posix-modules: Fix typo in error message.
53308         Reported by Matt <mkraai@beckman.com>.
53309
53310 2007-09-09  Bruno Haible  <bruno@clisp.org>
53311
53312         * doc/functions/getdelim.texi: Update list of platforms lacking the
53313         function.
53314         * doc/functions/getline.texi: Likewise.
53315
53316 2007-09-09  Jim Meyering  <jim@meyering.net>
53317
53318         * lib/hash.c (hash_initialize): Detect calloc failure.
53319         Reported by Bruno Haible.
53320
53321 2007-09-09  Bruno Haible  <bruno@clisp.org>
53322
53323         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
53324         malloc or realloc fails.
53325
53326 2007-09-09  Bruno Haible  <bruno@clisp.org>
53327
53328         * modules/getcwd (Depends-on): Add malloc-posix.
53329         * modules/glob (Depends-on): Likewise.
53330         * modules/putenv (Depends-on): Likewise.
53331         * modules/strdup (Depends-on): Likewise.
53332         * modules/getdelim (Depends-on): Add realloc-posix.
53333         * modules/read-file (Depends-on): Likewise.
53334
53335 2007-09-09  Bruno Haible  <bruno@clisp.org>
53336
53337         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
53338         (gl_FUNC_MALLOC_POSIX): Require it.
53339         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
53340         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
53341         * modules/realloc (Files): Add m4/malloc.m4.
53342         * modules/calloc (Files): Likewise.
53343
53344 2007-09-09  Bruno Haible  <bruno@clisp.org>
53345
53346         * modules/malloc-posix: New file.
53347         * modules/malloc (Depends-on): Add malloc-posix.
53348         * lib/malloc.c: Include errno.h.
53349         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
53350         and a POSIX-compatible malloc into a single function. Set ENOMEM
53351         when returning NULL.
53352         * m4/malloc.m4: New file.
53353         * doc/functions/malloc.texi: Mention the malloc-posix module.
53354         * lib/stdlib_.h (malloc): New declaration.
53355         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53356         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
53357         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
53358         and HAVE_MALLOC_POSIX.
53359
53360 2007-09-09  Bruno Haible  <bruno@clisp.org>
53361
53362         * modules/realloc-posix: New file.
53363         * modules/realloc (Depends-on): Add realloc-posix.
53364         * lib/realloc.c: Include errno.h.
53365         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
53366         and a POSIX-compatible realloc into a single function. Set ENOMEM
53367         when returning NULL.
53368         * m4/realloc.m4: New file.
53369         * doc/functions/realloc.texi: Mention the realloc-posix module.
53370         * lib/stdlib_.h (realloc): New declaration.
53371         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53372         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
53373         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
53374         and HAVE_REALLOC_POSIX.
53375
53376 2007-09-09  Bruno Haible  <bruno@clisp.org>
53377
53378         * modules/calloc-posix: New file.
53379         * modules/calloc (Depends-on): Add calloc-posix.
53380         * lib/calloc.c: Include errno.h.
53381         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
53382         and a POSIX-compatible calloc into a single function. Set ENOMEM
53383         when returning NULL.
53384         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
53385         * doc/functions/calloc.texi: Mention the calloc-posix module.
53386         * lib/stdlib_.h (calloc): New declaration.
53387         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53388         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
53389         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
53390         and HAVE_CALLOC_POSIX.
53391
53392 2007-09-09  Bruno Haible  <bruno@clisp.org>
53393
53394         Allow for modules to show an arbitrary notice.
53395         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
53396         * gnulib-tool: New option --extract-notice.
53397         (func_usage): Document it.
53398         (sed_extract_prog): Update.
53399         (func_get_notice): New function.
53400         (func_modules_notice): New function.
53401         (func_import, func_create_testdir): Invoke it.
53402         Suggested by Jim Meyering.
53403
53404 2007-09-09  Bruno Haible  <bruno@clisp.org>
53405
53406         * gnulib-tool: New options --verbose, --quiet.
53407         (func_usage): Document them.
53408         (verbose): New variable.
53409         (func_execute_command): New function.
53410         (func_import): Don't show the module list and the file list if
53411         $verbose < 0.
53412         (func_create_testdir): Likewise. Use func_execute_command.
53413         (func_create_megatestdir): Use func_execute_command.
53414
53415 2007-09-08  Bruno Haible  <bruno@clisp.org>
53416
53417         * gnulib-tool (func_import): Prefer rsync over wget when available,
53418         for fetching the PO files.
53419
53420 2007-09-08  Bruno Haible  <bruno@clisp.org>
53421
53422         * posix-modules: New file. Portions copied from gnulib-tool.
53423         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
53424
53425 2007-09-08  Jim Meyering  <jim@meyering.net>
53426
53427         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
53428         * lib/fpending.h: Rename from __fpending.h.
53429         * lib/fpending.c: Rename from __fpending.c.
53430         Include "fpending.h", not "__fpending.h".
53431         * lib/__fpending.h, lib/__fpending.c: Remove files.
53432         * modules/fpending (Files): Reflect new file names.
53433         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
53434
53435 2007-09-08  Bruno Haible  <bruno@clisp.org>
53436
53437         * m4/inttypes-h.m4: Remove stub file.
53438
53439 2007-09-07  Simon Josefsson  <simon@josefsson.org>
53440
53441         * doc/headers/stdint.texi: Discuss #include_next issue.
53442
53443 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53444
53445         * build-aux/bootstrap: Remove obsolete comment about wget --help.
53446
53447 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53448
53449         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
53450         in variable name.
53451
53452 2007-09-03  Jim Meyering  <jim@meyering.net>
53453
53454         New module: git-version-gen.
53455         * modules/git-version-gen: New file.
53456
53457         Import changes from coreutils for bootstrap script.
53458
53459         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
53460
53461         bootstrap: uses rsync to download the .po files
53462         * build-aux/bootstrap (po_download_command_format): New global.
53463         (download_po_files): Use rsync.
53464         (update_po_files): Don't remove .po files after download,
53465         so future rsync runs can take advantage of the copies.
53466
53467         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
53468
53469         Solve the unnecessary-.po-file-regeneration problem once and for all.
53470         * build-aux/bootstrap (download_po_files): New function, renamed from
53471         get_translations.  Now, downloads, but doesn't update LINGUAS.
53472         (update_po_files): New function.
53473
53474         bootstrap: Ignore more.
53475         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
53476         uniwidth to e.g., lib/.gitignore.
53477         (slurp): Handle the sys_stat_.h -> sys mapping, too.
53478
53479         * build-aux/bootstrap: New setting: vc_ignore.
53480         (insert_sorted_if_absent): Create $file if absent.
53481         Adapt to new, possibly empty, list: $vc_ignore.
53482
53483         bootstrap: generate more ignorable names
53484         * build-aux/bootstrap (slurp): When generating ignorable names,
53485         also map .sin to .sed, .gperf to .c, and .y to .c.
53486
53487 2007-09-03  Jim Meyering  <jim@meyering.net>
53488
53489         * build-aux/git-version-gen: New file, from coreutils.  For details, see
53490         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
53491
53492 2007-09-02  Bruno Haible  <bruno@clisp.org>
53493
53494         Fix mis-recognition of 'mcs' on QNX 6.
53495         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
53496         output contains the string "Mono".
53497         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
53498         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
53499
53500 2007-09-01  Bruno Haible  <bruno@clisp.org>
53501
53502         Fix collision between uniwidth/* and linebreak modules.
53503         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
53504         u32_width): Remove declarations.
53505         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
53506         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
53507         streq3, streq2, streq1, streq0): Remove functions.
53508         (STREQ): Remove macro.
53509         (is_cjk_encoding): Remove function.
53510         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
53511         (uc_width, u8_width, u16_width, u32_width): Remove functions.
53512         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
53513         * NEWS: Document the change.
53514
53515 2007-09-01  Bruno Haible  <bruno@clisp.org>
53516
53517         * lib/streq.h: Add double-inclusion guard.
53518
53519 2007-09-01  Karl Berry  <karl@gnu.org>
53520
53521         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
53522
53523 2007-08-28  Jim Meyering  <jim@meyering.net>
53524
53525         Rename mreadlink_with_size to areadlink_with_size.
53526         * NEWS: Document the change.
53527         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
53528         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
53529         * lib/mreadlink.h: Rename this to...
53530         * lib/areadlink.h: ...this.
53531         * modules/mreadlink-with-size: Rename this to...
53532         * modules/areadlink-with-size: ...this.
53533         * lib/canonicalize.c: Reflect the renaming.
53534         * modules/canonicalize: Likewise.
53535
53536 2007-08-26  Bruno Haible  <bruno@clisp.org>
53537
53538         * gnulib-tool (func_import): When deciding which files to remove,
53539         consider also dangling symbolic links.
53540         Reported by Eric Blake.
53541
53542 2007-08-26  Bruno Haible  <bruno@clisp.org>
53543
53544         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
53545
53546 2007-08-23  Simon Josefsson  <simon@josefsson.org>
53547
53548         * lib/readline.c: Don't include getline.h, the prototype is now
53549         found in stdio.h.
53550
53551 2007-08-23  Jim Meyering  <jim@meyering.net>
53552
53553         Getdelim touchup.
53554         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
53555         around the funlockfile call, since funlockfile never sets errno.
53556         Don't set errno upon failed realloc.
53557
53558 2007-08-22  Eric Blake  <ebb9@byu.net>
53559
53560         Getline touchups.
53561         * lib/getdelim.c (getdelim): Revert regression that required *n to
53562         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
53563         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
53564         getdelim, rather than whether implementation is missing.
53565         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
53566         * lib/stdio_.h (getline): Also declare if replacement is
53567         required.
53568         * doc/functions/getdelim.texi: New file.
53569         * doc/functions/getline.texi: Likewise.
53570         * doc/gnulib.texi (Function Substitutes): Add new files.
53571         Reported by Bruno Haible.
53572
53573 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
53574
53575         * users.txt: Add Guile.
53576
53577 2007-08-22  Eric Blake  <ebb9@byu.net>
53578
53579         * tests/test-getdelim.c (main): Use remove, not unlink.
53580         * tests/test-getline.c (main): Likewise.
53581
53582         Move getline and getdelim into stdio.h, per POSIX 200x.
53583         * modules/getline (Files): Remove getline.h.
53584         (Depends-on): Add stdio.
53585         (configure.ac): Add module indicator.
53586         * modules/getdelim (Files): Remove getdelim.h.
53587         (Depends-on): Add stdio.
53588         (configure.ac): Add module indicator.
53589         * modules/stdio (Makefile.am): Work with new indicators.
53590         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
53591         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
53592         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
53593         * lib/getdelim.h: Delete.
53594         * lib/getline.h: Delete.
53595         * lib/stdio_.h (getdelim, getline): Declare.
53596         * modules/getdelim-tests: New module.
53597         * modules/getline-tests: Likewise.
53598         * tests/test-getdelim.c: New file.
53599         * tests/test-getline.c: Likewise.
53600         * NEWS: Document the change.
53601         * lib/getline.c: Update choice of header.
53602         * lib/csharpcomp.c: Likewise.
53603         * lib/getpass.c: Likewise.
53604         * lib/javacomp.c: Likewise.
53605         * lib/javaversion.c: Likewise.
53606         * lib/yesno.c: Likewise.
53607         * lib/getdelim.c: Likewise.
53608         (getdelim): Set errno on failure, and avoid memory leak.
53609
53610 2007-08-19  Bruno Haible  <bruno@clisp.org>
53611
53612         * modules/closein (Depends-on): Add freadahead.
53613         * lib/closein.c: Include freadahead.h.
53614         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
53615         is zero.
53616
53617 2007-08-19  Bruno Haible  <bruno@clisp.org>
53618
53619         * modules/freadahead-tests: New file.
53620         * tests/test-freadahead.sh: New file.
53621         * tests/test-freadahead.c: New file.
53622
53623         * modules/freadahead: New file.
53624         * lib/freadahead.h: New file.
53625         * lib/freadahead.c: New file.
53626         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
53627         fbufmode, fpurge, freadable, fwritable.
53628
53629 2007-08-19  Eric Blake  <ebb9@byu.net>
53630
53631         Test yesno in combination with closein.
53632         * lib/yesno.c (yesno): Document use of stdin.
53633         * modules/yesno-tests (Files): New module.
53634         * tests/test-yesno.c (main): New file.
53635         * tests/test-yesno.sh: Likewise.
53636
53637 2007-08-19  Bruno Haible  <bruno@clisp.org>
53638
53639         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
53640         * lib/fseeko.c (rpl_fseeko): Likewise.
53641         * lib/fseterr.c (fseterr): Likewise.
53642
53643 2007-08-19  Bruno Haible  <bruno@clisp.org>
53644
53645         * tests/test-lseek.c (main): Disable a test for BeOS.
53646         * doc/functions/lseek.texi: Document the BeOS bug.
53647
53648 2007-08-19  Bruno Haible  <bruno@clisp.org>
53649             Eric Blake  <ebb9@byu.net>
53650
53651         * lib/lseek.c: Include <sys/stat.h>.
53652         (rpl_lseek): Add workaround code also for Unix platforms.
53653         Needed for BeOS.
53654         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
53655         * doc/functions/lseek.texi: Document BeOS definiency.
53656
53657 2007-08-18  Bruno Haible  <bruno@clisp.org>
53658
53659         * modules/fstrcmp-tests: New file.
53660         * tests/test-fstrcmp.c: New file.
53661
53662 2007-08-18  Bruno Haible  <bruno@clisp.org>
53663
53664         * modules/fstrcmp: New file, from GNU gettext with modifications.
53665         * lib/fstrcmp.h: New file, from GNU gettext.
53666         * lib/fstrcmp.c: New file, from GNU gettext.
53667         * MODULES.html.sh (String handling): Add fstrcmp.
53668
53669 2007-08-18  Bruno Haible  <bruno@clisp.org>
53670
53671         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
53672         'bool'.
53673         (diag, compareseq): Remove const from the ctxt argument.
53674         (USE_HEURISTIC): Undefine at the end.
53675
53676 2007-08-18  Jim Meyering  <jim@meyering.net>
53677
53678         New file: lib/idcache.h
53679         * NEWS: Mention the addition.
53680         * modules/idcache (Files): Add lib/idcache.h
53681         * lib/idcache.c: Include "idcache.h".
53682         Don't include <sys/types.h>.
53683         Add a FIXME comment.
53684         Move file-scoped "static" declarations to the top.
53685         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
53686
53687 2007-08-17  Bruno Haible  <bruno@clisp.org>
53688         and Paul Eggert  <eggert@cs.ucla.edu>
53689
53690         * MODULES.html.sh: Add diffseq.
53691         * modules/diffseq: New file.
53692         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
53693         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
53694
53695 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
53696
53697         Import changes from coreutils for bootstrap script.
53698
53699         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
53700
53701         * build-aux/bootstrap (slurp): Work even in environments where
53702         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
53703         current code does not slurp files whose names start with ".", and
53704         this looks like it might be a troublesome area.
53705
53706         2007-07-11  Jim Meyering  <jim@meyering.net>
53707
53708         If there's a GPL vN copyright comment, require that N == 3.
53709
53710         2007-07-08  Jim Meyering  <jim@meyering.net>
53711
53712         Run the coreutils-specific code only if tests/Makefile.am.in exists.
53713         * build-aux/bootstrap (mam_template): Move definition out of loop.
53714
53715         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
53716
53717         * build-aux/bootstrap (symlink_to_dir): Rename function from
53718         symlink_to_gnulib.  Add a directory parameter.  Update all
53719         callers.
53720         (cp_mark_as_generated): Also check for -- and link to -- files in
53721         gl/.
53722
53723         2007-07-08  Jim Meyering  <jim@meyering.net>
53724
53725         Adapt to deeper hierarchy in gnulib.
53726         * build-aux/bootstrap (symlink_to_dir): If the destination
53727         directory doesn't exist, create it. This is required at least for
53728         "lib/uniwidth/cjk.h".
53729
53730         2007-05-15  Jim Meyering  <jim@meyering.net>
53731
53732         * build-aux/bootstrap: Now that generated Makefile.am files
53733         are no longer under version control, they must be created at
53734         bootstrap time.
53735
53736 2007-08-14  Ben Pfaff  <blp@gnu.org>
53737
53738         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
53739
53740 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
53741
53742         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
53743         given the changes below.
53744         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
53745         even on hosts that have padding bits beyond the supported 64.
53746
53747 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
53748
53749         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
53750         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
53751         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
53752         depends on it.
53753         (xstrtol_error): Remove.
53754         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
53755         but with a different signature.
53756         (ATTRIBUTE_NORETURN, __attribute__): New macros.
53757         * lib/xstrtol-error.c: Include exitfail.h.
53758         (xstrtol_fatal): New function, with a different signature from the
53759         old xstrtol_error, so that the caller need not worry about passing
53760         in an exit status, or about storage management of the option argument.
53761         (xstrtol_error): Now a static function.  Redo signature to
53762         implement xstrtol_fatal.  Output the correct number of hyphens in
53763         front of the option so that the caller need not worry about
53764         storage management.
53765         (N_): New macro.
53766         (_): Remove; not used now.
53767         * modules/xstrtol: Depend on getopt.
53768         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
53769         of old STRTOL_FATAL_ERROR macro.
53770         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
53771         of test program.
53772         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
53773         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
53774
53775 2007-08-08  Eric Blake  <ebb9@byu.net>
53776
53777         * lib/xstrtol-error.c: Add missing include.
53778
53779         Move xstrtol messages into gnulib domain, when --pobase is used.
53780         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
53781         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
53782         * modules/xstrtol (Files): Distribute new file.
53783         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
53784         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
53785         * tests/test-xstrtol.c: ...into new file.
53786         * tests/test-xstrtoul.c: Also test xstrtoul.
53787         * tests/test-xstrtoimax.c: Also test xstrtoimax.
53788         * tests/test-xstrtoumax.c: Also test xstrtoumax.
53789         * tests/test-xstrtol.sh: Drive the tests.
53790         * tests/test-xstrtoimax.sh: Likewise.
53791         * tests/test-xstrtoumax.sh: Likewise.
53792         * modules/xstrtol-tests: New module.
53793         * modules/xstrtoimax-tests: Likewise.
53794         * modules/xstrtoumax-tests: Likewise.
53795
53796 2007-08-08  Jim Meyering  <jim@meyering.net>
53797
53798         New function: mfile_name_concat.
53799         * lib/filenamecat.c (mfile_name_concat): New function, just like
53800         file_name_concat, but return NULL upon failure rather than exiting
53801         with a diagnostic.
53802         * lib/filenamecat.h: Declare it.
53803
53804 2007-08-07  Bruno Haible  <bruno@clisp.org>
53805
53806         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
53807         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
53808         warning from gcc.
53809         Reported by Eric Blake.
53810
53811 2007-08-07  Simon Josefsson  <simon@josefsson.org>
53812
53813         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
53814         * modules/crypto/arcfour (License): Likewise.
53815         * modules/crypto/des-tests (License): Likewise.
53816         * modules/crypto/gc-arctwo-tests (License): Likewise.
53817         * modules/crypto/gc-des-tests (License): Likewise.
53818         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
53819         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
53820         * modules/crypto/gc-md2-tests (License): Likewise.
53821         * modules/crypto/gc-md4-tests (License): Likewise.
53822         * modules/crypto/gc-md5-tests (License): Likewise.
53823         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
53824         * modules/crypto/gc-rijndael-tests (License): Likewise.
53825         * modules/crypto/gc-sha1-tests (License): Likewise.
53826         * modules/crypto/gc-tests (License): Likewise.
53827         * modules/crypto/hmac-md5 (License): Likewise.
53828         * modules/crypto/hmac-sha1 (License): Likewise.
53829         * modules/crypto/md2-tests (License): Likewise.
53830         * modules/crypto/md4-tests (License): Likewise.
53831         * modules/crypto/md5 (License): Likewise.
53832         * modules/crypto/rijndael (License): Likewise.
53833         * modules/crypto/sha1 (License): Likewise.
53834         * modules/memxor (License): Likewise.
53835
53836 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
53837         and Bruno Haible  <bruno@clisp.org>
53838
53839         * NEWS: Describe interface changes to human, xstrtol.
53840         * lib/human.h: Include <xstrtol.h>.
53841         (human_options): Return enum strtol_error, not int.  Remove
53842         bool arg; take int * instead.
53843         * lib/human.c: Don't include "gettext.h".
53844         (_): Remove; no longer used.
53845         Don't include <xstrtol.h>, since human.h does it.
53846         (human_options): Adjust to abovementioned interface changes.
53847         Do not report error to stderr; that's now the caller's
53848         responsibility.
53849         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
53850         interface change.
53851         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
53852         Str, Argument_type_string.  All uses changed.  Put " argument"
53853         in diagnostics to make them clearer.  Change wording of suffix
53854         message for clarity.
53855         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
53856         Argument_type_string.
53857         (STRTOL_FATAL_WARN): Remove; no longer used.
53858         * modules/human (Depends-on): Remove gettext-h.
53859
53860 2007-08-06  Simon Josefsson  <simon@josefsson.org>
53861
53862         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
53863
53864 2007-07-31  Bruno Haible  <bruno@clisp.org>
53865
53866         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
53867         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
53868         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
53869
53870 2007-07-31  Bruno Haible  <bruno@clisp.org>
53871
53872         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
53873         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
53874
53875 2007-07-30  Bruno Haible  <bruno@clisp.org>
53876
53877         * modules/base64 (License): Use the synonymous term "LGPLv2+".
53878         * modules/c-ctype (License): Likewise.
53879         * modules/c-strcase (License): Likewise.
53880         * modules/check-version (License): Likewise.
53881         * modules/iconv (License): Likewise.
53882         * modules/iconv_open (License): Likewise.
53883         * modules/read-file (License): Likewise.
53884         * modules/striconv (License): Likewise.
53885         * modules/strverscmp (License): Likewise.
53886         * modules/vasprintf (License): Likewise.
53887         * modules/crypto/des (License): Likewise.
53888         * modules/crypto/gc (License): Likewise.
53889         * modules/crypto/gc-arcfour (License): Likewise.
53890         * modules/crypto/gc-arctwo (License): Likewise.
53891         * modules/crypto/gc-des (License): Likewise.
53892         * modules/crypto/gc-hmac-md5 (License): Likewise.
53893         * modules/crypto/gc-hmac-sha1 (License): Likewise.
53894         * modules/crypto/gc-md2 (License): Likewise.
53895         * modules/crypto/gc-md4 (License): Likewise.
53896         * modules/crypto/gc-md5 (License): Likewise.
53897         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
53898         * modules/crypto/gc-random (License): Likewise.
53899         * modules/crypto/gc-rijndael (License): Likewise.
53900         * modules/crypto/gc-sha1 (License): Likewise.
53901         * modules/crypto/md2 (License): Likewise.
53902         * modules/crypto/md4 (License): Likewise.
53903
53904 2007-07-30  Jim Meyering  <jim@meyering.net>
53905
53906         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
53907         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
53908         it has valid stat data.  This bug would cause du not to count the
53909         sizes of inaccessible directories.
53910         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
53911         in <http://bugzilla.redhat.com/250077>.
53912
53913 2007-07-25  Peter O'Gorman  <peter@pogma.com>
53914             Bruno Haible  <bruno@clisp.org>
53915
53916         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
53917         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
53918         #include_next, gives a diagnostic about it, but reports no error in
53919         the exit code.
53920         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
53921
53922 2007-07-24  Ben Pfaff  <blp@gnu.org>
53923
53924         Improve name: "count-one-bits" is better than "popcount".
53925         * MODULES.html.sh: Update name.
53926         * lib/popcount.h: Renamed lib/count-one-bits.h.
53927         (popcount): Renamed count_one_bits.
53928         (popcountl): Renamed count_one_bits_l.
53929         (popcountll): Renamed count_one_bits_ll.
53930         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
53931         * modules/popcount: Renamed module/count-one-bits.
53932         * modules/popcount-tests: Renamed module/count-one-bits-tests.
53933         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
53934
53935 2007-07-23  Ben Pfaff  <blp@gnu.org>
53936
53937         * lib/popcount.h (popcount32): Reduce size of constants, to allow
53938         better code generation, and add U to large constants to avoid
53939         warnings, in non-GCC case.
53940         Suggested by Bruno Haible.
53941
53942 2007-07-23  Ben Pfaff  <blp@gnu.org>
53943
53944         * lib/popcount.h: Use verify_true instead of if...abort.
53945         * modules/popcount: Depend on verify module.
53946         Suggested by Jim Meyering.
53947
53948 2007-07-23  Bruno Haible  <bruno@clisp.org>
53949
53950         * gnulib-tool (func_import): Create a .cvsignore file also when the
53951         directory is not yet in CVS but the toplevel directory is. When
53952         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
53953         Reported by Karl Berry.
53954
53955 2007-07-22  Ben Pfaff  <blp@gnu.org>
53956
53957         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
53958         case.
53959         Suggested by Eric Blake.
53960
53961 2007-07-22  Ben Pfaff  <blp@gnu.org>
53962
53963         New module: popcount.
53964         * MODULES.html.sh: Add popcount.
53965         * modules/popcount: New file.
53966         * modules/popcount-tests: New file.
53967         * tests/test-popcount.c: New file.
53968         * lib/popcount.h: New file.
53969         * m4/popcount.m4: New file.
53970
53971 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
53972
53973         * build-aux/announce-gen: Update to GPLv3.
53974
53975         * build-aux/config.guess: Update from config.
53976
53977 2007-07-21  Bruno Haible  <bruno@clisp.org>
53978
53979         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
53980         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
53981
53982 2007-07-20  Jim Meyering  <jim@meyering.net>
53983
53984         * check-module: Diagnose a self-dependency.
53985
53986 2007-07-19  Bruno Haible  <bruno@clisp.org>
53987
53988         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
53989         empty.
53990         Reported by Eric Blake.
53991
53992 2007-07-18  Bruno Haible  <bruno@clisp.org>
53993
53994         * gnulib-tool: New options --po-base, --po-domain.
53995         (func_usage): Document them.
53996         (pobase, po_domain): New variables.
53997         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
53998         DEFAULT_TEXT_DOMAIN.
53999         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
54000         (func_import): Consider pobase and po_domain. Create a po/ directory.
54001         (func_create_testdir): Set pobase and po_domain to empty.
54002         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
54003         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
54004
54005 2007-07-18  Bruno Haible  <bruno@clisp.org>
54006
54007         * gnulib-tool (func_get_automake_snippet): Synthesize also an
54008         EXTRA_DIST augmentation for files in build-aux/.
54009
54010 2007-07-16  Bruno Haible  <bruno@clisp.org>
54011
54012         * modules/lseek (License): Use the synonymous term "LGPLv2+".
54013         * modules/getdelim (License): Likewise.
54014
54015 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54016
54017         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
54018         * modules/d-type (License): Likewise.
54019         * modules/extensions (License): Likewise.
54020         * modules/fnmatch (License): Likewise.
54021         * modules/fseeko (License): Likewise.
54022         * modules/getaddrinfo (License): Likewise.
54023         * modules/getline (License): Likewise.
54024         * modules/getlogin_r (License): Likewise.
54025         * modules/getpass (License): Likewise.
54026         * modules/gettimeofday (License): Likewise.
54027         * modules/glob (License): Likewise.
54028         * modules/inet_ntop (License): Likewise.
54029         * modules/malloc (License): Likewise.
54030         * modules/malloca (License): Likewise.
54031         * modules/memmem (License): Likewise.
54032         * modules/mempcpy (License): Likewise.
54033         * modules/memset (License): Likewise.
54034         * modules/minmax (License): Likewise.
54035         * modules/mktime (License): Likewise.
54036         * modules/netinet_in (License): Likewise.
54037         * modules/pathmax (License): Likewise.
54038         * modules/poll (License): Likewise.
54039         * modules/regex (License): Likewise.
54040         * modules/snprintf (License): Likewise.
54041         * modules/stdbool (License): Likewise.
54042         * modules/stdint (License): Likewise.
54043         * modules/stdio (License): Likewise.
54044         * modules/strcase (License): Likewise.
54045         * modules/strcasestr (License): Likewise.
54046         * modules/strdup (License): Likewise.
54047         * modules/string (License): Likewise.
54048         * modules/strndup (License): Likewise.
54049         * modules/strnlen (License): Likewise.
54050         * modules/strpbrk (License): Likewise.
54051         * modules/strptime (License): Likewise.
54052         * modules/strsep (License): Likewise.
54053         * modules/sys_select (License): Likewise.
54054         * modules/sys_socket (License): Likewise.
54055         * modules/sys_stat (License): Likewise.
54056         * modules/sys_time (License): Likewise.
54057         * modules/time (License): Likewise.
54058         * modules/time_r (License): Likewise.
54059         * modules/timegm (License): Likewise.
54060         * modules/unistd (License): Likewise.
54061         * modules/vsnprintf (License): Likewise.
54062         * modules/wctype (License): Likewise.
54063
54064 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54065
54066         * modules/argz (License): LGPLv2+.
54067
54068 2007-07-15  Karl Berry  <karl@gnu.org>
54069
54070         * doc/gnulib.texi: revise node structure per new fdl.texi.
54071
54072 2007-07-14  Bruno Haible  <bruno@clisp.org>
54073
54074         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
54075         the output file.
54076         * lib/uniname/uninames.h: Regenerated.
54077
54078 2007-07-14  Karl Berry  <karl@gnu.org>
54079
54080         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
54081         omitting sectioning and index commands.
54082
54083 2007-07-13  Bruno Haible  <bruno@clisp.org>
54084
54085         New gnulib-tool option --more-symlinks.
54086         * gnulib-tool (func_usage): Document --more-symlinks.
54087         (do_copyrights): New variable.
54088         Recognize option --more-symlinks.
54089         (func_import): Don't add a copyright notice transform to
54090         sed_transform_lib_file if do_copyrights is empty.
54091
54092 2007-07-13  Bruno Haible  <bruno@clisp.org>
54093
54094         * lib/vasnprintf.c (decimal_point_char): Define also if
54095         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
54096         && !NEED_PRINTF_DIRECTIVE_A.
54097         Reported by Clemens Koller <clemens.koller@anagramm.de> via
54098         Gary V. Vaughan <gary@gnu.org>.
54099
54100 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
54101
54102         * lib/inttypes_.h: Undo previous change, since it was fixed
54103         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
54104
54105 2007-07-13  Bruno Haible  <bruno@clisp.org>
54106
54107         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
54108         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
54109
54110 2007-07-13  Jim Meyering  <jim@meyering.net>
54111
54112         df: Don't fail for Tru64's "file-on-file mount".
54113         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
54114         so we fall through and use statfs instead.  Details here:
54115         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
54116         Reported by Albert Chin.
54117
54118 2007-07-13  Bruno Haible  <bruno@clisp.org>
54119
54120         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
54121         * modules/configmake (License): Likewise.
54122         * modules/gettext (License): Likewise.
54123         * modules/gettext-h (License): Likewise.
54124         * modules/include_next (License): Likewise.
54125         * modules/link-warning (License): Likewise.
54126         * modules/localcharset (License): Likewise.
54127         * modules/localename (License): Likewise.
54128         * modules/lock (License): Likewise.
54129         * modules/relocatable-lib-lgpl (License): Likewise.
54130         * modules/size_max (License): Likewise.
54131         * modules/vasnprintf (License): Likewise.
54132         * modules/wchar (License): Likewise.
54133         * modules/xsize (License): Likewise.
54134
54135 2007-07-13  Bruno Haible  <bruno@clisp.org>
54136
54137         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
54138         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
54139
54140 2007-07-12  Bruno Haible  <bruno@clisp.org>
54141
54142         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
54143         in the modules files.
54144
54145 2007-07-11  Karl Berry  <karl@gnu.org>
54146
54147         * MODULES.html.sh (func_module): use
54148          sed -e '\|^'"${includefile}"'$|d'
54149          instead of /.../d, to avoid errors on $includefile's containing /.
54150
54151 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
54152
54153         * gnulib-tool (func_import): Avoid duplication of --avoid
54154         statements
54155         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
54156         names to `_' in variable names.
54157
54158 2007-07-10  Eric Blake  <ebb9@byu.net>
54159
54160         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
54161         * NEWS: Document this change.
54162
54163 2007-07-08  Bruno Haible  <bruno@clisp.org>
54164
54165         Update to Unicode 5.0.
54166         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
54167         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
54168         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
54169         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
54170         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
54171         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
54172         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
54173         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
54174         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
54175         U+10A3F, U+1D242..U+1D244.
54176         (nonspacing_table_ind): Update.
54177         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
54178         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
54179
54180 2007-07-08  Bruno Haible  <bruno@clisp.org>
54181
54182         Update to Unicode 5.0.
54183         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
54184         code transform. Extend the name index field of unicode_name_to_code and
54185         unicode_code_to_name from 16 to 24 bits.
54186         * lib/uniname/uniname.c (unicode_character_name,
54187         unicode_name_character): Add the range 0x12xxx to the code transform.
54188         * lib/uniname/uninames.h: Regenerated.
54189         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
54190
54191 2007-07-07  Bruno Haible  <bruno@clisp.org>
54192
54193         * modules/wcwidth-tests: New file.
54194         * tests/test-wcwidth.c: New file.
54195
54196         Work around MacOS X wcwidth() bug.
54197         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
54198         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
54199         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
54200         original wcwidth in non-UTF-8 locales.
54201         * modules/wcwidth (Depends-on): Add localcharset, streq,
54202         uniwidth/width.
54203         * doc/functions/wcwidth.texi: Update.
54204
54205 2007-07-07  Bruno Haible  <bruno@clisp.org>
54206
54207         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
54208         (wcwidth): New declaration.
54209         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
54210         macros.
54211         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
54212         here. Prepare for creating <wchar.h> unconditionally.
54213         * modules/wchar (Depends-on): Add link-warning.
54214         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
54215         REPLACE_WCWIDTH, and GL_LINK_WARNING.
54216         * lib/wcwidth.h: Remove file.
54217         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
54218         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
54219         * modules/wcwidth (Files): Remove lib/wcwidth.h.
54220         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
54221         (Include): Replace wcwidth.h with <wchar.h>.
54222         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
54223         * lib/mbchar.h: Don't include wcwidth.h.
54224         * lib/mbswidth.c: Likewise.
54225         * NEWS: Mention the change.
54226
54227 2007-07-07  Bruno Haible  <bruno@clisp.org>
54228
54229         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
54230         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
54231         definition with an external declaration.
54232         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
54233         defined as a function. Remove AC_C_INLINE requirement.
54234         * modules/wcwidth (Files): Add lib/wcwidth.c.
54235         (Makefile.am): Remove redundant statement.
54236
54237 2007-07-07  Bruno Haible  <bruno@clisp.org>
54238
54239         * MODULES.html.sh (Unicode string functions): Add the new modules.
54240
54241         * tests/uniwidth/test-u32-strwidth.c: New file.
54242         * modules/uniwidth/u32-strwidth-tests: New file.
54243
54244         * lib/uniwidth/u32-strwidth.c: New file.
54245         * modules/uniwidth/u32-strwidth: New file.
54246
54247         * tests/uniwidth/test-u16-strwidth.c: New file.
54248         * modules/uniwidth/u16-strwidth-tests: New file.
54249
54250         * lib/uniwidth/u16-strwidth.c: New file.
54251         * modules/uniwidth/u16-strwidth: New file.
54252
54253         * tests/uniwidth/test-u8-strwidth.c: New file.
54254         * modules/uniwidth/u8-strwidth-tests: New file.
54255
54256         * lib/uniwidth/u8-strwidth.c: New file.
54257         * modules/uniwidth/u8-strwidth: New file.
54258
54259         * tests/uniwidth/test-u32-width.c: New file.
54260         * modules/uniwidth/u32-width-tests: New file.
54261
54262         * lib/uniwidth/u32-width.c: New file.
54263         * modules/uniwidth/u32-width: New file.
54264
54265         * tests/uniwidth/test-u16-width.c: New file.
54266         * modules/uniwidth/u16-width-tests: New file.
54267
54268         * lib/uniwidth/u16-width.c: New file.
54269         * modules/uniwidth/u16-width: New file.
54270
54271         * tests/uniwidth/test-u8-width.c: New file.
54272         * modules/uniwidth/u8-width-tests: New file.
54273
54274         * lib/uniwidth/u8-width.c: New file.
54275         * modules/uniwidth/u8-width: New file.
54276
54277         * tests/uniwidth/test-uc_width.c: New file.
54278         * modules/uniwidth/width-tests: New file.
54279
54280         * lib/uniwidth/width.c: New file, from GNU libiconv.
54281         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
54282         * modules/uniwidth/width: New file.
54283
54284         * lib/uniwidth.h: New file, from GNU libiconv.
54285         * modules/uniwidth/base: New file.
54286
54287 2007-07-07  Bruno Haible  <bruno@clisp.org>
54288
54289         * lib/uniname.h: New file, from GNU gettext.
54290         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
54291         * lib/uniname/uninames.h: New file, from GNU gettext.
54292         * lib/uniname/uniname.c: New file, from GNU gettext.
54293         * tests/uniname/test-uninames.sh: New file.
54294         * tests/uniname/test-uninames.c: New file, from GNU gettext.
54295         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
54296         * modules/uniname/base: New file.
54297         * modules/uniname/uniname: New file.
54298         * modules/uniname/uniname-tests: New file.
54299         * MODULES.html.sh (Unicode string functions): Add the new modules.
54300
54301 2007-07-06  Bruno Haible  <bruno@clisp.org>
54302
54303         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
54304
54305 2007-07-06  Bruno Haible  <bruno@clisp.org>
54306
54307         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
54308         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
54309         includes <cygwin/sys_time.h> which includes <sys/select.h> which
54310         include <sys/time.h>.
54311         Reported by Eric Blake.
54312
54313 2007-07-06  Eric Blake  <ebb9@byu.net>
54314
54315         Fix testing canonicalize on cygwin.
54316         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
54317         Revert patch from 2007-06-19.
54318         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
54319         canonicalize module is also in use.
54320         * tests/test-canonicalize.c: New file.
54321         * tests/test-canonicalize.sh: Likewise.
54322         * modules/canonicalize-tests: Likewise.
54323
54324 2007-07-06  Jim Meyering  <jim@meyering.net>
54325
54326         * lib/getugroups.c (getugroups): Detect getgrent failure.
54327         Adjust comment to reflect reality: this function may return -1.
54328
54329 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
54330
54331         * build-aux/bootstrap (TP_URL,get_translations): Update to use
54332         the new TP address.
54333         (usage): Fix typo
54334         (gnulib_mk): New variable.
54335
54336 2007-07-05  Jim Meyering  <jim@meyering.net>
54337
54338         Don't let endgrent clobber errno, no matter how improbable.
54339         * lib/getugroups.c (getugroups): Save and restore errno around
54340         endgrent call.
54341
54342         Close the group DB even when failing with 2^31 or more members.
54343         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
54344
54345 2007-07-04  Jim Meyering  <jim@meyering.net>
54346
54347         * lib/getugroups.h: New file.
54348         * lib/getugroups.c: Include "getugroups.h".
54349         Remove uses of "register" keyword.
54350         Move local variable, "cp", down into scope where used.
54351         Give "username" parameter the "const" attribute.
54352         * modules/getugroups (Files): Add lib/getugroups.h
54353
54354 2007-07-04  Karl Berry  <karl@gnu.org>
54355
54356         * MODULES.html.sh (func_all_modules): Complete rename of
54357         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
54358
54359 2007-07-02  Bruno Haible  <bruno@clisp.org>
54360
54361         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
54362         mode, when inttypes.h comes from gnulib.
54363         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54364
54365 2007-07-02  Simon Josefsson  <simon@josefsson.org>
54366
54367         * NEWS: Mention lgpl module name change.
54368
54369         * modules/lgpl-2.1: Renamed from lgpl.
54370
54371         * NEWS: Mention gpl module name change.
54372
54373         * modules/gpl-3.0: New file, based on gpl-2.0.
54374
54375         * modules/gpl-2.0: Renamed from gpl.
54376
54377         * modules/gpl: Fix filename, doc/gpl.texi is now found at
54378         doc/gpl-2.0.texi.
54379
54380 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
54381
54382         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
54383         #define __STDC_LIMIT_MACROS temporarily while including
54384         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
54385         Problem reported by Joel E. Denny in
54386         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
54387
54388 2007-07-01  Bruno Haible  <bruno@clisp.org>
54389
54390         * lib/unistdio.h: New file.
54391         * lib/unistdio/u-asnprintf.h: New file.
54392         * lib/unistdio/u-asprintf.h: New file.
54393         * lib/unistdio/u-printf-args.c: New file.
54394         * lib/unistdio/u-printf-args.h: New file.
54395         * lib/unistdio/u-printf-parse.h: New file.
54396         * lib/unistdio/u-snprintf.h: New file.
54397         * lib/unistdio/u-sprintf.h: New file.
54398         * lib/unistdio/u-vasprintf.h: New file.
54399         * lib/unistdio/u-vsnprintf.h: New file.
54400         * lib/unistdio/u-vsprintf.h: New file.
54401         * lib/unistdio/ulc-asnprintf.c: New file.
54402         * lib/unistdio/ulc-asprintf.c: New file.
54403         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
54404         * lib/unistdio/ulc-printf-parse.c: New file.
54405         * lib/unistdio/ulc-snprintf.c: New file.
54406         * lib/unistdio/ulc-sprintf.c: New file.
54407         * lib/unistdio/ulc-vasnprintf.c: New file.
54408         * lib/unistdio/ulc-vasprintf.c: New file.
54409         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
54410         * lib/unistdio/ulc-vsnprintf.c: New file.
54411         * lib/unistdio/ulc-vsprintf.c: New file.
54412         * lib/unistdio/u8-asnprintf.c: New file.
54413         * lib/unistdio/u8-asprintf.c: New file.
54414         * lib/unistdio/u8-printf-parse.c: New file.
54415         * lib/unistdio/u8-snprintf.c: New file.
54416         * lib/unistdio/u8-sprintf.c: New file.
54417         * lib/unistdio/u8-vasnprintf.c: New file.
54418         * lib/unistdio/u8-vasprintf.c: New file.
54419         * lib/unistdio/u8-vsnprintf.c: New file.
54420         * lib/unistdio/u8-vsprintf.c: New file.
54421         * lib/unistdio/u8-u8-asnprintf.c: New file.
54422         * lib/unistdio/u8-u8-asprintf.c: New file.
54423         * lib/unistdio/u8-u8-snprintf.c: New file.
54424         * lib/unistdio/u8-u8-sprintf.c: New file.
54425         * lib/unistdio/u8-u8-vasnprintf.c: New file.
54426         * lib/unistdio/u8-u8-vasprintf.c: New file.
54427         * lib/unistdio/u8-u8-vsnprintf.c: New file.
54428         * lib/unistdio/u8-u8-vsprintf.c: New file.
54429         * lib/unistdio/u16-asnprintf.c: New file.
54430         * lib/unistdio/u16-asprintf.c: New file.
54431         * lib/unistdio/u16-printf-parse.c: New file.
54432         * lib/unistdio/u16-snprintf.c: New file.
54433         * lib/unistdio/u16-sprintf.c: New file.
54434         * lib/unistdio/u16-vasnprintf.c: New file.
54435         * lib/unistdio/u16-vasprintf.c: New file.
54436         * lib/unistdio/u16-vsnprintf.c: New file.
54437         * lib/unistdio/u16-vsprintf.c: New file.
54438         * lib/unistdio/u16-u16-asnprintf.c: New file.
54439         * lib/unistdio/u16-u16-asprintf.c: New file.
54440         * lib/unistdio/u16-u16-snprintf.c: New file.
54441         * lib/unistdio/u16-u16-sprintf.c: New file.
54442         * lib/unistdio/u16-u16-vasnprintf.c: New file.
54443         * lib/unistdio/u16-u16-vasprintf.c: New file.
54444         * lib/unistdio/u16-u16-vsnprintf.c: New file.
54445         * lib/unistdio/u16-u16-vsprintf.c: New file.
54446         * lib/unistdio/u32-asnprintf.c: New file.
54447         * lib/unistdio/u32-asprintf.c: New file.
54448         * lib/unistdio/u32-printf-parse.c: New file.
54449         * lib/unistdio/u32-snprintf.c: New file.
54450         * lib/unistdio/u32-sprintf.c: New file.
54451         * lib/unistdio/u32-vasnprintf.c: New file.
54452         * lib/unistdio/u32-vasprintf.c: New file.
54453         * lib/unistdio/u32-vsnprintf.c: New file.
54454         * lib/unistdio/u32-vsprintf.c: New file.
54455         * lib/unistdio/u32-u32-asnprintf.c: New file.
54456         * lib/unistdio/u32-u32-asprintf.c: New file.
54457         * lib/unistdio/u32-u32-snprintf.c: New file.
54458         * lib/unistdio/u32-u32-sprintf.c: New file.
54459         * lib/unistdio/u32-u32-vasnprintf.c: New file.
54460         * lib/unistdio/u32-u32-vasprintf.c: New file.
54461         * lib/unistdio/u32-u32-vsnprintf.c: New file.
54462         * lib/unistdio/u32-u32-vsprintf.c: New file.
54463         * tests/unistdio/test-ulc-asnprintf1.c: New file.
54464         * tests/unistdio/test-ulc-asnprintf1.h: New file.
54465         * tests/unistdio/test-ulc-printf1.h: New file.
54466         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
54467         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
54468         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
54469         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
54470         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
54471         * tests/unistdio/test-ulc-vasprintf1.c: New file.
54472         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
54473         * tests/unistdio/test-ulc-vsprintf1.c: New file.
54474         * tests/unistdio/test-u8-asnprintf1.c: New file.
54475         * tests/unistdio/test-u8-asnprintf1.h: New file.
54476         * tests/unistdio/test-u8-printf1.h: New file.
54477         * tests/unistdio/test-u8-vasnprintf1.c: New file.
54478         * tests/unistdio/test-u8-vasnprintf2.c: New file.
54479         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
54480         * tests/unistdio/test-u8-vasnprintf3.c: New file.
54481         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
54482         * tests/unistdio/test-u8-vasprintf1.c: New file.
54483         * tests/unistdio/test-u8-vsnprintf1.c: New file.
54484         * tests/unistdio/test-u8-vsprintf1.c: New file.
54485         * tests/unistdio/test-u16-asnprintf1.c: New file.
54486         * tests/unistdio/test-u16-asnprintf1.h: New file.
54487         * tests/unistdio/test-u16-printf1.h: New file.
54488         * tests/unistdio/test-u16-vasnprintf1.c: New file.
54489         * tests/unistdio/test-u16-vasnprintf2.c: New file.
54490         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
54491         * tests/unistdio/test-u16-vasnprintf3.c: New file.
54492         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
54493         * tests/unistdio/test-u16-vasprintf1.c: New file.
54494         * tests/unistdio/test-u16-vsnprintf1.c: New file.
54495         * tests/unistdio/test-u16-vsprintf1.c: New file.
54496         * tests/unistdio/test-u32-asnprintf1.c: New file.
54497         * tests/unistdio/test-u32-asnprintf1.h: New file.
54498         * tests/unistdio/test-u32-printf1.h: New file.
54499         * tests/unistdio/test-u32-vasnprintf1.c: New file.
54500         * tests/unistdio/test-u32-vasnprintf2.c: New file.
54501         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
54502         * tests/unistdio/test-u32-vasnprintf3.c: New file.
54503         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
54504         * tests/unistdio/test-u32-vasprintf1.c: New file.
54505         * tests/unistdio/test-u32-vsnprintf1.c: New file.
54506         * tests/unistdio/test-u32-vsprintf1.c: New file.
54507         * modules/unistdio/base: New file.
54508         * modules/unistdio/u-printf-args: New file.
54509         * modules/unistdio/ulc-asnprintf: New file.
54510         * modules/unistdio/ulc-asprintf: New file.
54511         * modules/unistdio/ulc-fprintf: New file.
54512         * modules/unistdio/ulc-printf-parse: New file.
54513         * modules/unistdio/ulc-snprintf: New file.
54514         * modules/unistdio/ulc-sprintf: New file.
54515         * modules/unistdio/ulc-vasnprintf: New file.
54516         * modules/unistdio/ulc-vasprintf: New file.
54517         * modules/unistdio/ulc-vfprintf: New file.
54518         * modules/unistdio/ulc-vsnprintf: New file.
54519         * modules/unistdio/ulc-vsprintf: New file.
54520         * modules/unistdio/u8-asnprintf: New file.
54521         * modules/unistdio/u8-asprintf: New file.
54522         * modules/unistdio/u8-printf-parse: New file.
54523         * modules/unistdio/u8-snprintf: New file.
54524         * modules/unistdio/u8-sprintf: New file.
54525         * modules/unistdio/u8-vasnprintf: New file.
54526         * modules/unistdio/u8-vasprintf: New file.
54527         * modules/unistdio/u8-vsnprintf: New file.
54528         * modules/unistdio/u8-vsprintf: New file.
54529         * modules/unistdio/u8-u8-asnprintf: New file.
54530         * modules/unistdio/u8-u8-asprintf: New file.
54531         * modules/unistdio/u8-u8-snprintf: New file.
54532         * modules/unistdio/u8-u8-sprintf: New file.
54533         * modules/unistdio/u8-u8-vasnprintf: New file.
54534         * modules/unistdio/u8-u8-vasprintf: New file.
54535         * modules/unistdio/u8-u8-vsnprintf: New file.
54536         * modules/unistdio/u8-u8-vsprintf: New file.
54537         * modules/unistdio/u16-asnprintf: New file.
54538         * modules/unistdio/u16-asprintf: New file.
54539         * modules/unistdio/u16-printf-parse: New file.
54540         * modules/unistdio/u16-snprintf: New file.
54541         * modules/unistdio/u16-sprintf: New file.
54542         * modules/unistdio/u16-vasnprintf: New file.
54543         * modules/unistdio/u16-vasprintf: New file.
54544         * modules/unistdio/u16-vsnprintf: New file.
54545         * modules/unistdio/u16-vsprintf: New file.
54546         * modules/unistdio/u16-u16-asnprintf: New file.
54547         * modules/unistdio/u16-u16-asprintf: New file.
54548         * modules/unistdio/u16-u16-snprintf: New file.
54549         * modules/unistdio/u16-u16-sprintf: New file.
54550         * modules/unistdio/u16-u16-vasnprintf: New file.
54551         * modules/unistdio/u16-u16-vasprintf: New file.
54552         * modules/unistdio/u16-u16-vsnprintf: New file.
54553         * modules/unistdio/u16-u16-vsprintf: New file.
54554         * modules/unistdio/u32-asnprintf: New file.
54555         * modules/unistdio/u32-asprintf: New file.
54556         * modules/unistdio/u32-printf-parse: New file.
54557         * modules/unistdio/u32-snprintf: New file.
54558         * modules/unistdio/u32-sprintf: New file.
54559         * modules/unistdio/u32-vasnprintf: New file.
54560         * modules/unistdio/u32-vasprintf: New file.
54561         * modules/unistdio/u32-vsnprintf: New file.
54562         * modules/unistdio/u32-vsprintf: New file.
54563         * modules/unistdio/u32-u32-asnprintf: New file.
54564         * modules/unistdio/u32-u32-asprintf: New file.
54565         * modules/unistdio/u32-u32-snprintf: New file.
54566         * modules/unistdio/u32-u32-sprintf: New file.
54567         * modules/unistdio/u32-u32-vasnprintf: New file.
54568         * modules/unistdio/u32-u32-vasprintf: New file.
54569         * modules/unistdio/u32-u32-vsnprintf: New file.
54570         * modules/unistdio/u32-u32-vsprintf: New file.
54571         * modules/unistdio/ulc-asnprintf-tests: New file.
54572         * modules/unistdio/ulc-vasnprintf-tests: New file.
54573         * modules/unistdio/ulc-vasprintf-tests: New file.
54574         * modules/unistdio/ulc-vsnprintf-tests: New file.
54575         * modules/unistdio/ulc-vsprintf-tests: New file.
54576         * modules/unistdio/u8-asnprintf-tests: New file.
54577         * modules/unistdio/u8-vasnprintf-tests: New file.
54578         * modules/unistdio/u8-vasprintf-tests: New file.
54579         * modules/unistdio/u8-vsnprintf-tests: New file.
54580         * modules/unistdio/u8-vsprintf-tests: New file.
54581         * modules/unistdio/u16-asnprintf-tests: New file.
54582         * modules/unistdio/u16-vasnprintf-tests: New file.
54583         * modules/unistdio/u16-vasprintf-tests: New file.
54584         * modules/unistdio/u16-vsnprintf-tests: New file.
54585         * modules/unistdio/u16-vsprintf-tests: New file.
54586         * modules/unistdio/u32-asnprintf-tests: New file.
54587         * modules/unistdio/u32-vasnprintf-tests: New file.
54588         * modules/unistdio/u32-vasprintf-tests: New file.
54589         * modules/unistdio/u32-vsnprintf-tests: New file.
54590         * modules/unistdio/u32-vsprintf-tests: New file.
54591         * MODULES.html.sh (Unicode string functions): Add the new modules.
54592
54593 2007-07-01  Bruno Haible  <bruno@clisp.org>
54594
54595         * lib/sprintf.c (sprintf): Limit the available length estimation,
54596         to avoid address wraparound.
54597         * lib/vsprintf.c (vsprintf): Likewise.
54598         * modules/sprintf-posix (Dependencies): Add stdint.
54599         * modules/vsprintf-posix (Dependencies): Likewise.
54600
54601 2007-07-01  Bruno Haible  <bruno@clisp.org>
54602
54603         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
54604         Windows PATH as well. Conservative double-quoting. Comments.
54605
54606 2007-07-01  Bruno Haible  <bruno@clisp.org>
54607             Eric Blake  <ebb9@byu.net>
54608             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54609
54610         * gnulib-tool (self_abspathname): Fix algorithm to cope with
54611         empty components in $PATH, denoting '.'.
54612
54613 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54614
54615         * gnulib-tool: Fix indentation.
54616         (func_create_megatestdir): Likewise.
54617         Report by Bruno Haible.
54618
54619 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54620
54621         Sync from Automake.
54622         * build-aux/gnupload: Fix shell portability issues with for loops.
54623         Report by Karl Berry.
54624
54625 2007-06-29  Simon Josefsson  <simon@josefsson.org>
54626
54627         * build-aux/maint.mk (POURL): Use translationproject.org.
54628
54629 2007-06-27  Simon Josefsson  <simon@josefsson.org>
54630             Bruno Haible  <bruno@clisp.org>
54631
54632         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
54633         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
54634         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
54635         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
54636         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
54637
54638 2007-06-27  Bruno Haible  <bruno@clisp.org>
54639
54640         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
54641         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
54642
54643 2007-06-26  Karl Berry  <karl@gnu.org>
54644
54645         * MODULES.html.sh: remove xreadlink-with-size.
54646
54647 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
54648
54649         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
54650         method that I hope also handles the double-include problem noted
54651         by Bruno Haible in
54652         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
54653
54654 2007-06-23  Bruno Haible  <bruno@clisp.org>
54655
54656         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54657         Don't let the 'mostlyclean' target fail if the last subdirectory could
54658         not be removed.
54659         Reported by Karl Berry.
54660
54661 2007-06-23  Bruno Haible  <bruno@clisp.org>
54662
54663         * gnulib-tool (echo): Add a speedier workaround for ksh.
54664         * tests/test-echo.sh: Likewise.
54665
54666 2007-06-23  Bruno Haible  <bruno@clisp.org>
54667
54668         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
54669         * tests/test-echo.sh: Likewise.
54670
54671 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54672
54673         * gnulib-tool (IFS): Initialize early, so we don't set it to
54674         empty later.
54675         (self_abspathname): Rewrite algorithm to set it, reindent.
54676         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
54677         (func_create_megatestdir): Merge some sed scripts.
54678
54679 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
54680
54681         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
54682         exposed by Sun Studio 11 cc on Solaris 8.
54683
54684 2007-06-22  Bruno Haible  <bruno@clisp.org>
54685
54686         * gnulib-tool (echo): Ensure the echo primitive does not interpret
54687         backslashes.
54688         * tests/test-echo.sh: New file.
54689
54690 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54691
54692         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
54693         simplify `sed_replace_build_aux' scripts, they are portable but
54694         echoing them with `echo' is not.
54695         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
54696
54697 2007-06-21  Karl Berry  <karl@gnu.org>
54698
54699         * config/srclist.txt: guess we can't handle the licenses via
54700         srclist at the moment.
54701
54702 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
54703
54704         * MODULES.html.sh: Add include_next.
54705         * modules/include_next: New file.
54706
54707 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
54708
54709         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
54710         INCLUDE_NEXT.
54711         (gl_CHECK_NEXT_HEADERS): New macro.
54712         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
54713         the obsolescent gl_ABSOLUTE_HEADER.
54714         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
54715         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
54716         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
54717         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
54718         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
54719         * m4/math_h.m4 (gl_MATH_H): Likewise.
54720         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
54721         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
54722         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
54723         * m4/stdint.m4 (gl_STDINT_H): Likewise.
54724         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
54725         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
54726         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
54727         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54728         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
54729         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
54730         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
54731         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
54732         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
54733         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
54734         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
54735         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
54736         * m4/inttypes.m4 (gl_INTTYPES_H): Define
54737         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
54738         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
54739         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
54740         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
54741         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
54742         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
54743         * lib/float_.h: Likewise.
54744         * lib/inttypes_.h: Likewise.
54745         * lib/math_.h: Likewise.
54746         * lib/search_.h: Likewise.
54747         * lib/signal_.h: Likewise.
54748         * lib/stdint_.h: Likewise.
54749         * lib/stdio_.h: Likewise.
54750         * lib/stdlib_.h: Likewise.
54751         * lib/string_.h: Likewise.
54752         * lib/sys_stat_.h: Likewise.
54753         * lib/sys_time_.h: Likewise.
54754         * lib/time_.h: Likewise.
54755         * lib/unistd_.h: Likewise.
54756         * lib/wchar_.h: Likewise.
54757         * lib/wctype_.h: Likewise.
54758         * lib/dirent_.h: Likewise.
54759         * lib/iconv_.h: Likewise.
54760         * lib/locale_.h: Likewise.
54761         * lib/netinet_in_.h: Likewise.
54762         * lib/sys_select_.h: Likewise.
54763         * lib/sys_socket_.h: Likewise.
54764         * lib/sysexits_.h: Likewise.
54765         * modules/fcntl (Depends-on): Depend on include_next, not
54766         absolute_header.
54767         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
54768         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
54769         * modules/fchdir: Likewise.
54770         * modules/float: Likewise.
54771         * modules/iconv_open: Likewise.
54772         * modules/inttypes: Likewise.
54773         * modules/locale: Likewise.
54774         * modules/math: Likewise.
54775         * modules/netinet_in: Likewise.
54776         * modules/search: Likewise.
54777         * modules/signal: Likewise.
54778         * modules/stdint: Likewise.
54779         * modules/stdio: Likewise.
54780         * modules/stdlib: Likewise.
54781         * modules/string: Likewise.
54782         * modules/sys_select: Likewise.
54783         * modules/sys_socket: Likewise.
54784         * modules/sys_stat: Likewise.
54785         * modules/sys_time: Likewise.
54786         * modules/sysexits: Likewise.
54787         * modules/time: Likewise.
54788         * modules/unistd: Likewise.
54789         * modules/wchar: Likewise.
54790         * modules/wctype: Likewise.
54791         * modules/sys_stat: Change maintainer to "all".
54792         * modules/unistd: Likewise.
54793
54794 2007-06-20  Karl Berry  <karl@gnu.org>
54795
54796         * config/srclist.txt: track www changes in license files.
54797
54798 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
54799
54800         * build-aux/bootstrap: Remove stray dot.
54801         Make sure build_aux settings are honored when linking
54802         gnulib_extra_files.
54803
54804 2007-06-19  Eric Blake  <ebb9@byu.net>
54805
54806         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
54807         Allow compilation on cygwin.
54808
54809 2007-06-19  Jim Meyering  <jim@meyering.net>
54810
54811         xreadlink-with-size: Remove module.  No longer used.
54812         Ex-callers now use xreadlink or mreadlink-with-size.
54813         * modules/xreadlink-with-size: Remove module.
54814         * lib/xreadlink-with-size.c: Remove file.
54815         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
54816         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
54817         just before the function definition *is* accurate.
54818
54819         Eliminate one way canonicalize_filename_mode could exit.
54820         * lib/canonicalize.c (canonicalize_filename_mode):
54821         Use mreadlink_with_size, not xreadlink_with_size.
54822
54823 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
54824
54825         Detect porting problems to FreeBSD/arm, which has time_t wider than
54826         long int.  Original problem reported for GNU diff by Xin Li in
54827         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
54828         * modules/getdate (Depends-on): Add intprops, verify.
54829         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
54830         is an integer type no wider than long int.
54831
54832 2007-06-18  Jim Meyering  <jim@meyering.net>
54833
54834         New module: mreadlink-with-size.
54835         * MODULES.html.sh: Add mreadlink-with-size.
54836         * modules/mreadlink-with-size: New module
54837         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
54838         not xreadlink-with-size.
54839         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
54840
54841 2007-06-16  Bruno Haible  <bruno@clisp.org>
54842
54843         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
54844         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
54845         Reported by Gary V. Vaughan <gary@gnu.org>.
54846
54847 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
54848
54849         Revamp lchown so that it lives in unistd.h where it belongs.
54850         * lib/lchown.h: Remove.
54851         * lib/dirchownmod.c: Don't include lib/lchown.h.
54852         * lib/fchownat.c: Likewise.
54853         * lib/openat.c: Likewise.
54854         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
54855         does not follow symlinks.
54856         (EOPNOTSUPP): Define if not defined.
54857         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
54858         is defined to 0.
54859         (lchown): New decl.
54860         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
54861         Do not check for lchown decl.
54862         Set REPLACE_LCHOWN.
54863         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
54864         REPLACE_LCHOWN.
54865         * modules/chown: Make it clear it follows symlinks.
54866         * modules/lchown: Make it clear it doesn't follow symlinks.
54867         (Files): Remove lib/lchown.h
54868         (Depends-on): Add unistd.
54869         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
54870         (Include): Include <unistd.h>, not "lchown.h".
54871         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
54872         REPLACE_LCHOWN.
54873
54874 2007-06-15  Jim Meyering  <jim@meyering.net>
54875
54876         Change license (GPL to LGPL) of fsusage and dependents.
54877         * modules/fsusage (License): Change to LGPL.
54878         * modules/full-read (License): Likewise.
54879         * modules/full-write (License): Likewise.
54880         * modules/safe-read (License): Likewise.
54881         * modules/safe-write (License): Likewise.
54882
54883 2007-06-14  Ben Pfaff  <blp@gnu.org>
54884
54885         Missing part of allocsa -> malloca transition.
54886         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
54887         gl_MALLOCA.
54888
54889 2007-06-12  Bruno Haible  <bruno@clisp.org>
54890
54891         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
54892         to ia64, x86_64, i386.
54893         Reported by Eric Blake.
54894
54895 2007-06-12  Bruno Haible  <bruno@clisp.org>
54896
54897         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
54898         cross-compiling to x86_64.
54899
54900 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
54901
54902         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
54903         glitch reported by Ralf Wildenhues in
54904         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
54905
54906         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
54907         Vin Shelton.
54908
54909 2007-06-11  Bruno Haible  <bruno@clisp.org>
54910
54911         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
54912         replacement string.
54913         Reported by Eric Blake.
54914
54915 2007-06-10  Bruno Haible  <bruno@clisp.org>
54916
54917         Prepare vasnprintf code for use with Unicode strings.
54918         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
54919         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
54920         TYPE_U32_STRING.
54921         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
54922         a_u32_string variants.
54923         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
54924         * lib/printf-args.c: Don't include config.h and the specification
54925         header if PRINTF_FETCHARGS is already defined.
54926         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
54927         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
54928         TYPE_U16_STRING, TYPE_U32_STRING.
54929         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
54930         u16_directive, u16_directives, u32_directive, u32_directives): New
54931         types.
54932         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
54933         New declarations.
54934         * lib/printf-parse.c: Don't include config.h and the specification
54935         header if PRINTF_PARSE is already defined. Eliminate the set of
54936         parameters for WIDE_CHAR_VERSION; the user of this file must provide
54937         them now. Include c-ctype.h.
54938         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
54939         directive and CHAR_T_ONLY_ASCII.
54940         * lib/vasnprintf.c: Don't include config.h and the specification header
54941         if VASNPRINTF is already defined.
54942         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
54943         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
54944         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
54945         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
54946         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
54947         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
54948         code accordingly.
54949         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
54950         pad_ourselves also in this case, with the 'c' and 's' directives, and
54951         with a different notion of "width".
54952         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
54953
54954 2007-06-10  Bruno Haible  <bruno@clisp.org>
54955
54956         * modules/unistr/u32-mbsnlen: New file.
54957         * lib/unistr/u32-mbsnlen.c: New file.
54958
54959         * modules/unistr/u16-mbsnlen: New file.
54960         * lib/unistr/u16-mbsnlen.c: New file.
54961
54962         * modules/unistr/u8-mbsnlen: New file.
54963         * lib/unistr/u8-mbsnlen.c: New file.
54964
54965         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
54966         declarations.
54967
54968 2007-06-10  Bruno Haible  <bruno@clisp.org>
54969
54970         * lib/string_.h (mbsnlen): New declaration.
54971         * lib/mbsnlen.c: New file.
54972         * m4/mbsnlen.m4: New file.
54973         * modules/mbsnlen: New file.
54974         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
54975         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
54976         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
54977
54978 2007-06-10  Bruno Haible  <bruno@clisp.org>
54979
54980         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
54981
54982 2007-06-10  Bruno Haible  <bruno@clisp.org>
54983
54984         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
54985         * lib/mbuiter.h: Likewise.
54986
54987 2007-06-10  Bruno Haible  <bruno@clisp.org>
54988
54989         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
54990         declaration.
54991
54992 2007-06-10  Karl Berry  <karl@gnu.org>
54993
54994         * config/srclist.txt: remove gettext entries, Bruno prefers
54995         to update individually.
54996
54997 2007-06-10  Bruno Haible  <bruno@clisp.org>
54998
54999         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
55000         'maxlen'. Ensure only length + width bytes are allocated, not
55001         length + 1 + width.
55002
55003 2007-06-09  Bruno Haible  <bruno@clisp.org>
55004
55005         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
55006         (CHAR_T): Remove macro.
55007         (VASNPRINTF): Update.
55008
55009 2007-06-09  Bruno Haible  <bruno@clisp.org>
55010
55011         * MODULES.html.sh (Unicode string functions): Add the new modules.
55012
55013         * modules/uniconv/u32-conv-to-enc: New file.
55014         * lib/uniconv/u32-conv-to-enc.c: New file.
55015         * modules/uniconv/u32-conv-to-enc-tests: New file.
55016         * tests/uniconv/test-u32-conv-to-enc.c: New file.
55017
55018         * modules/uniconv/u16-conv-to-enc: New file.
55019         * lib/uniconv/u16-conv-to-enc.c: New file.
55020         * lib/uniconv/u-conv-to-enc.h: New file.
55021         * modules/uniconv/u16-conv-to-enc-tests: New file.
55022         * tests/uniconv/test-u16-conv-to-enc.c: New file.
55023
55024         * modules/uniconv/u8-conv-to-enc: New file.
55025         * lib/uniconv/u8-conv-to-enc.c: New file.
55026         * modules/uniconv/u8-conv-to-enc-tests: New file.
55027         * tests/uniconv/test-u8-conv-to-enc.c: New file.
55028
55029         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
55030         u32_conv_to_encoding): New declarations.
55031
55032 2007-06-09  Bruno Haible  <bruno@clisp.org>
55033
55034         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
55035
55036 2007-06-09  Bruno Haible  <bruno@clisp.org>
55037
55038         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
55039         * modules/malloca: Renamed from modules/allocsa, updated.
55040         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
55041         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
55042         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
55043         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
55044         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
55045         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
55046         * modules/xmalloca: Renamed from modules/xallocsa, updated.
55047         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
55048         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
55049         * modules/c-strcasestr (Depends-on): Update.
55050         * lib/c-strcasestr.c: Update.
55051         * modules/c-strstr (Depends-on): Update.
55052         * lib/c-strstr.c: Update.
55053         * modules/canonicalize-lgpl (Depends-on): Update.
55054         * lib/canonicalize-lgpl.c: Update.
55055         * modules/clean-temp (Depends-on): Update.
55056         * lib/clean-temp.c: Update.
55057         * modules/csharpcomp (Depends-on): Update.
55058         * lib/csharpcomp.c: Update.
55059         * modules/csharpexec (Depends-on): Update.
55060         * lib/csharpexec.c: Update.
55061         * modules/javacomp (Depends-on): Update.
55062         * lib/javacomp.c: Update.
55063         * modules/javaexec (Depends-on): Update.
55064         * lib/javaexec.c: Update.
55065         * modules/mbscasestr (Depends-on): Update.
55066         * lib/mbscasestr.c: Update.
55067         * modules/mbsstr (Depends-on): Update.
55068         * lib/mbsstr.c: Update.
55069         * modules/setenv (Depends-on): Update.
55070         * lib/setenv.c: Update.
55071         * modules/strcasestr (Depends-on): Update.
55072         * lib/strcasestr.c: Update.
55073         * modules/striconveha (Depends-on): Update.
55074         * lib/striconveha.c: Update.
55075         * modules/relocatable-prog-wrapper (Files): Update.
55076         * lib/relocwrapper.c: Update.
55077         * build-aux/install-reloc: Update.
55078         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
55079
55080 2007-06-08  Bruno Haible  <bruno@clisp.org>
55081
55082         Port to uClibc.
55083         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
55084         * lib/fpurge.c (fpurge): Likewise.
55085         * lib/freading.c (freading): Likewise.
55086         * lib/fseeko.c (rpl_fseeko): Likewise.
55087         * lib/fseterr.c (fseterr): Likewise.
55088         * lib/fwriting.c (fwriting): Likewise.
55089         * tests/test-fflush.c (main): Avoid a failure on uClibc.
55090
55091 2007-06-08  Bruno Haible  <bruno@clisp.org>
55092
55093         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
55094         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
55095         * modules/gettext (Files): Add m4/intlmacosx.m4.
55096
55097 2007-06-07  Bruno Haible  <bruno@clisp.org>
55098
55099         * modules/localename-tests: New file.
55100         * tests/test-localename.c: New file.
55101
55102         New module 'localename'.
55103         * lib/localename.h: New file.
55104         * lib/localename.c: New file, from GNU gettext.
55105         * m4/localename.m4: New file.
55106         * modules/localename: New file.
55107
55108 2007-06-07  Bruno Haible  <bruno@clisp.org>
55109
55110         Work around the lack of <wchar.h> on some builds of uClibc.
55111         * doc/headers/wchar.texi: Update.
55112         * lib/wchar_.h: Include <wchar.h> only if it exists.
55113         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
55114         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
55115         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
55116         doesn't exist.
55117         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
55118         * modules/mbfile (Depends-on): Add wchar.
55119         * modules/mbiter (Depends-on): Likewise.
55120         * modules/mbuiter (Depends-on): Likewise.
55121         Reported by Simon Josefsson.
55122
55123 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
55124
55125         Work around problem reported by Steven M. Schweda in
55126         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
55127         Tru64 5.1B with the Compaq compiler environment installed declares
55128         an 'isblank' function but does not define it in the C library.
55129         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
55130         * lib/regex_internal.h (isblank): Likewise.
55131         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
55132         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55133
55134 2007-06-05  Bruno Haible  <bruno@clisp.org>
55135
55136         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
55137         ia64.
55138         * modules/printf-safe: New file.
55139         * modules/fprintf-posix (Depends-on): Add printf-safe.
55140         * modules/printf-posix (Depends-on): Likewise.
55141         * modules/snprintf-posix (Depends-on): Likewise.
55142         * modules/sprintf-posix (Depends-on): Likewise.
55143         * modules/vasnprintf-posix (Depends-on): Likewise.
55144         * modules/vasprintf-posix (Depends-on): Likewise.
55145         * modules/vfprintf-posix (Depends-on): Likewise.
55146         * modules/vprintf-posix (Depends-on): Likewise.
55147         * modules/vsnprintf-posix (Depends-on): Likewise.
55148         * modules/vsprintf-posix (Depends-on): Likewise.
55149         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
55150         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
55151         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
55152         "no" on i386, x86_64, ia64.
55153         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
55154         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55155         on i386, x86_64, ia64.
55156         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
55157         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55158         on i386, x86_64, ia64.
55159         * tests/test-vasnprintf-posix.c: Include float.h.
55160         (LDBL80_WORDS): New macro.
55161         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55162         on i386, x86_64, ia64.
55163         * tests/test-vasprintf-posix.c: Include float.h.
55164         (LDBL80_WORDS): New macro.
55165         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55166         on i386, x86_64, ia64.
55167         * tests/test-snprintf-posix.c: Include float.h.
55168         * tests/test-sprintf-posix.c: Likewise.
55169         * tests/test-vsnprintf-posix.c: Likewise.
55170         * tests/test-vsprintf-posix.c: Likewise.
55171
55172 2007-06-05  Bruno Haible  <bruno@clisp.org>
55173
55174         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
55175         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
55176         non-IEEE numbers on i386, x86_64, ia64.
55177         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
55178         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
55179         * tests/test-isnanl.h: Include float.h.
55180         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
55181
55182 2007-06-05  Bruno Haible  <bruno@clisp.org>
55183
55184         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
55185         also the %a / %A. Handle the %a / %A code before this extra handling.
55186
55187 2007-06-05  Bruno Haible  <bruno@clisp.org>
55188
55189         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
55190         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
55191
55192 2007-06-05  Bruno Haible  <bruno@clisp.org>
55193
55194         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
55195         typo in variable name.
55196
55197 2007-06-05  Eric Blake  <ebb9@byu.net>
55198
55199         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
55200         Reported by Simon Josefsson.
55201
55202 2007-06-04  Bruno Haible  <bruno@clisp.org>
55203
55204         Avoid test failures on some PowerPC platforms.
55205         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
55206         Define differently for PowerPC.
55207         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
55208         Reported by Gary V. Vaughan <gary@gnu.org>.
55209
55210 2007-06-02  Bruno Haible  <bruno@clisp.org>
55211
55212         Fix test-stdint failure on FreeBSD/ia64.
55213         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
55214         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
55215         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
55216         * doc/headers/stdint.texi: Update.
55217
55218 2007-06-01  Bruno Haible  <bruno@clisp.org>
55219
55220         * tests/test-binary-io.c (main): Pass a third argument to open().
55221         Reported by Gary V. Vaughan <gary@gnu.org>.
55222
55223 2007-06-01  Bruno Haible  <bruno@clisp.org>
55224
55225         * doc/functions/frexpl.texi: Update for mingw.
55226
55227 2007-06-01  Bruno Haible  <bruno@clisp.org>
55228
55229         * tests/test-lseek.c (main): Disable test of errno for invalid third
55230         argument.
55231         * doc/functions/lseek.texi: Update.
55232         Reported by Gary V. Vaughan <gary@gnu.org>.
55233
55234 2007-05-28  Bruno Haible  <bruno@clisp.org>
55235
55236         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
55237
55238 2007-05-31  Eric Blake  <ebb9@byu.net>
55239
55240         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
55241         cross compiling.
55242
55243 2007-05-30  Eric Blake  <ebb9@byu.net>
55244         and Bruno Haible  <bruno@clisp.org>
55245
55246         Work around mingw test failures exposed by m4-1.4.9b.
55247         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
55248         * tests/test-unistd.c: Disable uid_t and git_t tests for the
55249         moment.
55250
55251 2007-05-30  Bruno Haible  <bruno@clisp.org>
55252
55253         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
55254         assuming that they are closed. Needed on HP-UX 11.
55255
55256 2007-05-29  Bruno Haible  <bruno@clisp.org>
55257
55258         Fix a problem with #include_next.
55259         * lib/dirent_.h: Split the double-inclusion guard.
55260         * lib/fcntl_.h: Likewise.
55261         * lib/float_.h: Likewise.
55262         * lib/iconv_.h: Likewise.
55263         * lib/inttypes_.h: Likewise.
55264         * lib/locale_.h: Likewise.
55265         * lib/math_.h: Likewise.
55266         * lib/netinet_in_.h: Likewise.
55267         * lib/search_.h: Likewise.
55268         * lib/signal_.h: Likewise.
55269         * lib/stdint_.h: Likewise.
55270         * lib/stdio_.h: Likewise.
55271         * lib/stdlib_.h: Likewise.
55272         * lib/string_.h: Likewise.
55273         * lib/sys_select_.h: Likewise.
55274         * lib/sys_socket_.h: Likewise.
55275         * lib/sys_stat_.h: Likewise.
55276         * lib/sys_time_.h: Likewise.
55277         * lib/sysexits_.h: Likewise.
55278         * lib/time_.h: Likewise.
55279         * lib/unistd_.h: Likewise.
55280         * lib/wchar_.h: Likewise.
55281         * lib/wctype_.h: Likewise.
55282
55283 2007-05-29  Bruno Haible  <bruno@clisp.org>
55284
55285         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
55286         for the moment.
55287
55288 2007-05-29  Bruno Haible  <bruno@clisp.org>
55289
55290         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
55291         invocation.
55292         Reported by Eric Blake.
55293
55294 2007-05-29  Bruno Haible  <bruno@clisp.org>
55295
55296         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
55297         compiling case.
55298
55299 2007-05-29  Eric Blake  <ebb9@byu.net>
55300             Bruno Haible  <bruno@clisp.org>
55301
55302         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
55303         cross compiles.
55304
55305 2007-05-28  Eric Blake  <ebb9@byu.net>
55306
55307         * modules/closein-tests (test_closein_LDADD): Support test on
55308         cygwin with libtool.
55309
55310 2007-05-28  Bruno Haible  <bruno@clisp.org>
55311
55312         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
55313         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
55314         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
55315         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
55316         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
55317         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
55318         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
55319         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
55320         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
55321
55322 2007-05-28  Eric Blake  <ebb9@byu.net>
55323
55324         Unconditionally include <config.h> in unit tests.
55325         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
55326         * tests/test-allocsa.c, tests/test-arcfour.c,
55327         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
55328         tests/test-array_list.c, tests/test-array_oset.c,
55329         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
55330         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
55331         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
55332         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
55333         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
55334         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
55335         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
55336         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
55337         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
55338         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
55339         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
55340         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
55341         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
55342         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
55343         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
55344         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
55345         test-md5.c, test-memmem.c, test-printf-posix.c,
55346         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
55347         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
55348         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
55349         test-strcasestr.c, test-striconv.c, test-striconveh.c,
55350         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
55351         test-vasnprintf-posix2.c, test-vasnprintf.c,
55352         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
55353         test-vfprintf-posix.c, test-vprintf-posix.c,
55354         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
55355         test-xvasprintf.c: Likewise.
55356
55357 2007-05-28  Bruno Haible  <bruno@clisp.org>
55358
55359         * gnulib-tool (func_import): Remember the --with-tests command-line
55360         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
55361         Reported by Eric Blake.
55362
55363 2007-05-28  Bruno Haible  <bruno@clisp.org>
55364
55365         * modules/ftell-tests: New file.
55366         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
55367         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
55368
55369         * lib/ftell.c: New file.
55370         * modules/ftell: New file.
55371         * m4/ftell.m4: New file.
55372         * doc/functions/ftell.texi: Update.
55373         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
55374         REPLACE_FTELL.
55375         * lib/stdio_.h (rpl_ftell): New declaration.
55376         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
55377         REPLACE_FTELL.
55378
55379 2007-05-28  Eric Blake  <ebb9@byu.net>
55380
55381         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
55382
55383 2007-05-28  Bruno Haible  <bruno@clisp.org>
55384
55385         * modules/fseek-tests: New file.
55386         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
55387         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
55388
55389         * lib/fseek.c: New file.
55390         * modules/fseek: New file.
55391         * m4/fseek.m4: New file.
55392         * doc/functions/fseek.texi: Update.
55393         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
55394         REPLACE_FSEEK.
55395         * lib/stdio_.h (rpl_fseek): New declaration.
55396         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
55397         REPLACE_FSEEK.
55398
55399 2007-05-28  Bruno Haible  <bruno@clisp.org>
55400
55401         * lib/stdio_.h (fflush): More comments.
55402
55403 2007-05-28  Bruno Haible  <bruno@clisp.org>
55404
55405         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
55406         runtime test.
55407
55408 2007-05-28  Eric Blake  <ebb9@byu.net>
55409
55410         Improve lseek module.
55411         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
55412         * lib/unistd_.h (lseek): Scale back link warning message.
55413         * tests/test-lseek.c: Beef up test.
55414         * tests/test-lseek.sh: Exercise more facets of lseek.
55415         Reported by Bruno Haible.
55416
55417 2007-05-28  Bruno Haible  <bruno@clisp.org>
55418
55419         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
55420         to define.
55421
55422 2007-05-27  Bruno Haible  <bruno@clisp.org>
55423
55424         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
55425
55426 2007-05-27  Bruno Haible  <bruno@clisp.org>
55427
55428         * modules/openmp: New file.
55429         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
55430         Noah Misch.
55431
55432 2007-05-26  Bruno Haible  <bruno@clisp.org>
55433
55434         * modules/chdir-long (Depends-on): Add fchdir.
55435         * modules/chdir-safer (Depends-on): Likewise.
55436         * modules/fts (Depends-on): Likewise.
55437         * modules/fts-lgpl (Depends-on): Likewise.
55438         * modules/openat (Depends-on): Likewise.
55439         * modules/savewd (Depends-on): Likewise.
55440
55441 2007-05-24  Eric Blake  <ebb9@byu.net>
55442
55443         Fix lseek on mingw.
55444         * modules/lseek: New module.
55445         * m4/lseek.m4: New file.
55446         * lib/lseek.c: New file.
55447         * modules/lseek-tests: New file.
55448         * tests/test-lseek.c: New file.
55449         * tests/test-lseek.sh: New file.
55450         * MODULES.html.sh: Document lseek module.
55451         * modules/fflush (Depends-on): Add lseek, fseeko.
55452         * modules/fseeko (Depends-on): Likewise.
55453         * modules/ftello (Depends-on): Likewise.
55454         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
55455         broken.
55456         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
55457         broken.
55458         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
55459         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
55460         * lib/ftello.c (rpl_ftello): Likewise.
55461         * tests/test-fseeko.c (main): Test this.
55462         * tests/test-fseeko.sh: Likewise.
55463         * tests/test-ftello.c (main): Likewise.
55464         * tests/test-ftello.sh: Likewise.
55465         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
55466         implies replacing fseek.
55467         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
55468         HAVE_FTELLO.
55469         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
55470         * modules/unistd (Makefile.am): Likewise.
55471         * lib/unistd_.h (lseek): Declare a replacement.
55472         * doc/functions/lseek.texi (lseek): Document this fix.
55473         * doc/functions/fseek.texi (fseek): Likewise.
55474         * doc/functions/ftell.texi (ftell): Likewise.
55475
55476 2007-05-24  Bruno Haible  <bruno@clisp.org>
55477
55478         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
55479         in the printed representation of a NaN.
55480         * tests/test-vasprintf-posix.c (test_function): Likewise.
55481         * tests/test-snprintf-posix.h (test_function): Likewise.
55482         * tests/test-sprintf-posix.h (test_function): Likewise.
55483         Reported by Eric Blake.
55484
55485 2007-05-23  Eric Blake  <ebb9@byu.net>
55486
55487         Fix fseeko/ftello on cygwin 1.5.24.
55488         * doc/functions/fseeko.texi (fseeko): Document the fix.
55489         * doc/functions/ftello.texi (ftello): Document the fix.
55490         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
55491         * doc/functions/stdout.text (stdout): New file.
55492         * doc/functions/stderr.text (stderr): New file.
55493         * doc/gnulib.texi (Function Substitutes): Use new files.
55494         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
55495         prior to 1.7.0.
55496         * tests/test-ftello.c (main): Likewise for ftello.
55497         * tests/test-fseeko.sh: New file.
55498         * tests/test-ftello.sh: New file.
55499         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
55500         with seekable stdin.
55501         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
55502         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
55503         (gl_REPLACE_FSEEKO): New macro.
55504         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
55505         * modules/fseeko (Files): Distribute fseeko.c.
55506         * modules/ftello (Files): Distribute ftello.c.
55507         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
55508         mode.
55509         * lib/ftello.c (rpl_ftello): New file.
55510         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
55511         fseeko, ftello.
55512         (gl_STDIN_LARGE_OFFSET): New macro.
55513         * modules/stdio (Makefile.am): Perform the replacement.
55514         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
55515
55516 2007-05-23  Bruno Haible  <bruno@clisp.org>
55517
55518         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
55519         GNULIB_POSIXCHECK is defined.
55520
55521 2007-05-21  Bruno Haible  <bruno@clisp.org>
55522
55523         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
55524         Check also the output for NaN arguments. When cross-compiling, guess
55525         no on IRIX.
55526         * lib/vasnprintf.c: Update comments.
55527         * tests/test-vasnprintf-posix.c (strisnan): New function.
55528         (test_function): Use it.
55529         * tests/test-vasprintf-posix.c (strisnan): New function.
55530         (test_function): Use it.
55531         * tests/test-snprintf-posix.h (strisnan): New function.
55532         (test_function): Use it.
55533         * tests/test-sprintf-posix.h (strisnan): New function.
55534         (test_function): Use it.
55535         Reported by Eric Blake.
55536
55537 2007-05-20  Bruno Haible  <bruno@clisp.org>
55538
55539         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
55540         numbers that fails on BeOS.
55541         * doc/functions/frexpl.texi: Update.
55542
55543 2007-05-20  Jim Meyering  <jim@meyering.net>
55544
55545         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
55546         forced upon us by glibc-2.6.
55547
55548 2007-05-20  Bruno Haible  <bruno@clisp.org>
55549
55550         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
55551         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
55552         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
55553         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
55554         NEED_PRINTF_INFINITE.
55555         (is_infinitel): New function.
55556         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
55557         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
55558         gl_PREREQ_VASNPRINTF_INFINITE.
55559         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
55560         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55561         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
55562         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
55563         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
55564         gl_PREREQ_VASNPRINTF_INFINITE.
55565         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55566         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55567         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55568         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55569         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55570         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55571         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55572         * doc/functions/fprintf.texi: Update.
55573         * doc/functions/printf.texi: Update.
55574         * doc/functions/snprintf.texi: Update.
55575         * doc/functions/sprintf.texi: Update.
55576         * doc/functions/vfprintf.texi: Update.
55577         * doc/functions/vprintf.texi: Update.
55578         * doc/functions/vsnprintf.texi: Update.
55579         * doc/functions/vsprintf.texi: Update.
55580
55581 2007-05-20  Bruno Haible  <bruno@clisp.org>
55582
55583         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
55584         was not found in libc.
55585         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
55586
55587 2007-05-20  Bruno Haible  <bruno@clisp.org>
55588
55589         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
55590         printed as "-nan" instead of "nan".
55591         * tests/test-vasprintf-posix.c (test_function): Likewise.
55592         * tests/test-snprintf-posix.h (test_function): Likewise.
55593         * tests/test-sprintf-posix.h (test_function): Likewise.
55594         Needed for HP-UX 11.
55595
55596 2007-05-20  Jim Meyering  <jim@meyering.net>
55597
55598         Fix buggy test for the fchownat-deref bug.
55599         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
55600         symlink required for the run-test.  Without it, this test would
55601         always declare that fchownat doesn't work, and client code would
55602         unnecessarily use the replacement function with fixed libc.
55603         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
55604         Reported by Greg Schafer.
55605
55606 2007-05-19  Bruno Haible  <bruno@clisp.org>
55607
55608         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
55609         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
55610         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
55611         Needed for IRIX 6.5 and Solaris 2.5.1.
55612
55613 2007-05-19  Bruno Haible  <bruno@clisp.org>
55614
55615         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
55616         (test_function): Skip tests involving -0.0 on platforms where
55617         -0.0 = 0.0.
55618         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
55619         (test_function): Skip tests involving -0.0 on platforms where
55620         -0.0 = 0.0.
55621         * tests/test-snprintf-posix.h (have_minus_zero): New function.
55622         (test_function): Skip tests involving -0.0 on platforms where
55623         -0.0 = 0.0.
55624         * tests/test-sprintf-posix.h (have_minus_zero): New function.
55625         (test_function): Skip tests involving -0.0 on platforms where
55626         -0.0 = 0.0.
55627         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
55628         tests.
55629         * tests/test-printf-posix.h (test_function): Likewise.
55630         * tests/test-printf-posix.output: Remove all -0.0 related results.
55631         Needed for IRIX 6.5.
55632
55633 2007-05-19  Bruno Haible  <bruno@clisp.org>
55634
55635         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
55636         printed as "nan0x7fffffff" instead of "nan".
55637         * tests/test-vasprintf-posix.c (test_function): Likewise.
55638         * tests/test-snprintf-posix.h (test_function): Likewise.
55639         * tests/test-sprintf-posix.h (test_function): Likewise.
55640         * tests/test-fprintf-posix.h (NaN): Remove macro.
55641         (test_function): Remove all NaN related tests.
55642         * tests/test-printf-posix.h (NaN): Remove macro.
55643         (test_function): Remove all NaN related tests.
55644         * tests/test-printf-posix.output: Remove all NaN related results.
55645         Needed for IRIX 6.5.
55646
55647 2007-05-19  Bruno Haible  <bruno@clisp.org>
55648
55649         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
55650         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
55651
55652 2007-05-19  Bruno Haible  <bruno@clisp.org>
55653
55654         * lib/float_.h: New file.
55655         * m4/float_h.m4: New file.
55656         * modules/float: New file.
55657         * modules/isnanl (Dependencies): Add float.
55658         * modules/isnanl-nolibm (Dependencies): Likewise.
55659         * modules/mathl (Dependencies): Likewise.
55660         * modules/printf-frexpl (Dependencies): Likewise.
55661         * modules/signbit (Dependencies): Likewise.
55662         * modules/vasnprintf (Dependencies): Likewise.
55663         * doc/headers/float.texi: Update.
55664
55665 2007-05-19  Jim Meyering  <jim@meyering.net>
55666
55667         * lib/utimens.c (gl_futimens): Rename from futimens,
55668         now that glibc-2.6 declares futimens.
55669         * lib/utimens.h: Likewise.
55670
55671 2007-05-19  Bruno Haible  <bruno@clisp.org>
55672
55673         Avoid test failures on mingw.
55674         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
55675         * tests/test-printf-posix.sh: Likewise.
55676         * tests/test-vfprintf-posix.sh: Likewise.
55677         * tests/test-vprintf-posix.sh: Likewise.
55678
55679 2007-05-19  Bruno Haible  <bruno@clisp.org>
55680
55681         Fix *printf result for NaN, Inf, -0.0 on mingw.
55682         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
55683         * lib/vasnprintf.c: Include math.h and isnan.h.
55684         (is_infinite_or_zero): New function.
55685         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
55686         values in the %f, %F, %e, %E, %g, %G directives.
55687         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
55688         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55689         gl_PRINTF_INFINITE and test its result. Invoke
55690         gl_PREREQ_VASNPRINTF_INFINITE.
55691         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55692         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55693         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55694         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55695         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55696         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55697         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55698         * doc/functions/fprintf.texi: Update.
55699         * doc/functions/printf.texi: Update.
55700         * doc/functions/snprintf.texi: Update.
55701         * doc/functions/sprintf.texi: Update.
55702         * doc/functions/vfprintf.texi: Update.
55703         * doc/functions/vprintf.texi: Update.
55704         * doc/functions/vsnprintf.texi: Update.
55705         * doc/functions/vsprintf.texi: Update.
55706
55707 2007-05-19  Bruno Haible  <bruno@clisp.org>
55708
55709         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
55710         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
55711         Instead of multiplying with 10^k, set extra_zeroes to k.
55712         (scale10_round_long_double): Remove function.
55713
55714 2007-05-18  Bruno Haible  <bruno@clisp.org>
55715
55716         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
55717         introduced on 2007-05-06.
55718
55719 2007-05-18  Bruno Haible  <bruno@clisp.org>
55720
55721         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
55722         %g directives.
55723         * tests/test-vasprintf-posix.c (test_function): Likewise.
55724         * tests/test-snprintf-posix.h (test_function): Likewise.
55725         * tests/test-sprintf-posix.h (test_function): Likewise.
55726
55727 2007-05-18  Bruno Haible  <bruno@clisp.org>
55728
55729         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
55730         (strmatch): New function.
55731         (test_function): Test the %f directive on numbers of various exponents.
55732         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
55733         (strmatch): New function.
55734         (test_function): Test the %f directive on numbers of various exponents.
55735         * tests/test-snprintf-posix.h (strmatch): New function.
55736         (test_function): Test the %f directive on numbers of various exponents.
55737         * tests/test-sprintf-posix.h (strmatch): New function.
55738         (test_function): Test the %f directive on numbers of various exponents.
55739         * tests/test-snprintf-posix.c (SIZEOF): New macro.
55740         * tests/test-sprintf-posix.c (SIZEOF): New macro.
55741         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
55742         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
55743
55744 2007-05-18  Bruno Haible  <bruno@clisp.org>
55745
55746         Add support for 'long double' number output.
55747         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
55748         * lib/vasnprintf.c: Include math.h and float+.h.
55749         (mp_limb_t): New type.
55750         (GMP_LIMB_BITS): New macro.
55751         (mp_twolimb_t): New type.
55752         (GMP_TWOLIMB_BITS): New macro.
55753         (mpn_t): New type.
55754         (multiply, divide, convert_to_decimal, decode_long_double,
55755         scale10_round_long_double, scale10_round_decimal_long_double,
55756         floorlog10l): New functions.
55757         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
55758         for the %f, %F, %e, %E, %g, %G directives.
55759         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
55760         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55761         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
55762         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
55763         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55764         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55765         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55766         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55767         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55768         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55769         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55770         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
55771         * modules/snprintf-posix (Depends-on): Likewise.
55772         * modules/sprintf-posix (Depends-on): Likewise.
55773         * modules/vasnprintf-posix (Depends-on): Likewise.
55774         * modules/vasprintf-posix (Depends-on): Likewise.
55775         * modules/vfprintf-posix (Depends-on): Likewise.
55776         * modules/vsnprintf-posix (Depends-on): Likewise.
55777         * modules/vsprintf-posix (Depends-on): Likewise.
55778         * modules/vasnprintf (Files): Add lib/float+.h.
55779         * doc/functions/fprintf.texi: Update.
55780         * doc/functions/printf.texi: Update.
55781         * doc/functions/snprintf.texi: Update.
55782         * doc/functions/sprintf.texi: Update.
55783         * doc/functions/vfprintf.texi: Update.
55784         * doc/functions/vprintf.texi: Update.
55785         * doc/functions/vsnprintf.texi: Update.
55786         * doc/functions/vsprintf.texi: Update.
55787
55788 2007-05-18  Bruno Haible  <bruno@clisp.org>
55789
55790         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
55791
55792 2007-05-18  Bruno Haible  <bruno@clisp.org>
55793
55794         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
55795         for printing 64-bit integers. Needed for mingw.
55796
55797 2007-05-18  Bruno Haible  <bruno@clisp.org>
55798
55799         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
55800         gl_FUNC_FREXPL_WORKS.
55801         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
55802
55803 2007-05-18  Bruno Haible  <bruno@clisp.org>
55804
55805         * modules/frexpl-nolibm-tests: New file.
55806
55807         * modules/frexpl-nolibm: New file.
55808         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
55809
55810 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55811
55812         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
55813         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
55814         GCC 4.2, which otherwise issues a lot of warnings.
55815         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
55816         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
55817         Likewise.
55818         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
55819         * modules/iconv_open (iconv.h): Likewise.
55820         * modules/locale (locale.h): Likewise.
55821         * modules/netinet_in (netinet/in.h): Likewise.
55822         * modules/sys_select (sys_select.h): Likewise.
55823         * modules/sys_socket (sys/socket.h): Likewise.
55824         * modules/sys_stat (sys/stat.h): Likewise.
55825         * modules/sysexits (sysexits.h): Likewise.
55826         * modules/unistd (unistd.h): Likewise.
55827
55828 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55829
55830         * modules/closein-tests (Makefile.am): Distribute
55831         `test-closein.sh'.
55832
55833 2007-05-17  Bruno Haible  <bruno@clisp.org>
55834
55835         * tests/test-printf-posix.output: Renamed from
55836         tests/test-fprintf-posix.out.
55837         * modules/fprintf-posix-tests: Update.
55838         * modules/printf-posix-tests: Update.
55839         * modules/vfprintf-posix-tests: Update.
55840         * modules/vprintf-posix-tests: Update.
55841         * tests/test-fprintf-posix.sh: Update.
55842         * tests/test-printf-posix.sh: Update.
55843         * tests/test-vfprintf-posix.sh: Update.
55844         * tests/test-vprintf-posix.sh: Update.
55845         Reported by Ralf Wildenhues.
55846
55847 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55848
55849         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
55850         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
55851         GCC 4.2, which otherwise issues a lot of warnings.
55852         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
55853         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
55854         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
55855         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
55856         it should no longer be needed.
55857         * lib/string_.h: Likewise.
55858         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
55859         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
55860         * modules/inttypes (inttypes.h): Likewise.
55861         * modules/math (math.h): Likewise.
55862         * modules/search (search.h): Likewise.
55863         * modules/signal (signal.h): Likewise.
55864         * modules/stdint (stdint.h): Likewise.
55865         * modules/stdio (stdio.h): Likewise.
55866         * modules/stdlib (stdlib.h): Likewise.
55867         * modules/string (string.h): Likewise.
55868         * modules/sys_time (sys/time.h): Likewise.
55869         * modules/time (time.h): Likewise.
55870         * modules/wchar (wchar.h): Likewise.
55871         * modules/wctype (wtype.h): Likewise.
55872
55873 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
55874
55875         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
55876
55877 2007-05-13  Bruno Haible  <bruno@clisp.org>
55878
55879         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
55880         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
55881         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
55882         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
55883         (gl_PREREQ_STRTOK_R): Don't require it here.
55884
55885 2007-05-13  Bruno Haible  <bruno@clisp.org>
55886
55887         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
55888         when used in C++ mode.
55889
55890 2007-05-12  Bruno Haible  <bruno@clisp.org>
55891
55892         * lib/linebuffer.h: Tweak doc.
55893         * lib/linebuffer.c: Likewise.
55894
55895 2007-05-12  James Youngman  <jay@gnu.org>
55896
55897         * lib/linebuffer.c (readlinebuffer_delim): New function,
55898         like readlinebuffer, but use a caller-specified delimiter.
55899         (readlinebuffer): Just call readlinebuffer_delim with '\n'
55900         as the delimiter.
55901         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
55902
55903 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
55904
55905         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
55906         * modules/openat (Files): Remove openat-die.c.
55907         (Depends-on): Add openat-die.
55908         * modules/openat-die: New module.
55909
55910 2007-05-06  Bruno Haible  <bruno@clisp.org>
55911
55912         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
55913         Update with info about Cygwin.
55914         * doc/functions/fprintf.texi: Update.
55915         * doc/functions/printf.texi: Update.
55916         * doc/functions/snprintf.texi: Update.
55917         * doc/functions/sprintf.texi: Update.
55918         * doc/functions/vfprintf.texi: Update.
55919         * doc/functions/vprintf.texi: Update.
55920         * doc/functions/vsnprintf.texi: Update.
55921         * doc/functions/vsprintf.texi: Update.
55922         Reported by Eric Blake.
55923
55924 2007-05-06  Bruno Haible  <bruno@clisp.org>
55925
55926         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
55927         padding ourselves for the floating-point directives.
55928         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
55929         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
55930         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55931         gl_PRINTF_FLAG_ZERO and test its result. Invoke
55932         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
55933         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55934         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
55935         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55936         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55937         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55938         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55939         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55940         * tests/test-snprintf-posix.h (test_function): Also check the width
55941         and some flags in the %f directive.
55942         * tests/test-sprintf-posix.h (test_function): Likewise.
55943         * tests/test-vasnprintf-posix.c (test_function): Likewise.
55944         * tests/test-vasprintf-posix.c (test_function): Likewise.
55945         * doc/functions/fprintf.texi: Update.
55946         * doc/functions/printf.texi: Update.
55947         * doc/functions/snprintf.texi: Update.
55948         * doc/functions/sprintf.texi: Update.
55949         * doc/functions/vfprintf.texi: Update.
55950         * doc/functions/vprintf.texi: Update.
55951         * doc/functions/vsnprintf.texi: Update.
55952         * doc/functions/vsprintf.texi: Update.
55953
55954 2007-05-06  Bruno Haible  <bruno@clisp.org>
55955
55956         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
55957         pass the ' flag character to sprintf or snprintf.
55958         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
55959         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
55960         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55961         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
55962         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
55963         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55964         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
55965         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55966         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55967         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55968         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55969         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55970         * tests/test-snprintf-posix.h (test_function): Also check the grouping
55971         flag.
55972         * tests/test-sprintf-posix.h (test_function): Likewise.
55973         * tests/test-vasnprintf-posix.c (test_function): Likewise.
55974         * tests/test-vasprintf-posix.c (test_function): Likewise.
55975         * doc/functions/fprintf.texi: Update.
55976         * doc/functions/printf.texi: Update.
55977         * doc/functions/snprintf.texi: Update.
55978         * doc/functions/sprintf.texi: Update.
55979         * doc/functions/vfprintf.texi: Update.
55980         * doc/functions/vprintf.texi: Update.
55981         * doc/functions/vsnprintf.texi: Update.
55982         * doc/functions/vsprintf.texi: Update.
55983
55984 2007-05-01  Bruno Haible  <bruno@clisp.org>
55985
55986         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
55987
55988 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
55989
55990         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
55991         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
55992
55993 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
55994
55995         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
55996         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
55997         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
55998
55999 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
56000
56001         * lib/argp-help.c (struct hol_entry): New member `ord'.
56002         (HOL_ENTRY_PTRCMP): Use ord for comparison
56003         (hol_sort): Initialize ord.
56004
56005 2007-05-01  Bruno Haible  <bruno@clisp.org>
56006
56007         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
56008         Reported by Eric Blake.
56009         * doc/gnulib.texi (Function Substitutes): Update.
56010
56011 2007-05-01  Bruno Haible  <bruno@clisp.org>
56012
56013         * doc/functions.texi: Remove file, now redundant through
56014         doc/functions/*.texi.
56015
56016 2007-05-01  Bruno Haible  <bruno@clisp.org>
56017
56018         * modules/argp (Depends-on): Add sleep.
56019
56020 2007-05-01  Bruno Haible  <bruno@clisp.org>
56021
56022         * modules/sleep-tests: New file.
56023         * tests/test-sleep.c: New file.
56024
56025         * modules/sleep: New file.
56026         * lib/sleep.c: New file.
56027         * m4/sleep.m4: New file.
56028         * lib/unistd_.h (sleep): New declaration.
56029         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
56030         HAVE_SLEEP.
56031         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
56032         * doc/functions/sleep.texi: Document the sleep module.
56033
56034 2007-05-01  Bruno Haible  <bruno@clisp.org>
56035
56036         * lib/sigprocmask.h: Remove file.
56037         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
56038         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
56039         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
56040         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
56041         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
56042         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
56043         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
56044         HAVE_SIGSET_T as a shell variable.
56045         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
56046         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
56047         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
56048         (Depends-on): Add signal. Remove verify.
56049         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
56050         (Include): Mention <signal.h> instead of sigprocmask.h.
56051         * NEWS: Mention the change.
56052         * lib/fatal-signal.c: Don't include sigprocmask.h.
56053
56054 2007-05-01  Bruno Haible  <bruno@clisp.org>
56055
56056         * modules/signal: New file.
56057         * lib/signal_.h: New file.
56058         * m4/signal_h.m4: New file.
56059
56060 2007-05-01  Bruno Haible  <bruno@clisp.org>
56061
56062         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
56063         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
56064         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
56065         HAVE_WCTYPE_CTMP_BUG into wctype.h.
56066
56067 2007-05-01  Bruno Haible  <bruno@clisp.org>
56068
56069         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
56070         configure time.
56071         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
56072         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
56073         * modules/sys_stat (Makefile.am): Substitute their values into
56074         sys/stat.h.
56075
56076 2007-05-01  Bruno Haible  <bruno@clisp.org>
56077
56078         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
56079         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
56080         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
56081
56082 2007-05-01  Bruno Haible  <bruno@clisp.org>
56083
56084         * doc/header/assert.texi: Undo last change: don't mention the gnulib
56085         'assert' module here.
56086
56087 2007-05-01  Bruno Haible  <bruno@clisp.org>
56088
56089         * doc/functions/*.texi: New files.
56090         * doc/functions/google-ranking.txt: New file.
56091         * doc/gnulib.texi (Function Substitutes): New chapter.
56092         (ctime, inet_ntoa): Remove sections.
56093         * doc/ctime.texi: Remove file.
56094         * doc/inet_ntoa.texi: Remove file.
56095         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
56096         dependencies.
56097         (%.info): New rule, specifying a --reference-limit.
56098
56099 2007-05-01  Bruno Haible  <bruno@clisp.org>
56100
56101         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
56102
56103 2007-05-01  Bruno Haible  <bruno@clisp.org>
56104
56105         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
56106         the portability of 'mkdir' to mingw systems.
56107
56108 2007-05-01  Bruno Haible  <bruno@clisp.org>
56109
56110         * doc/headers/google-ranking.txt: New file.
56111
56112 2007-04-30  Eric Blake  <ebb9@byu.net>
56113
56114         Prefer fseeko to fseek.
56115         * modules/getpass (Depends-on): Add fseeko.
56116         * lib/getpass.c (getpass): Use fseeko, not fseek.
56117
56118 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
56119
56120         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
56121         assumes the sorting is stable, while most qsort implementations
56122         are not.  Use argument addresses to ensure they never compare as
56123         equal.
56124
56125         * tests/test-argp-2.sh (usage-indent test): Fix output
56126         (func_compare): Restore diff options
56127         * tests/test-argp.c: Restore #include "progname.h"
56128
56129 2007-04-29  Bruno Haible  <bruno@clisp.org>
56130
56131         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
56132         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56133         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
56134         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56135         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
56136         (configure.ac): Define CHECK_SNPRINTF_POSIX.
56137         (TESTS, check_PROGRAMS): Add test-snprintf.
56138         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
56139         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
56140         (TESTS, check_PROGRAMS): Add test-vsnprintf.
56141         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
56142         assertions that fail on HP-UX, OSF/1, or IRIX.
56143         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
56144
56145 2007-04-29  Bruno Haible  <bruno@clisp.org>
56146
56147         * MODULES.html.sh (posix_functions): Remove 'contents'.
56148
56149 2007-04-29  Karl Berry  <karl@gnu.org>
56150
56151         * config/srclist.txt (gendocs_template_min): new entry.
56152
56153 2007-04-29  Bruno Haible  <bruno@clisp.org>
56154
56155         Work around fpurge bug on BSD systems.
56156         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
56157         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
56158         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
56159         fpurge to rpl_fpurge if the system already has this function.
56160         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
56161         the case where the system already has this function. Correct invariants
56162         on BSD systems.
56163         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
56164         BSD systems.
56165
56166 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
56167
56168         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
56169         proposed by Sven Verdoolaege.
56170
56171         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
56172         options.
56173         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
56174         (usage and help tests): Update
56175
56176 2007-04-29  Bruno Haible  <bruno@clisp.org>
56177
56178         * tests/test-fflush.c (main): Use a file of size 17, not 10.
56179         Print more information in case of failure. Disable a test on BeOS.
56180
56181 2007-04-29  Bruno Haible  <bruno@clisp.org>
56182
56183         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
56184         This helps debugging on systems on which no gdb is available.
56185
56186 2007-04-29  Bruno Haible  <bruno@clisp.org>
56187
56188         * lib/freading.h: Improve comments.
56189         * lib/fwriting.h: Likewise.
56190         * tests/test-freading.c (main): Don't check freading immediately after
56191         repositioning. Needed for glibc.
56192
56193 2007-04-29  Bruno Haible  <bruno@clisp.org>
56194
56195         * lib/freading.c (freading): Trivial simplification.
56196
56197 2007-04-28  Bruno Haible  <bruno@clisp.org>
56198
56199         * tests/test-fwriting.c (main): Also test the interaction between
56200         fflush and fwriting.
56201         * modules/fwriting-tests (Depends-on): Add fflush.
56202
56203         * tests/test-freading.c (main): Also test the interaction between
56204         fflush and freading.
56205         * modules/freading-tests (Depends-on): Add fflush.
56206
56207 2007-04-28  Bruno Haible  <bruno@clisp.org>
56208
56209         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
56210         fseeko and ftello.
56211         Suggested by Eric Blake.
56212
56213 2007-04-28  Jim Meyering  <jim@meyering.net>
56214
56215         Avoid false-negative in gl_STDINT_H's C99 conformance test.
56216         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
56217         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
56218
56219 2007-04-27  Eric Blake  <ebb9@byu.net>
56220
56221         * doc/headers/assert.texi (assert.h): Document assert module use.
56222
56223 2007-04-27  Bruno Haible  <bruno@clisp.org>
56224
56225         * doc/headers/*.texi: New files.
56226         * doc/gnulib.texi (Header File Substitutes): New chapter.
56227         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
56228         dependencies.
56229         (standards.info ,standards.html, standards.dvi): Update dependencies.
56230         (mostlyclean, clean): New targets.
56231
56232 2007-04-27  Bruno Haible  <bruno@clisp.org>
56233
56234         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
56235         * modules/sysexits (Files, Makefile.am): Update.
56236
56237         * lib/sys_socket_.h: Renamed from lib/socket_.h.
56238         * modules/sys_socket (Files, Makefile.am): Update.
56239
56240         * lib/sys_stat_.h: Renamed from lib/stat_.h.
56241         * modules/sys_stat (Files, Makefile.am): Update.
56242
56243 2007-04-27  Eric Blake  <ebb9@byu.net>
56244
56245         * lib/freading.h: Improve comments.
56246         * lib/fwriting.h: Likewise.
56247         * lib/fflush.c: Likewise.
56248
56249         Fix closein for mingw.
56250         * modules/closein-tests: Add tests for closein.
56251         * tests/test-closein.c: New file.
56252         * tests/test-closein.sh: Likewise.
56253         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
56254         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
56255
56256 2007-04-27  Bruno Haible  <bruno@clisp.org>
56257
56258         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
56259         version is < 6.
56260         * lib/math_.h [__DECC]: Likewise.
56261         * lib/stdio_.h [__DECC]: Likewise.
56262         * lib/stdlib_.h [__DECC]: Likewise.
56263         * lib/string_.h [__DECC]: Likewise.
56264         * lib/time_.h [__DECC]: Likewise.
56265         * lib/wchar_.h [__DECC]: Likewise.
56266         * lib/wctype_.h [__DECC]: Likewise.
56267
56268 2007-04-27  Bruno Haible  <bruno@clisp.org>
56269
56270         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
56271
56272 2007-04-27  Bruno Haible  <bruno@clisp.org>
56273
56274         * lib/fflush.c: Add comments.
56275         * modules/fpurge-tests (Depends-on): Add fflush.
56276         * modules/freadable-tests (Depends-on): Likewise.
56277         * modules/fwritable-tests (Depends-on): Likewise.
56278
56279 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
56280
56281         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
56282         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
56283         Report by Bruno Haible <bruno@clisp.org>.
56284
56285 2007-04-26  Eric Blake  <ebb9@byu.net>
56286
56287         Fix fflush on mingw.
56288         * modules/fflush (Depends-on): Add freading.
56289         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
56290         but unread data.
56291
56292 2007-04-26  Eric Blake  <ebb9@byu.net>
56293         and Bruno Haible  <bruno@clisp.org>
56294
56295         Implement freading and fwriting.
56296         * lib/freading.c: New file.
56297         * lib/freading.h: Likewise.
56298         * m4/freading.m4: Likewise.
56299         * modules/freading: Likewise.
56300         * modules/freading-tests: Likewise.
56301         * tests/test-freading.c: Likewise.
56302         * lib/fwriting.c: New file.
56303         * lib/fwriting.h: Likewise.
56304         * m4/fwriting.m4: Likewise.
56305         * modules/fwriting: Likewise.
56306         * modules/fwriting-tests: Likewise.
56307         * tests/test-fwriting.c: Likewise.
56308         * MODULES.html.sh (File stream based Input/Output): Mention them.
56309
56310 2007-04-26  Bruno Haible  <bruno@clisp.org>
56311
56312         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
56313         'long' when we assume it.
56314         Suggested by Eric Blake.
56315
56316 2007-04-26  Bruno Haible  <bruno@clisp.org>
56317
56318         Ensure fseeko, ftello are declared on glibc systems.
56319         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
56320         * modules/fseeko (configure.ac-early): Likewise.
56321         * modules/ftello (configure.ac-early): Likewise.
56322         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
56323         AC_FUNC_FSEEKO for this.
56324         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
56325         (gl_CHECK_FSEEKO): Remove macro.
56326
56327 2007-04-26  Bruno Haible  <bruno@clisp.org>
56328
56329         * tests/test-fflush.c (main): Also check the ftell result after
56330         fflush and fseek/fseeko.
56331         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
56332         file descriptor position cache in the stream.
56333         * lib/fseeko.c (rpl_fseeko): Likewise.
56334
56335 2007-04-26  Bruno Haible  <bruno@clisp.org>
56336
56337         * modules/fflush-tests (Depends-on): Add fseeko.
56338
56339 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
56340             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56341
56342         * lib/argz_.h: ensure error_t definition is obtained in same
56343         mechanism system argz.h would have.
56344         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
56345         argz facilities are known bad.  Err on the side of caution if
56346         cross-compiling.
56347
56348 2007-04-25  Eric Blake  <ebb9@byu.net>
56349
56350         * lib/fpurge.c (includes): Use stdlib.h for free.
56351         * tests/test-fflush.c (main): Also test fflush-fseeko.
56352
56353 2007-04-25  Bruno Haible  <bruno@clisp.org>
56354
56355         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
56356         * lib/fseeko.c: New file.
56357         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
56358         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
56359         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
56360         gl_FUNC_FSEEKO.
56361         (gl_FUNC_FSEEKO): Invoke it.
56362         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
56363         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
56364         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
56365
56366 2007-04-25  Bruno Haible  <bruno@clisp.org>
56367
56368         * modules/fflush (Depends-on): Add ftello.
56369
56370 2007-04-25  Bruno Haible  <bruno@clisp.org>
56371
56372         * modules/ftello-tests: New file.
56373         * tests/test-ftello.c: New file.
56374
56375         * modules/ftello: New file.
56376         * m4/ftello.m4: New file.
56377         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
56378         HAVE_FTELLO.
56379         * lib/stdio_.h (ftello): New declaration.
56380         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
56381         HAVE_FTELLO.
56382
56383 2007-04-25  Bruno Haible  <bruno@clisp.org>
56384
56385         * modules/fseeko-tests: New file.
56386         * tests/test-fseeko.c: New file.
56387
56388         * modules/fseeko: New file.
56389         * m4/fseeko.m4: New file.
56390         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
56391         HAVE_FSEEKO.
56392         * lib/stdio_.h (fseeko): New declaration.
56393         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
56394         HAVE_FSEEKO.
56395
56396 2007-04-25  Bruno Haible  <bruno@clisp.org>
56397
56398         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
56399
56400 2007-04-25  Bruno Haible  <bruno@clisp.org>
56401
56402         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
56403         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
56404         * tests/test-unistd.c: Likewise.
56405         * tests/test-fcntl.c: Likewise.
56406
56407 2007-04-23  Eric Blake  <ebb9@byu.net>
56408
56409         * lib/fflush.c: Fix missing include.
56410         Reported by Bruno Haible.
56411
56412 2007-04-23  Bruno Haible  <bruno@clisp.org>
56413
56414         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
56415         Reported by Eric Blake.
56416
56417 2007-04-23  Bruno Haible  <bruno@clisp.org>
56418
56419         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
56420
56421 2007-04-23  Bruno Haible  <bruno@clisp.org>
56422
56423         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
56424
56425 2007-04-23  Bruno Haible  <bruno@clisp.org>
56426
56427         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
56428         Needed on HP-UX 11.
56429
56430 2007-04-16  Eric Blake  <ebb9@byu.net>
56431
56432         Make fflush rely on fpurge.
56433         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
56434         open coding all variants.
56435         * modules/fflush (Depends-on): Add fpurge and unistd.
56436         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
56437         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
56438
56439         Fix --with-tests compilation on cygwin.
56440         * modules/argmatch-tests (Makefile.am): List gnulib library first
56441         in LDADD.
56442         * modules/argp-tests (Makefile.am): Likewise.
56443         * modules/array-list-tests (Makefile.am): Likewise.
56444         * modules/array-oset-tests (Makefile.am): Likewise.
56445         * modules/avltree-list-tests (Makefile.am): Likewise.
56446         * modules/avltree-oset-tests (Makefile.am): Likewise.
56447         * modules/avltreehash-list-tests (Makefile.am): Likewise.
56448         * modules/carray-list-tests (Makefile.am): Likewise.
56449         * modules/dirname-tests (Makefile.am): Likewise.
56450         * modules/frexp-tests (Makefile.am): Likewise.
56451         * modules/isnanl-tests (Makefile.am): Likewise.
56452         * modules/linked-list-tests (Makefile.am): Likewise.
56453         * modules/linkedhash-list-tests (Makefile.am): Likewise.
56454         * modules/lock-tests (Makefile.am): Likewise.
56455         * modules/rbtree-list-tests (Makefile.am): Likewise.
56456         * modules/rbtree-oset-tests (Makefile.am): Likewise.
56457         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
56458         * modules/tls-tests (Makefile.am): Likewise.
56459         * modules/tsearch-tests (Makefile.am): Likewise.
56460         * modules/xvasprintf-tests (Makefile.am): Likewise.
56461
56462         Fix fpurge for cygwin.
56463         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
56464         value.
56465         * modules/fpurge-tests (Depends-on): Clean up trash.
56466
56467 2007-04-16  Simon Josefsson  <simon@josefsson.org>
56468
56469         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
56470
56471         * m4/autobuild.m4: Re-indent.
56472
56473 2007-04-13  Bruno Haible  <bruno@clisp.org>
56474
56475         * modules/fpurge-tests: New file.
56476         * tests/test-fpurge.c: New file.
56477
56478         * modules/fpurge: New file.
56479         * lib/fpurge.h: New file.
56480         * lib/fpurge.c: New file.
56481         * m4/fpurge.m4: New file.
56482
56483 2007-04-13  Bruno Haible  <bruno@clisp.org>
56484
56485         * modules/fbufmode-tests: New file.
56486         * tests/test-fbufmode.c: New file.
56487
56488         * modules/fbufmode: New file.
56489         * lib/fbufmode.h: New file.
56490         * lib/fbufmode.c: New file.
56491         * m4/fbufmode.m4: New file.
56492
56493 2007-04-13  Bruno Haible  <bruno@clisp.org>
56494
56495         * modules/fwritable-tests: New file.
56496         * tests/test-fwritable.c: New file.
56497
56498         * modules/fwritable: New file.
56499         * lib/fwritable.h: New file.
56500         * lib/fwritable.c: New file.
56501         * m4/fwritable.m4: New file.
56502
56503 2007-04-13  Bruno Haible  <bruno@clisp.org>
56504
56505         * modules/freadable-tests: New file.
56506         * tests/test-freadable.c: New file.
56507
56508         * modules/freadable: New file.
56509         * lib/freadable.h: New file.
56510         * lib/freadable.c: New file.
56511         * m4/freadable.m4: New file.
56512
56513 2007-04-13  Bruno Haible  <bruno@clisp.org>
56514
56515         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
56516         MOSTLYCLEANFILES.
56517
56518 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
56519
56520         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
56521         gzip bootstrap.conf to avoid dragging in i18n machinery.
56522         (gnulib_tool_option): Use it.
56523
56524 2007-04-13  Bruno Haible  <bruno@clisp.org>
56525
56526         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
56527         %F directives.
56528         * tests/test-vasprintf-posix.c (test_function): Likewise.
56529         * tests/test-snprintf-posix.h (test_function): Likewise.
56530         * tests/test-sprintf-posix.h (test_function): Likewise.
56531         * tests/test-fprintf-posix.h (test_function): Likewise.
56532         * tests/test-printf-posix.h (test_function): Likewise.
56533         * tests/test-fprintf-posix.out: Likewise.
56534
56535 2007-04-13  Bruno Haible  <bruno@clisp.org>
56536
56537         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
56538         * modules/tls-tests (configure.ac): Likewise.
56539         Reported by Arto C. Nirkko <anirkko@insel.ch>.
56540
56541 2007-04-13  Bruno Haible  <bruno@clisp.org>
56542
56543         * lib/tls.c (glthread_tls_get): Fix return type.
56544         Patch by Arto C. Nirkko <anirkko@insel.ch>.
56545
56546 2007-04-12  Eric Blake  <ebb9@byu.net>
56547
56548         * modules/gettime (Depends-on): Remove gettime.
56549         Reported by Dmitry V. Levin.
56550
56551 2007-04-12  Bruno Haible  <bruno@clisp.org>
56552
56553         * modules/fflush (Include): Mention <stdio.h>.
56554         * modules/strtoimax (Include): Mention <inttypes.h>.
56555         * modules/strtoumax (Include): Likewise.
56556
56557 2007-04-12  Eric Blake  <ebb9@byu.net>
56558
56559         * .cvsignore: New file.
56560         * .gitignore: Likewise.
56561
56562 2007-04-12  Bruno Haible  <bruno@clisp.org>
56563
56564         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
56565         not before, since $(LDADD) often contains libgnu.a.
56566         * modules/striconv-tests (test_striconv_LDADD): Likewise.
56567         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
56568         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
56569         Needed on Cygwin.
56570
56571 2007-04-12  Eric Blake  <ebb9@byu.net>
56572
56573         Work around glibc's failure to flush stdin on fclose.
56574         * lib/closein.c (close_stdin): Flush stdin before closing.
56575
56576         Work around glibc's failure to reset seekable stdin on exit.
56577         * modules/closein: New module.
56578         * lib/closein.c: New file.
56579         * lib/closein.h: Likewise.
56580         * m4/closein.m4: Likewise.
56581         * MODULES.html.sh (File stream based Input/Output): Document it.
56582
56583 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56584
56585         * gnulib-tool: Rename generated 'autobuild' script to
56586         'do-autobuild' in --create-megatestdir output.
56587
56588         * doc/gnulib.texi (Build robot for gnulib): Fix.
56589
56590 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56591
56592         * modules/sysexits (Depends-on): Add absolute-header.
56593
56594 2007-04-12  Eric Blake  <ebb9@byu.net>
56595
56596         No need to preserve errno on success.
56597         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
56598         Reported by Bruno Haible.
56599
56600 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56601
56602         * MODULES.html.sh (Support for maintaining and releasing
56603         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
56604
56605 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56606
56607         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
56608
56609 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56610
56611         * modules/autobuild: New module.
56612
56613         * m4/autobuild.m4: New file.
56614
56615 2007-04-11  Bruno Haible  <bruno@clisp.org>
56616
56617         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
56618         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
56619         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
56620         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
56621         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56622         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56623         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56624         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56625         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56626         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56627         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
56628         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56629         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56630         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
56631         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56632         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56633         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
56634         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56635         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56636         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
56637         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56638         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56639         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
56640         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56641         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56642         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
56643         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56644         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56645         Reported by Eric Blake.
56646
56647 2007-04-11  Bruno Haible  <bruno@clisp.org>
56648
56649         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
56650
56651 2007-04-10  Bruno Haible  <bruno@clisp.org>
56652
56653         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
56654         for NaN and Infinity. Needed on FreeBSD 6.1.
56655         * tests/test-vasnprintf-posix.c (test_function): Undo last change
56656         regarding results for "%010a" of Infinity and NaN.
56657         * tests/test-vasprintf-posix.c (test_function): Likewise.
56658         * tests/test-snprintf-posix.h (test_function): Likewise.
56659         * tests/test-sprintf-posix.h (test_function): Likewise.
56660         * tests/test-fprintf-posix.h (test_function): Likewise.
56661         * tests/test-printf-posix.h (test_function): Likewise.
56662         * tests/test-fprintf-posix.out: Likewise.
56663
56664 2007-04-10  Bruno Haible  <bruno@clisp.org>
56665
56666         * modules/locale-tests: New file.
56667         * tests/test-locale.c: New file.
56668
56669         * modules/locale: New file.
56670         * lib/locale_.h: New file.
56671         * m4/locale_h.m4: New file.
56672
56673 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
56674             Bruno Haible  <bruno@clisp.org>
56675
56676         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
56677         be determined, test for availability of the copysignf, copysign,
56678         copysignl functions.
56679         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
56680         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
56681         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
56682
56683 2007-04-09  Eric Blake  <ebb9@byu.net>
56684
56685         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
56686         * modules/stdio (Makefile.am): Support fflush.
56687         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56688         * modules/fflush: New file.
56689         * lib/fflush.c: Likewise.
56690         * m4/fflush.m4: Likewise.
56691         * modules/fflush-tests: New test.
56692         * tests/test-fflush.c: Likewise.
56693         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
56694
56695 2007-04-06  Bruno Haible  <bruno@clisp.org>
56696
56697         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
56698         (VASNPRINTF): Use signbit for faster determination whether to print a
56699         minus sign.
56700         * modules/vasnprintf (Files): Remove lib/float+.h.
56701         * modules/fprintf-posix (Depends-on): Add signbit.
56702         * modules/snprintf-posix (Depends-on): Likewise.
56703         * modules/sprintf-posix (Depends-on): Likewise.
56704         * modules/vasnprintf-posix (Depends-on): Likewise.
56705         * modules/vasprintf-posix (Depends-on): Likewise.
56706         * modules/vfprintf-posix (Depends-on): Likewise.
56707         * modules/vsnprintf-posix (Depends-on): Likewise.
56708         * modules/vsprintf-posix (Depends-on): Likewise.
56709
56710 2007-04-06  Bruno Haible  <bruno@clisp.org>
56711
56712         * tests/test-frexp.c (main): Test also the sign bit of zero results.
56713         * tests/test-frexpl.c (main): Likewise.
56714         * tests/test-ldexpl.c (main): Likewise.
56715         * modules/frexp-tests (Depends-on): Add signbit.
56716         * modules/frexpl-tests (Depdends-on): Likewise.
56717         * modules/ldexpl-tests (Depdends-on): Likewise.
56718
56719 2007-04-06  Bruno Haible  <bruno@clisp.org>
56720
56721         * modules/signbit-tests: New file.
56722         * tests/test-signbit.c: New file.
56723
56724         * modules/signbit: New file.
56725         * lib/signbitf.c: New file.
56726         * lib/signbitd.c: New file.
56727         * lib/signbitl.c: New file.
56728         * m4/signbit.m4: New file.
56729         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
56730         (signbit): New macro.
56731         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
56732         REPLACE_SIGNBIT.
56733         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
56734         REPLACE_FREXPL into math.h.
56735
56736 2007-04-06  Bruno Haible  <bruno@clisp.org>
56737
56738         * modules/isnanf-nolibm-tests: New file.
56739         * tests/test-isnanf.c: New file.
56740
56741         * modules/isnanf-nolibm: New file.
56742         * lib/isnanf.h: New file.
56743         * lib/isnanf.c: New file.
56744         * lib/isnan.c: Consider the USE_FLOAT macro.
56745         * m4/isnanf.m4: New file.
56746
56747 2007-04-06  Bruno Haible  <bruno@clisp.org>
56748
56749         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
56750         (Link): New section.
56751
56752         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
56753
56754 2007-04-06  Bruno Haible  <bruno@clisp.org>
56755
56756         Assume the 'long double' type.
56757         * m4/longdouble.m4: Remove file.
56758         * config/srclist.txt: Don't mention longdouble.m4.
56759         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
56760         * lib/float+.h: Likewise.
56761         * lib/frexp.c: Likewise.
56762         * lib/printf-args.h: Likewise.
56763         * lib/printf-args.c: Likewise.
56764         * lib/printf-frexp.c: Likewise.
56765         * lib/printf-parse.c: Likewise.
56766         * lib/vasnprintf.c: Likewise.
56767         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
56768         * m4/intl.m4: Likewise.
56769         * m4/isnanl.m4: Likewise.
56770         * m4/printf.m4: Likewise.
56771         * m4/printf-frexpl.m4: Likewise.
56772         * m4/vasnprintf.m4: Likewise.
56773         * modules/allocsa (Files): Remove m4/longdouble.m4.
56774         * modules/gettext (Files): Likewise.
56775         * modules/relocatable-prog-wrapper (Files): Likewise.
56776         * modules/vasnprintf (Files): Likewise.
56777         * modules/isnanl (Files): Likewise.
56778         (Include): Simplify.
56779         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
56780         (Include): Simplify.
56781         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
56782         (Include): Simplify.
56783         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
56784         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56785         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
56786         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56787         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
56788         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56789         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
56790         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56791         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
56792         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56793         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
56794         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56795         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
56796         * tests/test-isnanl.c: Likewise.
56797         * tests/test-snprintf-posix.h: Likewise.
56798         * tests/test-sprintf-posix.h: Likewise.
56799         * tests/test-vasnprintf-posix.c: Likewise.
56800         * tests/test-vasnprintf-posix2.c: Likewise.
56801         * tests/test-vasprintf-posix.c: Likewise.
56802
56803 2007-04-06  Bruno Haible  <bruno@clisp.org>
56804
56805         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
56806         * lib/math_.h [__DECC]: Include the overridden include file through
56807         #include_next, outside the double-inclusion guard.
56808         * lib/stdio_.h [__DECC]: Likewise.
56809         * lib/stdlib_.h [__DECC]: Likewise.
56810         * lib/string_.h [__DECC]: Likewise.
56811         * lib/time_.h [__DECC]: Likewise.
56812         * lib/wchar_.h [__DECC]: Likewise.
56813         * lib/wctype_.h [__DECC]: Likewise.
56814         * lib/inttypes_.h [__DECC]: Likewise.
56815         Reported by Albert Chin <china@thewrittenword.com> in
56816         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
56817
56818 2007-04-04  Eric Blake  <ebb9@byu.net>
56819
56820         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
56821         1.5.x.
56822
56823 2007-04-04  Bruno Haible  <bruno@clisp.org>
56824
56825         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
56826         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
56827
56828 2007-04-04  Bruno Haible  <bruno@clisp.org>
56829
56830         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
56831         results for "%010a" of Infinity and NaN.
56832         * tests/test-vasprintf-posix.c (test_function): Likewise.
56833         * tests/test-snprintf-posix.h (test_function): Likewise.
56834         * tests/test-sprintf-posix.h (test_function): Likewise.
56835         * tests/test-fprintf-posix.h (test_function): Remove these tests.
56836         * tests/test-printf-posix.h (test_function): Likewise.
56837         * tests/test-fprintf-posix.out: Update.
56838         Needed for FreeBSD 6.1.
56839
56840 2007-04-04  Bruno Haible  <bruno@clisp.org>
56841
56842         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
56843         directly used by the gnulib modules nor by gnulib-tool.
56844
56845 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
56846
56847         * DEPENDENCIES: Give overall description of version dependency
56848         desirability.  Use more-typical names for apps.
56849         Add shell, coreutils, diffutils, grep, tar, gzip.
56850
56851 2007-04-04  Simon Josefsson  <simon@josefsson.org>
56852
56853         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
56854
56855 2007-04-04  Karl Berry  <karl@gnu.org>
56856
56857         * MODULES.html.sh (func_module): missing '.
56858
56859 2007-04-03  Bruno Haible  <bruno@clisp.org>
56860
56861         * modules/argmatch-tests (Makefile.am): New variable
56862         test_argmatch_LDADD.
56863         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
56864         * modules/array-list-tests (Makefile.am): New variable
56865         test_array_list_LDADD.
56866         * modules/array-oset-tests (Makefile.am): New variable
56867         test_array_oset_LDADD.
56868         * modules/avltree-list-tests (Makefile.am): New variable
56869         test_avltree_list_LDADD.
56870         * modules/avltree-oset-tests (Makefile.am): New variable
56871         test_avltree_oset_LDADD.
56872         * modules/avltreehash-list-tests (Makefile.am): New variable
56873         test_avltreehash_list_LDADD.
56874         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
56875         test_canonicalize_lgpl_LDADD.
56876         * modules/carray-list-tests (Makefile.am): New variable
56877         test_carray_list_LDADD.
56878         * modules/dirname-tests (Makefile.am): New variable
56879         test_dirname_LDADD.
56880         * modules/linked-list-tests (Makefile.am): New variable
56881         test_linked_list_LDADD.
56882         * modules/linkedhash-list-tests (Makefile.am): New variable
56883         test_linkedhash_list_LDADD.
56884         * modules/rbtree-list-tests (Makefile.am): New variable
56885         test_rbtree_list_LDADD.
56886         * modules/rbtree-oset-tests (Makefile.am): New variable
56887         test_rbtree_oset_LDADD.
56888         * modules/rbtreehash-list-tests (Makefile.am): New variable
56889         test_rbtreehash_list_LDADD.
56890         * modules/xvasprintf-tests (Makefile.am): New variable
56891         test_xvasprintf_LDADD.
56892         Reported by Eric Blake.
56893
56894 2007-04-03  Eric Blake  <ebb9@byu.net>
56895
56896         * DEPENDENCIES: Weaken m4 requirements.
56897
56898 2007-04-03  Bruno Haible  <bruno@clisp.org>
56899
56900         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
56901         * modules/isnanl-tests (configure.ac): Likewise.
56902
56903 2007-04-03  Ben Pfaff  <blp@gnu.org>
56904
56905         * modules/iconv_open: Add $(srcdir)/ to source directory
56906         references in Makefile fragments that call gperf, to fix VPATH
56907         builds.
56908
56909 2007-04-03  Bruno Haible  <bruno@clisp.org>
56910
56911         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
56912         * lib/ldexpl.c: Undo last change.
56913
56914 2007-04-03  Bruno Haible  <bruno@clisp.org>
56915
56916         * modules/printf-frexpl (Depends-on): Undo last change.
56917         (Files): Add m4/ldexpl.m4.
56918
56919 2007-04-03  Bruno Haible  <bruno@clisp.org>
56920
56921         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
56922         * modules/isnanl (Link): New section.
56923
56924         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
56925         * modules/frexp (Link): New section.
56926
56927         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
56928         * modules/frexpl (Link): New section.
56929
56930         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
56931         * modules/ldexpl (Link): New section.
56932
56933 2007-04-03  Bruno Haible  <bruno@clisp.org>
56934
56935         * modules/TEMPLATE-EXTENDED: New file.
56936         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
56937
56938 2007-04-03  Bruno Haible  <bruno@clisp.org>
56939
56940         * DEPENDENCIES: New file.
56941         Suggested by Simon Josefsson.
56942
56943 2007-04-03  Bruno Haible  <bruno@clisp.org>
56944
56945         * doc/gnulib.texi: Escape @.
56946
56947 2007-04-03  James Youngman  <jay@gnu.org>
56948         and Paul Eggert  <eggert@cs.ucla.edu>
56949
56950         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
56951         birthtime on all systems that have birthtime, not just those which
56952         use st_birthtimensec rather than st_birthtim.  Putting zero in
56953         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
56954         that the birth time is not available for files on an NFS mount.
56955
56956 2007-04-03  Simon Josefsson  <simon@josefsson.org>
56957
56958         * modules/memxor: Move back from crypto/, suggested by Bruno.
56959         * modules/crypto/hmac-sha1: Fix memxor dependency.
56960
56961         * modules/crypto/gc: Moved from ../.
56962
56963 2007-04-02  Eric Blake  <ebb9@byu.net>
56964
56965         * lib/ldexpl.c (includes): Avoid libm.
56966
56967         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
56968
56969 2007-04-02  Bruno Haible  <bruno@clisp.org>
56970
56971         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
56972         on IRIX.
56973
56974 2007-04-02  Bruno Haible  <bruno@clisp.org>
56975
56976         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
56977         x86 or x86_64 platforms running MacOS X.
56978         Reported by Ryan Schmidt <@ryandesign.com>.
56979
56980 2007-04-02  Bruno Haible  <bruno@clisp.org>
56981
56982         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
56983         i386.
56984
56985 2007-04-01  Simon Josefsson  <simon@josefsson.org>
56986
56987         * modules/crypto/arcfour: Moved from ../.
56988         * modules/crypto/arcfour-tests: Moved from ../.
56989         * modules/crypto/arctwo: Moved from ../.
56990         * modules/crypto/arctwo-tests: Moved from ../.
56991         * modules/crypto/des: Moved from ../.
56992         * modules/crypto/des-tests: Moved from ../.
56993         * modules/crypto/gc-arcfour: Moved from ../.
56994         * modules/crypto/gc-arcfour-tests: Moved from ../.
56995         * modules/crypto/gc-arctwo: Moved from ../.
56996         * modules/crypto/gc-arctwo-tests: Moved from ../.
56997         * modules/crypto/gc-des: Moved from ../.
56998         * modules/crypto/gc-des-tests: Moved from ../.
56999         * modules/crypto/gc-hmac-md5: Moved from ../.
57000         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
57001         * modules/crypto/gc-hmac-sha1: Moved from ../.
57002         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
57003         * modules/crypto/gc-md2: Moved from ../.
57004         * modules/crypto/gc-md2-tests: Moved from ../.
57005         * modules/crypto/gc-md4: Moved from ../.
57006         * modules/crypto/gc-md4-tests: Moved from ../.
57007         * modules/crypto/gc-md5: Moved from ../.
57008         * modules/crypto/gc-md5-tests: Moved from ../.
57009         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
57010         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
57011         * modules/crypto/gc-random: Moved from ../.
57012         * modules/crypto/gc-rijndael: Moved from ../.
57013         * modules/crypto/gc-rijndael-tests: Moved from ../.
57014         * modules/crypto/gc-sha1: Moved from ../.
57015         * modules/crypto/gc-sha1-tests: Moved from ../.
57016         * modules/crypto/gc-tests: Moved from ../.
57017         * modules/crypto/hmac-md5: Moved from ../.
57018         * modules/crypto/hmac-md5-tests: Moved from ../.
57019         * modules/crypto/hmac-sha1: Moved from ../.
57020         * modules/crypto/hmac-sha1-tests: Moved from ../.
57021         * modules/crypto/md2: Moved from ../.
57022         * modules/crypto/md2-tests: Moved from ../.
57023         * modules/crypto/md4: Moved from ../.
57024         * modules/crypto/md4-tests: Moved from ../.
57025         * modules/crypto/md5: Moved from ../.
57026         * modules/crypto/md5-tests: Moved from ../.
57027         * modules/crypto/memxor: Moved from ../.
57028         * modules/crypto/rijndael: Moved from ../.
57029         * modules/crypto/rijndael-tests: Moved from ../.
57030         * modules/crypto/sha1: Moved from ../.
57031
57032 2007-03-30  James Youngman  <jay@gnu.org>
57033
57034         * tests/test-stat-time.c (prepare_test): use chmod() rather than
57035         rename() to change the ctime of a file (because ctime is unaffected
57036         by rename on jfs2 on AIX 5.1).
57037         (main): Start by doing cleanup, in case a previous run failed leaving
57038         test files behind.
57039
57040 2007-03-31  Bruno Haible  <bruno@clisp.org>
57041
57042         Support old proprietary implementations of iconv.
57043         * modules/iconv_open: New file.
57044         * lib/iconv_.h: New file.
57045         * m4/iconv_h.m4: New file.
57046         * lib/iconv_open.c: New file.
57047         * lib/iconv_open-aix.gperf: New file.
57048         * lib/iconv_open-hpux.gperf: New file.
57049         * lib/iconv_open-irix.gperf: New file.
57050         * lib/iconv_open-osf.gperf: New file.
57051         * m4/iconv_open.m4: New file.
57052         * modules/linebreak (Depends-on): Add iconv_open.
57053         * modules/striconv (Depends-on): Likewise.
57054         * modules/striconveh (Depends-on): Likewise.
57055         * modules/unicodeio (Depends-on): Likewise.
57056         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
57057         (iconv_t)(-1).
57058         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
57059         conversion if cd is (iconv_t)(-1).
57060         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
57061         is not possible.
57062
57063 2007-03-31  Bruno Haible  <bruno@clisp.org>
57064
57065         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
57066         work on Solaris either. Protect also second use of "autodetect_jp".
57067
57068 2007-03-31  Bruno Haible  <bruno@clisp.org>
57069
57070         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
57071         the function is not present.
57072
57073 2007-03-31  Bruno Haible  <bruno@clisp.org>
57074
57075         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
57076         the function is not present.
57077
57078 2007-03-31  Bruno Haible  <bruno@clisp.org>
57079
57080         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
57081         a bug in HP-UX iconv_open().
57082
57083 2007-03-31  Bruno Haible  <bruno@clisp.org>
57084
57085         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
57086         (Mathematics <math.h>): New section, add fpieee.
57087         (Input/output <stdio.h>): Add fseterr.
57088         (Mathematics <math.h>): New section, add printf-frexp.
57089         (Container data structures): Add sublist.
57090         (Core language properties): Add fpucw, inline.
57091         (Functions for greatest-width integer types <inttypes.h>): Add
57092         imaxabs, imaxdiv, inttypes.
57093         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
57094         isnanl-nolibm, ldexp.
57095         (Mathematics <math.h>): New section, add printf-frexpl.
57096         (Support for systems lacking POSIX:2001): Add fprintf-posix,
57097         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
57098         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
57099         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
57100         (Unicode string functions): Add unistr/u*-mbtoucr.
57101         (Java): Add javacomp-script, javaexec-script.
57102         (C#): Add csharpcomp-script, csharpexec-script.
57103         (Support for building libraries and executables): Add havelib,
57104         relocatable-*.
57105         (Support for maintaining and releasing projects): Renamed from
57106         'Support for maintaining and release projects'. Add announce-gen.
57107
57108 2007-03-31  Bruno Haible  <bruno@clisp.org>
57109
57110         * README: Talk primarily about git.
57111         (git and CVS): Renamed from CVS.
57112         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
57113         gnulib is available through git.
57114         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
57115
57116 2007-03-30  Bruno Haible  <bruno@clisp.org>
57117
57118         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
57119         * lib/poll_.h: Likewise.
57120         * lib/stat_.h: Likewise.
57121         * lib/sys_time_.h: Likewise.
57122         * lib/sysexit_.h: Likewise.
57123         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
57124         * lib/stdbool_.h: Likewise.
57125         * lib/byteswap_.h: Add double-inclusion guard.
57126
57127 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
57128
57129         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
57130
57131 2007-03-30  Karl Berry  <karl@gnu.org>
57132
57133         * config/srclist-update: double space after USA in the license
57134         substitution, since that's how it's usually (?) written.
57135
57136 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
57137
57138         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
57139         reported by Bruno Haible.
57140
57141 2007-03-29  Bruno Haible  <bruno@clisp.org>
57142
57143         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
57144         a bug in AIX iconv().
57145
57146 2007-03-29  Bruno Haible  <bruno@clisp.org>
57147
57148         * modules/ldexpl-tests: New file.
57149         * tests/test-ldexpl.c: New file.
57150
57151 2007-03-29  Bruno Haible  <bruno@clisp.org>
57152
57153         * lib/ldexpl.c: Include fpucw.h.
57154         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
57155         multiplication.
57156         * modules/ldexpl (Depends-on): Add fpucw.
57157
57158 2007-03-29  Bruno Haible  <bruno@clisp.org>
57159
57160         * modules/ldexpl: New file.
57161         * m4/ldexpl.m4: New file.
57162         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
57163         set.
57164         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
57165         REPLACE_LDEXPL.
57166         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
57167         REPLACE_LDEXPL.
57168         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
57169         gl_FUNC_LDEXPL_WORKS.
57170         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
57171         * modules/mathl (Files): Remove lib/ldexpl.c.
57172         (Depends-on): Add ldexpl.
57173
57174 2007-03-29  Bruno Haible  <bruno@clisp.org>
57175
57176         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
57177
57178 2007-03-29  Bruno Haible  <bruno@clisp.org>
57179
57180         * tests/test-striconveh.c (main): Don't assume that a direct conversion
57181         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
57182         and possibly also HP-UX.
57183         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
57184         work on AIX, IRIX, HP-UX, OSF/1.
57185         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
57186         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
57187         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
57188         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
57189         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
57190         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
57191
57192 2007-03-29  Bruno Haible  <bruno@clisp.org>
57193
57194         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
57195
57196 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
57197
57198         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
57199         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
57200
57201 2007-03-29  Eric Blake  <ebb9@byu.net>
57202
57203         * lib/acl-internal.h: Remove redundant include.
57204         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
57205         Cygwin when a file is locked.
57206
57207 2007-03-29  Bruno Haible  <bruno@clisp.org>
57208
57209         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
57210         file.
57211         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
57212
57213 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
57214
57215         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
57216         try to remove a parent directory if the child couldn't be removed
57217         (except for the first rmdir, which could fail because the child
57218         doesn't exist).  Problem reported by Jeff Blaine in
57219         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
57220
57221 2007-03-28  Bruno Haible  <bruno@clisp.org>
57222
57223         * lib/striconveh.c (utf8conv_carefully): New function.
57224         (mem_cd_iconveh_internal): Invoke it.
57225
57226 2007-03-28  Bruno Haible  <bruno@clisp.org>
57227
57228         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
57229         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
57230         input.
57231         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
57232         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
57233         unistr/u8-uctomb.
57234
57235 2007-03-28  Bruno Haible  <bruno@clisp.org>
57236
57237         * modules/unistr/u8-mbtoucr: New file.
57238         * lib/unistr/u8-mbtoucr.c: New file.
57239         * modules/unistr/u16-mbtoucr: New file.
57240         * lib/unistr/u16-mbtoucr.c: New file.
57241         * modules/unistr/u16-mbtoucr: New file.
57242         * lib/unistr/u16-mbtoucr.c: New file.
57243         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
57244
57245 2007-03-27  Simon Josefsson  <simon@josefsson.org>
57246             Bruno Haible  <bruno@clisp.org>
57247
57248         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
57249         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
57250         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
57251
57252         * m4/stdio_h.m4: Add stubs for vasprintf too.
57253
57254         * modules/stdio: Support vasprintf in sed command.
57255
57256         * modules/vasprintf: Depend on stdio for prototypes.  Remove
57257         vasprintf.h.  Add stdio module indicator.
57258
57259         * lib/stdio_.h: Declare asprintf and vasprintf, based on
57260         vasprintf.h.
57261
57262         * lib/vasprintf.h: File removed.
57263
57264         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
57265         * lib/vasprintf.c: Ditto.
57266         * lib/xvasprintf.c: Ditto.
57267         * tests/test-vasprintf-posix.c: Ditto.
57268         * tests/test-vasprintf.c: Ditto.
57269
57270 2007-03-27  Bruno Haible  <bruno@clisp.org>
57271
57272         Make vasnprintf multithread-safe.
57273         * lib/vasnprintf.c (decimal_point_char): New function.
57274         (VASNPRINTF): Use it.
57275         Suggested by Simon Josefsson.
57276
57277 2007-03-27  Eric Blake  <ebb9@byu.net>
57278
57279         Support sub-second birthtime on cygwin.
57280         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
57281         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
57282         (get_stat_birthtime): Also work with st_birthtim.
57283
57284 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
57285
57286         * lib/stat-time.h (USE_BIRTHTIME): Remove.
57287         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
57288         (get_stat_birthtime_ns): Do not try to use "spare" fields.
57289         (get_stat_birthtime_ns): Simplify compile-time tests.
57290         (get_stat_birthtime): Change the API to look like
57291         get_stat_mtime etc., except return a negative tv_nsec on error.
57292         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
57293         Don't check for "spare" fields.
57294         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
57295         or for struct stat.st_birthtime, as these tests aren't used.
57296         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
57297
57298 2007-03-27  Bruno Haible  <bruno@clisp.org>
57299
57300         * lib/stat-time.h: Include <sys/stat.h>.
57301
57302 2007-03-27  James Youngman  <jay@gnu.org>
57303
57304         * lib/stat-time.h (get_stat_birthtime): New function for
57305           retrieving st_birthtime as provided by UFS2 (hence *BSD).
57306         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
57307           and its variants.
57308         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
57309         * modules/stat-time-test: New file.
57310         * tests/test-stat-time.c: New test, devised by Bruno Haible.
57311
57312 2007-03-26  Bruno Haible  <bruno@clisp.org>
57313
57314         Better support of signalling NaNs.
57315         * lib/atanl.c: Include isnanl.h.
57316         (atanl): Perform test for NaN at the beginning of the function and
57317         through a call to isnanl.
57318         * lib/cosl.c: Include isnanl.h.
57319         (cosl): Perform test for NaN at the beginning of the function and
57320         through a call to isnanl.
57321         * lib/ldexpl.c: Include isnanl.h.
57322         (ldexpl): Perform test for NaN through a call to isnanl.
57323         * lib/logl.c: Include isnanl.h.
57324         (logl): Perform test for NaN at the beginning of the function and
57325         through a call to isnanl.
57326         * lib/sinl.c: Include isnanl.h.
57327         (sinl): Perform test for NaN at the beginning of the function and
57328         through a call to isnanl.
57329         * lib/sqrtl.c: Include isnanl.h.
57330         (sqrtl): Perform test for NaN at the beginning of the function and
57331         through a call to isnanl.
57332         * lib/tanl.c: Include isnanl.h.
57333         (tanl): Perform test for NaN at the beginning of the function and
57334         through a call to isnanl.
57335         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
57336         * modules/mathl (Depends-on): Add isnanl.
57337
57338 2007-03-26  Eric Blake  <ebb9@byu.net>
57339
57340         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
57341         regression in logic sense of previous patch.
57342
57343 2007-03-26  Bruno Haible  <bruno@clisp.org>
57344
57345         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
57346         unportable shell command "if ! ...".
57347         Reported by Ralf Wildenhues.
57348
57349 2007-03-25  Bruno Haible  <bruno@clisp.org>
57350
57351         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
57352         <sysexits.h> file, and only add EX_CONFIG.
57353         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
57354         absolute file name and whether it is sufficient. Substitute also
57355         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
57356         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
57357         ABSOLUTE_SYSEXITS_H into sysexits.h.
57358
57359 2007-03-25  Bruno Haible  <bruno@clisp.org>
57360
57361         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
57362         hints is NULL.
57363
57364 2007-03-25  Bruno Haible  <bruno@clisp.org>
57365
57366         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
57367         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
57368
57369 2007-03-25  Bruno Haible  <bruno@clisp.org>
57370
57371         * lib/vasnprintf.c: Include langinfo.h.
57372         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
57373         multithread-safe.
57374         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
57375         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
57376         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57377         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57378         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57379         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57380         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57381         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
57382         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57383         Reported by Simon Josefsson.
57384
57385 2007-03-25  Bruno Haible  <bruno@clisp.org>
57386
57387         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
57388         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
57389         * modules/vasnprintf (Depends-on): Add stdint.
57390
57391 2007-03-25  Bruno Haible  <bruno@clisp.org>
57392
57393         * modules/fpieee: New file.
57394         * m4/fpieee.m4: New file.
57395         * modules/isnan-nolibm (Depends-on): Add fpieee.
57396         * modules/isnanl-nolibm (Depends-on): Add fpieee.
57397         * modules/isnanl (Depends-on): Add fpieee.
57398
57399 2007-03-25  Bruno Haible  <bruno@clisp.org>
57400
57401         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
57402
57403 2007-03-25  Bruno Haible  <bruno@clisp.org>
57404
57405         Avoid test failures on IRIX 6.5.
57406         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
57407         (main): Use it.
57408         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
57409         macros.
57410         (main): Use them.
57411
57412 2007-03-25  Bruno Haible  <bruno@clisp.org>
57413
57414         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
57415         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
57416         exists but doesn't work.
57417         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
57418         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
57419         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
57420         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
57421         math.h.
57422
57423 2007-03-25  Bruno Haible  <bruno@clisp.org>
57424
57425         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
57426         returns inf. Needed on IRIX 6.5.
57427
57428 2007-03-25  Bruno Haible  <bruno@clisp.org>
57429
57430         * tests/test-frexpl.c: Include isnanl-nolibm.h.
57431         (main): Use isnanl instead of x != x idiom.
57432         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
57433
57434         * tests/test-frexp.c: Include isnan.h.
57435         (main): Use isnan instead of x != x idiom.
57436         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
57437
57438 2007-03-25  Bruno Haible  <bruno@clisp.org>
57439
57440         * tests/test-frexp.c (NaN): New function/macro.
57441         (main): Use it instead of 0.0 / 0.0.
57442         * tests/test-isnan.c (NaN): New function/macro.
57443         (main): Use it instead of 0.0 / 0.0.
57444         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
57445         (test_function): Use it instead of 0.0 / 0.0.
57446         * tests/test-vasprintf-posix.c (NaN): New function/macro.
57447         (test_function): Use it instead of 0.0 / 0.0.
57448         * tests/test-snprintf-posix.h (NaN): New function/macro.
57449         (test_function): Use it instead of 0.0 / 0.0.
57450         * tests/test-sprintf-posix.h (NaN): New function/macro.
57451         (test_function): Use it instead of 0.0 / 0.0.
57452         * tests/test-fprintf-posix.h (NaN): New function/macro.
57453         (test_function): Use it instead of 0.0 / 0.0.
57454         * tests/test-printf-posix.h (NaN): New function/macro.
57455         (test_function): Use it instead of 0.0 / 0.0.
57456
57457         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
57458
57459 2007-03-25  Bruno Haible  <bruno@clisp.org>
57460
57461         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
57462
57463 2007-03-25  Bruno Haible  <bruno@clisp.org>
57464
57465         * lib/regexec.c (merge_state_with_log): Make static.
57466
57467 2007-03-25  Bruno Haible  <bruno@clisp.org>
57468
57469         * lib/trigl.c (kernel_rem_pio2): Make static.
57470
57471 2007-03-25  Bruno Haible  <bruno@clisp.org>
57472
57473         * lib/sincosl.c (sincosl_table): Make static.
57474
57475 2007-03-25  Bruno Haible  <bruno@clisp.org>
57476
57477         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
57478         if the compiler does not support C99.
57479
57480 2007-03-25  Bruno Haible  <bruno@clisp.org>
57481
57482         * modules/time (Makefile.am): Ensure all rule action lines start with a
57483         tab.
57484
57485 2007-03-24  Bruno Haible  <bruno@clisp.org>
57486
57487         * modules/tsearch-tests: New file.
57488         * tests/test-tsearch.sh: New file.
57489         * tests/test-tsearch.c: New file, mostly copied from glibc.
57490
57491         * modules/search-tests: New file.
57492         * tests/test-search.c: New file.
57493
57494         * modules/search: New file.
57495         * lib/search_.h: New file, incorporating lib/tsearch.h.
57496         * m4/search_h.m4: New file.
57497         * lib/tsearch.h: Remove file.
57498         * lib/tsearch.c: Include search.h instead of tsearch.h.
57499         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
57500         HAVE_TSEARCH.
57501         * modules/tsearch (Files): Remove lib/tsearch.h.
57502         (Depends-on): Add search.
57503         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
57504         (Include): Change tsearch.h into search.h.
57505
57506 2007-03-24  Bruno Haible  <bruno@clisp.org>
57507
57508         * modules/fpucw: New file.
57509         * lib/fpucw.h: New file.
57510         * lib/frexp.c: Include fpucw.h.
57511         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57512         (FUNC): Use them.
57513         * lib/printf-frexp.c: Include fpucw.h.
57514         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57515         (FUNC): Use them.
57516         * lib/vasnprintf.c: Include fpucw.h.
57517         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
57518         'long double' calculations.
57519         * tests/test-frexpl.c: Include fpucw.h.
57520         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57521         * tests/test-printf-frexpl.c: Include fpucw.h.
57522         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57523         * modules/frexpl (Depends-on): Add fpucw.
57524         * modules/printf-frexpl (Depends-on): Likewise.
57525         * modules/fprintf-posix (Depends-on): Likewise.
57526         * modules/snprintf-posix (Depends-on): Likewise.
57527         * modules/sprintf-posix (Depends-on): Likewise.
57528         * modules/vasnprintf-posix (Depends-on): Likewise.
57529         * modules/vasprintf-posix (Depends-on): Likewise.
57530         * modules/vfprintf-posix (Depends-on): Likewise.
57531         * modules/vsnprintf-posix (Depends-on): Likewise.
57532         * modules/vsprintf-posix (Depends-on): Likewise.
57533         * modules/frexpl-tests (Depends-on): Likewise.
57534         * modules/printf-frexpl-tests (Depends-on): Likewise.
57535
57536 2007-03-24  Bruno Haible  <bruno@clisp.org>
57537
57538         * lib/float+.h: New file.
57539         * lib/isnan.c: Include float+.h.
57540         (SIZE): New macro.
57541         (FUNC): Compare only SIZE bytes of the value.
57542         * lib/vasnprintf.c: Include float+.h.
57543         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
57544         SIZEOF_LDBL or SIZEOF_DBL bytes.
57545         * modules/isnan-nolibm (Files): Add lib/float+.h.
57546         * modules/isnanl-nolibm (Files): Add lib/float+.h.
57547         * modules/isnanl (Files): Add lib/float+.h.
57548         * modules/vasnprintf (Files): Add lib/float+.h.
57549
57550 2007-03-24  Bruno Haible  <bruno@clisp.org>
57551
57552         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
57553         include isnanl-nolibm.h.
57554
57555 2007-03-24  Bruno Haible  <bruno@clisp.org>
57556
57557         * tests/test-read-file.c (main): Don't produce spurious output for
57558         expected situations. Make the test fail if it encountered unexpected
57559         results.
57560
57561 2007-03-24  Bruno Haible  <bruno@clisp.org>
57562
57563         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
57564         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
57565
57566 2007-03-24  Bruno Haible  <bruno@clisp.org>
57567
57568         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
57569
57570 2007-03-24  Bruno Haible  <bruno@clisp.org>
57571
57572         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
57573         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
57574
57575         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
57576         * modules/utf8-ucs4: Turn into a symbolic link to module
57577         unistr/u8-mbtouc.
57578
57579         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
57580         utf8-ucs4-unsafe.
57581         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
57582         unistr/u8-mbtouc-unsafe.
57583
57584         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
57585         * modules/utf16-ucs4: Turn into a symbolic link to module
57586         unistr/u16-mbtouc.
57587
57588         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
57589         utf16-ucs4-unsafe.
57590         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
57591         unistr/u16-mbtouc-unsafe.
57592
57593         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
57594         * modules/ucs4-utf8: Turn into a symbolic link to module
57595         unistr/u8-ubtomb.
57596
57597         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
57598         * modules/ucs4-utf16: Turn into a symbolic link to module
57599         unistr/u16-ubtomb.
57600
57601 2007-03-24  Bruno Haible  <bruno@clisp.org>
57602
57603         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
57604         Enable the function only if HAVE_INLINE.
57605         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
57606         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
57607         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
57608         Enable the function only if HAVE_INLINE.
57609         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
57610         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
57611         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
57612         Enable the function only if HAVE_INLINE.
57613         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
57614         Enable the function only if HAVE_INLINE.
57615         * modules/utf8-ucs4: Update.
57616         * modules/utf8-ucs4-unsafe: Update.
57617         * modules/utf16-ucs4: Update.
57618         * modules/utf16-ucs4-unsafe: Update.
57619         * modules/ucs4-utf8: Update.
57620         * modules/ucs4-utf16: Update.
57621
57622 2007-03-24  Bruno Haible  <bruno@clisp.org>
57623
57624         * lib/utf8-ucs4.h: Remove file.
57625         * lib/utf8-ucs4-unsafe.h: Remove file.
57626         * lib/utf16-ucs4.h: Remove file.
57627         * lib/utf16-ucs4-unsafe.h: Remove file.
57628         * lib/ucs4-utf8.h: Remove file.
57629         * lib/ucs4-utf16.h: Remove file.
57630         * lib/unistr.h: Include their previous contents.
57631         * m4/utf-ucs4.m4: Remove file.
57632         * m4/ucs4-utf.m4: Remove file.
57633         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
57634         (Depends-on): Add unistr/base.
57635         (configure.ac): Remove gl_UTF_UCS4.
57636         (Makefile.am): Update.
57637         (Include): Change to unistr.h.
57638         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
57639         (Depends-on): Add unistr/base.
57640         (configure.ac): Remove gl_UTF_UCS4.
57641         (Makefile.am): Update.
57642         (Include): Change to unistr.h.
57643         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
57644         (Depends-on): Add unistr/base.
57645         (configure.ac): Remove gl_UTF_UCS4.
57646         (Makefile.am): Update.
57647         (Include): Change to unistr.h.
57648         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
57649         (Depends-on): Add unistr/base.
57650         (configure.ac): Remove gl_UTF_UCS4.
57651         (Makefile.am): Update.
57652         (Include): Change to unistr.h.
57653         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
57654         (Depends-on): Add unistr/base.
57655         (configure.ac): Remove gl_UCS4_UTF.
57656         (Makefile.am): Update.
57657         (Include): Change to unistr.h.
57658         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
57659         (Depends-on): Add unistr/base.
57660         (configure.ac): Remove gl_UCS4_UTF.
57661         (Makefile.am): Update.
57662         (Include): Change to unistr.h.
57663         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
57664         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
57665         utf8-ucs4-unsafe.h.
57666         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
57667         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
57668         utf16-ucs4-unsafe.h.
57669         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
57670         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
57671         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
57672         * lib/unistr/u8-strchr.c: Likewise.
57673         * lib/unistr/u8-strrchr.c: Likewise.
57674         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
57675         * lib/unistr/u16-strchr.c: Likewise.
57676         * lib/unistr/u16-strrchr.c: Likewise.
57677         * lib/striconveh.c: Update.
57678         * lib/linebreak.c: Update.
57679
57680 2007-03-24  Bruno Haible  <bruno@clisp.org>
57681
57682         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
57683         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
57684
57685 2007-03-22  Bruno Haible  <bruno@clisp.org>
57686
57687         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
57688
57689 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
57690
57691         * MODULES.html.sh (File system functions): New module write-any-file.
57692         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
57693         * m4/write-any-file.m4: New files.
57694
57695 2007-03-23  Eric Blake  <ebb9@byu.net>
57696
57697         * gnulib-tool: Rearrange space-tab sequences, since some editors
57698         like to eat them.
57699
57700 2007-03-23  Eric Blake  <ebb9@byu.net>
57701
57702         * lib/version-etc.c (version_etc_va): Update license wording to
57703         be more concise.  Recommended by Richard Stallman.
57704
57705 2007-03-22  Bruno Haible  <bruno@clisp.org>
57706
57707         * lib/poll.c (MSG_PEEK): New fallback definition.
57708
57709 2007-03-22  Bruno Haible  <bruno@clisp.org>
57710
57711         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
57712         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
57713         (main): Update.
57714         Fixes a compilation error on BeOS.
57715
57716 2007-03-22  Bruno Haible  <bruno@clisp.org>
57717
57718         * modules/frexpl-tests: New file.
57719         * tests/test-frexpl.c: New file.
57720
57721         * modules/frexpl: New file.
57722         * m4/frexpl.m4: New file.
57723         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
57724         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
57725         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
57726         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
57727         (Depends-on): Add frexpl. Remove isnanl-nolibm.
57728         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
57729
57730 2007-03-22  Bruno Haible  <bruno@clisp.org>
57731
57732         * lib/frexpl.c: Share code with lib/frexp.c.
57733         * modules/mathl (Files): Add lib/frexp.c.
57734         (Depends-on): Add isnanl-nolibm.
57735
57736 2007-03-22  Bruno Haible  <bruno@clisp.org>
57737
57738         * modules/printf-frexp (Files): Add m4/frexp.m4.
57739         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
57740         only if the found frexp function actually works.
57741
57742 2007-03-22  Bruno Haible  <bruno@clisp.org>
57743
57744         * lib/frexp.c: Remove older implementation that uses divisions.
57745
57746 2007-03-21  Bruno Haible  <bruno@clisp.org>
57747
57748         * modules/frexp-tests: New file.
57749         * tests/test-frexp.c: New file.
57750
57751         * modules/frexp: New file.
57752         * lib/frexp.c: New file.
57753         * m4/frexp.m4: New file.
57754         * lib/math_.h (frexp): New declaration.
57755         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
57756         REPLACE_FREXP.
57757         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
57758
57759 2007-03-21  Bruno Haible  <bruno@clisp.org>
57760
57761         * modules/isnanl-tests: New file.
57762         * tests/test-isnanl.c: New file.
57763
57764         * modules/isnanl: New file.
57765         * lib/isnanl.h: New file.
57766         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
57767         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
57768         gl_FUNC_ISNANL_WORKS.
57769         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
57770         New macros.
57771
57772 2007-03-21  Bruno Haible  <bruno@clisp.org>
57773
57774         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
57775         lib/isnanl.h.
57776         (Include): Update.
57777         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
57778         * lib/vasnprintf.c: Update.
57779         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
57780         tests/test-isnanl.h, remove tests/test-isnanl.c.
57781         (Makefile.am): Update.
57782         * tests/test-isnanl-nolibm.c: New file.
57783         * tests/test-isnanl.h: New file.
57784         * tests/test-isnanl.c: Remove file.
57785
57786 2007-03-21  Jim Meyering  <jim@meyering.net>
57787
57788         When trying to open ".", treat ESTALE like EACCES.
57789         * lib/savewd.c (savewd_save): Resort to forking not just upon
57790         failure with EACCES, but also when errno is ESTALE.
57791
57792 2007-03-20  Bruno Haible  <bruno@clisp.org>
57793
57794         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
57795         Needed on AIX 5.1. Reported by Matthew Woehlke.
57796
57797 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57798
57799         Suggestions by Bruno Haible:
57800         * lib/acl-internal.h: Include "gettext.h" rather than rolling
57801         our own.
57802         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
57803         * modules/acl (Depends-on): Add gettext.
57804
57805 2007-03-19  Bruno Haible  <bruno@clisp.org>
57806
57807         * modules/iconvme: Remove file.
57808         * lib/iconvme.h: Remove file.
57809         * lib/iconvme.c: Remove file.
57810         * m4/iconvme.m4: Remove file.
57811
57812 2007-03-19  Bruno Haible  <bruno@clisp.org>
57813
57814         * doc/relocatable-maint.texi: Break long shell script line.
57815         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
57816
57817 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57818
57819         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
57820         handle file_has_acl.
57821         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
57822         * lib/acl.c: Move header inclusions and related macro defns into
57823         lib/acl-internal.h.
57824         (S_ISLNK): Remove defn, since that's now done for us.
57825         (file_has_acl): Move to lib/file-has-acl.c.
57826         Call acl_trivial if available.  This is the crucial part of the fix.
57827         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
57828         shared within the library.  Rewrite a bit, partly to make it compatible
57829         with the GNU coding style.
57830         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
57831         Remove unnecessary double-quotes.
57832         Don't test for acl_to_text; the build will catch that.
57833         Replace acl_entries if it doesn't exist and it is needed.
57834         Check for -lsec and acl_trivial (as used on Solaris 10).
57835         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
57836         lib/file-has-acl.c.
57837         (Depends-on): Add sys_stat, for S_ISLNK.
57838
57839 2007-03-19  Ben Pfaff  <blp@gnu.org>
57840
57841         * doc/gnulib.texi: Fix typos.
57842         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
57843
57844 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57845
57846         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
57847         If size is zero here, buf must be zero.
57848
57849 2007-03-19  Simon Josefsson  <simon@josefsson.org>
57850
57851         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
57852         <bruno@clisp.org>.
57853
57854 2007-03-18  Bruno Haible  <bruno@clisp.org>
57855
57856         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
57857         Suggested by Eric Blake.
57858
57859 2007-03-18  Ben Pfaff  <blp@gnu.org>
57860
57861         * doc/relocatable.texi: Recommend using as prefix a directory
57862         that does not exist and will never be created.  Based on
57863         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
57864         and others.
57865
57866 2007-03-17  Bruno Haible  <bruno@clisp.org>
57867
57868         * lib/fchownat.c: Include lchown.h.
57869
57870 2007-03-17  Bruno Haible  <bruno@clisp.org>
57871
57872         Fix endless loop when the given allocated size was > INT_MAX.
57873         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
57874         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
57875         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
57876         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
57877         * lib/sprintf.c (sprintf): Likewise.
57878
57879 2007-03-17  Bruno Haible  <bruno@clisp.org>
57880
57881         * tests/test-argp-2.sh (func_compare): Output a context diff.
57882
57883 2007-03-17  Bruno Haible  <bruno@clisp.org>
57884
57885         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
57886         locale's decimal-point character.
57887
57888 2007-03-17  Bruno Haible  <bruno@clisp.org>
57889
57890         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
57891         before comparing it. Needed because on some platforms (e.g. x86) a
57892         'long double' occupies less bytes than sizeof (long double).
57893
57894 2007-03-17  Bruno Haible  <bruno@clisp.org>
57895
57896         * tests/test-crc.c (main): Make printf statements 64-bit clean.
57897         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
57898         * tests/test-getaddrinfo.c (simple): Likewise.
57899         * tests/test-read-file.c (main): Likewise.
57900
57901 2007-03-17  Bruno Haible  <bruno@clisp.org>
57902
57903         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
57904
57905 2007-03-17  Bruno Haible  <bruno@clisp.org>
57906
57907         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
57908         unused variable.
57909
57910 2007-03-17  Bruno Haible  <bruno@clisp.org>
57911
57912         * tests/test-c-strcasecmp.c: Include c-strcase.h.
57913         * tests/test-c-strncasecmp.c: Likewise.
57914
57915 2007-03-17  Bruno Haible  <bruno@clisp.org>
57916
57917         * modules/stdlib (Depends-on): Add unistd.
57918         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
57919         Needed for MacOS X 10.3.
57920
57921 2007-03-17  Bruno Haible  <bruno@clisp.org>
57922
57923         * lib/unistr/u-strdup.h: Include <stdlib.h>.
57924
57925 2007-03-17  Bruno Haible  <bruno@clisp.org>
57926
57927         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
57928
57929 2007-03-17  Bruno Haible  <bruno@clisp.org>
57930
57931         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
57932         to reflect files copied from gnulib (with or without modifications).
57933         Suggested by Jim Meyering.
57934
57935 2007-03-17  Eric Blake  <ebb9@byu.net>
57936
57937         * NEWS: Document stdlib change from 2007-02-18.
57938
57939 2007-03-17  Jim Meyering  <jim@meyering.net>
57940
57941         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
57942         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
57943         someone uses a name containing shell meta-characters.
57944         Reported by Alfred M. Szmidt.
57945
57946         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
57947
57948 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
57949
57950         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
57951         and copy gettext configuration files only if configure.ac contains
57952         a use of AM_GNU_GETTEXT_VERSION.
57953
57954 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
57955
57956         * build-aux/bootstrap (gnulib_name): New variable.
57957         (gnulib_tool_options): Use it.
57958
57959 2007-03-13  Simon Josefsson  <simon@josefsson.org>
57960
57961         * tests/test-des.c: Use new namespace.
57962
57963 2007-03-15  Bruno Haible  <bruno@clisp.org>
57964
57965         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
57966         Reported by James Youngman <jay@gnu.org>.
57967
57968 2007-03-15  Bruno Haible  <bruno@clisp.org>
57969
57970         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
57971         declared prototype. Needed with cc on OSF/1 5.1.
57972
57973 2007-03-15  Bruno Haible  <bruno@clisp.org>
57974
57975         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
57976         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
57977         (struct gl_list_implementation): Add dispose_fn argument to the
57978         'create_empty', 'create' methods.
57979         (struct gl_list_impl_base): Add field 'dispose_fn'.
57980         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
57981         argument.
57982         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
57983         dispose_fn argument.
57984         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
57985         dispose_fn on the dropped values.
57986         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
57987         dispose_fn argument.
57988         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
57989         dropped values.
57990         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
57991         (gl_tree_remove_node): Call dispose_fn on the dropped value.
57992         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
57993         (gl_tree_remove_node): Call dispose_fn on the dropped value.
57994         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
57995         argument.
57996         (gl_tree_list_free): Call dispose_fn on the dropped values.
57997         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
57998         the dropped values.
57999         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
58000         Add dispose_fn argument.
58001         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
58002         Call dispose_fn on the dropped values.
58003         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
58004         Add dispose_fn argument.
58005         (gl_sublist_create): Initialize the 'dispose_fn' field.
58006         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
58007         * tests/test-array_list.c (main): Update.
58008         * tests/test-carray_list.c (main): Update.
58009         * tests/test-avltree_list.c (main): Update.
58010         * tests/test-rbtree_list.c (main): Update.
58011         * tests/test-avltreehash_list.c (main): Update.
58012         * tests/test-rbtreehash_list.c (main): Update.
58013         * tests/test-linked_list.c (main): Update.
58014         * tests/test-linkedhash_list.c (main): Update.
58015         * tests/test-array_oset.c (main): Update.
58016
58017 2007-03-15  Bruno Haible  <bruno@clisp.org>
58018
58019         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
58020         (gl_oset_create_empty): Add dispose_fn argument.
58021         (struct gl_oset_implementation): Add dispose_fn argument to
58022         'create_empty' method.
58023         (struct gl_oset_impl_base): Add dispose_fn field.
58024         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
58025         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
58026         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
58027         values.
58028         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
58029         (gl_tree_oset_free): Call dispose_fn on the dropped values.
58030         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
58031         dropped value.
58032         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
58033         dropped value.
58034         * tests/test-array_oset.c (main): Update.
58035         * tests/test-avltree_oset.c (main): Update.
58036         * tests/test-rbtree_oset.c (main): Update.
58037         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
58038
58039 2007-03-13  Bruno Haible  <bruno@clisp.org>
58040
58041         * tests/test-stdbool.c (i): Update after last patch.
58042
58043 2007-03-12  Bruno Haible  <bruno@clisp.org>
58044
58045         * lib/quotearg.c: Include <wctype.h> early, before the definition of
58046         the iswprint macro. Needed on Solaris 2.5.1.
58047
58048 2007-03-12  Bruno Haible  <bruno@clisp.org>
58049
58050         * tests/test-printf-frexp.c (main): Declare x as volatile.
58051
58052 2007-03-12  Simon Josefsson  <simon@josefsson.org>
58053
58054         * doc/gnulib.texi (Build robot for gnulib): New section.
58055
58056 2007-03-12  Jim Meyering  <jim@meyering.net>
58057
58058         * build-aux/bootstrap: New file.
58059         * build-aux/bootstrap.conf: New file, from coreutils.
58060
58061 2007-03-11  Bruno Haible  <bruno@clisp.org>
58062
58063         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
58064
58065 2007-03-12  Simon Josefsson  <simon@josefsson.org>
58066
58067         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
58068         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
58069         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
58070
58071 2007-03-11  Bruno Haible  <bruno@clisp.org>
58072
58073         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
58074         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
58075
58076 2007-03-11  Bruno Haible  <bruno@clisp.org>
58077
58078         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
58079         formula. Needed for SunPRO C 5.0.
58080
58081 2007-03-11  Bruno Haible  <bruno@clisp.org>
58082
58083         * modules/long-options (Depends-on): Add getopt.
58084
58085 2007-03-11  Bruno Haible  <bruno@clisp.org>
58086
58087         * modules/modechange (Depends-on): Add stdbool.
58088
58089 2007-03-11  Bruno Haible  <bruno@clisp.org>
58090
58091         * modules/i-ring (Depends-on): Add stdbool.
58092
58093 2007-03-11  Bruno Haible  <bruno@clisp.org>
58094
58095         * modules/gc-des (Depends-on): Add stdbool.
58096
58097 2007-03-11  Bruno Haible  <bruno@clisp.org>
58098
58099         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
58100
58101 2007-03-11  Bruno Haible  <bruno@clisp.org>
58102
58103         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
58104
58105 2007-03-11  Bruno Haible  <bruno@clisp.org>
58106
58107         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
58108
58109 2007-03-11  Bruno Haible  <bruno@clisp.org>
58110
58111         * lib/vasnprintf.c (sprintf): Undefine.
58112
58113 2007-03-11  Bruno Haible  <bruno@clisp.org>
58114
58115         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
58116         initializers in SunPRO C and Compaq C compilers.
58117
58118 2007-03-11  Bruno Haible  <bruno@clisp.org>
58119
58120         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
58121         decrementing code ANSI C compliant.
58122
58123 2007-03-11  Bruno Haible  <bruno@clisp.org>
58124
58125         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
58126         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
58127
58128 2007-03-11  Bruno Haible  <bruno@clisp.org>
58129
58130         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
58131         <stdbool.h> substitute doesn't pass.
58132
58133 2007-03-11  Bruno Haible  <bruno@clisp.org>
58134
58135         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
58136
58137 2007-03-11  Bruno Haible  <bruno@clisp.org>
58138
58139         * gnulib-tool (func_create_megatestdir): Create also an autobuild
58140         script, for submission to autobuild.josefsson.org.
58141
58142 2007-03-10  Bruno Haible  <bruno@clisp.org>
58143
58144         * modules/canonicalize-lgpl-tests: New file.
58145         * tests/test-canonicalize-lgpl.sh: New file.
58146         * tests/test-canonicalize-lgpl.c: New file.
58147
58148         * modules/c-strcase-tests: New file.
58149         * tests/test-c-strcase.sh: New file.
58150         * tests/test-c-strcasecmp.c: New file.
58151         * tests/test-c-strncasecmp.c: New file.
58152
58153         * modules/atexit-tests: New file.
58154         * tests/test-atexit.sh: New file.
58155         * tests/test-atexit.c: New file.
58156
58157 2007-03-10  Bruno Haible  <bruno@clisp.org>
58158
58159         * tests/test-binary-io.sh: Use temporary filenames that are not so
58160         likely to clash with those of other tests (in a parallel make).
58161         * tests/test-binary-io.c: Likewise.
58162
58163 2007-03-10  Bruno Haible  <bruno@clisp.org>
58164
58165         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
58166         fallback; use #error instead.
58167         Suggested by Simon Josefsson.
58168
58169 2007-03-10  Bruno Haible  <bruno@clisp.org>
58170
58171         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
58172         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
58173         first and the last.
58174
58175 2007-03-10  Bruno Haible  <bruno@clisp.org>
58176
58177         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
58178
58179 2007-03-10  Bruno Haible  <bruno@clisp.org>
58180
58181         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
58182         "make distcheck".
58183         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
58184         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
58185         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
58186
58187 2007-03-10  Bruno Haible  <bruno@clisp.org>
58188
58189         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
58190         variable.
58191         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
58192         variable.
58193
58194 2007-03-09  Eric Blake  <ebb9@byu.net>
58195         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
58196
58197         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
58198         types are not being provided by gnulib.
58199         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
58200         types are supported.
58201
58202 2007-03-10  Bruno Haible  <bruno@clisp.org>
58203
58204         * lib/stdio_.h (__attribute__): New macro.
58205         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
58206         vsprintf): Specify __attribute__ __format__ for GCC.
58207         Suggested by Eric Blake.
58208
58209 2007-03-09  Bruno Haible  <bruno@clisp.org>
58210
58211         * modules/printf-posix-tests: New file.
58212         * tests/test-printf-posix.sh: New file.
58213         * tests/test-printf-posix.c: New file.
58214
58215         * modules/printf-posix: New file.
58216         * lib/printf.c: New file.
58217         * m4/printf-posix-rpl.m4: New file.
58218         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
58219         REPLACE_PRINTF.
58220         * lib/stdio_.h (printf): New declaration.
58221         (format, __format__, ____printf____, ____scanf____, ____strftime____,
58222         ____strfmon____): New macros.
58223         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
58224         REPLACE_PRINTF.
58225
58226 2007-03-09  Bruno Haible  <bruno@clisp.org>
58227
58228         * tests/test-vasnprintf-posix2.sh: New file.
58229         * tests/test-vasnprintf-posix2.c: New file.
58230         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
58231         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
58232         (Makefile.am): Activate test-vasnprintf-posix2.sh.
58233
58234         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
58235         a locale dependent decimal point, rather than always '.'.
58236
58237 2007-03-09  Eric Blake  <ebb9@byu.net>
58238
58239         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
58240         spite of platforms like Tandem/NSK that define it to -1.
58241
58242 2007-03-08  Bruno Haible  <bruno@clisp.org>
58243
58244         * modules/vprintf-posix-tests: New file.
58245         * tests/test-vprintf-posix.sh: New file.
58246         * tests/test-vprintf-posix.c: New file.
58247         * tests/test-printf-posix.h: New file.
58248
58249         * modules/vprintf-posix: New file.
58250         * lib/vprintf.c: New file.
58251         * m4/vprintf-posix.m4: New file.
58252         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
58253         REPLACE_VPRINTF.
58254         * lib/stdio_.h (vprintf): New declaration.
58255         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
58256         REPLACE_VPRINTF.
58257
58258 2007-03-08  Bruno Haible  <bruno@clisp.org>
58259
58260         * modules/fprintf-posix-tests: New file.
58261         * tests/test-fprintf-posix.sh: New file.
58262         * tests/test-fprintf-posix.c: New file.
58263
58264         * modules/fprintf-posix: New file.
58265         * lib/fprintf.c: New file.
58266         * m4/fprintf-posix.m4: New file.
58267         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
58268         REPLACE_FPRINTF.
58269         * lib/stdio_.h (fprintf): New declaration.
58270         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
58271         REPLACE_FPRINTF.
58272
58273 2007-03-08  Bruno Haible  <bruno@clisp.org>
58274
58275         * modules/vfprintf-posix-tests: New file.
58276         * tests/test-vfprintf-posix.sh: New file.
58277         * tests/test-vfprintf-posix.c: New file.
58278         * tests/test-fprintf-posix.h: New file.
58279         * tests/test-fprintf-posix.out: New file.
58280
58281         * modules/vfprintf-posix: New file.
58282         * lib/vfprintf.c: New file.
58283         * m4/vfprintf-posix.m4: New file.
58284         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
58285         REPLACE_VFPRINTF.
58286         * lib/stdio_.h (vfprintf): New declaration.
58287         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
58288         REPLACE_VFPRINTF.
58289
58290 2007-03-08  Bruno Haible  <bruno@clisp.org>
58291
58292         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
58293
58294 2007-03-08  Bruno Haible  <bruno@clisp.org>
58295
58296         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
58297         instead of 'expr' invocations.
58298         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58299         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58300         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58301         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58302         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58303         Suggested by Paul Eggert.
58304
58305 2007-03-08  Bruno Haible  <bruno@clisp.org>
58306
58307         * modules/fseterr-tests: New file.
58308         * tests/test-fseterr.c: New file.
58309
58310         * modules/fseterr: New file.
58311         * lib/fseterr.h: New file.
58312         * lib/fseterr.c: New file.
58313
58314 2007-03-08  Bruno Haible  <bruno@clisp.org>
58315
58316         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
58317         * lib/getopt_.h: Likewise.
58318         * lib/mbswidth.h: Likewise.
58319         * lib/setenv.h: Likewise.
58320         * lib/vasnprintf.h: Likewise.
58321         * lib/vasprintf.h: Likewise.
58322         * lib/verror.h: Likewise.
58323         * lib/xsetenv.h: Likewise.
58324         * lib/xvasprintf.h: Likewise.
58325
58326 2007-03-08  Jim Meyering  <jim@meyering.net>
58327
58328         * users.txt: Add parted.
58329
58330         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
58331
58332 2007-03-07  Bruno Haible  <bruno@clisp.org>
58333
58334         * m4/printf.m4: Make the shell script snippets copy&pastable.
58335
58336 2007-03-02  Bruno Haible  <bruno@clisp.org>
58337
58338         * lib/netinet_in_.h: New file.
58339         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
58340         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
58341         * modules/netinet_in (Files): Add lib/netinet_in_.h.
58342         (Depends-on): Add absolute-header.
58343         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
58344         into netinet/in.h.
58345
58346 2007-03-03  Bruno Haible  <bruno@clisp.org>
58347
58348         * lib/sys_select_.h: New file.
58349         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
58350         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
58351         * modules/sys_select (Files): Add lib/sys_select_.h.
58352         (Depends-on): Add absolute-header.
58353         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
58354         into sys/select.h.
58355
58356 2007-03-02  Bruno Haible  <bruno@clisp.org>
58357
58358         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
58359         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
58360         values.
58361         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
58362         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
58363         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
58364         * modules/sys_socket (Depends-on): Add absolute-header.
58365         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
58366         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
58367         (Include): Remove requirement of inclusion of <sys/types.h>.
58368
58369 2007-03-02  Bruno Haible  <bruno@clisp.org>
58370
58371         * lib/byteswap_.h (bswap_32): Fix formula.
58372
58373 2007-03-06  Bruno Haible  <bruno@clisp.org>
58374
58375         * modules/sprintf-posix-tests: New file.
58376         * tests/test-sprintf-posix.c: New file.
58377
58378         * modules/sprintf-posix: New file.
58379         * lib/sprintf.c: New file.
58380         * m4/sprintf-posix.m4: New file.
58381         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
58382         REPLACE_SPRINTF.
58383         * lib/stdio_.h (sprintf): New declaration.
58384         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
58385         REPLACE_SPRINTF.
58386
58387 2007-03-06  Bruno Haible  <bruno@clisp.org>
58388
58389         * modules/vsprintf-posix-tests: New file.
58390         * tests/test-vsprintf-posix.c: New file.
58391         * tests/test-sprintf-posix.h: New file.
58392
58393         * modules/vsprintf-posix: New file.
58394         * lib/vsprintf.c: New file.
58395         * m4/vsprintf-posix.m4: New file.
58396         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
58397         REPLACE_VSPRINTF.
58398         * lib/stdio_.h (vsprintf): New declaration.
58399         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
58400         REPLACE_VSPRINTF.
58401
58402 2007-03-06  Bruno Haible  <bruno@clisp.org>
58403
58404         * modules/vsnprintf (Depend-on): Remove minmax.
58405
58406 2007-03-06  Bruno Haible  <bruno@clisp.org>
58407
58408         * modules/snprintf-posix-tests: New file.
58409         * tests/test-snprintf-posix.c: New file.
58410
58411         * modules/snprintf-posix: New file.
58412         * m4/snprintf-posix.m4: New file.
58413         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
58414         gl_FUNC_SNPRINTF.
58415         (gl_FUNC_SNPRINTF): Invoke it.
58416         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
58417         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
58418         is set.
58419         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
58420
58421 2007-03-06  Bruno Haible  <bruno@clisp.org>
58422
58423         * modules/vsnprintf-posix-tests: New file.
58424         * tests/test-vsnprintf-posix.c: New file.
58425         * tests/test-snprintf-posix.h: New file.
58426
58427         * modules/vsnprintf-posix: New file.
58428         * m4/vsnprintf-posix.m4: New file.
58429         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
58430         gl_FUNC_VSNPRINTF.
58431         (gl_FUNC_VSNPRINTF): Invoke it.
58432         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
58433         * lib/stdio_.h (vsnprintf): Define as a replacement if
58434         REPLACE_VSNPRINTF is set.
58435         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
58436
58437 2007-03-06  Bruno Haible  <bruno@clisp.org>
58438
58439         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
58440         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
58441
58442 2007-03-06  Bruno Haible  <bruno@clisp.org>
58443
58444         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
58445         (asinl): Declare also if HAVE_DECL_ASINL is set.
58446         (atanl): Declare also if HAVE_DECL_ATANL is set.
58447         (ceill): Declare also if HAVE_DECL_CEILL is set.
58448         (cosl): Declare also if HAVE_DECL_COSL is set.
58449         (expl): Declare also if HAVE_DECL_EXPL is set.
58450         (floorl): Declare also if HAVE_DECL_FLOORL is set.
58451         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
58452         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
58453         (logl): Declare also if HAVE_DECL_LOGL is set.
58454         (sinl): Declare also if HAVE_DECL_SINL is set.
58455         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
58456         (tanl): Declare also if HAVE_DECL_TANL is set.
58457         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
58458         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
58459         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
58460         declaration of frexpl, ldexpl.
58461         * modules/printf-frexpl (Depends-on): Add math.
58462         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
58463
58464 2007-03-05  Bruno Haible  <bruno@clisp.org>
58465
58466         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
58467         frexpl and ldexpl are declared.
58468         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
58469
58470 2007-03-05  Bruno Haible  <bruno@clisp.org>
58471
58472         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
58473         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
58474
58475 2007-03-05  Bruno Haible  <bruno@clisp.org>
58476
58477         * lib/stdio_.h: Include <stddef.h>.
58478
58479 2007-03-05  Bruno Haible  <bruno@clisp.org>
58480
58481         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
58482
58483 2007-03-05  Bruno Haible  <bruno@clisp.org>
58484
58485         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
58486         NetBSD 4, from Ralf Wildenhues.
58487
58488 2007-03-04  Bruno Haible  <bruno@clisp.org>
58489
58490         * lib/vasprintf.h: Update #if logic for the case when the functions
58491         exist but are overridden.
58492
58493 2007-03-04  Bruno Haible  <bruno@clisp.org>
58494
58495         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
58496         implementations: glibc-2.4 and MacOS X 10.3.
58497         * tests/test-vasnprintf-posix.c (test_function): Test also the case
58498         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
58499         * tests/test-vasprintf-posix.c (test_function): Likewise.
58500
58501 2007-03-04  Bruno Haible  <bruno@clisp.org>
58502
58503         * modules/vasprintf-posix-tests: New file.
58504         * tests/test-vasprintf-posix.c: New file.
58505
58506         * modules/vasprintf-posix: New file.
58507         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
58508         defined.
58509         * m4/vasprintf-posix.m4: New file.
58510         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
58511         gl_FUNC_VASPRINTF.
58512         (gl_FUNC_VASPRINTF): Invoke it.
58513         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
58514         here.
58515         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
58516
58517 2007-03-04  Bruno Haible  <bruno@clisp.org>
58518
58519         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
58520         REPLACE_GETTIMEOFDAY.
58521         * modules/sys_time (Makefile.am): Likewise.
58522         * m4/sys_time_h.m4: Likewise.
58523         * m4/gettimeofday.m4: Likewise.
58524
58525 2007-03-04  Bruno Haible  <bruno@clisp.org>
58526
58527         * modules/vasnprintf-posix-tests: New file.
58528         * tests/test-vasnprintf-posix.c: New file.
58529
58530         * modules/vasnprintf-posix: New file.
58531         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
58532         printf-frexpl.h.
58533         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
58534         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
58535         REPLACE_VASNPRINTF is defined.
58536         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
58537         gl_FUNC_VASNPRINTF.
58538         (gl_FUNC_VASNPRINTF): Invoke it.
58539         * m4/vasnprintf-posix.m4: New file.
58540         * m4/printf.m4: New file.
58541
58542 2007-03-04  Bruno Haible  <bruno@clisp.org>
58543
58544         Compile progreloc.c only if --enable-relocatable is specified.
58545         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
58546         if --enable-relocatable was specified.
58547         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
58548         lib_SOURCES.
58549
58550 2007-03-04  Jim Meyering  <jim@meyering.net>
58551
58552         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
58553         Use it consistently, rather than enumerating errno constants.
58554
58555 2007-03-04  Bruno Haible  <bruno@clisp.org>
58556
58557         * modules/xvasprintf-tests: New file.
58558         * tests/test-xvasprintf.c: New file.
58559
58560         * modules/vasprintf-tests: New file.
58561         * tests/test-vasprintf.c: New file.
58562
58563         * modules/vasnprintf-tests: New file.
58564         * tests/test-vasnprintf.c: New file.
58565
58566         * modules/vsnprintf-tests: New file.
58567         * tests/test-vsnprintf.c: New file.
58568
58569         * modules/snprintf-tests: New file.
58570         * tests/test-snprintf.c: New file.
58571
58572 2007-03-04  Bruno Haible  <bruno@clisp.org>
58573
58574         Compile relocatable.c only if --enable-relocatable is specified.
58575         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
58576         gl_RELOCATABLE_LIBRARY.
58577         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
58578         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
58579         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
58580         gl_RELOCATABLE_LIBRARY.
58581         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
58582         (Makefile.am): Remove lib_SOURCES.
58583         * modules/relocatable-lib-lgpl (configure.ac): Invoke
58584         gl_RELOCATABLE_LIBRARY.
58585         (Makefile.am): Remove lib_SOURCES.
58586         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
58587         always.
58588         * modules/relocatable-prog-wrapper (configure.ac): Invoke
58589         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
58590
58591 2007-03-04  Bruno Haible  <bruno@clisp.org>
58592
58593         * modules/argmatch-tests: New file.
58594         * tests/test-argmatch.c: New file.
58595
58596         * tests/test-allocsa.c (main): Halve the number of loop runs.
58597
58598         * modules/alloca-opt-tests: New file.
58599         * tests/test-alloca-opt.c: New file.
58600
58601 2007-03-04  Jim Meyering  <jim@meyering.net>
58602
58603         Work around difference between Linux ACLs and Solaris 10 ZFS.
58604         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
58605         for EINVAL.
58606
58607 2007-03-03  Bruno Haible  <bruno@clisp.org>
58608
58609         * modules/relocatable-prog (Depends-on): Add back progreloc's
58610         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
58611
58612 2007-03-03  Bruno Haible  <bruno@clisp.org>
58613
58614         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
58615         * modules/relocatable-lib: New file.
58616
58617 2007-03-03  Bruno Haible  <bruno@clisp.org>
58618
58619         * modules/relocatable-prog: Renamed from modules/relocatable.
58620         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
58621
58622 2007-03-03  Bruno Haible  <bruno@clisp.org>
58623
58624         * modules/relocatable-script (Files): Add doc/relocatable.texi,
58625         m4/relocatable-lib.m4.
58626         (Depends-on): Remove 'relocatable'.
58627         (configure.ac): Add gl_RELOCATABLE_NOP.
58628
58629 2007-03-03  Bruno Haible  <bruno@clisp.org>
58630
58631         * modules/relocatable-prog-wrapper: New file.
58632         * modules/relocatable (Depends-on): Add it. Remove all other
58633         dependencies except progname.
58634         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
58635
58636         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
58637         (gl_FUNC_STRERROR): Nop.
58638         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
58639
58640         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
58641         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
58642
58643         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
58644         (gl_FUNC_READLINK): Update.
58645
58646         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
58647
58648 2007-03-03  Bruno Haible  <bruno@clisp.org>
58649
58650         * lib/xreadlink.c: Include <unistd.h> unconditionally.
58651         * modules/xreadlink (Depends-on): Add unistd.
58652         * modules/xreadlink-with-size (Depends-on): Likewise.
58653
58654 2007-03-03  Bruno Haible  <bruno@clisp.org>
58655
58656         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
58657         extracted from gt_FUNC_SETENV.
58658         (gt_FUNC_SETENV): Remove macro.
58659         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
58660         remove gt_FUNC_SETENV.
58661
58662 2007-03-03  Bruno Haible  <bruno@clisp.org>
58663
58664         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
58665         ENABLE_RELOCATABLE here.
58666         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
58667
58668 2007-03-03  Bruno Haible  <bruno@clisp.org>
58669
58670         * modules/rbtreehash-list-tests (Depends-on): Add progname.
58671         * tests/test-rbtreehash_list.c: Include progname.h.
58672         (main): Call set_program_name.
58673
58674         * modules/rbtree-oset-tests (Depends-on): Add progname.
58675         * tests/test-rbtree_oset.c: Include progname.h.
58676         (main): Call set_program_name.
58677
58678         * modules/rbtree-list-tests (Depends-on): Add progname.
58679         * tests/test-rbtree_list.c: Include progname.h.
58680         (main): Call set_program_name.
58681
58682         * modules/linked-list-tests (Depends-on): Add progname.
58683         * tests/test-linked_list.c: Include progname.h.
58684         (main): Call set_program_name.
58685
58686 2007-03-03  Bruno Haible  <bruno@clisp.org>
58687
58688         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
58689         All uses of __restrict changed to _Restrict_.
58690         * lib/glob_.h (__restrict): Remove macro.
58691
58692 2007-03-02  Bruno Haible  <bruno@clisp.org>
58693
58694         * modules/gettext (configure.ac): Require gettext infrastructure
58695         from version 0.16.1.
58696
58697 2007-03-02  Bruno Haible  <bruno@clisp.org>
58698
58699         * modules/linkedhash-list-tests (Depends-on): Add progname.
58700         * tests/test-linkedhash_list.c: Include progname.h.
58701         (main): Call set_program_name.
58702
58703         * modules/carray-list-tests (Depends-on): Add progname.
58704         * tests/test-carray_list.c: Include progname.h.
58705         (main): Call set_program_name.
58706
58707         * modules/avltreehash-list-tests (Depends-on): Add progname.
58708         * tests/test-avltreehash_list.c: Include progname.h.
58709         (main): Call set_program_name.
58710
58711         * modules/avltree-oset-tests (Depends-on): Add progname.
58712         * tests/test-avltree_oset.c: Include progname.h.
58713         (main): Call set_program_name.
58714
58715         * modules/avltree-list-tests (Depends-on): Add progname.
58716         * tests/test-avltree_list.c: Include progname.h.
58717         (main): Call set_program_name.
58718
58719         * modules/array-oset-tests (Depends-on): Add progname.
58720         * tests/test-array_oset.c: Include progname.h.
58721         (main): Call set_program_name.
58722
58723         * modules/array-list-tests (Depends-on): Add progname.
58724         * tests/test-array_list.c: Include progname.h.
58725         (main): Call set_program_name.
58726
58727         * modules/argp-tests (Depends-on): Add progname.
58728         * tests/test-argp.c: Include argp.h first. Include progname.h.
58729         (main): Call set_program_name.
58730
58731 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
58732
58733         * doc/gnulib-tool.texi (Initial import): Reword description of
58734         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
58735         limited effect even if defined after the first system include.
58736
58737 2007-03-01  Bruno Haible  <bruno@clisp.org>
58738
58739         * build-aux/config.libpath: Update to libtool-1.5.22.
58740         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58741
58742 2007-03-01  Bruno Haible  <bruno@clisp.org>
58743
58744         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
58745         foo_CFLAGS.
58746         Reported by Ralf Wildenhues.
58747
58748 2007-03-01  Bruno Haible  <bruno@clisp.org>
58749
58750         * build-aux/install-reloc: Remove object files left over by some
58751         compilers.
58752         Reported by Ralf Wildenhues.
58753
58754 2007-03-01  Bruno Haible  <bruno@clisp.org>
58755
58756         * build-aux/install-reloc: Break long lines.
58757
58758 2007-03-01  Bruno Haible  <bruno@clisp.org>
58759
58760         * doc/relocatable.texi: Document that it may not work on OpenBSD.
58761         Reported by Ralf Wildenhues.
58762
58763 2007-03-01  Bruno Haible  <bruno@clisp.org>
58764
58765         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
58766         include ordering constraints.
58767
58768 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58769
58770         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
58771         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
58772         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
58773         as another example.
58774         * lib/time_.h: Fix misspelling.
58775         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
58776         Require gl_HEADER_TIME_H_DEFAULTS.
58777         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
58778         * m4/time_r.m4 (gl_TIME_R): Likewise.
58779         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
58780
58781 2007-03-01  Bruno Haible  <bruno@clisp.org>
58782
58783         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
58784         * m4/utimens.m4 (gl_UTIMENS): Likewise.
58785
58786 2007-03-01  Jim Meyering  <jim@meyering.net>
58787
58788         * modules/xreadlink (Maintainer): Add my name.
58789         * modules/xreadlink-with-size (Depends-on): Alphabetize.
58790
58791 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
58792             Bruno Haible  <bruno@clisp.org>
58793
58794         * build-aux/install-reloc: Compile also c-ctype.c.
58795         * build-aux/relocatable.sh.in: New file.
58796         * doc/relocatable.texi: New file.
58797         * doc/relocatable-maint.texi: New file.
58798         * doc/gnulib.texi: Include relocatable-maint.texi.
58799         * lib/progreloc.c: Include unistd.h unconditionally.
58800         * lib/relocwrapper.c: Include unistd.h unconditionally.
58801         Include c-ctype.h.
58802         (add_dotbin): Use c_tolower.
58803         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
58804         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
58805         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
58806         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
58807         to m4/relocatable-lib.m4.
58808         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
58809         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
58810         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
58811         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
58812         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
58813         * modules/relocatable: New file.
58814         * modules/relocatable-lib: New file.
58815         * modules/relocatable-script: New file.
58816
58817 2007-02-28  Bruno Haible  <bruno@clisp.org>
58818
58819         Import --enable-relocatable infrastructure.
58820         * build-aux/config.libpath: New file, from GNU gettext.
58821         * build-aux/install-reloc: New file, from GNU gettext.
58822         * build-aux/reloc-ldflags: New file, from GNU gettext.
58823         * lib/relocatable.h: New file, from GNU gettext.
58824         * lib/relocatable.c: New file, from GNU gettext.
58825         * lib/relocwrapper.c: New file, from GNU gettext.
58826         * m4/relocatable.m4: New file, from GNU gettext.
58827
58828 2007-02-28  Bruno Haible  <bruno@clisp.org>
58829
58830         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
58831
58832         * modules/xreadlink: New file, from GNU gettext with modifications.
58833         * lib/xreadlink.c: New file, from GNU gettext.
58834         * lib/xreadlink.h: Add comments.
58835         (xreadlink): New declaration.
58836
58837         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
58838         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
58839         lib/xreadlink-with-size.c.
58840         (configure.ac): Remove gl_XREADLINK invocation.
58841         (Makefile.am): Augment lib_SOURCES.
58842         * m4/xreadlink.m4: Remove file.
58843         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
58844         (xreadlink_with_size): Renamed from xreadink.
58845         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
58846         * modules/canonicalize (Depends-on): Replace xreadlink with
58847         xreadlink-with-size.
58848         * lib/canonicalize.c (canonicalize_filename_mode): Update.
58849
58850 2007-02-25  Jim Meyering  <jim@meyering.net>
58851
58852         * build-aux/announce-gen: When complaining about excess arguments,
58853         list them.
58854
58855 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58856
58857         * README: Document signed integer overflow situation more
58858         accurately.
58859
58860 2007-02-25  Bruno Haible  <bruno@clisp.org>
58861
58862         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
58863         'a' or 'A' conversion.
58864
58865 2007-02-25  Bruno Haible  <bruno@clisp.org>
58866
58867         * modules/filename: Renamed from modules/pathname.
58868         (Files): Replace lib/pathname.h with lib/filename.h. Replace
58869         lib/concatpath.c with lib/concat-filename.c.
58870         (Makefile.am): Update.
58871         (Include): Replace pathname.h with filename.h.
58872         * lib/filename.h: Renamed from lib/pathname.h.
58873         (concatenated_filename): Renamed from concatenated_pathname.
58874         * lib/concat-filename.c: Renamed from lib/concatpath.c.
58875         (concatenated_filename): Renamed from concatenated_pathname.
58876         * lib/findprog.c: Include filename.h instead of pathname.h.
58877         (find_in_path): Update.
58878         * lib/javacomp.c: Include filename.h instead of pathname.h.
58879         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
58880         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
58881         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
58882         is_oldgcj_14_13_usable, is_javac_usable): Update.
58883         * lib/javaexec.c: Include filename.h instead of pathname.h.
58884         (execute_java_class): Update.
58885         * modules/findprog: Update.
58886         * modules/javacomp: Update.
58887         * modules/javaexec: Update.
58888         * MODULES.html.sh (File system functions): Add 'filename', remove
58889         'pathname'.
58890
58891 2007-02-25  Bruno Haible  <bruno@clisp.org>
58892
58893         * modules/printf-frexpl-tests: New file.
58894         * tests/test-printf-frexpl.c: New file.
58895
58896         * modules/printf-frexpl: New file.
58897         * lib/printf-frexpl.h: New file.
58898         * lib/printf-frexpl.c: New file.
58899         * m4/printf-frexpl.m4: New file.
58900
58901 2007-02-25  Bruno Haible  <bruno@clisp.org>
58902
58903         * modules/printf-frexp-tests: New file.
58904         * tests/test-printf-frexp.c: New file.
58905
58906         * modules/printf-frexp: New file.
58907         * lib/printf-frexp.h: New file.
58908         * lib/printf-frexp.c: New file.
58909         * m4/printf-frexp.m4: New file.
58910
58911 2007-02-25  Bruno Haible  <bruno@clisp.org>
58912
58913         Assume automake >= 1.10 for the tests.
58914         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
58915         * modules/arctwo-tests: Likewise.
58916         * modules/argp-tests: Likewise.
58917         * modules/avltree-list-tests: Likewise.
58918         * modules/avltree-oset-tests: Likewise.
58919         * modules/avltreehash-list-tests: Likewise.
58920         * modules/carray-list-tests: Likewise.
58921         * modules/crc-tests: Likewise.
58922         * modules/des-tests: Likewise.
58923         * modules/gc-arcfour-tests: Likewise.
58924         * modules/gc-arctwo-tests: Likewise.
58925         * modules/gc-des-tests: Likewise.
58926         * modules/gc-hmac-md5-tests: Likewise.
58927         * modules/gc-hmac-sha1-tests: Likewise.
58928         * modules/gc-md2-tests: Likewise.
58929         * modules/gc-md4-tests: Likewise.
58930         * modules/gc-md5-tests: Likewise.
58931         * modules/gc-pbkdf2-sha1-tests: Likewise.
58932         * modules/gc-rijndael-tests: Likewise.
58933         * modules/gc-sha1-tests: Likewise.
58934         * modules/gc-tests: Likewise.
58935         * modules/getaddrinfo-tests: Likewise.
58936         * modules/hmac-md5-tests: Likewise.
58937         * modules/hmac-sha1-tests: Likewise.
58938         * modules/linked-list-tests: Likewise.
58939         * modules/linkedhash-list-tests: Likewise.
58940         * modules/lock-tests: Likewise.
58941         * modules/md2-tests: Likewise.
58942         * modules/md4-tests: Likewise.
58943         * modules/md5-tests: Likewise.
58944         * modules/rbtree-list-tests: Likewise.
58945         * modules/rbtree-oset-tests: Likewise.
58946         * modules/rbtreehash-list-tests: Likewise.
58947         * modules/read-file-tests: Likewise.
58948         * modules/rijndael-tests: Likewise.
58949         * modules/stdint-tests: Likewise.
58950         * modules/tls-tests: Likewise.
58951
58952 2007-02-24  Bruno Haible  <bruno@clisp.org>
58953
58954         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
58955         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
58956         function; instead check whether isnan with a double argument links.
58957         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
58958         function; instead check whether isnan with a 'long double' argument
58959         links.
58960         Reported by Eric Blake <ebb9@byu.net>.
58961
58962 2007-02-24  Bruno Haible  <bruno@clisp.org>
58963
58964         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
58965         defined.
58966         * lib/isnanl.c: Remove all code. Just include isnan.c.
58967         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
58968
58969 2007-02-25  Jim Meyering  <jim@meyering.net>
58970
58971         Avoid conflicting types for 'unsetenv' on FreeBSD.
58972         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
58973         conflicting with FreeBSD's (5.0 and 6.1) function declaration
58974         in stdlib.h.
58975
58976 2007-02-24  Bruno Haible  <bruno@clisp.org>
58977
58978         * modules/isnanl-nolibm-tests: New file.
58979         * tests/test-isnanl.c: New file.
58980
58981         * modules/isnanl-nolibm: New file.
58982         * lib/isnanl.h: New file.
58983         * lib/isnanl.c: New file.
58984         * m4/isnanl.m4: New file.
58985
58986 2007-02-24  Bruno Haible  <bruno@clisp.org>
58987
58988         * modules/isnan-nolibm-tests: New file.
58989         * tests/test-isnan.c: New file.
58990
58991         * modules/isnan-nolibm: New file.
58992         * lib/isnan.h: New file.
58993         * lib/isnan.c: New file.
58994         * m4/isnan.m4: New file.
58995
58996 2007-02-24  Bruno Haible  <bruno@clisp.org>
58997
58998         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
58999         assume that an exponent fits in 20 bits.
59000
59001 2007-02-24  Jim Meyering  <jim@meyering.net>
59002
59003         * m4/regex.m4: Update the description of the configure-time option,
59004         --without-included-regex, to state accurately what the defaults are,
59005         and perhaps to give people an idea why using this option is risky.
59006
59007 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
59008
59009         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
59010         loops on small arguments.  This attempts to avoid the problem
59011         Bruno Haible reported for AIX 4.3.2 in
59012         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
59013
59014 2007-02-23  Bruno Haible  <bruno@clisp.org>
59015
59016         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
59017         Needed for help2man.
59018
59019 2007-02-23  Karl Berry  <karl@gnu.org>
59020
59021         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
59022         exists, foo.h should be cvs-ignored, not committed.
59023
59024 2007-02-23  Eric Blake  <ebb9@byu.net>
59025
59026         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
59027         * lib/stat-time.h (includes): Likewise.
59028         * lib/utimecmp.c (includes): Likewise.
59029         * lib/utimens.h (includes): Likewise.
59030         * lib/getdate.y (includes): Also include "timespec.h" for use
59031         internal to the module.
59032         * modules/utimens (Depends-on): Revert yesterday's patch.
59033         * modules/nanosleep (Depends-on): Add missing dependency.
59034
59035 2007-02-22  Bruno Haible  <bruno@clisp.org>
59036
59037         * lib/glob.c: Don't include getlogin_r.h.
59038
59039 2007-02-22  Jim Meyering  <jim@meyering.net>
59040
59041         * modules/utimens (Depends-on): Add timespec, required for
59042         utimens.h's inclusion of timespec.h.
59043
59044 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
59045
59046         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
59047         long unreadable paths in GNU/Linux.  Problem reported by Andreas
59048         Schwab in
59049         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
59050         I'll try to think of a better way to fix the Solaris problem.
59051
59052         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
59053         like glibc; on Solaris 10, it fails with errno == EINVAL.
59054         POSIX says the behavior is unspecified if the first argument is NULL,
59055         so play it safe and never pass NULL to the system getcwd.
59056
59057 2007-02-21  Jim Meyering  <jim@meyering.net>
59058
59059         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
59060         of gettimeofday.  It would conflict with the one now always
59061         provided via sys_time_.h.  Reported by Matthew Woehlke, as
59062         an IRIX 6.5 build failure.
59063
59064 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
59065
59066         Minor fixups to port to Solaris 10 with Sun C 5.8.
59067         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
59068         * modules/getcwd (Depends-on): Add dirfd.
59069         * lib/putenv.c (putenv): #undef it.
59070         (rpl_putenv): New decl.
59071         (malloc, free): Include <stdlib.h> rather than prototyping separately.
59072
59073 2007-02-20  Bruno Haible  <bruno@clisp.org>
59074
59075         * modules/stdio-tests: New file.
59076         * tests/test-stdio.c: New file.
59077
59078         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
59079         (Depends-on): Add stdio.
59080         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
59081         (Include): Use <stdio.h> instead of vsnprintf.h.
59082         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
59083         HAVE_DECL_VSNPRINTF.
59084         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
59085
59086         * modules/snprintf (Files): Remove lib/snprintf.h.
59087         (Depends-on): Add stdio.
59088         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
59089         (Include): Use <stdio.h> instead of snprintf.h.
59090         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
59091         HAVE_DECL_SNPRINTF.
59092         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
59093         * lib/getaddrinfo.c: Likewise.
59094
59095         * modules/stdio: New file.
59096         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
59097         * lib/snprintf.h: Remove file.
59098         * lib/vsnprintf.h: Remove file.
59099         * lib/.cppi-disable: Remove snprintf.h.
59100         * m4/stdio_h.m4: New file.
59101         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
59102
59103 2007-02-20  Jim Meyering  <jim@meyering.net>
59104
59105         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
59106         used by e.g., mingw.  From Bruno Haible.
59107
59108 2007-02-19  Bruno Haible  <bruno@clisp.org>
59109
59110         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
59111         warnings.
59112         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59113
59114 2007-02-19  Bruno Haible  <bruno@clisp.org>
59115
59116         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
59117         from mingw users.
59118
59119 2007-02-19  Bruno Haible  <bruno@clisp.org>
59120
59121         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
59122         warnings.
59123         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
59124
59125 2007-02-19  Jim Meyering  <jim@meyering.net>
59126
59127         Don't use FD after a successful "fdopendir (fd)".
59128         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
59129         Reset it by calling dirfd on the just-obtained DIR*.
59130
59131         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
59132         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
59133
59134 2007-02-18  Bruno Haible  <bruno@clisp.org>
59135
59136         * lib/readlink.c: Include <unistd.h>.
59137         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
59138         HAVE_READLINK.
59139         * modules/readlink (Depends-on): Add unistd.
59140         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59141         (Include): Add <unistd.h>.
59142
59143         * lib/getlogin_r.h: Remove file.
59144         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
59145         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
59146         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
59147         HAVE_DECL_GETLOGIN_R.
59148         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
59149         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59150         (Include): Use <unistd.h> instead of getlogin_r.h.
59151
59152         * lib/getcwd.h: Remove file.
59153         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
59154         * lib/xgetcwd.c: Likewise.
59155         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
59156         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
59157         * modules/getcwd (Files): Remove lib/getcwd.h.
59158         (Depends-on): Add unistd.
59159         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59160         (Include): Use <unistd.h> instad of getcwd.h.
59161
59162         * lib/ftruncate.c: Include <unistd.h> first.
59163         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
59164         Set HAVE_FTRUNCATE.
59165         * modules/ftruncate (Depends-on): Add unistd.
59166         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59167
59168         * lib/fchdir.c: Include <unistd.h> first.
59169         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
59170         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
59171         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
59172         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59173         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
59174
59175         * lib/dup2.c: Include <unistd.h> first.
59176         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
59177         HAVE_DUP2.
59178         * modules/dup2 (Depends-on): Add unistd.
59179         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59180
59181         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
59182         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
59183         REPLACE_CHOWN. Don't define chown as a macro here.
59184         * modules/chown (Depends-on): Add unistd.
59185         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59186
59187         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
59188         Add definition for GL_LINK_WARNING.
59189         (chown, dup2): New declarations.
59190         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
59191         link warning.
59192         (ftruncate): New declaration.
59193         (getcwd): New declaration, taken from old getcwd.h.
59194         (getlogin_r): New declaration, taken from old getlogin_r.h.
59195         (readlink): New declaration.
59196         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
59197         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
59198         (gl_PREREQ_UNISTD): Remove macro.
59199         (gl_UNISTD_MODULE_INDICATOR): New macro.
59200         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
59201         many new variables. Don't set UNISTD_H.
59202         * modules/unistd (Description): Change.
59203         (Depends-on): Add link-warning.
59204         (configure.ac): Update.
59205         (Makefile.am): Create unistd.h always. Substitute many new variables
59206         into it.
59207
59208 2007-02-18  Bruno Haible  <bruno@clisp.org>
59209
59210         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
59211         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
59212         HAVE_GETSUBOPT.
59213         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
59214         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
59215         * lib/getsubopt.h: Remove file.
59216         * modules/getsubopt (Files): Remove lib/getsubopt.h.
59217         (Depends-on): Add stdlib.
59218         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59219         (Includes): Use <stdlib.h> instead of getsubopt.h.
59220         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
59221         Set HAVE_GETSUBOPT.
59222         * lib/getsubopt.c: Don't include getsubopt.h.
59223
59224 2007-02-18  Bruno Haible  <bruno@clisp.org>
59225
59226         * modules/fchdir (Depends-on): Add dup2.
59227
59228 2007-02-18  Bruno Haible  <bruno@clisp.org>
59229
59230         * lib/stdlib_.h: Handle glibc's special invocation convention
59231         specially.
59232
59233 2007-02-18  Bruno Haible  <bruno@clisp.org>
59234
59235         * modules/stdlib-tests: New file.
59236         * tests/test-stdlib.c: New file.
59237
59238         * modules/mkstemp (Files): Remove lib/mkstemp.h.
59239         (Depends-on): Add stdlib.
59240         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59241         (Includes): Use <stdlib.h> instead of mkstemp.h.
59242         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
59243         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
59244         * lib/mkstemp.c: Don't include mkstemp.h.
59245         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
59246         * lib/stdlib--.h: Don't include mkstemp.h.
59247
59248         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
59249         (Depends-on): Add stdlib.
59250         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59251         (Includes): Use <stdlib.h> instead of mkdtemp.h.
59252         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
59253         HAVE_MKDTEMP.
59254         * lib/mkdtemp.c: Don't include mkdtemp.h.
59255         * lib/clean-temp.c: Don't include mkdtemp.h.
59256
59257         * modules/exit (Files): Remove lib/exit.h.
59258         (Depends-on): Add stdlib.
59259         (Makefile.am): Remove lib_SOURCES.
59260         (Include): Use <stdlib.h> instead of exit.h.
59261         * lib/argmatch.c: Don't include exit.h.
59262         * lib/execute.c: Likewise.
59263         * lib/pagealign_alloc.c: Likewise.
59264         * lib/pipe.c: Likewise.
59265         * lib/wait-process.c: Likewise.
59266         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
59267         * lib/exitfail.c: Likewise.
59268         * lib/savewd.c: Likewise.
59269         * lib/xsetenv.c: Likewise.
59270
59271         * modules/stdlib: New file.
59272         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
59273         and extra comments about mkstemp().
59274         * lib/exit.h: Remove file.
59275         * lib/mkdtemp.h: Remove file.
59276         * lib/mkstemp.h: Remove file.
59277         * m4/stdlib_h.m4: New file.
59278         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
59279
59280 2007-02-18  Bruno Haible  <bruno@clisp.org>
59281
59282         * modules/math-tests: New file.
59283         * tests/test-math.c: New file.
59284
59285         * modules/math: New file.
59286         * modules/mathl (Files): Remove lib/mathl.h.
59287         (Depends-on): Add math.
59288         (Makefile.am): Don't mention mathl.h.
59289         (Include): Use <math.h> instead of mathl.h.
59290         * lib/math_.h: New file.
59291         * lib/mathl.h: Remove file.
59292         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
59293         mathl.h.
59294         * lib/asinl.c: Likewise.
59295         * lib/atanl.c: Likewise.
59296         * lib/ceill.c: Likewise.
59297         * lib/cosl.c: Likewise.
59298         * lib/expl.c: Likewise.
59299         * lib/floorl.c: Likewise.
59300         * lib/frexpl.c: Likewise.
59301         * lib/ldexpl.c: Likewise.
59302         * lib/logl.c: Likewise.
59303         * lib/sincosl.c: Likewise.
59304         * lib/sinl.c: Likewise.
59305         * lib/sqrtl.c: Likewise.
59306         * lib/tanl.c: Likewise.
59307         * lib/trigl.c: Likewise.
59308         * m4/math_h.m4: New file.
59309         * MODULES.html.sh (Mathematics): Add math.
59310
59311 2007-02-17  Bruno Haible  <bruno@clisp.org>
59312
59313         * modules/wctype-tests: New file.
59314         * tests/test-wctype.c: New file.
59315
59316         * modules/wchar-tests: New file.
59317         * tests/test-wchar.c: New file.
59318
59319         * modules/unistd-tests: New file.
59320         * tests/test-unistd.c: New file.
59321
59322         * modules/time-tests: New file.
59323         * tests/test-time.c: New file.
59324
59325         * modules/sysexits-tests: New file.
59326         * tests/test-sysexits.c: New file.
59327
59328         * modules/sys_time-tests: New file.
59329         * tests/test-sys_time.c: New file.
59330
59331         * modules/sys_stat-tests: New file.
59332         * tests/test-sys_stat.c: New file.
59333
59334         * modules/sys_socket-tests: New file.
59335         * tests/test-sys_socket.c: New file.
59336
59337         * modules/sys_select-tests: New file.
59338         * tests/test-sys_select.c: New file.
59339
59340         * modules/string-tests: New file.
59341         * tests/test-string.c: New file.
59342
59343         * modules/stdbool-tests: New file.
59344         * tests/test-stdbool.c: New file.
59345
59346         * modules/netinet_in-tests: New file.
59347         * tests/test-netinet_in.c: New file.
59348
59349         * modules/inttypes-tests: New file.
59350         * tests/test-inttypes.c: New file.
59351
59352         * modules/fcntl-tests: New file.
59353         * tests/test-fcntl.c: New file.
59354
59355         * modules/byteswap-tests: New file.
59356         * tests/test-byteswap.c: New file.
59357
59358         * modules/arpa_inet-tests: New file.
59359         * tests/test-arpa_inet.c: New file.
59360
59361 2007-02-17  Bruno Haible  <bruno@clisp.org>
59362
59363         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
59364         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
59365         if the corresponding module is not enabled. Emit link warnings if
59366         the function is used nevertheless.
59367         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
59368         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
59369         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
59370         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
59371         * modules/inttypes (Depends-on): Add link-warning.
59372         (Makefile.am): Copy the contents of build-aux/link-warning.h into
59373         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
59374         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
59375         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
59376         * modules/imaxdiv (configure.ac): Likewise.
59377         * modules/strtoimax (configure.ac): Likewise.
59378         * modules/strtoumax (configure.ac): Likewise.
59379
59380 2007-02-17  Bruno Haible  <bruno@clisp.org>
59381
59382         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
59383         gl_STRING_MODULE_INDICATOR_DEFAULTS.
59384         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
59385         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
59386
59387 2007-02-17  Bruno Haible  <bruno@clisp.org>
59388
59389         * modules/link-warning: New file.
59390         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
59391         * lib/string_.h (GL_LINK_WARNING): Remove definition.
59392         * modules/string (Depends-on): Add link-warning.
59393         (Makefile.am): Copy the contents of build-aux/link-warning.h into
59394         string.h.
59395         * MODULES.html.sh (Support for building libraries and executables): Add
59396         link-warning.
59397
59398 2007-02-17  Bruno Haible  <bruno@clisp.org>
59399
59400         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
59401         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
59402         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
59403         long lines.
59404
59405 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
59406             Bruno Haible  <bruno@clisp.org>
59407
59408         * modules/tmpfile: New file.
59409         * lib/tmpfile.c: New file.
59410         * m4/tmpfile.m4: New file.
59411         * MODULES.html.sh (func_all_modules): New section "Input/output".
59412
59413 2007-02-15  Bruno Haible  <bruno@clisp.org>
59414
59415         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
59416         (supports_delete_on_close): New function.
59417         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
59418
59419 2007-02-14  Bruno Haible  <bruno@clisp.org>
59420
59421         * modules/mbspcasecmp-tests: New file.
59422         * tests/test-mbspcasecmp.sh: New file.
59423         * tests/test-mbspcasecmp.c: New file.
59424
59425         New module mbspcasecmp.
59426         * modules/mbspcasecmp: New file.
59427         * lib/mbspcasecmp.c: New file.
59428         * lib/string_.h (strncasecmp): Change warning message.
59429         (mbspcasecmp): New declaration.
59430         * m4/mbspcasecmp.m4: New file.
59431         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59432         GNULIB_MBSPCASECMP.
59433         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
59434         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
59435
59436 2007-02-14  Bruno Haible  <bruno@clisp.org>
59437
59438         * modules/mbsncasecmp-tests: New file.
59439         * tests/test-mbsncasecmp.sh: New file.
59440         * tests/test-mbsncasecmp.c: New file.
59441
59442         New module mbsncasecmp.
59443         * modules/mbsncasecmp: New file.
59444         * lib/mbsncasecmp.c: New file.
59445         * lib/string_.h (mbsncasecmp): New declaration.
59446         * m4/mbsncasecmp.m4: New file.
59447         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59448         GNULIB_MBSNCASECMP.
59449         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
59450         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
59451
59452 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
59453
59454         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
59455         Verify that it doesn't overlap with our flags.
59456         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
59457         do not have the desired effect in multibyte locales; instead, use
59458         mbscasecmp.
59459         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
59460         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
59461         we don't require GNU fnmatch ourselves (if our users require it, they
59462         should do so explicitly).
59463
59464         Fix regex code so it doesn't rely on strcasecmp.
59465         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
59466         Otherwise, include gnulib's langinfo.h.
59467         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
59468         undesirable behavior in non-C locales.  Instead, rely on localecharset.
59469         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
59470         * modules/regex (FILES): Remove m4/codeset.m4.
59471         (Depends-on): Add localcharset.  Remove strcase.
59472
59473 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59474
59475         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
59476         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
59477
59478 2007-02-13  Bruno Haible  <bruno@clisp.org>
59479
59480         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
59481         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59482
59483 2007-02-12  Bruno Haible  <bruno@clisp.org>
59484
59485         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
59486         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
59487         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
59488         time warning rather than a link error.
59489
59490 2007-02-12  Bruno Haible  <bruno@clisp.org>
59491
59492         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
59493         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59494         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59495
59496 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59497
59498         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
59499         args, not 2.
59500
59501 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59502
59503         New module 'time', so that apps can include <time.h> as per
59504         POSIX and GNU instead of separate include files like time_r.h
59505         and timegm.h.  This implementation tries out a simpler approach
59506         for replacing decls in standard include files (as compared to
59507         the string module), somewhat as an experiment.
59508
59509         * config/srclist.txt: Comment out mktime.c for now.
59510         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
59511         since it doesn't apply any more.  Use generic wording instead.
59512         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
59513         'time'.
59514         * lib/time_.h, m4/time_h.m4, modules/time: New files.
59515         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
59516         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
59517         Don't include <sys/types.h>; no longer needed since we assume C89.
59518         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
59519         * lib/strftime.c: Likewise.
59520         * lib/time_r.c: Likewise.
59521         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
59522         * lib/nanosleep.c: Include <time.h> first, to check interface.
59523         * lib/strptime.c: Likewise.
59524         * lib/time_r.c: Likewise.
59525         * lib/timegm.c: Likewise.
59526         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
59527         needed.
59528         * lib/timegm.c: Don't include timegm.h; no longer needed.
59529         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
59530         time.h now handles any problems in that area.
59531         (struct timespec, nanosleep): Remove; time.h now arranges for these.
59532         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
59533         that time.h defines struct timespec.
59534         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
59535         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
59536         handles that.
59537         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
59538         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
59539         needed.  Set REPLACE_LOCALTIME.
59540         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
59541         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
59542         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
59543         nanosleep; time_h.m4 now does that.  Don't require
59544         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
59545         module handles this now.
59546         * modules/getdate (Depends-on): Remove timespec.  Add time.
59547         * modules/nanosleep (Depends-on): Likewise.
59548         * modules/stat-time (Depends-on): Likewise.
59549         * modules/nanosleep (Include): Include time.h, not timespec.h.
59550         * modules/strptime (Files): Remove lib/strptime.h.
59551         (Depends-on): Add extensions, time.
59552         (Include): Include time.h, not strptime.h.
59553         * modules/time_r (Files): Remove lib/time_r.h.
59554         (Depends-on): Add time.
59555         (Include): Include time.h, not time_r.h.
59556         * modules/timegm: Likewise.
59557         * modules/timespec (Description): Now does timespec-related decls
59558         of our own, instead of struct timespec itself.
59559         (Depends-on): Add time; remove extensions.
59560         (Maintainer): Add self.
59561         * modules/utimecmp (Depends-on): Add time; remove timespec.
59562         * modules/utimens (Depends-on): Likewise.
59563         * modules/xnanosleep (Depends-on): Likewise.
59564
59565 2007-02-11  Bruno Haible  <bruno@clisp.org>
59566
59567         * lib/c-strstr.c: Include allocsa.h.
59568         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59569         * lib/c-strcasestr.c: Include allocsa.h.
59570         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59571         * lib/strcasestr.c: Include allocsa.h.
59572         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59573         * lib/mbsstr.c: Include allocsa.h.
59574         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
59575         allocsa/freesa instead of malloc/free.
59576         * lib/mbscasestr.c: Include allocsa.h.
59577         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
59578         allocsa/freesa instead of malloc/free.
59579         * modules/c-strstr (Depends-on): Add allocsa.
59580         * modules/c-strcasestr (Depends-on): Likewise.
59581         * modules/strcasestr (Depends-on): Likewise.
59582         * modules/mbsstr (Depends-on): Likewise.
59583         * modules/mbscasestr (Depends-on): Likewise.
59584
59585 2007-02-11  Bruno Haible  <bruno@clisp.org>
59586
59587         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
59588
59589         * modules/mbsspn-tests: New file.
59590         * tests/test-mbsspn.sh: New file.
59591         * tests/test-mbsspn.c: New file.
59592
59593 2007-02-11  Bruno Haible  <bruno@clisp.org>
59594
59595         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
59596
59597         * modules/mbspbrk-tests: New file.
59598         * tests/test-mbspbrk.sh: New file.
59599         * tests/test-mbspbrk.c: New file.
59600
59601 2007-02-11  Bruno Haible  <bruno@clisp.org>
59602
59603         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
59604         unneeded cast.
59605
59606         * modules/mbscspn-tests: New file.
59607         * tests/test-mbscspn.sh: New file.
59608         * tests/test-mbscspn.c: New file.
59609
59610 2007-02-11  Bruno Haible  <bruno@clisp.org>
59611
59612         * modules/mbscasecmp-tests: New file.
59613         * tests/test-mbscasecmp.sh: New file.
59614         * tests/test-mbscasecmp.c: New file.
59615
59616 2007-02-11  Bruno Haible  <bruno@clisp.org>
59617
59618         Ensure O(n) worst-case complexity of mbscasestr.
59619         * lib/mbscasestr.c: Include stdbool.h.
59620         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
59621         functions.
59622         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
59623         the bookkeeping indicates that it's worth it.
59624         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
59625
59626         * modules/mbscasestr-tests: New file.
59627         * tests/test-mbscasestr1.c: New file.
59628         * tests/test-mbscasestr2.sh: New file.
59629         * tests/test-mbscasestr2.c: New file.
59630         * tests/test-mbscasestr3.sh: New file.
59631         * tests/test-mbscasestr3.c: New file.
59632         * tests/test-mbscasestr4.sh: New file.
59633         * tests/test-mbscasestr4.c: New file.
59634         * m4/locale-tr.m4: New file.
59635
59636 2007-02-11  Bruno Haible  <bruno@clisp.org>
59637
59638         Ensure O(n) worst-case complexity of mbsstr.
59639         * lib/mbsstr.c: Include stdbool.h.
59640         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
59641         functions.
59642         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
59643         bookkeeping indicates that it's worth it.
59644         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
59645
59646         * modules/mbsstr-tests: New file.
59647         * tests/test-mbsstr1.c: New file.
59648         * tests/test-mbsstr2.sh: New file.
59649         * tests/test-mbsstr2.c: New file.
59650         * tests/test-mbsstr3.sh: New file.
59651         * tests/test-mbsstr3.c: New file.
59652         * m4/locale-fr.m4: New file.
59653
59654 2007-02-11  Bruno Haible  <bruno@clisp.org>
59655
59656         * lib/mbsrchr.c (mbsrchr): Fix bug.
59657
59658         * modules/mbsrchr-tests: New file.
59659         * tests/test-mbsrchr.sh: New file.
59660         * tests/test-mbsrchr.c: New file.
59661
59662 2007-02-11  Bruno Haible  <bruno@clisp.org>
59663
59664         * lib/mbschr.c (mbschr): Fix bug.
59665
59666         * modules/mbschr-tests: New file.
59667         * tests/test-mbschr.sh: New file.
59668         * tests/test-mbschr.c: New file.
59669         * m4/locale-zh.m4: New file.
59670
59671 2007-02-11  Bruno Haible  <bruno@clisp.org>
59672
59673         Support for copying multibyte string iterators.
59674         * lib/mbiter.h: Include <string.h>.
59675         (mbiter_multi_copy): New function.
59676         (mbi_copy): New macro.
59677         * lib/mbuiter.h: Include <string.h>.
59678         (mbuiter_multi_copy): New function.
59679         (mbui_copy): New macro.
59680
59681 2007-02-11  Bruno Haible  <bruno@clisp.org>
59682
59683         New module mbslen.
59684         * modules/mbslen: New file.
59685         * lib/mbslen.c: New file.
59686         * lib/string_.h (mbslen): New declaration.
59687         * m4/mbslen.m4: New file.
59688         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59689         GNULIB_MBSLEN.
59690         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
59691         * MODULES.html.sh (Internationalization functions): Add mbslen.
59692
59693 2007-02-11  Bruno Haible  <bruno@clisp.org>
59694
59695         Ensure O(n) worst-case complexity of strcasestr substitute.
59696         * lib/strcasestr.c: Include stdbool.h.
59697         (knuth_morris_pratt): New function.
59698         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
59699         bookkeeping indicates that it's worth it.
59700         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
59701
59702         * modules/strcasestr-tests: New file.
59703         * tests/test-strcasestr.c: New file.
59704
59705 2007-02-11  Bruno Haible  <bruno@clisp.org>
59706
59707         Ensure O(n) worst-case complexity of c_strcasestr.
59708         * lib/c-strcasestr.c: Include stdbool.h, string.h.
59709         (knuth_morris_pratt): New function.
59710         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
59711         the bookkeeping indicates that it's worth it.
59712         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
59713
59714         * modules/c-strcasestr-tests: New file.
59715         * tests/test-c-strcasestr.c: New file.
59716
59717 2007-02-11  Bruno Haible  <bruno@clisp.org>
59718
59719         Ensure O(n) worst-case complexity of c_strstr.
59720         * lib/c-strstr.c: Include stdbool.h, string.h.
59721         (knuth_morris_pratt): New function.
59722         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
59723         bookkeeping indicates that it's worth it.
59724         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
59725
59726         * lib/c-strstr.c: Complete rewrite for maintainability.
59727
59728         * modules/c-strstr-tests: New file.
59729         * tests/test-c-strstr.c: New file.
59730
59731 2007-02-11  Bruno Haible  <bruno@clisp.org>
59732
59733         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
59734         5.2.1 and earlier, whereby \055 was treated just like the range
59735         delimiter '-'.
59736         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59737
59738 2007-02-08  Bruno Haible  <bruno@clisp.org>
59739
59740         * modules/regex (Depends-on): Add stdbool.
59741         Reported by Dalibor Topic <robilad@kaffe.org>.
59742
59743 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
59744
59745         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
59746         Prefer returning from main to exiting from it.
59747         Remove unnecessary parens after sizeof.
59748
59749 2007-02-05  Bruno Haible  <bruno@clisp.org>
59750
59751         New module mbssep.
59752         * modules/mbssep: New file.
59753         * lib/mbssep.c: New file.
59754         * lib/string_.h (strsep): Add a conditional link warning.
59755         (mbssep): New declaration.
59756         * m4/mbssep.m4: New file.
59757         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59758         GNULIB_MBSSEP.
59759         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
59760         * MODULES.html.sh (Internationalization functions): Add mbssep.
59761
59762 2007-02-05  Bruno Haible  <bruno@clisp.org>
59763
59764         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
59765         Optimize search in case of 1 delimiter.
59766
59767 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
59768
59769         * lib/acl.h: Include sys/types.h before sys/acl.h.
59770
59771 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
59772
59773         Merge upstream fix for glibc bugzilla #3957:
59774
59775         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
59776
59777         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
59778         bit for RE_HAT_LISTS_NOT_NEWLINE.
59779         (build_charclass_op): Remove bogus comment.
59780
59781 2007-02-05  Simon Josefsson  <simon@josefsson.org>
59782
59783         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
59784
59785 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
59786
59787         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
59788         * lib/memmem.c [!defined _LIBC]: Include config.h.
59789
59790 2007-02-04  Bruno Haible  <bruno@clisp.org>
59791
59792         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
59793         warning message.
59794
59795 2007-02-04  Bruno Haible  <bruno@clisp.org>
59796
59797         New module mbstok_r.
59798         * modules/mbstok_r: New file.
59799         * lib/mbstok_r.c: New file.
59800         * lib/string_.h (strtok_r): Change argument names to match the
59801         comments. Add a conditional link warning.
59802         (mbstok_r): New declaration.
59803         * m4/mbstok_r.m4: New file.
59804         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59805         GNULIB_MBSTOK_R.
59806         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
59807         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
59808
59809 2007-02-04  Bruno Haible  <bruno@clisp.org>
59810
59811         New module mbsspn.
59812         * modules/mbsspn: New file.
59813         * lib/mbsspn.c: New file.
59814         * lib/string_.h (strspn): Add a conditional link warning.
59815         (mbsspn): New declaration.
59816         * m4/mbsspn.m4: New file.
59817         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59818         GNULIB_MBSSPN.
59819         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
59820         * MODULES.html.sh (Internationalization functions): Add mbsspn.
59821
59822 2007-02-04  Bruno Haible  <bruno@clisp.org>
59823
59824         New module mbspbrk.
59825         * modules/mbspbrk: New file.
59826         * lib/mbspbrk.c: New file.
59827         * lib/string_.h (strpbrk): Add a conditional link warning.
59828         (mbspbrk): New declaration.
59829         * m4/mbspbrk.m4: New file.
59830         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59831         GNULIB_MBSPBRK.
59832         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
59833         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
59834
59835 2007-02-04  Bruno Haible  <bruno@clisp.org>
59836
59837         New module mbscspn.
59838         * modules/mbscspn: New file.
59839         * lib/mbscspn.c: New file.
59840         * lib/string_.h (strcspn): Add a conditional link warning.
59841         (mbscspn): New declaration.
59842         * m4/mbscspn.m4: New file.
59843         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59844         GNULIB_MBSCSPN.
59845         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
59846         * MODULES.html.sh (Internationalization functions): Add mbscspn.
59847
59848 2007-02-04  Bruno Haible  <bruno@clisp.org>
59849
59850         New module mbscasestr, reduced goal of strcasestr.
59851         * modules/mbscasestr: New file.
59852         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
59853         (mbscasestr): Renamed from strcasestr.
59854         * lib/strcasestr.c: Don't include mbuiter.h.
59855         (strcasestr): Remove support for multibyte locales.
59856         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
59857         Change the conditional link warning.
59858         (mbscasestr): New declaration.
59859         * m4/mbscasestr.m4: New file.
59860         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
59861         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
59862         REPLACE_STRCASESTR.
59863         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
59864         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59865         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
59866         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
59867         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
59868         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
59869         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
59870         (Depends-on): Remove mbuiter.
59871         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
59872
59873 2007-02-04  Bruno Haible  <bruno@clisp.org>
59874
59875         Simplify handling of strncasecmp.
59876         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
59877         the conditional link warning.
59878         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59879         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
59880         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
59881         * modules/strcase (configure.ac): Don't invoke
59882         gl_STRING_MODULE_INDICATOR.
59883         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
59884
59885 2007-02-04  Bruno Haible  <bruno@clisp.org>
59886
59887         New module mbscasecmp, reduced goal of strcasecmp.
59888         * modules/mbscasecmp: New file.
59889         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
59890         (mbscasecmp): Renamed from strcasecmp.
59891         * lib/strcasecmp.c: Don't include mbuiter.h.
59892         (strcasecmp): Remove support for multibyte locales.
59893         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
59894         Change the conditional link warning.
59895         (mbscasecmp): New declaration.
59896         * m4/mbscasecmp.m4: New file.
59897         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
59898         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
59899         REPLACE_STRCASECMP.
59900         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
59901         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59902         GNULIB_MBSCASECMP.
59903         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
59904         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
59905         * modules/strcase (Files): Remove m4/mbrtowc.m4.
59906         (Depends-on): Remove mbuiter.
59907         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
59908
59909 2007-02-04  Bruno Haible  <bruno@clisp.org>
59910
59911         New module mbsstr. Remove module strstr.
59912         * modules/mbsstr: New file.
59913         * modules/strstr: Remove file.
59914         * lib/mbsstr.c: Renamed from lib/strstr.c.
59915         (mbsstr): Renamed from strstr.
59916         * lib/string_.h (strstr): Remove declaration. Change the conditional
59917         link warning.
59918         (mbsstr): New declaration.
59919         * m4/mbsstr.m4: New file.
59920         * m4/strstr.m4: Remove file.
59921         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
59922         REPLACE_STRSTR.
59923         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
59924         Don't initialize GNULIB_STRSTR.
59925         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
59926         substitute GNULIB_STRSTR and REPLACE_STRSTR.
59927         * MODULES.html.sh (Internationalization functions): Add mbsstr.
59928         (Support for systems lacking ANSI C 89): Remove strstr.
59929
59930 2007-02-04  Bruno Haible  <bruno@clisp.org>
59931
59932         New module mbsrchr.
59933         * modules/mbsrchr: New file.
59934         * lib/mbsrchr.c: New file.
59935         * lib/string_.h (strrchr): Add a conditional link warning.
59936         (mbsrchr): New declaration.
59937         * m4/mbsrchr.m4: New file.
59938         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59939         GNULIB_MBSRCHR.
59940         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
59941         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
59942
59943 2007-02-04  Bruno Haible  <bruno@clisp.org>
59944
59945         New module mbschr.
59946         * modules/mbschr: New file.
59947         * lib/mbschr.c: New file.
59948         * lib/string_.h (strchr): Add a conditional link warning.
59949         (mbschr): New declaration.
59950         * m4/mbschr.m4: New file.
59951         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59952         GNULIB_MBSCHR.
59953         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
59954         * MODULES.html.sh (Internationalization functions): Add mbschr.
59955
59956 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
59957
59958         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
59959
59960         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
59961
59962 2007-02-04  Bruno Haible  <bruno@clisp.org>
59963
59964         New module description section 'configure.ac-early'.
59965         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
59966         (func_get_autoconf_early_snippet): New function.
59967         (func_import, func_create_testdir): Use it. Remove special cases for
59968         modules 'extensions' and 'lock'.
59969         * modules/extensions (configure.ac-early): Require
59970         gl_USE_SYSTEM_EXTENSIONS.
59971         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
59972
59973 2007-02-04  Bruno Haible  <bruno@clisp.org>
59974
59975         Make use of gcj-4.3's -fsource and -ftarget option.
59976         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
59977         and if so try the options -fsource and -ftarget.
59978         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
59979         source_version, ftarget_option, target_version arguments.
59980         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
59981         (is_envjavac_oldgcj_14_14_usable): Renamed from
59982         is_envjavac_gcj_14_14_usable.
59983         (is_envjavac_oldgcj_14_13_usable): Renamed from
59984         is_envjavac_gcj_14_13_usable.
59985         (is_gcj_present): Update.
59986         (is_gcj_43, is_gcj43_usable): New functions.
59987         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
59988         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
59989         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
59990         try the options -fsource and -ftarget.
59991
59992 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59993
59994         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
59995         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
59996         larger value.
59997
59998 2007-02-03  Jim Meyering  <jim@meyering.net>
59999
60000         Give tools a better chance to allocate space for very large buffers.
60001         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
60002
60003         Make pwd and readlink work also when run with an unreadable parent dir
60004         on systems with openat support.
60005         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
60006         provided getcwd function, even when we have openat support.
60007         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
60008
60009 2007-02-02  Bruno Haible  <bruno@clisp.org>
60010
60011         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
60012         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
60013         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
60014         portability problems if one of these functions is only used on specific
60015         platforms.
60016         Reported by Paul Eggert.
60017
60018 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
60019
60020         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
60021         is causing more trouble than it's curing.
60022         * lib/regex_internal.h (__mempcpy): Remove.
60023         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
60024         (and make the code a tad smaller to boot).
60025         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
60026
60027 2007-02-02  Jim Meyering  <jim@meyering.net>
60028
60029         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
60030         section, not in the Makefile.am: one.
60031
60032 2007-02-02  Eric Blake  <ebb9@byu.net>
60033
60034         * lib/strchrnul.c: Always include config.h first.
60035
60036         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
60037         gnulib strstr is not necessary here.
60038
60039 2007-02-02  Simon Josefsson  <simon@josefsson.org>
60040
60041         * m4/socklen.m4: Fix typo.
60042
60043 2007-02-02  Eric Blake  <ebb9@byu.net>
60044
60045         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
60046         * modules/netinet_in (Makefile.am): Likewise.
60047
60048 2007-02-01  Bruno Haible  <bruno@clisp.org>
60049
60050         * lib/string_.h (GL_LINK_WARNING): New macro.
60051         (strcasecmp, strstr, strcasestr): If provided by the system,
60052         conditionally define as a macro that leads to a warning instead of to
60053         an error.
60054         (strncasecmp): Conditionally define as a macro that leads to a warning.
60055
60056 2007-02-01  Karl Berry  <karl@gnu.org>
60057
60058         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
60059
60060 2007-02-01  Bruno Haible  <bruno@clisp.org>
60061
60062         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
60063         renamings.
60064
60065 2007-02-01  Eric Blake  <ebb9@byu.net>
60066
60067         * modules/regex (Depends-on): Revert dependence on mempcpy.
60068         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
60069         module's definition of mempcpy.
60070         Reported by Paul Eggert.
60071
60072 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
60073
60074         * lib/string_.h: If the gnulib module XYZ is not present, undefine
60075         the symbol XYZ before redefining it.  This fixes a problem with
60076         programs that don't use XYZ, when compiled on systems that define
60077         XYZ to something else.
60078
60079 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
60080
60081         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
60082         occurs when "mkdir -m foo" creates a setgid directory that is (1)
60083         writeable to group or other and (2) is intended to have a special
60084         mode bit that is set or cleared.  In such a case, the directory
60085         should be neither group- nor other-writeable until the special
60086         mode bits are right.
60087
60088 2007-01-31  Eric Blake  <ebb9@byu.net>
60089
60090         * modules/mountlist (Depends-on): Add strstr.
60091
60092         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
60093         bug.
60094         * modules/string (Makefile.am): Remove redundant replacement.
60095         * modules/regex (Depends-on): Add mempcpy.
60096
60097 2007-01-31  Bruno Haible  <bruno@clisp.org>
60098
60099         New module description field 'Link'.
60100         * gnulib-tool (func_usage): Document --extract-link-directive.
60101         (sed_extract_prog): Recognize 'Link' directive.
60102         (func_get_link_directive): New function.
60103         (func_import): Show summary of link directives.
60104         Handle --extract-link-directive option.
60105         * modules/acl (Link): New section.
60106         * modules/clock-time (Link): New section.
60107         * modules/euidaccess (Link): New section.
60108         * modules/gettext (Link): New section.
60109         * modules/iconv (Link): New section.
60110         * modules/lock (Link): New section.
60111         * modules/nanosleep (Link): New section.
60112         * modules/readline (Link): New section.
60113
60114 2007-01-27  Bruno Haible  <bruno@clisp.org>
60115
60116         Enforce the use of gnulib modules for unportable <string.h> functions.
60117         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
60118         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
60119         (gl_HEADER_STRING_H_BODY): Require it.
60120         * lib/string_.h: If the gnulib module XYZ is not present, redefine
60121         the symbol XYZ to one that gives a link error.
60122         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
60123         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
60124         * modules/mempcpy (configure.ac): Likewise.
60125         * modules/memrchr (configure.ac): Likewise.
60126         * modules/stpcpy (configure.ac): Likewise.
60127         * modules/stpncpy (configure.ac): Likewise.
60128         * modules/strcase (configure.ac): Likewise.
60129         * modules/strcasestr (configure.ac): Likewise.
60130         * modules/strchrnul (configure.ac): Likewise.
60131         * modules/strdup (configure.ac): Likewise.
60132         * modules/strndup (configure.ac): Likewise.
60133         * modules/strnlen (configure.ac): Likewise.
60134         * modules/strpbrk (configure.ac): Likewise.
60135         * modules/strsep (configure.ac): Likewise.
60136         * modules/strstr (configure.ac): Likewise.
60137         * modules/strtok_r (configure.ac): Likewise.
60138
60139 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
60140
60141         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
60142
60143 2007-01-30  Jim Meyering  <jim@meyering.net>
60144
60145         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
60146
60147 2007-01-29  Bruno Haible  <bruno@clisp.org>
60148
60149         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
60150         * lib/execute.c: Likewise.
60151         * lib/pipe.c: Likewise.
60152         * lib/printf-args.h: Likewise.
60153         * lib/printf-args.c: Likewise.
60154         * lib/printf-parse.c: Likewise.
60155         * lib/vasnprintf.c: Likewise.
60156
60157 2007-01-29  Eric Blake  <ebb9@byu.net>
60158
60159         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
60160         declaration.
60161
60162 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
60163
60164         * lib/strptime.h (strptime): Use 'restrict' for args where
60165         POSIX requires this.
60166         * lib/strptime.c (strptime): Likewise.
60167         Change license notice from LGPL to GPL, since gnulib-tool will
60168         change this as needed.
60169         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
60170         defined.
60171         Include "strptime.h" first, to check interface.
60172         Do not #undef _LIBC and _NL_CURRENT.
60173         Do not include <stdlib.h>; no longer needed.
60174         Include "time_r.h" and declare ptime_locale_status
60175         only if _LIBC is not defined.
60176         (__P): Remove unused macro.
60177         (match_string): Bring back glibc version, but use it only if _LIBC
60178         is defined.
60179         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
60180         Remove unnecessary assertion and abort() call.
60181         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
60182         * m4/strptime.m4: Fix serial number comment.
60183         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
60184         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
60185         (Depends-on): Add time_r.
60186
60187 2007-01-29  Bruno Haible  <bruno@clisp.org>
60188
60189         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60190         strptime.
60191         * modules/strptime (Depends-on): Add stdbool.
60192         * lib/strptime.h: Include <time.h> always. Add comments.
60193
60194 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60195
60196         * modules/strptime: New file.
60197         * lib/strptime.h: New file.
60198         * lib/strptime.c: New file.
60199         * m4/strptime.m4: New file.
60200
60201 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
60202
60203         * MODULES.html.sh: New module mpsort.
60204         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
60205
60206         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
60207         a circularity problem with HP-UX ia64 reported by Bob Proulx in
60208         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
60209         All uses changed.
60210         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
60211         All uses changed.
60212         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
60213         to _Restrict_.
60214         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
60215         the parameter matches the prototype.
60216
60217 2007-01-28  Jim Meyering  <jim@meyering.net>
60218
60219         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
60220         sys/time.h here, reverting that part of the previous patch:
60221         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
60222
60223 2007-01-28  Bruno Haible  <bruno@clisp.org>
60224
60225         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
60226         value of $(SYS_TIME_H).
60227         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
60228         remove it conditionally, too. [added by Jim Meyering]
60229         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
60230         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
60231         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
60232         GETTIMEOFDAY_REPLACEMENT to 1.
60233
60234 2007-01-28  Bruno Haible  <bruno@clisp.org>
60235
60236         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
60237         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
60238         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
60239         Set UNISTD_H instead of UNISTD_H2.
60240         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
60241
60242 2007-01-28  Bruno Haible  <bruno@clisp.org>
60243
60244         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
60245         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
60246
60247 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60248
60249         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
60250         (func_create_testdir): Ensure C locale for `grep' and `tr'
60251         character ranges.
60252         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
60253         ACLOCAL_AMFLAGS parsing state machine.
60254
60255 2007-01-27  Bruno Haible  <bruno@clisp.org>
60256
60257         * modules/unistr/base: Update.
60258
60259 2007-01-27  Bruno Haible  <bruno@clisp.org>
60260
60261         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
60262         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
60263         * modules/unistr/u32-mbtouc-unsafe: Renamed from
60264         modules/unistr/u32-mbtouc.
60265         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
60266         * lib/unistr.h: Update.
60267         * lib/linebreak.c: Update.
60268         * modules/unistr/u32-mbtouc: Renamed from
60269         modules/unistr/u32-mbtouc-safe.
60270         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
60271         * lib/unistr.h: Update.
60272         * lib/unistr/u32-to-u8.c: Update.
60273         * lib/unistr/u32-to-u16.c: Update.
60274
60275 2007-01-27  Bruno Haible  <bruno@clisp.org>
60276
60277         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
60278         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
60279         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
60280         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
60281         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
60282         * modules/unistr/u16-mbtouc-unsafe: Renamed from
60283         modules/unistr/u16-mbtouc.
60284         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
60285         * lib/unistr.h: Update.
60286         * lib/linebreak.c: Update.
60287         * modules/linebreak: Update.
60288         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
60289         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
60290         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
60291         * modules/unistr/u16-mbtouc: Renamed from
60292         modules/unistr/u16-mbtouc-safe.
60293         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
60294         * lib/unistr.h: Update.
60295         * lib/unistr/u16-to-u8.c: Update.
60296         * modules/unistr/u16-to-u8: Update.
60297         * lib/unistr/u16-to-u32.c: Update.
60298         * modules/unistr/u16-to-u32: Update.
60299
60300 2007-01-27  Bruno Haible  <bruno@clisp.org>
60301
60302         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
60303         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
60304         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
60305         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
60306         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
60307         * modules/unistr/u8-mbtouc-unsafe: Renamed from
60308         modules/unistr/u8-mbtouc.
60309         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
60310         * lib/unistr.h: Update.
60311         * lib/striconveh.c: Update.
60312         * modules/striconveh: Update.
60313         * lib/linebreak.c: Update.
60314         * modules/linebreak: Update.
60315         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
60316         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
60317         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
60318         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
60319         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
60320         * lib/unistr.h: Update.
60321         * lib/striconveh.c: Update.
60322         * modules/striconveh: Update.
60323         * lib/unistr/u8-to-u16.c: Update.
60324         * modules/unistr/u8-to-u16: Update.
60325         * lib/unistr/u8-to-u32.c: Update.
60326         * modules/unistr/u8-to-u32: Update.
60327
60328 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60329
60330         Sync from Libtool.
60331         * lib/argz.c: Do not include strings.h nor memory.h, include
60332         string.h unconditionally.  Patch by Simon Josefsson.
60333
60334 2007-01-27  Bruno Haible  <bruno@clisp.org>
60335
60336         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
60337         from gl_HEADER_STRING_H_BODY.
60338         (gl_HEADER_STRING_H_BODY): Require it.
60339         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
60340         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
60341         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
60342         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
60343         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60344         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
60345         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60346         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
60347         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
60348         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
60349         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
60350         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
60351         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
60352         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60353         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60354
60355 2007-01-27  Bruno Haible  <bruno@clisp.org>
60356
60357         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
60358         check_PROGRAMS into noinst_PROGRAMS.
60359         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
60360         check_PROGRAMS in this case.
60361         (func_import): Set for_test to false.
60362         (func_create_testdir): Set for_test to true.
60363
60364 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
60365             Bruno Haible  <bruno@clisp.org>
60366
60367         * modules/strcasestr (Files): Remove lib/strcasestr.h.
60368         (Depends-on): Add string.
60369         (Includes): Use <string.h> instead of strcasestr.h.
60370         * modules/string (Makefile.am): Also substitute the value of
60371         REPLACE_STRCASESTR.
60372         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
60373         assume strcasestr is declared in <string.h> not <strings.h>. Also
60374         set REPLACE_STRCASESTR.
60375         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
60376         REPLACE_STRCASESTR.
60377         * lib/strcasestr.h: Remove file.
60378         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
60379         * lib/string_.h (strcasestr): New declaration.
60380
60381 2007-01-27  Bruno Haible  <bruno@clisp.org>
60382
60383         * lib/string_.h: Use 'extern'.
60384
60385 2007-01-27  Jim Meyering  <jim@meyering.net>
60386
60387         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
60388         of set-but-not-used local, "q".
60389
60390         * lib/mempcpy.c: Include <config.h> before <string.h>.
60391         This fixes a compilation error on HP-UX, due to the system's
60392         "restrict"-using mempcpy prototype.
60393
60394 2007-01-26  Bruno Haible  <bruno@clisp.org>
60395
60396         Small optimization.
60397         * lib/javacomp.c: Include c-strstr.h.
60398          (is_envjavac_gcj): Use c_strstr instead of strstr.
60399         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
60400
60401 2007-01-26  Bruno Haible  <bruno@clisp.org>
60402
60403         * MODULES.html.sh (Unicode string functions): Add the new modules.
60404
60405         * modules/uniconv/u32-strconv-to-locale: New file.
60406         * lib/uniconv/u32-strconv-to-locale.c: New file.
60407
60408         * modules/uniconv/u16-strconv-to-locale: New file.
60409         * lib/uniconv/u16-strconv-to-locale.c: New file.
60410
60411         * modules/uniconv/u8-strconv-to-locale: New file.
60412         * lib/uniconv/u8-strconv-to-locale.c: New file.
60413
60414         * modules/uniconv/u32-strconv-from-locale: New file.
60415         * lib/uniconv/u32-strconv-from-locale.c: New file.
60416
60417         * modules/uniconv/u16-strconv-from-locale: New file.
60418         * lib/uniconv/u16-strconv-from-locale.c: New file.
60419
60420         * modules/uniconv/u8-strconv-from-locale: New file.
60421         * lib/uniconv/u8-strconv-from-locale.c: New file.
60422
60423         * modules/uniconv/u32-strconv-to-enc: New file.
60424         * lib/uniconv/u32-strconv-to-enc.c: New file.
60425         * modules/uniconv/u32-strconv-to-enc-tests: New file.
60426         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
60427
60428         * modules/uniconv/u16-strconv-to-enc: New file.
60429         * lib/uniconv/u16-strconv-to-enc.c: New file.
60430         * lib/uniconv/u-strconv-to-enc.h: New file.
60431         * modules/uniconv/u16-strconv-to-enc-tests: New file.
60432         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
60433
60434         * modules/uniconv/u8-strconv-to-enc: New file.
60435         * lib/uniconv/u8-strconv-to-enc.c: New file.
60436         * modules/uniconv/u8-strconv-to-enc-tests: New file.
60437         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
60438
60439         * modules/uniconv/u32-strconv-from-enc: New file.
60440         * lib/uniconv/u32-strconv-from-enc.c: New file.
60441         * modules/uniconv/u32-strconv-from-enc-tests: New file.
60442         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
60443
60444         * modules/uniconv/u16-strconv-from-enc: New file.
60445         * lib/uniconv/u16-strconv-from-enc.c: New file.
60446         * modules/uniconv/u16-strconv-from-enc-tests: New file.
60447         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
60448
60449         * modules/uniconv/u8-strconv-from-enc: New file.
60450         * lib/uniconv/u8-strconv-from-enc.c: New file.
60451         * lib/uniconv/u-strconv-from-enc.h: New file.
60452         * modules/uniconv/u8-strconv-from-enc-tests: New file.
60453         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
60454
60455         * modules/uniconv/u32-conv-from-enc: New file.
60456         * lib/uniconv/u32-conv-from-enc.c: New file.
60457         * modules/uniconv/u32-conv-from-enc-tests: New file.
60458         * tests/uniconv/test-u32-conv-from-enc.c: New file.
60459
60460         * modules/uniconv/u16-conv-from-enc: New file.
60461         * lib/uniconv/u16-conv-from-enc.c: New file.
60462         * lib/uniconv/u-conv-from-enc.h: New file.
60463         * modules/uniconv/u16-conv-from-enc-tests: New file.
60464         * tests/uniconv/test-u16-conv-from-enc.c: New file.
60465
60466         * modules/uniconv/u8-conv-from-enc: New file.
60467         * lib/uniconv/u8-conv-from-enc.c: New file.
60468         * modules/uniconv/u8-conv-from-enc-tests: New file.
60469         * tests/uniconv/test-u8-conv-from-enc.c: New file.
60470
60471         * modules/uniconv/base: New file.
60472         * lib/uniconv.h: New file.
60473
60474 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
60475
60476         * doc/gnulib-tool.texi (Initial import): Update to match current
60477         behavior with strdup module.
60478         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
60479         * lib/memmem.h: Remove; all uses removed.  This is now done
60480         by <string.h>.
60481         * lib/mempcpy.h: Likewise.
60482         * lib/memrchr.h: Likewise.
60483         * lib/stpcpy.h: Likewise.
60484         * lib/stpncpy.h: Likewise.
60485         * lib/strcase.h: Likewise.
60486         * lib/strchrnul.h: Likewise.
60487         * lib/strdup.h: Likewise.
60488         * lib/strndup.h: Likewise.
60489         * lib/strnlen.h: Likewise.
60490         * lib/strpbrk.h: Likewise.
60491         * lib/strsep.h: Likewise.
60492         * lib/strstr.h: Likewise.
60493         * lib/strtok_r.h: Likewise.
60494         * lib/string_.h: New file.
60495         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
60496         Rely on <string.h> instead.
60497         * lib/canon-host.c: Likewise.
60498         * lib/chdir-long.c: Likewise.
60499         * lib/concatpath.c: Likewise.
60500         * lib/exclude.c: Likewise.
60501         * lib/fchdir.c: Likewise.
60502         * lib/getaddrinfo.c: Likewise.
60503         * lib/getcwd.c: Likewise.
60504         * lib/getsubopt.c: Likewise.
60505         * lib/glob.c: Likewise.
60506         * lib/hard-locale.c: Likewise.
60507         * lib/iconvme.c: Likewise.
60508         * lib/javacomp.c: Likewise.
60509         * lib/mempcpy.c: Likewise.
60510         * lib/memrchr.c: Likewise.
60511         * lib/regex_internal.h: Likewise.
60512         * lib/stpncpy.c: Likewise.
60513         * lib/strcasecmp.c: Likewise.
60514         * lib/strchrnul.c: Likewise.
60515         * lib/strdup.c: Likewise.
60516         * lib/striconv.c: Likewise.
60517         * lib/striconveh.c: Likewise.
60518         * lib/striconveha.c: Likewise.
60519         * lib/strncasecmp.c: Likewise.
60520         * lib/strndup.c: Likewise.
60521         * lib/strnlen.c: Likewise.
60522         * lib/strsep.c: Likewise.
60523         * lib/strstr.c: Likewise.
60524         * lib/strtok_r.c: Likewise.
60525         * lib/userspec.c: Likewise.
60526         * lib/w32spawn.h: Likewise.
60527         * lib/xstrndup.c: Likewise.
60528         * lib/mountlist.c (strstr): Remove decl.
60529         * m4/string_h.m4: New file.
60530         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
60531         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
60532         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
60533         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
60534         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
60535         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
60536         Set REPLACE_STRCASECMP if necessary.
60537         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
60538         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
60539         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
60540         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
60541         HAVE_DECL_STRDUP if necessary.
60542         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
60543         since gl_FUNC_STRNDUP does that now.
60544         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
60545         Check for decl here...
60546         (gl_PREREQ_STRNLEN): ... not here.
60547         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
60548         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
60549         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
60550         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
60551         necessary.
60552         * modules/string: New file.
60553         * modules/memmem (Files): Remove special-purpose include file.
60554         (Depends-on): Add string.
60555         (Include): Include <string.h>, not the removed file.
60556         * modules/mempcpy: Likewise.
60557         * modules/memrchr: Likewise.
60558         * modules/stpcpy: Likewise.
60559         * modules/stpncpy: Likewise.
60560         * modules/strcase: Likewise.
60561         * modules/strchrnul: Likewise.
60562         * modules/strdup: Likewise.
60563         * modules/strndup: Likewise.
60564         * modules/strnlen: Likewise.
60565         * modules/strpbrk: Likewise.
60566         * modules/strsep: Likewise.
60567         * modules/strstr: Likewise.
60568         * modules/strtok_r: Likewise.
60569         * tests/test-dirname.c: Don't include "strdup.h", since
60570         <string.h> now suffices.
60571         * tests/test-memmem.c: Don't include "memmem.h", since
60572         <string.h> now suffices.
60573
60574 2007-01-25  Bruno Haible  <bruno@clisp.org>
60575
60576         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
60577         *resultp is 0.
60578
60579         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
60580         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
60581         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
60582         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
60583
60584         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
60585         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
60586         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
60587         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
60588         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
60589         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
60590
60591 2007-01-24  Bruno Haible  <bruno@clisp.org>
60592
60593         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
60594         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
60595         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
60596         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
60597         gl_FUNC_FTS_CORE.
60598         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
60599         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
60600         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60601         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
60602         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
60603         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
60604         gl_FUNC_FCHOWNAT.
60605         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
60606         gl_FUNC_STRFTIME.
60607         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
60608         Reported by Ralf Wildenhues.
60609
60610 2007-01-24  Bruno Haible  <bruno@clisp.org>
60611
60612         Drop AC_REQUIRE calls that are redundant with the module dependencies.
60613         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
60614         gl_GETADDRINFO.
60615         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
60616         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
60617         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
60618
60619 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
60620
60621         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
60622         Don't use 'exit'; just return from 'main'.
60623         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
60624
60625         * lib/fnmatch_.h: Readjust white space and comments to match
60626         glibc, to avoid spurious diffs.
60627
60628 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60629
60630         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
60631         2004-12-01 change by Jakub Jelinek, since this code won't compile
60632         if !LIBC.  Problem reported by Bob Proulx.
60633
60634 2007-01-23  Bruno Haible  <bruno@clisp.org>
60635
60636         * lib/striconveh.c: Include c-strcaseeq.h.
60637         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
60638         * modules/striconveh (Depends-on): Add c-strcaseeq.
60639
60640 2007-01-23  Bruno Haible  <bruno@clisp.org>
60641
60642         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
60643
60644         * modules/c-strcaseeq: New file.
60645         * lib/c-strcaseeq.h: New file.
60646
60647         * modules/streq: New file.
60648         * lib/streq.h: New file.
60649
60650 2007-01-23  Bruno Haible  <bruno@clisp.org>
60651
60652         * modules/striconveha-tests: New file.
60653         * tests/test-striconveha.c: New file.
60654
60655         * lib/striconveha.h: Include <stdbool.h>.
60656         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
60657         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
60658         (mem_iconveha_notranslit): Renamed from mem_iconveha.
60659         (mem_iconveha): New function.
60660         (str_iconveha_notranslit): Renamed from str_iconveha.
60661         (str_iconveha): New function.
60662         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
60663         c-strcase.
60664
60665 2007-01-23  Bruno Haible  <bruno@clisp.org>
60666
60667         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
60668         encodings without forgiving before trying any encoding with handler.
60669         (str_iconveha): Try all encodings without forgiving before trying any
60670         encoding with handler.
60671
60672 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60673
60674         Import the following changes from libc.
60675
60676         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
60677
60678         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
60679
60680         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
60681
60682         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
60683         normal_bracket label.
60684
60685         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
60686
60687         [BZ #361]
60688         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
60689         to normal_bracket after fetching the next character.
60690
60691 2007-01-22  Bruno Haible  <bruno@clisp.org>
60692
60693         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
60694         argument.
60695         * lib/striconveh.c (iconv_carefully_1): New function.
60696         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
60697         argument.
60698         (str_cd_iconveh): Update.
60699         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
60700         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
60701         * tests/test-striconveh.c (MAGIC): New macro.
60702         (new_offsets): New function.
60703         (main): Test call with and without offsets.
60704
60705 2007-01-22  Bruno Haible  <bruno@clisp.org>
60706
60707         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
60708         * modules/sys_select (Makefile.am): Likewise.
60709         * modules/sys_socket (Makefile.am): Likewise.
60710         * modules/sys_time (Makefile.am): Likewise.
60711
60712 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
60713
60714         * modules/gettimeofday (License): Change from GPL to LGPL, since
60715         gettimeofday is a library function.
60716
60717 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60718
60719         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
60720
60721 2007-01-21  Bruno Haible  <bruno@clisp.org>
60722
60723         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
60724
60725 2007-01-21  Bruno Haible  <bruno@clisp.org>
60726
60727         * modules/striconveha: New file.
60728         * lib/striconveha.h: New file.
60729         * lib/striconveha.c: New file.
60730         * MODULES.html.sh (Internationalization functions): Add striconveha.
60731         * lib/striconv.c (str_iconv): Optimize the case of an empty input
60732         string.
60733         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
60734
60735 2007-01-21  Bruno Haible  <bruno@clisp.org>
60736
60737         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
60738         * lib/striconveh.c (str_iconveh): Likewise.
60739
60740 2007-01-21  Bruno Haible  <bruno@clisp.org>
60741
60742         * lib/striconveh.h (mem_iconveh): New declaration.
60743         * lib/striconveh.c (mem_iconveh): New function.
60744         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
60745
60746 2007-01-21  Bruno Haible  <bruno@clisp.org>
60747
60748         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
60749
60750         * lib/striconveh.h (mem_cd_iconveh): Change specification.
60751         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
60752         original result buffer.
60753         (str_cd_iconveh): Update.
60754         * tests/test-striconveh.c (main): Update.
60755
60756         * lib/striconv.h (mem_cd_iconv): Change specification.
60757         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
60758         result buffer.
60759         (str_cd_iconv): Update.
60760         * tests/test-striconv.c (main): Update.
60761
60762 2007-01-21  Bruno Haible  <bruno@clisp.org>
60763
60764         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
60765
60766 2007-01-20  Jim Meyering  <jim@meyering.net>
60767
60768         * lib/userspec.c (parse_with_separator): If a user or group string
60769         starts with "+", skip the corresponding name-to-ID look-up, since
60770         such a look-up must fail: user and group names may not include "+".
60771
60772 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
60773
60774         * lib/poll.c: Include sys/time.h and time.h unconditionally,
60775         since we now assume the sys_time module.
60776         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
60777         check for sys/time.h; no longer needed.
60778         * modules/poll (Depends-on): Depend on sys_time.
60779
60780 2007-01-18  Bruno Haible  <bruno@clisp.org>
60781
60782         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
60783         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
60784
60785         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
60786         gettimeofday.
60787
60788         * tests/test-gettimeofday.c: Include <time.h>.
60789         (dummy): Remove variable.
60790
60791         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
60792         gl_HEADER_SYS_TIME_H.
60793         (gl_HEADER_SYS_TIME_H): New macro.
60794
60795         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
60796         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60797         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
60798         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
60799         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60800         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
60801         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
60802         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60803         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
60804         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
60805         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60806
60807         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
60808         last change; it caused a compilation error when cross-compiling to
60809         Cygwin.
60810
60811 2007-01-18  Jim Meyering  <jim@meyering.net>
60812
60813         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
60814         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
60815         than the race-prone "test -d sys || mkdir sys".
60816         (configure.ac): Use AC_PROG_MKDIR_P.
60817         * modules/sys_select: Likewise.
60818         * modules/sys_socket: Likewise.
60819         * modules/sys_time: Likewise.
60820
60821 2007-01-18  Eric Blake  <ebb9@byu.net>
60822
60823         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
60824         replace gettimeofday.
60825         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
60826         name, to avoid infinite recursion.
60827
60828 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
60829
60830         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
60831         module sys_time.
60832         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
60833         assume timespec.h defines struct timeval.
60834         * lib/settime.c: Likewise.
60835         * lib/utimens.c: Likewise.
60836         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
60837         since we now assume the gettimeofday module.
60838         * lib/tempname.c (__gen_tempname): Likewise.
60839         * lib/gettimeofday.h: Remove.
60840         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
60841         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
60842         Include <time.h>, for 'time()'.
60843         (localtime_buffer_addr): Also use this workaround if
60844         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
60845         to simplify the uses.  All uses changed.
60846         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
60847         that #undef is inside {}, and 'const' follows type name consistently.
60848         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
60849         (gettimeofday): Do not use the maximum possible value for
60850         tv->tv_usec, since that might break usages other than ls.c.
60851         Instead, we'll leave ls.c alone.  This undoes today's patch
60852         by Bruno.  Add a compile-time warning for 1s-clock resolution;
60853         we've never observed the problem but might as well keep the
60854         canary.
60855         * lib/nanosleep.c: Include timespec.h first, for interface check.
60856         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
60857         now assume the sys_time module.
60858         * lib/tempname.c: Likewise.
60859         * lib/timespec.h: Likewise.
60860         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
60861         needed.
60862         * lib/strftime.c: Likewise.
60863         * lib/timespec.h: Likewise.
60864         * lib/posixtm.c: Include posixtm.h first, for interface check.
60865         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
60866         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
60867         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
60868         * lib/sys_time_.h: New file.
60869         * lib/timespec.h (struct timespec): Use long int, not long.
60870         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
60871         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
60872         Remove obsolescent call to AC_HEADER_TIME.
60873         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
60874         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60875         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
60876         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
60877         Likewise.
60878         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
60879         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
60880         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
60881         into the sys_time module.  Check for gettimeofday just once.
60882         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
60883         for gettimeofday signature to just check the signature.  Merely
60884         compile it, since linking doesn't test signature.  Improve test for
60885         whether gettimeofday.o is actually needed.
60886         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
60887         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
60888         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
60889         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60890         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
60891         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
60892         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
60893         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
60894         than worrying about sys/time.h.
60895         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
60896         Don't bother worrying about TIME_WITH_SYS_TIME.
60897         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
60898         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
60899         * m4/sys_time_h.m4: New file.
60900         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
60901         Don't include sys/time.h.  Return from main rather than exiting.
60902         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
60903         all uses changed.
60904         * modules/gethrxtime (Depends-on): Add sys_time.
60905         * modules/gettime (Depends-on): Likewise.
60906         * modules/gettimeofday (Depends-on): Likewise.
60907         * modules/nanosleep (Depends-on): Likewise.
60908         * modules/settime (Depends-on): Likewise.
60909         * modules/tempname (Depends-on): Likewise.
60910         * modules/utimens (Depends-on): Likewise.
60911         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
60912         (Include): Change back to <sys/time.h>.
60913         (Maintainer): Add self.
60914         * modules/sys_time: New file.
60915         * modules/tempname (Depends-on): Add gettimeofday.
60916         * tests/test-gettimeofday.c: Include <sys/time.h>
60917         rather than gettimeofday.h.
60918
60919 2007-01-17  Bruno Haible  <bruno@clisp.org>
60920
60921         * gnulib-tool (func_get_license): Revert last patch. Instead, let
60922         the license default to GPL.
60923         (func_create_testdir): Don't complain if a module is LGPL and its
60924         tests module depends on GPLed modules.
60925
60926 2007-01-17  Bruno Haible  <bruno@clisp.org>
60927
60928         * lib/gettimeofday.c (gettimeofday): Add code for the case
60929         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
60930         maximum possible value for tv->tv_usec, rather than the minimum one.
60931
60932 2005-10-08  Martin Lambers  <marlam@marlam.de>
60933 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60934 2007-01-16  Bruno Haible  <bruno@clisp.org>
60935
60936         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
60937         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
60938         gl_FUNC_GETTIMEOFDAY.
60939         (Include): Add gettimeofday.h.
60940         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
60941         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
60942         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
60943         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
60944         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
60945         * lib/gettimeofday.h: New file.
60946         * lib/gettimeofday.c: Include <sys/timeb.h>.
60947         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
60948         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60949         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
60950         fall back on time().
60951
60952         * tests/test-gettimeofday.c: New file.
60953         * modules/gettimeofday-tests: New file.
60954
60955 2007-01-16  Eric Blake  <ebb9@byu.net>
60956
60957         * modules/fnmatch (Depends-on): Depend on wchar.
60958         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
60959         * m4/fnmatch.m4: Likewise.
60960         * modules/mbchar (Makefile.am): Assume <wchar.h>.
60961         * m4/mbchar.m4: Likewise.
60962         * modules/mbswidth (Depends-on): Depend on wchar.
60963         * lib/mbswidth.c: Assume <wchar.h>.
60964         * m4/mbswidth.m4: Likewise.
60965         * modules/quotearg (Depends-on): Depend on wchar.
60966         * lib/quotearg.c: Assume <wchar.h>.
60967         * m4/quotearg.m4: Likewise.
60968         * modules/regex (Depends-on): Depend on wchar.
60969         * lib/regex_internal.h: Assume <wchar.h>.
60970         * m4/regex.m4: Likewise.
60971         * modules/stdint (Depends-on): Depend on wchar.
60972         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
60973         * m4/stdint.m4: Likewise.
60974         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
60975         * modules/strftime (Depends-on): Depend on wchar.
60976         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
60977         * modules/strtol (Depends-on): Depend on wchar.
60978         * lib/strtol.c: Assume <wchar.h>.
60979         * modules/wcwidth (Depends-on): Depend on wchar.
60980         * lib/wcwidth.h: Assume <wchar.h>.
60981         * m4/wcwidth.m4: Likewise.
60982
60983 2007-01-16  Bruno Haible  <bruno@clisp.org>
60984
60985         * modules/csharpexec-script: New, created from...
60986         * modules/csharpexec: ... this.
60987
60988 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
60989
60990         * modules/javaexec-script: New, created from...
60991         * modules/javaexec: ... this.
60992
60993 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60994
60995         * modules/poll (Dependencies): Add sys_select.
60996
60997 2007-01-15  Jim Meyering  <jim@meyering.net>
60998
60999         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
61000         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
61001         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
61002         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
61003
61004 2007-01-15  Bruno Haible  <bruno@clisp.org>
61005
61006         * modules/striconveh: New file.
61007         * lib/striconveh.h: New file.
61008         * lib/striconveh.c: New file.
61009         * MODULES.html.sh (Internationalization functions): Add striconveh.
61010
61011         * modules/striconveh-tests: New file.
61012         * tests/test-striconveh.c: New file.
61013
61014 2007-01-15  Bruno Haible  <bruno@clisp.org>
61015
61016         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
61017         not from GNU libiconv or GNU libc.
61018
61019 2007-01-15  Bruno Haible  <bruno@clisp.org>
61020
61021         * doc/gnulib-intro.texi (Copyright): Explain the different license
61022         terms for module descriptions, autoconf macros, tests, documentation.
61023
61024 2007-01-14  Bruno Haible  <bruno@clisp.org>
61025
61026         * modules/striconv-tests: New file.
61027         * tests/test-striconv.c: New file.
61028
61029 2007-01-14  Bruno Haible  <bruno@clisp.org>
61030
61031         * modules/iconv-tests: New file.
61032         * tests/test-iconv.c: New file.
61033
61034 2007-01-14  Bruno Haible  <bruno@clisp.org>
61035
61036         * gnulib-tool (func_get_license): For test modules, use the license of
61037         the main module.
61038
61039 2007-01-14  Bruno Haible  <bruno@clisp.org>
61040
61041         * modules/iconv (Include): Clarify that <iconv.h> can only be included
61042         if iconv is found to exist.
61043
61044 2007-01-14  Bruno Haible  <bruno@clisp.org>
61045
61046         * modules/c-ctype-tests: New file.
61047         * tests/test-c-ctype.c: New file.
61048
61049 2007-01-14  Bruno Haible  <bruno@clisp.org>
61050
61051         * modules/binary-io-tests: New file.
61052         * tests/test-binary-io.sh: New file.
61053         * tests/test-binary-io.c: New file.
61054
61055 2007-01-14  Bruno Haible  <bruno@clisp.org>
61056
61057         * modules/array-oset-tests: New file.
61058         * tests/test-array_oset.c: New file.
61059
61060 2007-01-14  Bruno Haible  <bruno@clisp.org>
61061
61062         * modules/array-list-tests: New file.
61063         * tests/test-array_list.c: New file.
61064
61065 2007-01-14  Bruno Haible  <bruno@clisp.org>
61066
61067         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
61068         and make.
61069         Reported by Simon Josefsson in
61070         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
61071
61072 2007-01-14  Bruno Haible  <bruno@clisp.org>
61073
61074         * modules/allocsa-tests: New file.
61075         * tests/test-allocsa.c: New file.
61076
61077 2007-01-14  Bruno Haible  <bruno@clisp.org>
61078
61079         * modules/fchdir (Depends-on): Add absolute-header.
61080         * modules/unistd (Depends-on): Likewise.
61081
61082 2006-12-30  Bruno Haible  <bruno@clisp.org>
61083
61084         * modules/fchdir: New file.
61085         * modules/unistd (Files): Add lib/unistd_.h.
61086         (Makefile.am): Generate unistd.h from unistd_.h.
61087         * lib/fchdir.c: New file.
61088         * lib/dirent_.h: New file.
61089         * lib/unistd_.h: New file.
61090         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
61091         * m4/fchdir.m4: New file.
61092         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
61093         (gl_HEADER_UNISTD): Invoke it.
61094         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
61095         function.
61096         * lib/backupfile.c (opendir, closedir): Undefine.
61097         * lib/chown.c (open, close): Undefine.
61098         * lib/clean-temp.c (open, close): Undefine.
61099         * lib/copy-file.c (open, close): Undefine.
61100         * lib/execute.c (open, close): Undefine.
61101         * lib/fsusage.c (open, close): Undefine.
61102         * lib/gc-gnulib.c (open, close): Undefine.
61103         * lib/getcwd.c (opendir, closedir): Undefine.
61104         * lib/glob.c (opendir, closedir): Undefine.
61105         * lib/javacomp.c (open, close): Undefine.
61106         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
61107         * lib/openat-proc.c (open, close): Undefine.
61108         * lib/pagealign_alloc.c (open, close): Undefine.
61109         * lib/pipe.c (open, close): Undefine.
61110         * lib/progreloc.c (open, close): Undefine.
61111         * lib/savedir.c (opendir, closedir): Undefine.
61112         * lib/utime.c (open, close): Undefine.
61113         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
61114
61115 2007-01-10  Bruno Haible  <bruno@clisp.org>
61116
61117         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
61118
61119 2007-01-12  Eric Blake  <ebb9@byu.net>
61120
61121         Provide a robust <wchar.h>.  Further simplifications are now
61122         possible in other modules, but not included here.
61123         * modules/wchar: New module.
61124         * m4/wchar.m4: New file.
61125         * lib/wchar_.h: Likewise.
61126         * modules/mbchar (Depends-on): Depend on wchar, as the first use
61127         of the new module.
61128         * MODULES.html.sh (Extended multibyte and wide character utilities):
61129         New section.
61130
61131 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
61132
61133         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
61134         to a reasonable default for memory allocation.
61135         (xreadlink): Don't allocate a huge buffer, to work around a buggy
61136         file system that reports garbage st_size values for symlinks.
61137         Problem reported by Liyang Hu.
61138
61139 2007-01-11  Simon Josefsson  <simon@josefsson.org>
61140
61141         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
61142         Emacs .#* auto-save files).
61143
61144 2007-01-11  Bruno Haible  <bruno@clisp.org>
61145
61146         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
61147         directory.
61148
61149 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61150
61151         Use @...@ consistently in lib/wctype_.h.
61152         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
61153         on it being set to 1 or 0.
61154         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
61155         go back to AC_SUBSTing it.
61156         * modules/wctype (Makefile.am): Undo previous change.
61157
61158 2007-01-10  Eric Blake  <ebb9@byu.net>
61159
61160         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
61161         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
61162         * modules/wctype (Makefile.am): Likewise.
61163         Reported by Chris McGuire.
61164
61165 2007-01-10  Jim Meyering  <jim@meyering.net>
61166
61167         fts.c: a small readability/maintainability improvement
61168         * lib/fts.c (fts_read): Make this code slightly more readable and
61169         maintainable by hoisting the "sp->fts_cur = p" assignments to
61170         immediately follow the statements that set P.  Derived from
61171         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
61172
61173 2007-01-10  Eric Blake  <ebb9@byu.net>
61174
61175         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
61176         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
61177         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61178         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
61179         Reported by Chris McGuire.
61180
61181 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61182
61183         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
61184         in sed script.
61185
61186 2007-01-09  Bruno Haible  <bruno@clisp.org>
61187
61188         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
61189         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
61190         variables.
61191         (func_module): Use them.
61192
61193 2007-01-09  Bruno Haible  <bruno@clisp.org>
61194
61195         * modules/unistr/base: New file.
61196         * lib/unistr.h: New file.
61197
61198         * modules/unistr/u8-to-u16: New file.
61199         * lib/unistr/u8-to-u16.c: New file.
61200
61201         * modules/unistr/u8-to-u32: New file.
61202         * lib/unistr/u8-to-u32.c: New file.
61203
61204         * modules/unistr/u16-to-u8: New file.
61205         * lib/unistr/u16-to-u8.c: New file.
61206
61207         * modules/unistr/u16-to-u32: New file.
61208         * lib/unistr/u16-to-u32.c: New file.
61209
61210         * modules/unistr/u32-to-u8: New file.
61211         * lib/unistr/u32-to-u8.c: New file.
61212
61213         * modules/unistr/u32-to-u16: New file.
61214         * lib/unistr/u32-to-u16.c: New file.
61215
61216         * modules/unistr/u8-check: New file.
61217         * modules/unistr/u16-check: New file.
61218         * modules/unistr/u32-check: New file.
61219         * lib/unistr/u8-check.c: New file.
61220         * lib/unistr/u16-check.c: New file.
61221         * lib/unistr/u32-check.c: New file.
61222
61223         * modules/unistr/u8-chr: New file.
61224         * modules/unistr/u16-chr: New file.
61225         * modules/unistr/u32-chr: New file.
61226         * lib/unistr/u8-chr.c: New file.
61227         * lib/unistr/u16-chr.c: New file.
61228         * lib/unistr/u32-chr.c: New file.
61229
61230         * modules/unistr/u8-cmp: New file.
61231         * modules/unistr/u16-cmp: New file.
61232         * modules/unistr/u32-cmp: New file.
61233         * lib/unistr/u8-cmp.c: New file.
61234         * lib/unistr/u16-cmp.c: New file.
61235         * lib/unistr/u32-cmp.c: New file.
61236
61237         * modules/unistr/u8-cpy: New file.
61238         * modules/unistr/u16-cpy: New file.
61239         * modules/unistr/u32-cpy: New file.
61240         * lib/unistr/u8-cpy.c: New file.
61241         * lib/unistr/u16-cpy.c: New file.
61242         * lib/unistr/u32-cpy.c: New file.
61243         * lib/unistr/u-cpy.h: New file.
61244
61245         * modules/unistr/u8-cpy-alloc: New file.
61246         * modules/unistr/u16-cpy-alloc: New file.
61247         * modules/unistr/u32-cpy-alloc: New file.
61248         * lib/unistr/u8-cpy-alloc.c: New file.
61249         * lib/unistr/u16-cpy-alloc.c: New file.
61250         * lib/unistr/u32-cpy-alloc.c: New file.
61251         * lib/unistr/u-cpy-alloc.h: New file.
61252
61253         * modules/unistr/u8-endswith: New file.
61254         * modules/unistr/u16-endswith: New file.
61255         * modules/unistr/u32-endswith: New file.
61256         * lib/unistr/u8-endswith.c: New file.
61257         * lib/unistr/u16-endswith.c: New file.
61258         * lib/unistr/u32-endswith.c: New file.
61259         * lib/unistr/u-endswith.h: New file.
61260
61261         * modules/unistr/u8-mblen: New file.
61262         * modules/unistr/u16-mblen: New file.
61263         * modules/unistr/u32-mblen: New file.
61264         * lib/unistr/u8-mblen.c: New file.
61265         * lib/unistr/u16-mblen.c: New file.
61266         * lib/unistr/u32-mblen.c: New file.
61267
61268         * modules/unistr/u8-mbtouc: New file.
61269         * modules/unistr/u16-mbtouc: New file.
61270         * modules/unistr/u32-mbtouc: New file.
61271         * lib/unistr/u8-mbtouc.c: New file.
61272         * lib/unistr/u16-mbtouc.c: New file.
61273         * lib/unistr/u32-mbtouc.c: New file.
61274
61275         * modules/unistr/u8-mbtouc-safe: New file.
61276         * modules/unistr/u16-mbtouc-safe: New file.
61277         * modules/unistr/u32-mbtouc-safe: New file.
61278         * lib/unistr/u8-mbtouc-safe.c: New file.
61279         * lib/unistr/u16-mbtouc-safe.c: New file.
61280         * lib/unistr/u32-mbtouc-safe.c: New file.
61281
61282         * modules/unistr/u8-move: New file.
61283         * modules/unistr/u16-move: New file.
61284         * modules/unistr/u32-move: New file.
61285         * lib/unistr/u8-move.c: New file.
61286         * lib/unistr/u16-move.c: New file.
61287         * lib/unistr/u32-move.c: New file.
61288         * lib/unistr/u-move.h: New file.
61289
61290         * modules/unistr/u8-next: New file.
61291         * modules/unistr/u16-next: New file.
61292         * modules/unistr/u32-next: New file.
61293         * lib/unistr/u8-next.c: New file.
61294         * lib/unistr/u16-next.c: New file.
61295         * lib/unistr/u32-next.c: New file.
61296
61297         * modules/unistr/u8-prev: New file.
61298         * modules/unistr/u16-prev: New file.
61299         * modules/unistr/u32-prev: New file.
61300         * lib/unistr/u8-prev.c: New file.
61301         * lib/unistr/u16-prev.c: New file.
61302         * lib/unistr/u32-prev.c: New file.
61303
61304         * modules/unistr/u8-set: New file.
61305         * modules/unistr/u16-set: New file.
61306         * modules/unistr/u32-set: New file.
61307         * lib/unistr/u8-set.c: New file.
61308         * lib/unistr/u16-set.c: New file.
61309         * lib/unistr/u32-set.c: New file.
61310         * lib/unistr/u-set.h: New file.
61311
61312         * modules/unistr/u8-startswith: New file.
61313         * modules/unistr/u16-startswith: New file.
61314         * modules/unistr/u32-startswith: New file.
61315         * lib/unistr/u8-startswith.c: New file.
61316         * lib/unistr/u16-startswith.c: New file.
61317         * lib/unistr/u32-startswith.c: New file.
61318         * lib/unistr/u-startswith.h: New file.
61319
61320         * modules/unistr/u8-stpcpy: New file.
61321         * modules/unistr/u16-stpcpy: New file.
61322         * modules/unistr/u32-stpcpy: New file.
61323         * lib/unistr/u8-stpcpy.c: New file.
61324         * lib/unistr/u16-stpcpy.c: New file.
61325         * lib/unistr/u32-stpcpy.c: New file.
61326         * lib/unistr/u-stpcpy.h: New file.
61327
61328         * modules/unistr/u8-stpncpy: New file.
61329         * modules/unistr/u16-stpncpy: New file.
61330         * modules/unistr/u32-stpncpy: New file.
61331         * lib/unistr/u8-stpncpy.c: New file.
61332         * lib/unistr/u16-stpncpy.c: New file.
61333         * lib/unistr/u32-stpncpy.c: New file.
61334         * lib/unistr/u-stpncpy.h: New file.
61335
61336         * modules/unistr/u8-strcat: New file.
61337         * modules/unistr/u16-strcat: New file.
61338         * modules/unistr/u32-strcat: New file.
61339         * lib/unistr/u8-strcat.c: New file.
61340         * lib/unistr/u16-strcat.c: New file.
61341         * lib/unistr/u32-strcat.c: New file.
61342         * lib/unistr/u-strcat.h: New file.
61343
61344         * modules/unistr/u8-strchr: New file.
61345         * modules/unistr/u16-strchr: New file.
61346         * modules/unistr/u32-strchr: New file.
61347         * lib/unistr/u8-strchr.c: New file.
61348         * lib/unistr/u16-strchr.c: New file.
61349         * lib/unistr/u32-strchr.c: New file.
61350
61351         * modules/unistr/u8-strcmp: New file.
61352         * modules/unistr/u16-strcmp: New file.
61353         * modules/unistr/u32-strcmp: New file.
61354         * lib/unistr/u8-strcmp.c: New file.
61355         * lib/unistr/u16-strcmp.c: New file.
61356         * lib/unistr/u32-strcmp.c: New file.
61357
61358         * modules/unistr/u8-strcpy: New file.
61359         * modules/unistr/u16-strcpy: New file.
61360         * modules/unistr/u32-strcpy: New file.
61361         * lib/unistr/u8-strcpy.c: New file.
61362         * lib/unistr/u16-strcpy.c: New file.
61363         * lib/unistr/u32-strcpy.c: New file.
61364         * lib/unistr/u-strcpy.h: New file.
61365
61366         * modules/unistr/u8-strcspn: New file.
61367         * modules/unistr/u16-strcspn: New file.
61368         * modules/unistr/u32-strcspn: New file.
61369         * lib/unistr/u8-strcspn.c: New file.
61370         * lib/unistr/u16-strcspn.c: New file.
61371         * lib/unistr/u32-strcspn.c: New file.
61372         * lib/unistr/u-strcspn.h: New file.
61373
61374         * modules/unistr/u8-strdup: New file.
61375         * modules/unistr/u16-strdup: New file.
61376         * modules/unistr/u32-strdup: New file.
61377         * lib/unistr/u8-strdup.c: New file.
61378         * lib/unistr/u16-strdup.c: New file.
61379         * lib/unistr/u32-strdup.c: New file.
61380         * lib/unistr/u-strdup.h: New file.
61381
61382         * modules/unistr/u8-strlen: New file.
61383         * modules/unistr/u16-strlen: New file.
61384         * modules/unistr/u32-strlen: New file.
61385         * lib/unistr/u8-strlen.c: New file.
61386         * lib/unistr/u16-strlen.c: New file.
61387         * lib/unistr/u32-strlen.c: New file.
61388         * lib/unistr/u-strlen.h: New file.
61389
61390         * modules/unistr/u8-strmblen: New file.
61391         * modules/unistr/u16-strmblen: New file.
61392         * modules/unistr/u32-strmblen: New file.
61393         * lib/unistr/u8-strmblen.c: New file.
61394         * lib/unistr/u16-strmblen.c: New file.
61395         * lib/unistr/u32-strmblen.c: New file.
61396
61397         * modules/unistr/u8-strmbtouc: New file.
61398         * modules/unistr/u16-strmbtouc: New file.
61399         * modules/unistr/u32-strmbtouc: New file.
61400         * lib/unistr/u8-strmbtouc.c: New file.
61401         * lib/unistr/u16-strmbtouc.c: New file.
61402         * lib/unistr/u32-strmbtouc.c: New file.
61403
61404         * modules/unistr/u8-strncat: New file.
61405         * modules/unistr/u16-strncat: New file.
61406         * modules/unistr/u32-strncat: New file.
61407         * lib/unistr/u8-strncat.c: New file.
61408         * lib/unistr/u16-strncat.c: New file.
61409         * lib/unistr/u32-strncat.c: New file.
61410         * lib/unistr/u-strncat.h: New file.
61411
61412         * modules/unistr/u8-strncmp: New file.
61413         * modules/unistr/u16-strncmp: New file.
61414         * modules/unistr/u32-strncmp: New file.
61415         * lib/unistr/u8-strncmp.c: New file.
61416         * lib/unistr/u16-strncmp.c: New file.
61417         * lib/unistr/u32-strncmp.c: New file.
61418
61419         * modules/unistr/u8-strncpy: New file.
61420         * modules/unistr/u16-strncpy: New file.
61421         * modules/unistr/u32-strncpy: New file.
61422         * lib/unistr/u8-strncpy.c: New file.
61423         * lib/unistr/u16-strncpy.c: New file.
61424         * lib/unistr/u32-strncpy.c: New file.
61425         * lib/unistr/u-strncpy.h: New file.
61426
61427         * modules/unistr/u8-strnlen: New file.
61428         * modules/unistr/u16-strnlen: New file.
61429         * modules/unistr/u32-strnlen: New file.
61430         * lib/unistr/u8-strnlen.c: New file.
61431         * lib/unistr/u16-strnlen.c: New file.
61432         * lib/unistr/u32-strnlen.c: New file.
61433         * lib/unistr/u-strnlen.h: New file.
61434
61435         * modules/unistr/u8-strpbrk: New file.
61436         * modules/unistr/u16-strpbrk: New file.
61437         * modules/unistr/u32-strpbrk: New file.
61438         * lib/unistr/u8-strpbrk.c: New file.
61439         * lib/unistr/u16-strpbrk.c: New file.
61440         * lib/unistr/u32-strpbrk.c: New file.
61441         * lib/unistr/u-strpbrk.h: New file.
61442
61443         * modules/unistr/u8-strrchr: New file.
61444         * modules/unistr/u16-strrchr: New file.
61445         * modules/unistr/u32-strrchr: New file.
61446         * lib/unistr/u8-strrchr.c: New file.
61447         * lib/unistr/u16-strrchr.c: New file.
61448         * lib/unistr/u32-strrchr.c: New file.
61449
61450         * modules/unistr/u8-strspn: New file.
61451         * modules/unistr/u16-strspn: New file.
61452         * modules/unistr/u32-strspn: New file.
61453         * lib/unistr/u8-strspn.c: New file.
61454         * lib/unistr/u16-strspn.c: New file.
61455         * lib/unistr/u32-strspn.c: New file.
61456         * lib/unistr/u-strspn.h: New file.
61457
61458         * modules/unistr/u8-strstr: New file.
61459         * modules/unistr/u16-strstr: New file.
61460         * modules/unistr/u32-strstr: New file.
61461         * lib/unistr/u8-strstr.c: New file.
61462         * lib/unistr/u16-strstr.c: New file.
61463         * lib/unistr/u32-strstr.c: New file.
61464         * lib/unistr/u-strstr.h: New file.
61465
61466         * modules/unistr/u8-strtok: New file.
61467         * modules/unistr/u16-strtok: New file.
61468         * modules/unistr/u32-strtok: New file.
61469         * lib/unistr/u8-strtok.c: New file.
61470         * lib/unistr/u16-strtok.c: New file.
61471         * lib/unistr/u32-strtok.c: New file.
61472         * lib/unistr/u-strtok.h: New file.
61473
61474         * modules/unistr/u8-uctomb: New file.
61475         * modules/unistr/u16-uctomb: New file.
61476         * modules/unistr/u32-uctomb: New file.
61477         * lib/unistr/u8-uctomb.c: New file.
61478         * lib/unistr/u16-uctomb.c: New file.
61479         * lib/unistr/u32-uctomb.c: New file.
61480
61481         * MODULES.html.sh (Unicode string functions): Add the new modules.
61482
61483 2007-01-08  Bruno Haible  <bruno@clisp.org>
61484
61485         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
61486         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
61487         subdirectories.
61488
61489 2007-01-08  Karl Berry  <karl@gnu.org>
61490
61491         * doc/error.texi: mention that main() fns must set program_name
61492         when progname is used.
61493
61494 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
61495
61496         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
61497         WCTYPE_H is empty, for the benefit of builds from non-distclean
61498         directories.  Problem reported by Eric Blake in
61499         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
61500
61501 2007-01-08  Bruno Haible  <bruno@clisp.org>
61502
61503         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
61504         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
61505         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
61506         PROVIDE_CANONICALIZE_FILENAME_MODE.
61507         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
61508
61509 2007-01-08  Bruno Haible  <bruno@clisp.org>
61510
61511         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
61512         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
61513         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
61514         * lib/fts.c: Likewise.
61515         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
61516
61517 2006-12-25  Bruno Haible  <bruno@clisp.org>
61518
61519         * modules/utf8-ucs4-safe: New file.
61520         * lib/utf8-ucs4-safe.h: New file.
61521         * lib/unistr/utf8-ucs4-safe.c: New file.
61522
61523         * modules/utf16-ucs4-safe: New file.
61524         * lib/utf16-ucs4-safe.h: New file.
61525         * lib/unistr/utf16-ucs4-safe.c: New file.
61526
61527         * MODULES.html.sh (Unicode string functions): Add the new modules.
61528
61529 2007-01-08  Bruno Haible  <bruno@clisp.org>
61530
61531         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
61532         (Depends-on): Add unitypes.
61533         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61534         (u8_mbtouc_aux): Move out to separate file.
61535         (u8_mbtouc): Use ucs4_t, uint8_t types.
61536         * lib/unistr/utf8-ucs4.c: New file.
61537
61538         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
61539         (Depends-on): Add unitypes.
61540         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61541         (u16_mbtouc_aux): Move out to separate file.
61542         (u16_mbtouc): Use ucs4_t, uint16_t types.
61543         * lib/unistr/utf16-ucs4.c: New file.
61544
61545         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
61546         (Depends-on): Add unitypes.
61547         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
61548         (u8_uctomb_aux): Move out to separate file.
61549         (u8_uctomb): Use ucs4_t, uint8_t types.
61550         * lib/unistr/ucs4-utf8.c: New file.
61551
61552         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
61553         (Depends-on): Add unitypes.
61554         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
61555         (u16_uctomb_aux): Move out to separate file.
61556         (u16_uctomb): Use ucs4_t, uint16_t types.
61557         * lib/unistr/ucs4-utf16.c: New file.
61558
61559 2006-12-25  Bruno Haible  <bruno@clisp.org>
61560
61561         * modules/unitypes: New file.
61562         * lib/unitypes.h: New file.
61563         * MODULES.html.sh (func_all_modules): New section "Unicode string
61564         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
61565         this section. Add unitypes.
61566
61567 2007-01-08  Bruno Haible  <bruno@clisp.org>
61568
61569         Avoid variable names that conflict with those from libtool.
61570         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
61571         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
61572         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
61573         library_names_spec to acl_library_names_spec, hardcode_* to
61574         acl_hardcode_*.
61575         Reported by Ralf Wildenhues.
61576
61577 2007-01-08  Bruno Haible  <bruno@clisp.org>
61578
61579         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
61580         definition.
61581         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
61582         definition.
61583         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
61584         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
61585         definition.
61586         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
61587         definition.
61588         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
61589         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
61590         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
61591         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
61592         definition.
61593         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
61594         definition.
61595         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
61596         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
61597         GC_USE_<algorithm>.
61598         * lib/gc-libgcrypt.c: Likewise.
61599         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
61600         * modules/gc-arctwo (configure.ac): Likewise.
61601         * modules/gc-des (configure.ac): Likewise.
61602         * modules/gc-hmac-md5 (configure.ac): Likewise.
61603         * modules/gc-hmac-sha1 (configure.ac): Likewise.
61604         * modules/gc-md2 (configure.ac): Likewise.
61605         * modules/gc-md4 (configure.ac): Likewise.
61606         * modules/gc-md5 (configure.ac): Likewise.
61607         * modules/gc-random (configure.ac): Likewise.
61608         * modules/gc-rijndael (configure.ac): Likewise.
61609         * modules/gc-sha1 (configure.ac): Likewise.
61610
61611 2007-01-08  Bruno Haible  <bruno@clisp.org>
61612
61613         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
61614         macro definition.
61615         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
61616         definition.
61617         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
61618         definition.
61619         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
61620         * modules/fcntl-safer (configure.ac): Likewise.
61621         * modules/fopen-safer (configure.ac): Likewise.
61622         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
61623         GNULIB_FWRITEERROR macro definition.
61624
61625 2007-01-08  Bruno Haible  <bruno@clisp.org>
61626
61627         * m4/gnulib-common.m4: New file.
61628         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
61629         (func_get_filelist): Add m4/gnulib-common.m4.
61630
61631 2007-01-08  Bruno Haible  <bruno@clisp.org>
61632
61633         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
61634         command.
61635
61636 2007-01-08  Jim Meyering  <jim@meyering.net>
61637
61638         Use a more robust test for a "can't happen" condition.
61639         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
61640         narrowed the st_size value.  Presuming the "can't happen" condition
61641         is true, that narrowing could conceivably convert an invalid st_size
61642         value into a valid one.  Instead, use a change based on Matthew
61643         Woehlke's original patch.
61644
61645         Slight readability improvement: use an assert-like macro
61646         in place of literal "abort ()" uses.
61647         * lib/fts.c (fts_assert): Define.
61648         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
61649         Use this macro instead of a bare 'abort'.
61650
61651 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
61652
61653         Don't worry about using IRIX 5.3's wctype.h broken definitions;
61654         simply work around them.
61655         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
61656         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
61657         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
61658         declaring.
61659         Don't bother to define as macros, since the standard doesn't require it.
61660         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
61661         longer worry about IRIX 5.3.
61662         (HAVE_WCTYPE_CTMP_BUG): Remove.
61663
61664 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61665
61666         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
61667         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
61668         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
61669         Problems reported by Georg Schwarz for IRIX 5.3.
61670
61671         * gnulib-tool (autoconf_minversion): Take the maximum version number
61672         found, not the minimum.  Problem reported by James Youngman.
61673
61674 2007-01-03  Karl Berry  <karl@gnu.org>
61675
61676         * doc/error.texi: new file, explaining interaction with progname.
61677         * doc/gnulib.texi: include it.  Update copyright.
61678
61679 2007-01-03  Simon Josefsson  <simon@josefsson.org>
61680
61681         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
61682         AC_CANONICAL_HOST, to improve autobuild outputs.
61683
61684 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
61685             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
61686
61687         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
61688         sockets, server sockets, and other file descriptors.  Count errors
61689         to compute the return value.  Reorder the code a bit to be easier
61690         to follow.  Don't set event bits that were not requested (except
61691         POLLERR and POLLHUP).
61692
61693 2007-01-01  Bruno Haible  <bruno@clisp.org>
61694
61695         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
61696
61697 2007-01-03  Jim Meyering  <jim@meyering.net>
61698
61699         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
61700
61701 2007-01-02  Bruno Haible  <bruno@clisp.org>
61702
61703         * modules/settime (Include): Require timespec.h.
61704         * modules/nanosleep (Include): Likewise.
61705
61706 2007-01-01  Bruno Haible  <bruno@clisp.org>
61707
61708         * gnulib-tool (func_emit_copyright_notice): Bump year.
61709         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
61710
61711 2007-01-01  Bruno Haible  <bruno@clisp.org>
61712
61713         Improve support for OpenBSD.
61714         * build-aux/config.rpath (libname_spec): Export.
61715         (library_names_spec): New variable. Export.
61716         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
61717         library_names_spec from the config.rpath output. Locate shared library
61718         through the name pattern in library_names_spec.
61719
61720 2007-01-01  Eric Blake  <ebb9@byu.net>
61721
61722         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
61723
61724 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
61725
61726         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
61727         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
61728         assume the C locale, and avoid an "eval" that could cause trouble.
61729         Problem with SORT reported by Bob Proulx.
61730
61731         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
61732         Define.  Trivial patch from Henning Nielsen Lund, originally
61733         sent to bug-grep@gnu.org today.
61734
61735 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61736
61737         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
61738         struct stat.  Problem reported by Henning Nielsen Lund.
61739         * lib/acl.c: Include acl.h first, to check interface.  Don't
61740         bother to include sys/types.h and sys/stat.h again.
61741
61742 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61743
61744         Import the following change from libc; problem reported by
61745         Sven Verdoolaege.
61746
61747         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
61748
61749         [BZ #1373]
61750         * lib/argp.h: Remove __NTH for __argp_usage inline function.
61751
61752 2006-12-28  Jim Meyering  <jim@meyering.net>
61753
61754         * build-aux/announce-gen: Do not assume that the package
61755         builds any of tar.gz, tar.bz2, and .xdelta files.
61756         Suggestion from Simon Josefsson.
61757
61758 2006-12-28  Simon Josefsson  <simon@josefsson.org>
61759
61760         * modules/announce-gen: New file.
61761
61762 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
61763
61764         * lib/mbchar.h: Just include <wctype.h>; the wctype module
61765         handles its gotchas now.
61766         * lib/mbswidth.c: Likewise.
61767         * lib/wcwidth.h: Likewise.
61768         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
61769         and iswcntrl; the wctype module does this stuff now.
61770         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
61771         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61772         * modules/mbchar (Depends-on): Add wctype.
61773         * modules/mbswidth (Depends-on): Likewise.
61774         * modules/wcwidth (Depends-on): Likewise.
61775
61776 2006-12-27  Eric Blake  <ebb9@byu.net>
61777
61778         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
61779         module uses more than what <wctype.h> is required to provide.
61780
61781 2006-12-26  Eric Blake  <ebb9@byu.net>
61782
61783         * gnulib-tool (sed_extract_prog): Avoid space-tab.
61784
61785 2006-12-26  Eric Blake  <ebb9@byu.net>
61786
61787         * modules/absolute-header: New module.
61788         * modules/fcntl (Depends-on): Depend on it.
61789         * modules/inttypes (Depends-on): Likewise.
61790         * modules/stdint (Depends-on): Likewise.
61791         * modules/sys_stat (Depends-on): Likewise.
61792         * modules/wctype (Depends-on): Likewise.
61793         * MODULES.html.sh (Support for building libraries and
61794         executables): Document it.
61795
61796 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
61797
61798         * gnulib-tool (SED): Remove, undoing previous change.
61799         The problem was that it broke coreutils on Solaris, because
61800         "sed --posix" leaked into a makefile.
61801         (sed): New alias, if 'alias' and GNU sed.
61802
61803 2006-12-24  Jim Meyering  <jim@meyering.net>
61804
61805         Work around an fchownat bug in glibc-2.4:
61806         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
61807         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
61808         in spite of the -P option.
61809         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
61810         New macros.
61811         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
61812         * modules/openat (Files): Add lib/fchownat.c.
61813         * lib/openat.c (fchownat): Don't define here.  Move to...
61814         * lib/fchownat.c: ...this new file.
61815
61816 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61817
61818         Fix bug reported by Bruno Haible in
61819         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
61820         where quotearg.c didn't compile on Mac OS X 10.2 because it
61821         lacks <wchar.h> and wint_t.
61822         * lib/wctype_.h (__wctype_wint_t): New type.
61823         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
61824         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
61825         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
61826         Arg is now of type __wctype_wint_t, not wint_t.
61827         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
61828         substitute HAVE_WINT_T.
61829         * modules/wctype (Files): Add m4/wint_t.m4.
61830         (wctype.h): Substitute HAVE_WINT_T.
61831
61832 2006-12-23  Bruno Haible  <bruno@clisp.org>
61833
61834         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
61835
61836 2006-12-23  Bruno Haible  <bruno@clisp.org>
61837
61838         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
61839         S_ISLNK.
61840         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
61841         mingw.
61842
61843 2006-12-22  Bruno Haible  <bruno@clisp.org>
61844
61845         * lib/copy-file.c: Include acl.h.
61846         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
61847         Close the file descriptors only after being done with copy_acl.
61848         * modules/copy-file (Depends-on): Add acl.
61849
61850 2006-12-22  Bruno Haible  <bruno@clisp.org>
61851
61852         * gnulib-tool (SED): New variable.
61853         Use $SED instead of sed everywhere.
61854
61855 2006-12-22  Bruno Haible  <bruno@clisp.org>
61856
61857         * modules/no-c++: New file.
61858         * m4/no-c++.m4: New file.
61859         * MODULES.html.sh (Support for building libraries and executables):
61860         Add no-c++.
61861
61862 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
61863
61864         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
61865         Include <limits.h>, and use its INT_MAX to rewrite the
61866         j loop so that it does not overflow 'int'.  Problem reported by
61867         Ralf Wildenhues in
61868         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
61869         Play it safe by shifting left by 1 rather than multiplying by 2,
61870         as GCC is less likely to optimize this away when the value
61871         is signed (when it assumes overflow leads to undefined behavior).
61872         Also, don't assume time_t uses two's complement.
61873
61874 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
61875
61876         * MODULES.html.sh: New module wctype.
61877         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
61878         * lib/fnmatch.c: Don't bother to include <wchar.h> before
61879         <wctype.h>, since the new wctype module should fix this.
61880         * lib/quotearg.c: Include <wctype.h> unconditionally, since
61881         the wctype module should arrange for it.
61882         * lib/regex_internal.h: Likewise.
61883         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
61884         since the wctype module should handle this now.
61885         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
61886         * modules/fnmatch (Depends-on): Add wctype.
61887         * modules/quotearg (Depends-on): Likewise.
61888         * modules/regex (Depends-on): Likewise.
61889
61890 2006-12-19  Bruno Haible  <bruno@clisp.org>
61891
61892         * lib/strdup.h [C++]: Wrap definitions in extern "C".
61893         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
61894
61895 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61896
61897         * modules/savewd (Depends-on): Fix dependency on fcntl.
61898
61899 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61900
61901         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
61902         conforms to C99, rather than relying on the user's environment
61903         setting of STDINT_H.
61904
61905 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61906         and Eric Blake  <ebb9@byu.net>
61907
61908         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
61909         This is more consistent with the other defines here.
61910         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
61911         Port to z/OS.  Problem reported by Paul Gilmartin.
61912         Change local vars to use gl_ prefix rather than ac_.
61913         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
61914         with other defines.
61915         * modules/double-slash-root: New module.
61916         * modules/dirname (Files): Remove m4/double-slash-root.m4.
61917         (Depends-on): Add double-slash-root.
61918         * MODULES.html.sh (File system functions): Mention new module.
61919
61920 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
61921
61922         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
61923         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
61924         This is for the benefit of gzip, which doesn't do i18n.
61925
61926 2006-12-12  Jim Meyering  <jim@meyering.net>
61927
61928         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
61929         Reported by Andreas Schwab <schwab@suse.de>.
61930
61931 2006-12-12  Bruno Haible  <bruno@clisp.org>
61932
61933         Merge these changes.
61934         2006-09-05  Bruno Haible  <bruno@clisp.org>
61935         * lib/iconvme.c (iconv_string): No need to save and restore errno when
61936         iconv_alloc succeeded.
61937         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
61938         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
61939         test for " && dest " at the end - dest is always != NULL there. Call
61940         iconv with 4xNULL arguments initially, to reset the state. Call iconv
61941         with 2xNULL arguments, also to flush the state storage. Handle the
61942         IRIX iconv behaviour. Realloc the final result, to throw away unused
61943         memory.
61944
61945 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
61946
61947         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
61948         and fchmodat unconditionally, since glibc 2.4 has them.
61949         Problem reported by Arkadiusz Miskiewicz.
61950
61951 2006-12-10  Bruno Haible  <bruno@clisp.org>
61952
61953         * gnulib-tool (func_import): Show the include files only for those
61954         modules that are copied and specified.
61955         Reported by Karl Berry.
61956
61957 2006-12-08  Jim Meyering  <jim@meyering.net>
61958
61959         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
61960         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
61961
61962         * build-aux/announce-gen: Add two new options, both optional:
61963         --bootstrap-tools=TOOL_LIST
61964               a comma-separated list of tools, e.g.,
61965               autoconf,automake,bison,gnulib
61966         --gnulib-snapshot-date=DATE
61967               if gnulib is in the bootstrap tool list,
61968               then report this as the snapshot date.
61969               If not specified, use the current date/time.
61970               If you specify a date here, be sure it's UTC.
61971
61972 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61973
61974         * tests/test-argp-2.sh: Fix test to match actual output.
61975         (func_compare): Fix sed script to be portable.
61976
61977 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
61978
61979         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
61980         workaround for this case.  It is not autoconfigured now; offhand
61981         it's hard to see how to autoconfigure it.
61982
61983 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
61984
61985         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
61986         a directory that is about to be chowned.  Such a directory's
61987         initial file permissions should permit the owner only and this
61988         should not be changed until after the chown, since the group and
61989         other bits would be incorrect if they granted permission before
61990         the chown.
61991
61992         Fix porting problem for iswctype reported by Georg Schwarz in:
61993         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
61994         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
61995         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
61996         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
61997         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
61998
61999 2006-12-03  Jim Meyering  <jim@meyering.net>
62000
62001         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
62002         p->fts_statp may not yet be defined.
62003         (fts_read): Instead, set it in the caller, once p->fts_statp is
62004         sure to be defined, and corresponds to a top-level directory.
62005         This bug made du -x fail.  Here's the coreutils test case:
62006         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
62007         Reported by Mike Frysinger.
62008
62009 2006-12-01  Jim Meyering  <jim@meyering.net>
62010
62011         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
62012         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
62013         Reported by Simon Josefsson.
62014
62015 2006-11-30  Jim Meyering  <jim@meyering.net>
62016
62017         * m4/warning.m4: Use the all-permissive copyright notice
62018         recommended by RMS (rather than LGPL).
62019         * m4/vararrays.m4: Likewise.
62020         * m4/flexmember.m4: Likewise.
62021
62022 2006-11-29  Bruno Haible  <bruno@clisp.org>
62023
62024         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62025         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
62026         using +=.
62027         Reported by Simon Josefsson <simon@josefsson.org>.
62028
62029 2006-11-28  James Youngman <jay@gnu.org>
62030
62031         * README: Advise users that they might find the bug-gnulib@gnu.org
62032         and autotools-announce@gnu.org mailing lists useful.
62033
62034 2006-11-28  Bruno Haible  <bruno@clisp.org>
62035
62036         * m4/ptrdiff_max.m4: Remove file.
62037
62038 2006-11-21  Bruno Haible  <bruno@clisp.org>
62039
62040         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
62041         _AC_COMPUTE_INT.
62042         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62043         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
62044         _AC_COMPUTE_INT.
62045         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62046         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
62047         _AC_COMPUTE_INT.
62048         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62049
62050 2006-11-28  Jim Meyering  <jim@meyering.net>
62051
62052         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
62053         warning from "gcc -Wshadow" about shadowing the builtin.
62054
62055 2006-11-27  Bruno Haible  <bruno@clisp.org>
62056
62057         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
62058         _AC_COMPUTE_INT.
62059         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62060
62061 2006-11-27  Bruno Haible  <bruno@clisp.org>
62062             Paul Eggert  <eggert@cs.ucla.edu>
62063
62064         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
62065
62066 2006-11-26  Bruno Haible  <bruno@clisp.org>
62067
62068         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62069         noinst_LTLIBRARIES.
62070
62071 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
62072             Bruno Haible  <bruno@clisp.org>
62073
62074         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
62075         if compiling with "gcc -ansi".
62076
62077 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
62078
62079         Fix some incompatibilities with gcc -ansi -pedantic.
62080         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
62081         if compiling pedantically with GCC, unless it's C99 or later.
62082         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
62083         it mishandles gcc -ansi -pedantic as well.
62084         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
62085         if gcc -pedantic.
62086         * lib/regexec.c (check_node_accept_bytes): Don't use auto
62087         initializers for struct if -pedantic, unless it's C99 or later.
62088
62089 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
62090
62091         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
62092         Don't close an fd more than once. Identical atimes indicate
62093         success, not failure.
62094
62095 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
62096
62097         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
62098
62099 2006-11-23  Jim Meyering  <jim@meyering.net>
62100
62101         * build-aux/announce-gen: New file.  From coreutils.
62102
62103 2006-11-22  Jim Meyering  <jim@meyering.net>
62104
62105         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
62106         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
62107         (fts_read): Use a temporary to narrow the overused st_size member
62108         before using it in a switch statement.  Reported by Matthew Woehlke.
62109
62110         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
62111         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
62112
62113 2006-11-20  Bruno Haible  <bruno@clisp.org>
62114
62115         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
62116         changequote instead of pairs of brackets.
62117         Reported by Andreas Schwab <schwab@suse.de>.
62118
62119 2006-11-21  Jim Meyering  <jim@meyering.net>
62120
62121         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
62122         so as to remain compatible with older compilers.
62123         Patch from Michael Deutschmann.
62124
62125 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
62126
62127         * MODULES.html.sh (File system functions): Add openat.
62128
62129         * lib/openat.h (rpl_fstatat): New macro, if
62130         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
62131         (fstatat): Define to rpl_fstatat under the same conditions,
62132         unless COMPILING_FSTATAT.
62133         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
62134         seems to have the bug.
62135         * lib/fstatat.c: New file.
62136         * modules/openat (Files): Add it.
62137
62138 2006-11-20  Bruno Haible  <bruno@clisp.org>
62139
62140         * Makefile: New file.
62141
62142 2006-11-20  Jim Meyering  <jim@meyering.net>
62143
62144         The beginnings of syntax-related checks for gnulib.
62145         * lib/Makefile: New file.
62146         * lib/t-idcache: New script.  Ensure that the two halves of
62147         idcache.c stay in sync.
62148
62149         * lib/idcache.c: Adjust comments in user- and group- portions to
62150         be more accurate, and to be consistent with one another.
62151
62152 2006-11-20  Jim Meyering  <jim@meyering.net>
62153
62154         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
62155         continue using the flexible array member (thus, this module performs
62156         half as many malloc calls), with the addition that...
62157         (getgroup, getuser): Consistently record a non-match via an empty
62158         "name" string, and map an empty string match to a NULL return value.
62159         * modules/idcache (Depends-on): Re-add flexmember.
62160
62161         * lib/idcache.c (getuser): Remove all uses of the register keyword.
62162         (getuidbyname, getgroup, getgidbyname): Likewise.
62163
62164         Use cleaner syntax: NULL rather than 0.
62165         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
62166
62167 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
62168
62169         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
62170         It mishandled the case where the group was missing.
62171         Problem reported by Greg Schafer.
62172         * modules/idcache: Likewise.
62173
62174 2006-11-18  Jim Meyering  <jim@meyering.net>
62175
62176         * check-module (%exempt_header): Add exception for some
62177         conditionally-included headers.
62178
62179         * modules/i-ring (Depends-on): Add verify.
62180         (License): Change to LGPL.
62181
62182 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62183
62184         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
62185         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
62186         and inttostr.h.  Use snprintf rather than uinttostr, so that
62187         LGPLed code doesn't depend on GPLed.
62188
62189 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
62190
62191         * modules/inline (License): Change from GPL to LGPL.
62192
62193 2006-11-17  Jim Meyering  <jim@meyering.net>
62194
62195         * modules/d-type (License): Switch to LGPL.
62196
62197 2006-11-15  Bruno Haible  <bruno@clisp.org>
62198
62199         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
62200
62201 2006-11-15  Eric Blake  <ebb9@byu.net>
62202
62203         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
62204         the module dependency.
62205
62206 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62207             Bruno Haible  <bruno@clisp.org>
62208
62209         * gnulib-tool (func_create_testdir): Add license consistency check.
62210
62211 2006-11-15  Eric Blake  <ebb9@byu.net>
62212
62213         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
62214         random "(cached)" in configure output.
62215
62216 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62217
62218         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
62219         test for conforming inttypes.h is both announced and cached.
62220
62221         * MODULES.html.sh (seen_modules, seen_files): New variables.
62222         (func_module): Rewrite to use a few less gnulib-tool and sed
62223         invocations.  Avoid a couple of quadratic algorithms for ...
62224         (missed_modules, missed_files): ... these, with ...
62225         (func_append, func_tmpdir): ... these new functions, from
62226         gnulib-tool.  Analogously, install traps for cleanup.
62227
62228         * tests/test-gc.c (main): Remove unused variables.
62229         * tests/test-read-file.c: Include stdlib.h, for 'free'.
62230
62231 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
62232
62233         * modules/inttostr (License): Change to LGPL.
62234
62235 2006-11-14  Eric Blake  <ebb9@byu.net>
62236
62237         * modules/tempname (License): Change to LGPL.
62238
62239 2006-11-14  Eric Blake  <ebb9@byu.net>
62240
62241         * doc/functions.texi (Function Portability): *printf functions on
62242         Cygwin now understand all POSIX size specifiers.
62243
62244 2006-11-14  Bruno Haible  <bruno@clisp.org>
62245
62246         * modules/c-ctype (License): Change to LGPL.
62247
62248 2006-11-12  Bruno Haible  <bruno@clisp.org>
62249
62250         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
62251         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
62252         for GNOME libraries, for which the include files are installed in
62253         subdirectories of $prefix/include.
62254
62255 2006-11-12  Bruno Haible  <bruno@clisp.org>
62256
62257         * m4/lib-link.m4: Require at least autoconf-2.54.
62258         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
62259         name to underscores for the --with option.
62260
62261 2006-11-13  Bruno Haible  <bruno@clisp.org>
62262
62263         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
62264         the tests directory.
62265         Reported by Ralf Wildenhues.
62266
62267 2006-11-13  Bruno Haible  <bruno@clisp.org>
62268
62269         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
62270         (func_emit_initmacro_end): Undo the override here.
62271         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
62272         Works around the famous automake error in coreutils.
62273
62274 2006-11-13  Eric Blake  <ebb9@byu.net>
62275
62276         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
62277         element, not its node.
62278
62279 2006-11-12  Bruno Haible  <bruno@clisp.org>
62280
62281         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
62282         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
62283
62284 2006-11-12  Bruno Haible  <bruno@clisp.org>
62285
62286         * gnulib-tool: New option --local-symlink.
62287         (func_usage): Document it.
62288         (lsymbolic): New variable.
62289         (func_import, func_create_testdir): If --symlink was not specified,
62290         test whether --local-symlink was specified and the file comes from
62291         the local_gnulib_dir.
62292
62293 2006-11-12  Bruno Haible  <bruno@clisp.org>
62294
62295         * gnulib-tool (func_ln): New function.
62296         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
62297
62298 2006-11-12  Bruno Haible  <bruno@clisp.org>
62299
62300         Finish support for source files in subdirectories.
62301         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
62302         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
62303         AUTOMAKE_OPTIONS.
62304         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
62305
62306 2006-11-12  Bruno Haible  <bruno@clisp.org>
62307
62308         * gnulib-tool (func_get_automake_snippet): Synthesize also an
62309         EXTRA_lib_SOURCES augmentation.
62310         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
62311
62312 2006-11-12  Jim Meyering  <jim@meyering.net>
62313
62314         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
62315         file descriptors.  This also averts a failure on systems with
62316         native openat support when a traversed directory lacks "x" access.
62317         * lib/fts_.h: Include "i-ring.h"
62318         (struct FTS) [fts_fd_ring]: New member.
62319         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
62320         (FCHDIR): Add parentheses.
62321         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
62322         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
62323         When descending, rather than simply closing the previous
62324         fts_cwd_fd value, push that file descriptor onto the ring.
62325         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
62326         (fts_open): Initialize the new fd_ring member.
62327         (fts_close): Clear the ring.
62328         (fts_safe_changedir): When possible, use our new fd_ring to skip
62329         the diropen and fstat and dev/ino comparison that would normally
62330         accompany a virtual `chdir ("..")'.
62331
62332         * modules/fts (Depends-on): Add i-ring.
62333         * modules/i-ring: New module.
62334         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
62335         * m4/i-ring.m4: New file.
62336
62337 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62338
62339         * gnulib-tool (func_create_testdir): Fix replacement of
62340         `build-aux' in configure.ac.  Run autotools in gltests
62341         subdirectory.
62342         (func_create_testdir, func_create_megatestdir, test): There is
62343         no need for '--force' in most autotool invocations in a new
62344         tree.  Actually fail the whole test if any of the tools, or the
62345         configure or make stages fail.
62346
62347         Sync from Automake.
62348         * build-aux/gnupload: Revert last change.  Add pointer to upload
62349         instructions of the GNU Maintenance Instructions.
62350         Suggestion by Karl Berry.
62351
62352 2006-11-10  Jim Meyering  <jim@meyering.net>
62353
62354         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
62355
62356 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62357
62358         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
62359         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
62360         (bind_textdomain_codeset) [! ENABLE_NLS]:
62361         Evaluate all the arguments.  That way, callers get compatible behavior
62362         if the arguments have side effects.  Also, it avoids some GCC
62363         diagnostics in some cases; Joel E. Denny reported problems when Bison
62364         was configured with --enable-gcc-warnigs.
62365
62366 2006-11-10  Jim Meyering  <jim@meyering.net>
62367
62368         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
62369         relevant options in CFLAGS (like -O, -fno-inline) are taken into
62370         account.
62371
62372 2006-11-10  Jim Meyering  <jim@meyering.net>
62373
62374         * modules/inline: New file/module.
62375         * modules/xalloc (Files): Remove m4/inline.m4.
62376         (Depends-on): Add inline, instead.
62377         * modules/oset: Likewise.
62378         * modules/list: Likewise.
62379
62380 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62381
62382         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
62383         Problem reported by Matthew Woehlke.
62384
62385 2006-11-09  Bruno Haible  <bruno@clisp.org>
62386
62387         * lib/tempname.c (gen_tempname): Remove variant that invokes
62388         __gen_tempname.
62389         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
62390         __gen_tempname.
62391
62392 2006-11-08  Bruno Haible  <bruno@clisp.org>
62393
62394         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
62395         to 'yes' instead of 'cross-compiling'.
62396
62397 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
62398
62399         * lib/quotearg.h (quotearg_free): New decl.
62400         * lib/quotearg.c (quotearg_free): New function.
62401         (slot0, nslots, slotvec0, slotvec):
62402         Now file-scope so that quotearg_free can get at them.
62403
62404 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62405
62406         Sync from Automake.
62407         * build-aux/gnupload: Add missing 'gnu' to example URL.
62408         Report by Karl Berry.
62409
62410 2006-11-08  Bruno Haible  <bruno@clisp.org>
62411
62412         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
62413         Suggested by Paul Eggert.
62414
62415 2006-11-08  Jim Meyering  <jim@meyering.net>
62416
62417         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
62418         It's already included if !_LIBC.
62419         (fts_safe_changedir): Add a comment.
62420
62421 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62422
62423         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
62424         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
62425         Matthew Woehlke.
62426
62427         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
62428         definitions up, to avoid colliding with change below.
62429         (static_inline) [HAVE_INLINE]: New macro.
62430         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
62431         Provide extern decls when !HAVE_INLINE.  Do not define unless
62432         static_inline is defined, either by us or by xmalloc.c.  Use
62433         static_inline rather than static inline.
62434         (XCALLOC): Optimize sizeof(T) = 1 case.
62435         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
62436
62437 2006-11-07  Bruno Haible  <bruno@clisp.org>
62438
62439         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
62440         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
62441         AC_C_INLINE.
62442         * modules/xalloc (Files): Add m4/inline.m4.
62443
62444 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62445
62446         * README: Fix typo.
62447         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
62448         (Miscellanous Notes): ...from this.
62449
62450 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62451
62452         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
62453         Mention that offsetof should be used instead of sizeof.
62454         From Bruno Haible.
62455
62456 2006-11-07  Bruno Haible  <bruno@clisp.org>
62457
62458         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
62459
62460 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62461
62462         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62463         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
62464         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62465         (gl_tree_add_before, gl_tree_add_after):
62466         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
62467         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
62468         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62469         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
62470         (gl_linked_add_after, gl_linked_add_at): Likewise.
62471         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
62472         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62473         (gl_tree_add_before, gl_tree_add_after): Likewise.
62474         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
62475         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
62476         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
62477
62478 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62479
62480         * lib/gl_oset.h: Use C comment style, not C++ comment style.
62481
62482 2006-11-06  Bruno Haible  <bruno@clisp.org>
62483
62484         * m4/inline.m4: New file.
62485         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
62486         * modules/list (Files): Add m4/inline.m4.
62487         * modules/oset (Files): Likewise.
62488
62489 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62490
62491         * lib/idcache.c: Include <stddef.h>, for offsetof.
62492         (struct userid.name): Change from char * to a flexible array member.
62493         All uses changed.
62494         * modules/idcache (Depends-on): Add flexmember.
62495
62496         * MODULES.html.sh (Core language properties): New module flexmember.
62497         * modules/flexmember, m4/flexmember.m4: New files.
62498
62499         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
62500         inline functions that are identical with the old xnmalloc_inline,
62501         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
62502         that we can avoid some unnecessary integer multiplications and
62503         divisions in the common case where the element size is known at
62504         compile time.
62505         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
62506         needed.
62507         (xnboundedmalloc): Remove.
62508         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
62509         arguments, for consistency with rest of this header.
62510         (xcharalloc): Rewrite using XNMALLOC.
62511         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
62512         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
62513         versions have been moved to lib/xalloc.h and renamed to be the
62514         non-*_inline versions.
62515         (xmalloc, xrealloc): Implement without reference to the xnmalloc
62516         and xnrealloc functions, since those functions are now inline and
62517         now call us.
62518         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
62519         renaming described above.
62520         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
62521         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
62522         captures the dependency in AC_C_INLINE.
62523
62524         New module canonicalize-lgpl, proposed by Charles Wilson in
62525         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
62526         with a few small changes afterwards.
62527         * MODULES.html.sh (File system functions): New module
62528         canonicalize-lgpl.
62529         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
62530         and canonicalize_file_name.
62531         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
62532         * modules/canonicalize-lgpl: New files.
62533
62534 2006-11-05  Bruno Haible  <bruno@clisp.org>
62535
62536         * gnulib-tool (func_import, func_create_testdir): Create directories
62537         also for files in subdirectories of lib/.
62538
62539 2006-11-05  Bruno Haible  <bruno@clisp.org>
62540
62541         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
62542         ANSI C compliant.
62543
62544 2006-11-03  Bruno Haible  <bruno@clisp.org>
62545
62546         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62547         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
62548         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
62549         (xnboundedmalloc): New inline function.
62550         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
62551         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
62552         xmalloc.
62553         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
62554         xmalloc.
62555         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
62556         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
62557         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
62558         xmalloc.
62559         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
62560         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
62561         xmalloc.
62562         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
62563         gl_tree_add_after): Use XMALLOC instead of xmalloc.
62564         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
62565         xmalloc.
62566         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
62567         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
62568         gl_tree_add_after): Use XMALLOC instead of xmalloc.
62569         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
62570         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
62571         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
62572         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
62573
62574 2006-11-03  Bruno Haible  <bruno@clisp.org>
62575
62576         * lib/c-ctype.h [C++]: Define functions without name mangling.
62577         * lib/fwriteerror.h [C++]: Likewise.
62578         * lib/gcd.h [C++]: Likewise.
62579         * lib/linebreak.h [C++]: Likewise.
62580
62581 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
62582
62583         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
62584         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
62585         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
62586         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
62587         Check for functions and headers just once.
62588         Check for declaration of canonicalize_file_name.
62589         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
62590
62591 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62592
62593         * gnulib-tool (func_import): Fix typo in actioncmd.
62594
62595 2006-11-02  Bruno Haible  <bruno@clisp.org>
62596
62597         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
62598         newline sequence in the Makefile.am snippet as a space, like "make"
62599         does.
62600         Reported by Roger Persson <perrog@gmail.com>.
62601
62602 2006-11-01  Bruno Haible  <bruno@clisp.org>
62603
62604         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
62605         already declared in <string.h>.
62606         * lib/strcase.h (strncasecmp): Don't declare it if yes.
62607
62608 2006-11-01  Bruno Haible  <bruno@clisp.org>
62609
62610         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
62611         * lib/strcase.h: Include <string.h>.
62612         (strcasecmp): Define to rpl_strcasecmp here.
62613
62614 2006-11-01  Bruno Haible  <bruno@clisp.org>
62615
62616         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
62617
62618 2006-11-01  Eric Blake  <ebb9@byu.net>
62619
62620         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
62621
62622         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
62623
62624 2006-10-29  Bruno Haible  <bruno@clisp.org>
62625
62626         Make it compile in C++ mode.
62627         * lib/full-write.c (full_rw): Add a cast.
62628
62629 2006-11-01  Bruno Haible  <bruno@clisp.org>
62630
62631         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
62632         be POSIX compliant.
62633         Reported by Roger Persson <perrog@gmail.com>.
62634
62635 2006-11-01  Eric Blake  <ebb9@byu.net>
62636
62637         * lib/getopt_.h: Fix comments.
62638
62639 2006-10-31  Eric Blake  <ebb9@byu.net>
62640
62641         * modules/tmpdir (Depends-on): Add sys_stat.
62642         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
62643         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
62644         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
62645         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
62646         tempname.
62647
62648 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
62649
62650         Avoid some C++ diagnostics reported by Bruno Haible.
62651         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
62652         xmalloc.
62653         (quotearg_alloc): Use xcharalloc rather than xmalloc.
62654         (struct slotvec): Move to top level.
62655         (quotearg_n_options): Rewrite to avoid xmalloc.
62656         * lib/xalloc.h (xcharalloc): New function.
62657         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
62658         [defined __cplusplus]: Add function template that provides result
62659         type propagation.  This part of the change is from Bruno Haible.
62660
62661 2006-10-29  Bruno Haible  <bruno@clisp.org>
62662
62663         Make it compile in C++ mode.
62664         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
62665         * lib/strnlen1.c (strnlen1): Cast memchr result.
62666         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
62667         * lib/clean-temp.c (string_equals, string_hash): Add casts.
62668         (create_temp_dir): Rename local variable 'template'.
62669         (compile_csharp_using_sscli): Add cast.
62670         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
62671         * lib/findprog.c (find_in_path): Likewise.
62672         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
62673         * lib/wait-process.c (register_slave_subprocess): Likewise.
62674
62675 2006-10-22  Bruno Haible  <bruno@clisp.org>
62676
62677         * modules/tsearch: New file.
62678         * lib/tsearch.h: New file.
62679         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
62680         * m4/tsearch.m4: New file.
62681         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
62682
62683 2006-10-29  Eric Blake  <ebb9@byu.net>
62684
62685         * lib/arcfour.c: Assume config.h.
62686         * lib/arctwo.c: Likewise.
62687         * lib/base64.c: Likewise.
62688         * lib/check-version.c: Likewise.
62689         * lib/crc.c: Likewise.
62690         * lib/des.c: Likewise.
62691         * lib/gc-gnulib.c: Likewise.
62692         * lib/gc-libgcrypt.c: Likewise.
62693         * lib/gc-pbkdf2-sha1.c: Likewise.
62694         * lib/getaddrinfo.c: Likewise.
62695         * lib/getdelim.c: Likewise.
62696         * lib/getline.c: Likewise.
62697         * lib/hmac-md5.c: Likewise.
62698         * lib/hmac-sha1.c: Likewise.
62699         * lib/iconvme.c: Likewise.
62700         * lib/md2.c: Likewise.
62701         * lib/md4.c: Likewise.
62702         * lib/memxor.c: Likewise.
62703         * lib/read-file.c: Likewise.
62704         * lib/readline.c: Likewise.
62705         * lib/rijndael-alg-fst.c: Likewise.
62706         * lib/rijndael-api-fst.c: Likewise.
62707         * lib/xgetdomainname.c: Likewise.
62708
62709 2006-10-28  Eric Blake  <ebb9@byu.net>
62710
62711         * lib/xstrndup.c: Assume config.h.
62712
62713 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
62714
62715         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
62716         stat-macros.h is now for our own macros, whereas stat_h is for
62717         macros in the <sys/stat.h> name space.
62718         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
62719         (STAT_MACROS_H): Remove.
62720         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
62721         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
62722         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
62723         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
62724         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
62725         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
62726         Move these macros to ...
62727         * lib/stat_.h: here.  Don't include stat-macros.h.
62728         * lib/canonicalize.c: Don't include stat-macros.h.
62729         * lib/chown.c: Likewise.
62730         * lib/euidaccess.c: Likewise.
62731         * lib/file-type.c: Likewise.
62732         * lib/filemode.c: Likewise.
62733         * lib/glob.c: Likewise.
62734         * lib/isapipe.c: Likewise.
62735         * lib/lchown.c: Likewise.
62736         * lib/lstat.c: Likewise.
62737         * lib/mkdir-p.c: Likewise.
62738         * lib/rmdir.c: Likewise.
62739         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
62740         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
62741         unless mkdir isn't declared, to speed up 'configure'.
62742         Always create sys/stat.h, since it's unlikely any real sys/stat.h
62743         would define all the S_* symbols.
62744         * modules/canonicalize (Depends-on):
62745         Depend on sys_stat, not stat-macros.
62746         * modules/chown: Likewise.
62747         * modules/euidaccess: Likewise.
62748         * modules/filemode: Likewise.
62749         * modules/file-type: Likewise.
62750         * modules/glob: Likewise.
62751         * modules/isapipe: Likewise.
62752         * modules/lchown: Likewise.
62753         * modules/lstat: Likewise.
62754         * modules/mkancesdirs: Likewise.
62755         * modules/rmdir: Likewise.
62756         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
62757         * modules/modechange: Likewise.
62758         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
62759         (configure.ac): Remove gl_STAT_MACROS.
62760         * modules/sys_stat (Depends-on): Remove stat-macros.
62761
62762 2006-10-27  Bruno Haible  <bruno@clisp.org>
62763
62764         * m4/signed.m4: Remove file.
62765         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
62766         invocation.
62767         * modules/vasnprintf (Files): Remove m4/signed.m4.
62768
62769 2006-10-27  Bruno Haible  <bruno@clisp.org>
62770
62771         Update to GNU gettext 0.16.
62772         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
62773         m4/inttypes-h.m4, m4/signed.m4.
62774         * m4/gettext.m4: Update to GNU gettext 0.16.
62775         * m4/intl.m4: New file, from GNU gettext.
62776         * m4/intldir.m4: New file, from GNU gettext.
62777         * config/srclist.txt: Update
62778
62779 2006-10-27  Eric Blake  <ebb9@byu.net>
62780
62781         * MODULES.html.sh: Document tempname.
62782         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
62783         dependencies.
62784         (Files): Move lib/tempname.c...
62785         * modules/tempname: ...to this new module.
62786         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
62787         (gl_PREREQ_TEMPNAME): Move...
62788         * m4/tempname.m4: ...to this new file.
62789         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
62790         * modules/sys_stat (Depends-on): Add stat-macros.
62791         * lib/stat_.h (includes): Pick up stat macros.
62792         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
62793         if stat macros are broken.
62794         * lib/tempname.c (includes): No need to include "stat-macros.h".
62795         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
62796         (direxists, __path_search) [!_LIBC]: Don't compile these in
62797         gnulib; the tmpdir module covers that.
62798         * lib/tempname.h: New file.
62799
62800 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
62801
62802         * COPYING: Explain how gnulib-tool converts licence headers.
62803         Almost all wording by Eric Blake.
62804
62805 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
62806
62807         * lib/mbchar.h (is_basic_table): Make read-only.
62808         * lib/mbchar.c (is_basic_table): Likewise.
62809         Reported by John Darrington.
62810
62811 2006-10-25  Bruno Haible  <bruno@clisp.org>
62812
62813         * lib/progname.h (set_program_name): Undefine before defining.
62814
62815 2006-10-25  Bruno Haible  <bruno@clisp.org>
62816
62817         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
62818         false for non-gcc C++ compilers.
62819         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
62820
62821 2006-10-24  Bruno Haible  <bruno@clisp.org>
62822
62823         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
62824         iconv implementations like Irix iconv.
62825
62826 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62827
62828         * modules/vararrays: New file.
62829         * m4/vararrays.m4: New file, taken from diffutils.
62830         * MODULES.html.sh: New module vararrays.
62831
62832 2006-10-24  Karl Berry  <karl@gnu.org>
62833
62834         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
62835         Don't call GNU Unix.
62836
62837 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62838
62839         * users.txt: Add Libtool.
62840
62841         Sync from Libtool:
62842
62843         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62844
62845         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
62846         to gnulib's policy of including config.h unconditionally.
62847
62848 2006-10-24  Bruno Haible  <bruno@clisp.org>
62849
62850         * modules/wcwidth (Files): Add m4/wint_t.m4.
62851         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
62852         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
62853
62854 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62855
62856         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
62857         to pacify GCC with some -W flags enabled.  Problem reported by
62858         Bruno Haible.
62859
62860 2006-10-24  Jim Meyering  <jim@meyering.net>
62861
62862         * MODULES.html.sh: Remove uinttostr.  It's not a module.
62863         Reported by Karl Berry.
62864
62865 2006-10-23  Bruno Haible  <bruno@clisp.org>
62866
62867         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
62868
62869 2006-10-24  Bruno Haible  <bruno@clisp.org>
62870
62871         * lib/gl_list.h: Use C comment style, not C++ comment style.
62872
62873 2006-10-23  Eric Blake  <ebb9@byu.net>
62874
62875         * lib/getaddrinfo.c (includes): Add missing include.
62876
62877 2006-10-23  Bruno Haible  <bruno@clisp.org>
62878             Paul Eggert  <eggert@cs.ucla.edu>
62879
62880         Ability to rename obstack_free.
62881         * lib/obstack.h (__obstack_free): New macro. Declare instead of
62882         obstack_free.
62883         (obstack_free): Invoke the __obstack_free macro.
62884         * lib/obstack.c (obstack_free): Use __obstack_free macro.
62885
62886 2006-10-23  Bruno Haible  <bruno@clisp.org>
62887             Paul Eggert  <eggert@cs.ucla.edu>
62888
62889         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
62890         __argc, __argv from the declaration. (They are defined as macros on
62891         mingw.)
62892
62893 2006-10-22  Bruno Haible  <bruno@clisp.org>
62894
62895         * doc/gnulib-intro.texi: New file.
62896         * doc/gnulib.texi: Include it.
62897
62898 2006-10-21  Bruno Haible  <bruno@clisp.org>
62899
62900         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
62901         "Introduction", "Miscellanous Notes", "Particular Modules".
62902
62903 2006-10-21  Bruno Haible  <bruno@clisp.org>
62904
62905         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62906         Change mostlyclean-local rule to avoid sh syntax error from bash
62907         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
62908
62909 2006-10-23  Jim Meyering  <jim@meyering.net>
62910
62911         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
62912         in place of snprintf.
62913
62914         * modules/inttostr (Files): Add lib/uinttostr.c.
62915         * lib/uinttostr.c (inttostr): New file/function.
62916         * lib/inttostr.h (uinttostr): Declare.
62917         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
62918         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
62919         Add uinttostr.
62920         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
62921
62922 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
62923
62924         * lib/canonicalize.c (ELOOP): Define if not already defined.
62925         Problem reported by Bruno Haible in
62926         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
62927
62928 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
62929
62930         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
62931         Problem reported by Perry Smith and Ville Laurikari.
62932
62933         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
62934         uses.
62935
62936 2006-10-19  Bruno Haible  <bruno@clisp.org>
62937
62938         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
62939         for mingw.
62940
62941 2006-10-19  Bruno Haible  <bruno@clisp.org>
62942
62943         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
62944         Needed for mingw.
62945
62946 2006-10-19  Bruno Haible  <bruno@clisp.org>
62947
62948         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
62949
62950 2006-10-19  Bruno Haible  <bruno@clisp.org>
62951
62952         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
62953         it.
62954
62955 2006-10-19  Bruno Haible  <bruno@clisp.org>
62956
62957         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
62958         invocation.
62959
62960 2006-10-19  Bruno Haible  <bruno@clisp.org>
62961
62962         * gnulib-tool (func_create_testdir): Don't include ftruncate and
62963         mountlist by default.
62964
62965 2006-10-16  Bruno Haible  <bruno@clisp.org>
62966
62967         * lib/c-strstr.c: Include c-strstr.h.
62968
62969 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62970
62971         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
62972         in a slash.
62973
62974 2006-10-18  Bruno Haible  <bruno@clisp.org>
62975
62976         * lib/lock.h [C++]: Wrap definitions in extern "C".
62977
62978 2006-10-18  Bruno Haible  <bruno@clisp.org>
62979
62980         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
62981         gl_LIBOBJS list.
62982
62983 2006-10-18  Bruno Haible  <bruno@clisp.org>
62984
62985         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
62986
62987 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
62988
62989         * lib/xstrtol.h: Include gettext.h.
62990         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
62991         Problem reported by Eric Blake.
62992         * modules/xstrtol (Depends-on): Add gettext-h.
62993
62994 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
62995
62996         * lib/strftime.c (advance): New macro.
62997         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
62998         incomplete type, so you can't add 0 to it.  Problem and patch
62999         reported by Eelco Dolstra for dietlibc.
63000
63001 2006-10-18  Jim Meyering  <jim@meyering.net>
63002
63003         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
63004         type for a local, and rename it: s/up/user_proc/.
63005
63006 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
63007
63008         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
63009         READ_UTMP_USER_PROCESS.
63010         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
63011
63012 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
63013
63014         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
63015         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
63016
63017 2006-10-17  Eric Blake  <ebb9@byu.net>
63018
63019         * lib/sigprocmask.c (sigprocmask): Fix typo.
63020
63021         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
63022
63023         * modules/clean-temp (Makefile.am): Don't add to make output...
63024         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
63025         config.h.
63026
63027 2006-10-17  Bruno Haible  <bruno@clisp.org>
63028
63029         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
63030         differently if DEFAULT_TEXT_DOMAIN is set.
63031
63032 2006-10-16  Bruno Haible  <bruno@clisp.org>
63033
63034         * lib/clean-temp.c: Include fwriteerror.h.
63035
63036 2006-10-16  Bruno Haible  <bruno@clisp.org>
63037
63038         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
63039
63040 2006-10-16  Bruno Haible  <bruno@clisp.org>
63041
63042         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
63043         * lib/sigprocmask.h: Include <sys/types.h>.
63044         (sigset_t): Use the system's definition if present.
63045
63046 2006-10-17  Eric Blake  <ebb9@byu.net>
63047
63048         * lib/xvasprintf.c (includes): Assume config.h.
63049         * lib/xasprintf.c (includes): Likewise.
63050
63051 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63052
63053         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
63054         at least as wide as intmax_t.
63055
63056 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
63057
63058         (Imported from Automake.)
63059         * build-aux/gnupload: Update to version 1.1 of directive file.
63060
63061 2006-10-16  Eric Blake  <ebb9@byu.net>
63062
63063         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
63064         match Automake 1.10a.
63065
63066 2006-10-14  Bruno Haible  <bruno@clisp.org>
63067
63068         * modules/sigprocmask: New file.
63069         * lib/sigprocmask.h: New file.
63070         * lib/sigprocmask.c: New file.
63071         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
63072         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
63073         request sigprocmask.o.
63074         (gl_PREREQ_SIGPROCMASK): New macro.
63075         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
63076         (Depends-on): Add sigprocmask.
63077         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
63078         gt_SIGNALBLOCKING. Test for 'raise' only once.
63079         * lib/fatal-signal.c: Include sigprocmask.h.
63080         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
63081         unblock_fatal_signals): Define always.
63082         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63083         sigprocmask.
63084
63085 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63086
63087         Sync from Automake.
63088         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
63089         which incorrectly sets the mode of an existing destination
63090         directory.  In some cases the unpatched install-sh could do the
63091         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
63092         system.  We hope this is rare in practice, but it's clearly worth
63093         fixing.  Problem reported by Alex Unleashed in
63094         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
63095         Also, don't bother to check for -m bugs unless we're using -m;
63096         suggested by Stepan Kasal.
63097
63098 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63099
63100         Sync from Automake.
63101         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
63102         `-c' flag, so they appear at the same position as in %FASTDEP%
63103         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
63104         which ignores unknown options only after the first non-option.
63105         Bug report against M4 by Nelson H. F. Beebe.
63106
63107 2006-10-13  Jim Meyering  <jim@meyering.net>
63108
63109         Fix a bug in yesterday's change.
63110         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
63111         p->fts_statp->st_dev would be used uninitialized.
63112         Ensures that we always call fts_stat on the very first entry.
63113         Miklos Szeredi reported that find -xdev stopped working.
63114
63115 2006-10-12  Bruno Haible  <bruno@clisp.org>
63116
63117         * gnulib-tool (func_get_automake_snippet): Append an automatically
63118         computed EXTRA_DIST augmentation.
63119         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
63120         * modules/alloca-opt (Makefile.am): Likewise.
63121         * modules/allocsa (Makefile.am): Likewise.
63122         * modules/arcfour (Makefile.am): Likewise.
63123         * modules/arctwo (Makefile.am): Likewise.
63124         * modules/argmatch (Makefile.am): Likewise.
63125         * modules/argz (Makefile.am): Likewise.
63126         * modules/atexit (Makefile.am): Likewise.
63127         * modules/backupfile (Makefile.am): Likewise.
63128         * modules/byteswap (Makefile.am): Likewise.
63129         * modules/c-strtod (Makefile.am): Likewise.
63130         * modules/c-strtold (Makefile.am): Likewise.
63131         * modules/calloc (Makefile.am): Likewise.
63132         * modules/canon-host (Makefile.am): Likewise.
63133         * modules/canonicalize (Makefile.am): Likewise.
63134         * modules/chdir-long (Makefile.am): Likewise.
63135         * modules/chdir-safer (Makefile.am): Likewise.
63136         * modules/check-version (Makefile.am): Likewise.
63137         * modules/chown (Makefile.am): Likewise.
63138         * modules/cloexec (Makefile.am): Likewise.
63139         * modules/close-stream (Makefile.am): Likewise.
63140         * modules/closeout (Makefile.am): Likewise.
63141         * modules/crc (Makefile.am): Likewise.
63142         * modules/csharpexec (Makefile.am): Likewise.
63143         * modules/cycle-check (Makefile.am): Likewise.
63144         * modules/des (Makefile.am): Likewise.
63145         * modules/dev-ino (Makefile.am): Likewise.
63146         * modules/dirfd (Makefile.am): Likewise.
63147         * modules/dirname (Makefile.am): Likewise.
63148         * modules/dup2 (Makefile.am): Likewise.
63149         * modules/eealloc (Makefile.am): Likewise.
63150         * modules/error (Makefile.am): Likewise.
63151         * modules/euidaccess (Makefile.am): Likewise.
63152         * modules/exclude (Makefile.am): Likewise.
63153         * modules/exitfail (Makefile.am): Likewise.
63154         * modules/fcntl-safer (Makefile.am): Likewise.
63155         * modules/fcntl (Makefile.am): Likewise.
63156         * modules/file-type (Makefile.am): Likewise.
63157         * modules/fileblocks (Makefile.am): Likewise.
63158         * modules/filemode (Makefile.am): Likewise.
63159         * modules/filenamecat (Makefile.am): Likewise.
63160         * modules/fnmatch (Makefile.am): Likewise.
63161         * modules/fopen-safer (Makefile.am): Likewise.
63162         * modules/fpending (Makefile.am): Likewise.
63163         * modules/fprintftime (Makefile.am): Likewise.
63164         * modules/free (Makefile.am): Likewise.
63165         * modules/fsusage (Makefile.am): Likewise.
63166         * modules/ftruncate (Makefile.am): Likewise.
63167         * modules/fts (Makefile.am): Likewise.
63168         * modules/gc-arcfour (Makefile.am): Likewise.
63169         * modules/gc-des (Makefile.am): Likewise.
63170         * modules/gc-hmac-md5 (Makefile.am): Likewise.
63171         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
63172         * modules/gc-md4 (Makefile.am): Likewise.
63173         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
63174         * modules/gc-sha1 (Makefile.am): Likewise.
63175         * modules/gc (Makefile.am): Likewise.
63176         * modules/getaddrinfo (Makefile.am): Likewise.
63177         * modules/getcwd (Makefile.am): Likewise.
63178         * modules/getdelim (Makefile.am): Likewise.
63179         * modules/getdomainname (Makefile.am): Likewise.
63180         * modules/getgroups (Makefile.am): Likewise.
63181         * modules/gethostname (Makefile.am): Likewise.
63182         * modules/gethrxtime (Makefile.am): Likewise.
63183         * modules/getline (Makefile.am): Likewise.
63184         * modules/getloadavg (Makefile.am): Likewise.
63185         * modules/getlogin_r (Makefile.am): Likewise.
63186         * modules/getndelim2 (Makefile.am): Likewise.
63187         * modules/getopt (Makefile.am): Likewise.
63188         * modules/getpagesize (Makefile.am): Likewise.
63189         * modules/getpass-gnu (Makefile.am): Likewise.
63190         * modules/getpass (Makefile.am): Likewise.
63191         * modules/getsubopt (Makefile.am): Likewise.
63192         * modules/gettime (Makefile.am): Likewise.
63193         * modules/gettimeofday (Makefile.am): Likewise.
63194         * modules/getugroups (Makefile.am): Likewise.
63195         * modules/getusershell (Makefile.am): Likewise.
63196         * modules/glob (Makefile.am): Likewise.
63197         * modules/group-member (Makefile.am): Likewise.
63198         * modules/hard-locale (Makefile.am): Likewise.
63199         * modules/hash (Makefile.am): Likewise.
63200         * modules/hmac-md5 (Makefile.am): Likewise.
63201         * modules/hmac-sha1 (Makefile.am): Likewise.
63202         * modules/human (Makefile.am): Likewise.
63203         * modules/idcache (Makefile.am): Likewise.
63204         * modules/imaxabs (Makefile.am): Likewise.
63205         * modules/imaxdiv (Makefile.am): Likewise.
63206         * modules/inet_ntop (Makefile.am): Likewise.
63207         * modules/inet_pton (Makefile.am): Likewise.
63208         * modules/intprops (Makefile.am): Likewise.
63209         * modules/inttostr (Makefile.am): Likewise.
63210         * modules/inttypes (Makefile.am): Likewise.
63211         * modules/isapipe (Makefile.am): Likewise.
63212         * modules/javaversion (Makefile.am): Likewise.
63213         * modules/lchmod (Makefile.am): Likewise.
63214         * modules/lchown (Makefile.am): Likewise.
63215         * modules/localcharset (Makefile.am): Likewise.
63216         * modules/long-options (Makefile.am): Likewise.
63217         * modules/lstat (Makefile.am): Likewise.
63218         * modules/malloc (Makefile.am): Likewise.
63219         * modules/mathl (Makefile.am): Likewise.
63220         * modules/mbchar (Makefile.am): Likewise.
63221         * modules/md2 (Makefile.am): Likewise.
63222         * modules/md4 (Makefile.am): Likewise.
63223         * modules/md5 (Makefile.am): Likewise.
63224         * modules/memcasecmp (Makefile.am): Likewise.
63225         * modules/memchr (Makefile.am): Likewise.
63226         * modules/memcmp (Makefile.am): Likewise.
63227         * modules/memcoll (Makefile.am): Likewise.
63228         * modules/memcpy (Makefile.am): Likewise.
63229         * modules/memmem (Makefile.am): Likewise.
63230         * modules/memmove (Makefile.am): Likewise.
63231         * modules/mempcpy (Makefile.am): Likewise.
63232         * modules/memrchr (Makefile.am): Likewise.
63233         * modules/memset (Makefile.am): Likewise.
63234         * modules/memxor (Makefile.am): Likewise.
63235         * modules/mkancesdirs (Makefile.am): Likewise.
63236         * modules/mkdir-p (Makefile.am): Likewise.
63237         * modules/mkdir (Makefile.am): Likewise.
63238         * modules/mkdtemp (Makefile.am): Likewise.
63239         * modules/mkstemp (Makefile.am): Likewise.
63240         * modules/mktime (Makefile.am): Likewise.
63241         * modules/modechange (Makefile.am): Likewise.
63242         * modules/mountlist (Makefile.am): Likewise.
63243         * modules/nanosleep (Makefile.am): Likewise.
63244         * modules/obstack (Makefile.am): Likewise.
63245         * modules/openat (Makefile.am): Likewise.
63246         * modules/pagealign_alloc (Makefile.am): Likewise.
63247         * modules/pathmax (Makefile.am): Likewise.
63248         * modules/physmem (Makefile.am): Likewise.
63249         * modules/poll (Makefile.am): Likewise.
63250         * modules/posixtm (Makefile.am): Likewise.
63251         * modules/posixver (Makefile.am): Likewise.
63252         * modules/putenv (Makefile.am): Likewise.
63253         * modules/quote (Makefile.am): Likewise.
63254         * modules/quotearg (Makefile.am): Likewise.
63255         * modules/raise (Makefile.am): Likewise.
63256         * modules/read-file (Makefile.am): Likewise.
63257         * modules/readline (Makefile.am): Likewise.
63258         * modules/readlink (Makefile.am): Likewise.
63259         * modules/readtokens (Makefile.am): Likewise.
63260         * modules/readutmp (Makefile.am): Likewise.
63261         * modules/realloc (Makefile.am): Likewise.
63262         * modules/regex (Makefile.am): Likewise.
63263         * modules/rename-dest-slash (Makefile.am): Likewise.
63264         * modules/rename (Makefile.am): Likewise.
63265         * modules/rijndael (Makefile.am): Likewise.
63266         * modules/rmdir (Makefile.am): Likewise.
63267         * modules/rpmatch (Makefile.am): Likewise.
63268         * modules/safe-read (Makefile.am): Likewise.
63269         * modules/safe-write (Makefile.am): Likewise.
63270         * modules/same-inode (Makefile.am): Likewise.
63271         * modules/same (Makefile.am): Likewise.
63272         * modules/save-cwd (Makefile.am): Likewise.
63273         * modules/savedir (Makefile.am): Likewise.
63274         * modules/setenv (Makefile.am): Likewise.
63275         * modules/settime (Makefile.am): Likewise.
63276         * modules/sha1 (Makefile.am): Likewise.
63277         * modules/sig2str (Makefile.am): Likewise.
63278         * modules/snprintf (Makefile.am): Likewise.
63279         * modules/stat-macros (Makefile.am): Likewise.
63280         * modules/stat-time (Makefile.am): Likewise.
63281         * modules/stdbool (Makefile.am): Likewise.
63282         * modules/stdint (Makefile.am): Likewise.
63283         * modules/stdlib-safer (Makefile.am): Likewise.
63284         * modules/stpcpy (Makefile.am): Likewise.
63285         * modules/stpncpy (Makefile.am): Likewise.
63286         * modules/strcase (Makefile.am): Likewise.
63287         * modules/strcasestr (Makefile.am): Likewise.
63288         * modules/strchrnul (Makefile.am): Likewise.
63289         * modules/strcspn (Makefile.am): Likewise.
63290         * modules/strdup (Makefile.am): Likewise.
63291         * modules/strerror (Makefile.am): Likewise.
63292         * modules/strftime (Makefile.am): Likewise.
63293         * modules/strndup (Makefile.am): Likewise.
63294         * modules/strnlen (Makefile.am): Likewise.
63295         * modules/strpbrk (Makefile.am): Likewise.
63296         * modules/strsep (Makefile.am): Likewise.
63297         * modules/strstr (Makefile.am): Likewise.
63298         * modules/strtod (Makefile.am): Likewise.
63299         * modules/strtoimax (Makefile.am): Likewise.
63300         * modules/strtok_r (Makefile.am): Likewise.
63301         * modules/strtol (Makefile.am): Likewise.
63302         * modules/strtoll (Makefile.am): Likewise.
63303         * modules/strtoul (Makefile.am): Likewise.
63304         * modules/strtoull (Makefile.am): Likewise.
63305         * modules/strtoumax (Makefile.am): Likewise.
63306         * modules/strverscmp (Makefile.am): Likewise.
63307         * modules/sys_socket (Makefile.am): Likewise.
63308         * modules/sys_stat (Makefile.am): Likewise.
63309         * modules/sysexits (Makefile.am): Likewise.
63310         * modules/time_r (Makefile.am): Likewise.
63311         * modules/timegm (Makefile.am): Likewise.
63312         * modules/timespec (Makefile.am): Likewise.
63313         * modules/tmpfile-safer (Makefile.am): Likewise.
63314         * modules/trim (Makefile.am): Likewise.
63315         * modules/unistd-safer (Makefile.am): Likewise.
63316         * modules/unlinkdir (Makefile.am): Likewise.
63317         * modules/unlocked-io (Makefile.am): Likewise.
63318         * modules/userspec (Makefile.am): Likewise.
63319         * modules/utime (Makefile.am): Likewise.
63320         * modules/utimecmp (Makefile.am): Likewise.
63321         * modules/utimens (Makefile.am): Likewise.
63322         * modules/vasnprintf (Makefile.am): Likewise.
63323         * modules/vasprintf (Makefile.am): Likewise.
63324         * modules/vsnprintf (Makefile.am): Likewise.
63325         * modules/xalloc (Makefile.am): Likewise.
63326         * modules/xgetcwd (Makefile.am): Likewise.
63327         * modules/xnanosleep (Makefile.am): Likewise.
63328         * modules/xreadlink (Makefile.am): Likewise.
63329         * modules/xstrtod (Makefile.am): Likewise.
63330         * modules/xstrtol (Makefile.am): Likewise.
63331         * modules/xstrtold (Makefile.am): Likewise.
63332         * modules/yesno (Makefile.am): Likewise.
63333         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
63334
63335 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63336
63337         * modules/error (Makefile.am): Distribute files through
63338         EXTRA_DIST, not lib_SOURCES.
63339
63340 2006-10-12  Eric Blake  <ebb9@byu.net>
63341
63342         * modules/error (Makefile.am): Distribute files in /lib.
63343         * modules/obstack (Makefile.am): Likewise.
63344
63345 2006-10-12  Bruno Haible  <bruno@clisp.org>
63346
63347         * modules/acl (Makefile.am): Distribute all files in lib/ through
63348         EXTRA_DIST.
63349         * modules/arcfour (Makefile.am): Likewise.
63350         * modules/arctwo (Makefile.am): Likewise.
63351         * modules/argmatch (Makefile.am): Likewise.
63352         * modules/argz (Makefile.am): Likewise.
63353         * modules/atexit (Makefile.am): Likewise.
63354         * modules/backupfile (Makefile.am): Likewise.
63355         * modules/c-strtod (Makefile.am): Likewise.
63356         * modules/c-strtold (Makefile.am): Likewise.
63357         * modules/calloc (Makefile.am): Likewise.
63358         * modules/canon-host (Makefile.am): Likewise.
63359         * modules/canonicalize (Makefile.am): Likewise.
63360         * modules/chdir-long (Makefile.am): Likewise.
63361         * modules/chdir-safer (Makefile.am): Likewise.
63362         * modules/check-version (Makefile.am): Likewise.
63363         * modules/chown (Makefile.am): Likewise.
63364         * modules/cloexec (Makefile.am): Likewise.
63365         * modules/close-stream (Makefile.am): Likewise.
63366         * modules/closeout (Makefile.am): Likewise.
63367         * modules/crc (Makefile.am): Likewise.
63368         * modules/cycle-check (Makefile.am): Likewise.
63369         * modules/des (Makefile.am): Likewise.
63370         * modules/dirfd (Makefile.am): Likewise.
63371         * modules/dirname (Makefile.am): Likewise.
63372         * modules/dup2 (Makefile.am): Likewise.
63373         * modules/euidaccess (Makefile.am): Likewise.
63374         * modules/exclude (Makefile.am): Likewise.
63375         * modules/exitfail (Makefile.am): Likewise.
63376         * modules/fcntl-safer (Makefile.am): Likewise.
63377         * modules/file-type (Makefile.am): Likewise.
63378         * modules/fileblocks (Makefile.am): Likewise.
63379         * modules/filemode (Makefile.am): Likewise.
63380         * modules/filenamecat (Makefile.am): Likewise.
63381         * modules/fnmatch (Makefile.am): Likewise.
63382         * modules/fopen-safer (Makefile.am): Likewise.
63383         * modules/fpending (Makefile.am): Likewise.
63384         * modules/fprintftime (Makefile.am): Likewise.
63385         * modules/free (Makefile.am): Likewise.
63386         * modules/fsusage (Makefile.am): Likewise.
63387         * modules/ftruncate (Makefile.am): Likewise.
63388         * modules/fts (Makefile.am): Likewise.
63389         * modules/gc (Makefile.am): Likewise.
63390         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
63391         * modules/getaddrinfo (Makefile.am): Likewise.
63392         * modules/getcwd (Makefile.am): Likewise.
63393         * modules/getdelim (Makefile.am): Likewise.
63394         * modules/getdomainname (Makefile.am): Likewise.
63395         * modules/getgroups (Makefile.am): Likewise.
63396         * modules/gethostname (Makefile.am): Likewise.
63397         * modules/gethrxtime (Makefile.am): Likewise.
63398         * modules/getline (Makefile.am): Likewise.
63399         * modules/getloadavg (Makefile.am): Likewise.
63400         * modules/getlogin_r (Makefile.am): Likewise.
63401         * modules/getopt (Makefile.am): Likewise.
63402         * modules/getpass (Makefile.am): Likewise.
63403         * modules/getpass-gnu (Makefile.am): Likewise.
63404         * modules/getsubopt (Makefile.am): Likewise.
63405         * modules/gettime (Makefile.am): Likewise.
63406         * modules/gettimeofday (Makefile.am): Likewise.
63407         * modules/getugroups (Makefile.am): Likewise.
63408         * modules/getusershell (Makefile.am): Likewise.
63409         * modules/glob (Makefile.am): Likewise.
63410         * modules/group-member (Makefile.am): Likewise.
63411         * modules/hard-locale (Makefile.am): Likewise.
63412         * modules/hash (Makefile.am): Likewise.
63413         * modules/hmac-md5 (Makefile.am): Likewise.
63414         * modules/hmac-sha1 (Makefile.am): Likewise.
63415         * modules/human (Makefile.am): Likewise.
63416         * modules/idcache (Makefile.am): Likewise.
63417         * modules/imaxabs (Makefile.am): Likewise.
63418         * modules/imaxdiv (Makefile.am): Likewise.
63419         * modules/inet_ntop (Makefile.am): Likewise.
63420         * modules/inet_pton (Makefile.am): Likewise.
63421         * modules/inttostr (Makefile.am): Likewise.
63422         * modules/isapipe (Makefile.am): Likewise.
63423         * modules/lchown (Makefile.am): Likewise.
63424         * modules/long-options (Makefile.am): Likewise.
63425         * modules/lstat (Makefile.am): Likewise.
63426         * modules/malloc (Makefile.am): Likewise.
63427         * modules/mathl (Makefile.am): Likewise.
63428         * modules/mbchar (Makefile.am): Likewise.
63429         * modules/md2 (Makefile.am): Likewise.
63430         * modules/md4 (Makefile.am): Likewise.
63431         * modules/md5 (Makefile.am): Likewise.
63432         * modules/memcasecmp (Makefile.am): Likewise.
63433         * modules/memchr (Makefile.am): Likewise.
63434         * modules/memcmp (Makefile.am): Likewise.
63435         * modules/memcoll (Makefile.am): Likewise.
63436         * modules/memcpy (Makefile.am): Likewise.
63437         * modules/memmem (Makefile.am): Likewise.
63438         * modules/memmove (Makefile.am): Likewise.
63439         * modules/mempcpy (Makefile.am): Likewise.
63440         * modules/memrchr (Makefile.am): Likewise.
63441         * modules/memset (Makefile.am): Likewise.
63442         * modules/memxor (Makefile.am): Likewise.
63443         * modules/mkancesdirs (Makefile.am): Likewise.
63444         * modules/mkdir (Makefile.am): Likewise.
63445         * modules/mkdir-p (Makefile.am): Likewise.
63446         * modules/mkdtemp (Makefile.am): Likewise.
63447         * modules/mkstemp (Makefile.am): Likewise.
63448         * modules/mktime (Makefile.am): Likewise.
63449         * modules/modechange (Makefile.am): Likewise.
63450         * modules/mountlist (Makefile.am): Likewise.
63451         * modules/nanosleep (Makefile.am): Likewise.
63452         * modules/openat (Makefile.am): Likewise.
63453         * modules/pagealign_alloc (Makefile.am): Likewise.
63454         * modules/physmem (Makefile.am): Likewise.
63455         * modules/poll (Makefile.am): Likewise.
63456         * modules/posixtm (Makefile.am): Likewise.
63457         * modules/posixver (Makefile.am): Likewise.
63458         * modules/putenv (Makefile.am): Likewise.
63459         * modules/quote (Makefile.am): Likewise.
63460         * modules/quotearg (Makefile.am): Likewise.
63461         * modules/raise (Makefile.am): Likewise.
63462         * modules/read-file (Makefile.am): Likewise.
63463         * modules/readline (Makefile.am): Likewise.
63464         * modules/readlink (Makefile.am): Likewise.
63465         * modules/readtokens (Makefile.am): Likewise.
63466         * modules/readutmp (Makefile.am): Likewise.
63467         * modules/realloc (Makefile.am): Likewise.
63468         * modules/regex (Makefile.am): Likewise.
63469         * modules/rename (Makefile.am): Likewise.
63470         * modules/rename-dest-slash (Makefile.am): Likewise.
63471         * modules/rijndael (Makefile.am): Likewise.
63472         * modules/rmdir (Makefile.am): Likewise.
63473         * modules/rpmatch (Makefile.am): Likewise.
63474         * modules/safe-read (Makefile.am): Likewise.
63475         * modules/safe-write (Makefile.am): Likewise.
63476         * modules/same (Makefile.am): Likewise.
63477         * modules/save-cwd (Makefile.am): Likewise.
63478         * modules/savedir (Makefile.am): Likewise.
63479         * modules/setenv (Makefile.am): Likewise.
63480         * modules/settime (Makefile.am): Likewise.
63481         * modules/sha1 (Makefile.am): Likewise.
63482         * modules/sig2str (Makefile.am): Likewise.
63483         * modules/snprintf (Makefile.am): Likewise.
63484         * modules/stdlib-safer (Makefile.am): Likewise.
63485         * modules/stpcpy (Makefile.am): Likewise.
63486         * modules/stpncpy (Makefile.am): Likewise.
63487         * modules/strcase (Makefile.am): Likewise.
63488         * modules/strcasestr (Makefile.am): Likewise.
63489         * modules/strchrnul (Makefile.am): Likewise.
63490         * modules/strcspn (Makefile.am): Likewise.
63491         * modules/strdup (Makefile.am): Likewise.
63492         * modules/strerror (Makefile.am): Likewise.
63493         * modules/strftime (Makefile.am): Likewise.
63494         * modules/strndup (Makefile.am): Likewise.
63495         * modules/strnlen (Makefile.am): Likewise.
63496         * modules/strpbrk (Makefile.am): Likewise.
63497         * modules/strsep (Makefile.am): Likewise.
63498         * modules/strstr (Makefile.am): Likewise.
63499         * modules/strtod (Makefile.am): Likewise.
63500         * modules/strtoimax (Makefile.am): Likewise.
63501         * modules/strtok_r (Makefile.am): Likewise.
63502         * modules/strtol (Makefile.am): Likewise.
63503         * modules/strtoll (Makefile.am): Likewise.
63504         * modules/strtoul (Makefile.am): Likewise.
63505         * modules/strtoull (Makefile.am): Likewise.
63506         * modules/strtoumax (Makefile.am): Likewise.
63507         * modules/strverscmp (Makefile.am): Likewise.
63508         * modules/time_r (Makefile.am): Likewise.
63509         * modules/timegm (Makefile.am): Likewise.
63510         * modules/tmpfile-safer (Makefile.am): Likewise.
63511         * modules/unistd-safer (Makefile.am): Likewise.
63512         * modules/unlinkdir (Makefile.am): Likewise.
63513         * modules/userspec (Makefile.am): Likewise.
63514         * modules/utime (Makefile.am): Likewise.
63515         * modules/utimecmp (Makefile.am): Likewise.
63516         * modules/utimens (Makefile.am): Likewise.
63517         * modules/vasnprintf (Makefile.am): Likewise.
63518         * modules/vasprintf (Makefile.am): Likewise.
63519         * modules/vsnprintf (Makefile.am): Likewise.
63520         * modules/xalloc (Makefile.am): Likewise.
63521         * modules/xgetcwd (Makefile.am): Likewise.
63522         * modules/xnanosleep (Makefile.am): Likewise.
63523         * modules/xreadlink (Makefile.am): Likewise.
63524         * modules/xstrtod (Makefile.am): Likewise.
63525         * modules/xstrtol (Makefile.am): Likewise.
63526         * modules/xstrtold (Makefile.am): Likewise.
63527         * modules/yesno (Makefile.am): Likewise.
63528
63529 2006-10-12  Jim Meyering  <jim@meyering.net>
63530
63531         * m4/getloadavg.m4: Revert the change below.
63532
63533         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
63534         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
63535         fail with a symlink, which is what coreutils' ./bootstrap now
63536         creates by default.
63537
63538 2006-10-12  Bruno Haible  <bruno@clisp.org>
63539
63540         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
63541         mingw.
63542         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
63543         MSVC and mingw explicitly.
63544
63545 2006-10-11  Simon Josefsson  <jas@extundo.com>
63546             Bruno Haible  <bruno@clisp.org>
63547
63548         Add support for multiple gnulib-tool invocations in the scope of a
63549         single configure.ac file.
63550         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
63551         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
63552         with the same contents as the _LIBADD variable.
63553         (func_emit_initmacro_start, func_emit_initmacro_end,
63554         func_emit_initmacro_done): New functions.
63555         (func_import, func_create_testdir): Invoke them. Allow the identifiers
63556         gl_LIBOBJS and gl_LTLIBOBJS.
63557
63558 2006-10-11  Bruno Haible  <bruno@clisp.org>
63559
63560         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
63561         (func_create_testdir): Don't create po/Makefile.am, don't invoke
63562         autoreconf. Instead, invoke autopoint explicitly but move back the
63563         *.m4 files from gnulib.
63564
63565 2006-10-11  Bruno Haible  <bruno@clisp.org>
63566
63567         * gnulib-tool (func_usage): Make module names after --create-testdir
63568         optional.
63569         (func_create_testdir): If no module was specified, use nearly all
63570         modules.
63571
63572 2006-10-12  Jim Meyering  <jim@meyering.net>
63573
63574         Big performance improvement for fts-based tools that use FTS_NOSTAT.
63575         Avoid spurious inode-mismatch problems on non-POSIX file systems.
63576         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
63577         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
63578         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
63579         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
63580         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
63581         (fts_set_stat_required): New function.
63582         (fts_open): Defer the calls to fts_stat, if possible or requested.
63583         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
63584         into fts_stat itself.
63585         (fts_read): Perform any required (deferred) fts_stat call.
63586         (fts_build): Likewise, for the directory we're about to open and read.
63587         In the readdir loop, carefully decide whether each entry will require
63588         an eventual call to fts_stat, using dirent.d_type info if available.
63589         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
63590         a command line argument into this function.  Update all callers.
63591         Map a return value of FTS_DOT to FTS_D for a command line argument.
63592         * modules/fts (Depends-on): Add d-type.  Alphabetize.
63593         Thanks to Miklos Szeredi for his tenacity and for the initial
63594         bug report about "find" failing on a FUSE-based file system.
63595
63596         * lib/fts.c (fts_open): Use consistent indentation.
63597
63598 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63599
63600         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
63601         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
63602         reported by Jim Meyering.  All uses of cache variables renamed
63603         to match Autoconf's.
63604         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
63605         the other one.
63606
63607         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
63608         Fix misspelling in diagnostic.
63609
63610 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63611
63612         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
63613         defined.  Problem reported by Matthew Woehlke.
63614
63615         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
63616         Add support for Tandem NonStop R series.
63617         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
63618         Use new macro.
63619
63620         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
63621         (has_trailing_slash): Omit size arg; all callers changed.
63622         Omit 'inline', since it doesn't help performance and we'd
63623         need to configure it.
63624         Don't count //, ///, etc. as having a trailing slash.
63625         As a side effect, this removes a C99ism reported by Matthew Woehlke.
63626         (rpl_rename_dest_slash): On failure, use rename's errno rather
63627         than (in some cases) an incorrect or junk errno.
63628         Simplify code by removing need to compute length; this does
63629         cause it to make two passes instead of one over the file name,
63630         but it's worth it.
63631
63632         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
63633         change, since Autoconf's version may no longer be appropriate now
63634         that we are using CVS Autoconf's version.  Add support for Tandem.
63635
63636 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63637             Bruno Haible  <bruno@clisp.org>
63638
63639         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
63640         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
63641         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
63642         gl_AC_TYPE_LONG_LONG.
63643
63644         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
63645         instead of HAVE_LONG_LONG.
63646         * lib/printf-args.c (printf_fetchargs): Likewise.
63647         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
63648         * lib/vasnprintf.c (VASNPRINTF): Likewise.
63649         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
63650         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
63651         gl_AC_TYPE_LONG_LONG.
63652
63653 2006-10-11  Bruno Haible  <bruno@clisp.org>
63654
63655         * m4/longlong.m4: Add comments.
63656         * m4/ulonglong.m4: Likewise.
63657
63658 2006-10-10  Bruno Haible  <bruno@clisp.org>
63659
63660         Make it possible to #define stpcpy, strdup to aliases.
63661         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
63662         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
63663
63664 2006-10-10  Bruno Haible  <bruno@clisp.org>
63665
63666         Make it possible to #define gcd to an alias.
63667         * lib/gcd.c: Include config.h.
63668
63669 2006-10-10  Bruno Haible  <bruno@clisp.org>
63670
63671         Make it possible to #define c_isascii to an alias.
63672         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
63673         defined. Undefine the macros before defining them, to avoid gcc
63674         warnings.
63675         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
63676         define NO_C_CTYPE_MACROS early.
63677
63678 2006-10-10  Bruno Haible  <bruno@clisp.org>
63679
63680         Make it possible to #define set_program_name to an alias.
63681         * lib/progname.c: Don't undefine set_program_name; instead, undefine
63682         ENABLE_RELOCATABLE early.
63683
63684 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63685
63686         Port to Tandem NSK OSS, which has 64-bit signed int but at most
63687         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
63688         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
63689         More generally, don't assume that 64-bit signed int is available
63690         if unsigned int is, and vice versa.
63691         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
63692         unsigned symbols, not on their signed counterparts.
63693         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
63694         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
63695         (UINT64_C, UINTMAX_C):
63696         Likewise.
63697         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
63698         unsigned counterparts.
63699         (Have_long_long, Unsigned): New macros.
63700         (Int): Renamed from INT.
63701         (strtoimax): Use the new macros.
63702         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
63703         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
63704         * modules/inttypes (inttypes.h): Substitute
63705         HAVE_UNSIGNED_LONG_LONG_INT.
63706         * modules/stdint (stdint.h): Likewise.
63707         (Files): Add m4/ulonglong.m4.
63708
63709 2006-10-10  Bruno Haible  <bruno@clisp.org>
63710
63711         Fix a gcc -Wshadow warning.
63712         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
63713         to 'bucket'.
63714         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
63715         gl_linked_indexof_from_to): Likewise.
63716         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
63717         Likewise.
63718         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
63719         Likewise.
63720         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
63721         Reported by Eric Blake.
63722
63723 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
63724
63725         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
63726         for NetBSD.  Problem reported by Bruno Haible.
63727
63728 2006-10-09  Jim Meyering  <jim@meyering.net>
63729
63730         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
63731         Patch from Bruno Haible.
63732
63733 2006-10-09  Jim Meyering  <jim@meyering.net>
63734
63735         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
63736         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
63737         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
63738
63739 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63740
63741         Don't include <config.h> twice; this doesn't work in some cases,
63742         e.g., when config.h has "#define intmax_t long long int" and
63743         we include <config.h>, <inttypes.h>, <config.h> in that order.
63744         Problem reported by Matthew Woehlke in:
63745         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
63746         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
63747         * lib/fts-cycle.c: Don't include config.h.
63748         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
63749         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
63750         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
63751         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
63752         inttypes.h.
63753         * lib/xstrtoumax.c: Likewise.
63754         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
63755         __strtol and the like, so that this module is more like its siblings.
63756         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
63757         Remove; no longer needed now that we assume gnulib inttypes.h.
63758
63759 2006-10-08  Bruno Haible  <bruno@clisp.org>
63760
63761         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
63762         option.
63763
63764 2006-10-07  Jim Meyering  <jim@meyering.net>
63765
63766         * modules/inttypes (inttypes.h): Revert what seems to have been
63767         an inadvertent part of today's change: use "|", not "/" in the
63768         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
63769
63770 2006-10-07  Bruno Haible  <bruno@clisp.org>
63771
63772         * modules/sublist: New file.
63773
63774 2006-10-07  Bruno Haible  <bruno@clisp.org>
63775
63776         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
63777         * modules/argz (argz.h): Likewise.
63778         * modules/arpa_inet (arpa/inet.h): Likewise.
63779         * modules/byteswap (byteswap.h): Likewise.
63780         * modules/configmake (configmake.h): Likewise.
63781         * modules/fcntl (fcntl.h): Likewise.
63782         * modules/fnmatch (fnmatch.h): Likewise.
63783         * modules/getopt (getopt.h): Likewise.
63784         * modules/glob (glob.h): Likewise.
63785         * modules/inttypes (inttypes.h): Likewise.
63786         * modules/netinet_in (netinet/in.h): Likewise.
63787         * modules/poll (poll.h): Likewise.
63788         * modules/stdbool (stdbool.h): Likewise.
63789         * modules/stdint (stdint.h): Likewise.
63790         * modules/sys_select (sys/select.h): Likewise.
63791         * modules/sys_socket (sys/socket.h): Likewise.
63792         * modules/sys_stat (sys/stat.h): Likewise.
63793         * modules/sysexits (sysexits.h): Likewise.
63794         * modules/unistd (unistd.h): Likewise.
63795         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63796         Add a "DO NOT EDIT" comment to the generated file.
63797         (func_import): Likewise for gnulib-comp.m4.
63798
63799 2006-10-07  Bruno Haible  <bruno@clisp.org>
63800
63801         * lib/gl_sublist.h: New file.
63802         * lib/gl_sublist.c: New file.
63803
63804 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
63805
63806         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
63807         name (relative to the original working directory) and the file
63808         name component (relative to the temporary working directory).  All
63809         callers changed.
63810         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
63811         * lib/mkdir-p.c (make_dir_parents): Likewise.
63812         * lib/mkdir-p.h (make_dir_parents): Likewise.
63813
63814 2006-10-06  Eric Blake  <ebb9@byu.net>
63815
63816         Define several macros for use by the clean-temp module.
63817         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
63818         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
63819         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
63820
63821         * lib/clean-temp.h (close_stream_temp): New declaration.
63822         * lib/clean-temp.c (includes): Pull in headers according to what
63823         other modules are in use.
63824         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
63825
63826 2006-10-06  Bruno Haible  <bruno@clisp.org>
63827
63828         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
63829         instead of fopen, fwriteerror.
63830
63831 2006-10-06  Bruno Haible  <bruno@clisp.org>
63832
63833         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
63834         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
63835         int.
63836         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
63837         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
63838         Return an error indicator.
63839         Suggested by Eric Blake.
63840
63841 2006-10-06  Bruno Haible  <bruno@clisp.org>
63842
63843         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
63844         Reported by Eric Blake.
63845
63846 2006-10-06  Bruno Haible  <bruno@clisp.org>
63847
63848         * modules/closeout (Description): Mention stderr too.
63849
63850 2006-10-06  Bruno Haible  <bruno@clisp.org>
63851         and Paul Eggert  <eggert@cs.ucla.edu>
63852
63853         * lib/closeout.c (close_stdout): Also close stderr.
63854         * lib/closeout.h: Update comment.
63855
63856 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63857
63858         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
63859         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
63860         * lib/dirchownmod.c: Include lchown.h.
63861         * lib/lchown.c: Don't include files that lchown.h now includes.
63862         Don't declare chown, since lchown.h now does that.
63863         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
63864         (lchown): Define to rpl_chown if lchown is declared but
63865         does not exist.  Declare using a prototype if lchown is not
63866         declared.  Add a copyright notice.
63867         * lib/mkstemp.h: Include <unistd.h>.
63868         * lib/openat.c: Include lchown.h.
63869
63870         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
63871         we now test for that separately.
63872         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
63873         rather than O_NOFOLLOW, when testing whether it's possible to
63874         avoid a race condition reliably.
63875         * lib/savewd.c (savewd_chdir): Likewise.
63876
63877         Remove macros that are no longer needed now that stdint.h is
63878         reliable.
63879         * lib/fsusage.c (UINTMAX_MAX): Remove.
63880         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
63881         * lib/utimecmp.c (SIZE_MAX): Remove.
63882
63883         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
63884
63885         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
63886         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
63887         O_NOATIME works.
63888
63889 2006-10-05  Bruno Haible  <bruno@clisp.org>
63890
63891         * lib/gl_list.h (gl_sortedlist_search_from_to,
63892         gl_sortedlist_indexof_from_to): New declarations.
63893         (gl_list_implementation): New fields sortedlist_search_from_to,
63894         sortedlist_indexof_from_to.
63895         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
63896         inline functions.
63897         * lib/gl_list.c (gl_sortedlist_search_from_to,
63898         gl_sortedlist_indexof_from_to): New functions.
63899         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
63900         function.
63901         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
63902         (gl_array_sortedlist_search_from_to): New function.
63903         (gl_array_list_implementation): Update.
63904         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
63905         function.
63906         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
63907         (gl_carray_sortedlist_search_from_to): New function.
63908         (gl_carray_list_implementation): Update.
63909         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
63910         gl_linked_sortedlist_indexof_from_to): New functions.
63911         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
63912         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
63913         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
63914         gl_tree_sortedlist_indexof_from_to): New functions.
63915         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
63916         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
63917         Update.
63918         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
63919         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
63920         Update.
63921
63922 2006-10-05  Bruno Haible  <bruno@clisp.org>
63923
63924         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
63925         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
63926         (struct gl_list_implementation): Add fields search_from_to,
63927         indexof_from_to. Remove fields search, indexof.
63928         (gl_list_search): Use the search_from_to method.
63929         (gl_list_search_from, gl_list_search_from_to): New functions.
63930         (gl_list_indexof): Use the indexof_from_to method.
63931         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
63932         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
63933         (gl_list_search_from, gl_list_search_from_to): New functions.
63934         (gl_list_indexof): Use the indexof_from_to method.
63935         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
63936         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
63937         gl_array_indexof. Add start_index, end_index arguments.
63938         (gl_array_search_from_to): Renamed from gl_array_search. Add
63939         start_index, end_index arguments.
63940         (gl_array_remove, gl_array_list_implementation): Update.
63941         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
63942         gl_carray_indexof. Add start_index, end_index arguments.
63943         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
63944         start_index, end_index arguments.
63945         (gl_carray_remove, gl_carray_list_implementation): Update.
63946         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
63947         gl_linked_search. Add start_index, end_index arguments.
63948         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
63949         start_index, end_index arguments.
63950         (gl_linked_remove): Update.
63951         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
63952         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
63953         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
63954         field to 'size_t'.
63955         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
63956         gl_tree_search. Add start_index, end_index arguments.
63957         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
63958         start_index, end_index arguments.
63959         (gl_tree_remove): Update.
63960         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
63961         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
63962         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
63963         function.
63964         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
63965         gl_tree_search. Add start_index, end_index arguments.
63966         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
63967         start_index, end_index arguments.
63968         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
63969         Update.
63970         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
63971
63972 2006-10-05  Bruno Haible  <bruno@clisp.org>
63973
63974         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
63975
63976         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
63977         fwriteerror_temp): New declarations.
63978         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
63979         (descriptors): New variable.
63980         (cleanup): First, close the descriptors.
63981         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
63982         fclose_temp, fwriteerror_temp): New functions.
63983
63984 2006-10-04  Jim Meyering  <jim@meyering.net>
63985
63986         * lib/fts.c (fts_open): Tiny comment change.
63987
63988 2006-10-04  Bruno Haible  <bruno@clisp.org>
63989
63990         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
63991         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
63992         gl_LOCK_BODY.
63993         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
63994         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
63995         gl_LOCK_EARLY_BODY.
63996         (gl_LOCK): Require gl_LOCK_BODY.
63997
63998 2006-10-04  Bruno Haible  <bruno@clisp.org>
63999
64000         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
64001         (gl_oset_search_atleast): New declaration.
64002         (struct gl_oset_implementation): Add field 'search_atleast'.
64003         (gl_oset_search_atleast): New inline function.
64004         * lib/gl_oset.c (gl_oset_search_atleast): New function.
64005         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
64006         (gl_array_oset_implementation): Update.
64007         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
64008         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
64009         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
64010
64011 2006-10-04  Bruno Haible  <bruno@clisp.org>
64012
64013         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
64014
64015 2006-10-03  Bruno Haible  <bruno@clisp.org>
64016
64017         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
64018         from gl_avltreehash_list_implementation.
64019
64020 2006-10-03  Bruno Haible  <bruno@clisp.org>
64021
64022         * lib/gl_oset.c (gl_oset_add): Fix return type.
64023
64024 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
64025
64026         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
64027
64028 2006-10-02  Eric Blake  <ebb9@byu.net>
64029
64030         * modules/strnlen (Depends-on): Add extensions.
64031
64032 2006-10-02  Eric Blake  <ebb9@byu.net>
64033
64034         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
64035         definition in 2.60+.
64036
64037 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
64038
64039         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
64040         checks.
64041
64042 2006-10-02  Bruno Haible  <bruno@clisp.org>
64043
64044         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
64045         to the AUTOMAKE_OPTIONS.
64046         Reported by Jim Meyering.
64047
64048 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
64049
64050         Work around bug in Solaris 10 /proc file system:
64051         /proc/self/fd/NNN/.. isn't the parent directory of
64052         the directory whose file descriptor is NNN.  This needs to
64053         be worked around at run time, not compile time, since a
64054         program might be built on Solaris 8, where things work, and
64055         run on Solaris 10.
64056         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
64057         to use the following interface instead:
64058         (OPENAT_BUFFER_SIZE): New macro.
64059         (openat_proc_name): New function.
64060         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
64061         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
64062         Likewise.
64063         * lib/openat-proc.c: New file.
64064         * modules/openat (Files): Add lib/openat-proc.c.
64065         (Depends-on): Add same-inode, stdbool.
64066         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
64067
64068 2006-09-29  Bruno Haible  <bruno@clisp.org>
64069
64070         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
64071         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
64072         argument. Set stdout_closed before testing for ferror, not after.
64073         (fwriteerror, fwriteerror_no_ebadf): New functions.
64074
64075 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64076
64077         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
64078
64079 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
64080
64081         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
64082         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
64083
64084 2006-09-28  Jim Meyering  <jim@meyering.net>
64085
64086         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
64087         Include <unistd.h>.
64088
64089 2006-09-28  Bruno Haible  <bruno@clisp.org>
64090
64091         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
64092         * modules/linkedhash-list (Depends-on): Likewise.
64093         * modules/rbtreehash-list (Depends-on): Likewise.
64094
64095 2006-09-28  Bruno Haible  <bruno@clisp.org>
64096
64097         * lib/strndup.h: Simplify the redefinition of strndup.
64098         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
64099         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
64100
64101 2006-09-28  Bruno Haible  <bruno@clisp.org>
64102
64103         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
64104         * lib/gl_linkedhash_list.c: Likewise.
64105         * lib/gl_rbtreehash_list.c: Likewise.
64106
64107 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
64108
64109         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
64110         getaddrinfo.
64111
64112         * lib/__fpending.h: Don't include <stdio_ext.h> unless
64113         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
64114         it causes <stdio_ext.h> to cause a compile-time error.
64115         Problem reported by Nelson H. F. Beebe.
64116         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
64117         of HAVE_DECL___PENDING.
64118
64119         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
64120         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
64121         declaration.
64122
64123 2006-09-27  Jim Meyering  <jim@meyering.net>
64124
64125         This file could end up with a definition for a function
64126         named __strndup, rather than rpl_strndup on a system with
64127         incomplete weak_alias support.
64128         * lib/strndup.c (strndup): Rename from __strndup.
64129         Remove #defines that used to map __strndup to strndup.
64130         Don't use K&R prototypes.
64131         Remove LIBC-related code, since this file is not sync'd with glibc.
64132         * lib/strndup.h: Revamp, accordingly.
64133         * m4/strndup.m4: Modernize.
64134
64135 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
64136
64137         * modules/savewd (Depends-on): Add 'raise'.
64138         * lib/savewd.c: Include <signal.h>, for 'raise'.
64139
64140 2006-09-26  Jim Meyering  <jim@meyering.net>
64141
64142         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
64143         when we detect Darwin 8.7.0's acl_get_file bug.
64144         Rearrange to perform the new (below) run-test while $LIBS
64145         contains any acl-related library.  Set USE_ACL at the end.
64146         (gl_ACL_GET_FILE): New function.
64147
64148 2006-09-26  Eric Blake  <ebb9@byu.net>
64149
64150         * lib/verror.c: Include <config.h> unconditionally.
64151
64152 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
64153
64154         * modules/clock-time (Maintainer): Add self.
64155         * modules/getlogin_r (Depends-on): Add extensions.
64156
64157 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64158
64159         * modules/clock-time: New module.
64160         * modules/nanosleep (Depends-on): Add clock-time.
64161         * modules/gethrxtime (Depends-on): Likewise.
64162         * modules/gettime (Depends-on): Likewise.
64163         * modules/settime (Depends-on): Likewise.
64164
64165         * modules/fts-lgpl: Depend on openat.
64166         * modules/mkancesdirs: Depend on savewd.
64167         * modules/mkdir-p: Likewise.
64168
64169 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64170
64171         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
64172
64173         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
64174         `gl_have_arbitrary_file_name_length_limit' to
64175         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
64176         actually works between configure runs.
64177
64178 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64179             Bruno Haible  <bruno@clisp.org>
64180
64181         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
64182
64183 2006-09-25  Jim Meyering  <jim@meyering.net>
64184
64185         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
64186         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
64187
64188 2006-09-25  Eric Blake  <ebb9@byu.net>
64189
64190         * gnulib-tool (func_import, func_create_testdir): Fix typos in
64191         exec's in 2006-09-18 patch when shuffling fds.
64192
64193 2006-09-25  Bruno Haible  <bruno@clisp.org>
64194
64195         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
64196         Reported by Jim Meyering.
64197
64198 2006-09-24  Jim Meyering  <jim@meyering.net>
64199
64200         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
64201         compare a pointer against a literal "0".  That caused failures with
64202         at least HP-UX's hpcc.
64203
64204 2006-09-22  Simon Josefsson  <jas@extundo.com>
64205
64206         * modules/gc-sha1:
64207         * modules/gc-md4:
64208         * modules/gc-hmac-sha1:
64209         * modules/gc-hmac-md5:
64210         * modules/gc-des:
64211         * modules/gc-arcfour: Distribute more files.
64212
64213 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64214
64215         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
64216         (gl_linked_iterator_from_to): Initialize struct completely.
64217         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
64218         (gl_tree_iterator_from_to): Likewise
64219         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
64220         * lib/gl_array_list.c [lint] (gl_array_iterator)
64221         (gl_array_iterator_from_to): Likewise.
64222         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
64223         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
64224         (gl_carray_iterator_from_to): Likewise.
64225
64226         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
64227         * lib/md4.c (md4_process_block): Remove unused variable.
64228         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
64229         parentheses for clarity.
64230
64231 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64232
64233         * modules/bison-i18n (Depends-on): Add gettext.
64234
64235 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64236
64237         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
64238         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
64239         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
64240         also add missing comma that caused broken test.
64241         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
64242         stdlib.h, for `abort'.
64243         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
64244         variables.
64245         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
64246         include unistd.h if present, for `rmdir'.
64247         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
64248         variables.
64249         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
64250         in the process include standard headers for prototypes.
64251         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
64252         gets declared on GNU/Linux.
64253         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
64254         unistd.h, for `rmdir'.
64255         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
64256
64257         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
64258         always true.
64259         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
64260
64261         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
64262
64263 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64264
64265         * gnulib-tool (func_version): Create output all at once.  This
64266         may help avoid triggering unnecessary SIGPIPEs, and at any
64267         rate it doesn't hurt.
64268
64269 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64270             Bruno Haible  <bruno@clisp.org>
64271
64272         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
64273         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
64274         * m4/signed.m4 (bh_C_SIGNED): Likewise.
64275
64276         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
64277         (gl_FUNC_VASPRINTF): Invoke it.
64278
64279 2006-09-22  Bruno Haible  <bruno@clisp.org>
64280
64281         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
64282         getloadavg.c as first argument.
64283
64284 2006-09-22  Bruno Haible  <bruno@clisp.org>
64285
64286         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
64287         at the beginning of the gl_INIT macro.
64288         * modules/getloadavg (configure.ac): Pass $gl_source_base to
64289         gl_GETLOADAVG.
64290
64291 2006-09-22  Bruno Haible  <bruno@clisp.org>
64292
64293         * gnulib-tool (func_create_megatestdir): Don't include the config-h
64294         module.
64295         Suggested by Ralf Wildenhues.
64296
64297 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64298
64299         Import this patch from libc:
64300
64301         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
64302
64303         * lib/regex_internal.c (re_string_reconstruct): Handle
64304         offset < pstr->valid_raw_len && pstr->offsets_needed case.
64305         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
64306         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
64307         re_string_context_at.
64308
64309         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
64310         now requires it.
64311         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
64312         gl_REGEX now does it for us.
64313         (gl_REGEX): Add test taken from
64314         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
64315
64316         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
64317         Check that large offsets work.  Modernize Autoconf usages.
64318         Prefer "yes" to mean a good thing rather than a bad.
64319         Don't put "#define mkstemp" in config.h, as this might interfere
64320         with standard system headers that "#define mkstemp mkstemp64".
64321
64322         * modules/mkstemp (Depends-on): Add extensions, so that
64323         mkstemp is visible on some platforms.
64324         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
64325         (Include): Change to "mkstemp.h" from <stdlib.h>.
64326         (Files): Add mkstemp.h.
64327
64328         * lib/mkstemp.h: New file, since some standard headers
64329         #define mkstemp.
64330         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
64331         Include "mkstemp.h".
64332         Make the _LIBC code resemble glibc original more,
64333         e.g., use K&R style.
64334         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
64335         (mkstemp): Remove, since mkstemp.h does this for us.
64336         * lib/stdlib--.h: Include mkstemp.h.
64337
64338         Import this patch from libc:
64339
64340         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
64341
64342         * lib/tempname.c (__gen_tempname): Change attempts_min
64343         into a macro.  Use preprocessor to decide how to initialize
64344         attempts [Coverity CID 67].
64345
64346 2006-09-20  Bruno Haible  <bruno@clisp.org>
64347
64348         * lib/mkdtemp.c: Import from libc.
64349         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
64350                 * sysdeps/posix/tempname.c (__gen_tempname): Change
64351                 attempts_min into a macro.  Use preprocessor to decide how to
64352                 initialize attempts [Coverity CID 67].
64353         2001-11-27  Paul Eggert  <eggert@twinsun.com>
64354                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
64355                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
64356
64357 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64358
64359         * gnulib-tool (func_exit): New function, to allow to pass the
64360         exit status portably through the trap.  Use everywhere.
64361         (--help, --version): Signal a write error.
64362         (trap): catch SIGPIPE, for write errors.
64363         Exit at the end of the trap, with the correct exit status.
64364
64365 2006-09-19  Karl Berry  <karl@gnu.org>
64366
64367         * doc/gnulib.texi: note about the license texinfo files.
64368
64369 2006-09-19  Eric Blake  <ebb9@byu.net>
64370
64371         * gnulib-tool: Avoid space-tab.
64372
64373 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
64374
64375         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
64376         that prevented coreutils 6.1 from building.  Problem reported
64377         by Petter Reinholdtsen.
64378
64379 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
64380
64381         * gnulib-tool (avoidlist): Fix typo that broke options like
64382         --avoid=lock that are used by coreutils bootstrap.
64383
64384 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
64385
64386         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
64387         more systematically.
64388
64389 2006-09-18  Jim Meyering  <jim@meyering.net>
64390
64391         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
64392
64393 2006-09-18  Bruno Haible  <bruno@clisp.org>
64394
64395         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
64396
64397 2006-09-18  Bruno Haible  <bruno@clisp.org>
64398
64399         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
64400         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
64401         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
64402         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
64403         * m4/gettext.m4: Require autoconf >= 2.52.
64404         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
64405         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
64406         of gl_cv_header_inttypes_h.
64407
64408 2006-09-18  Bruno Haible  <bruno@clisp.org>
64409
64410         * lib/javaversion.c: Include configmake.h.
64411
64412 2006-09-18  Bruno Haible  <bruno@clisp.org>
64413
64414         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
64415         avoid that the while loops be executed in a subshell.
64416
64417 2006-09-18  Bruno Haible  <bruno@clisp.org>
64418
64419         * MODULES.html.sh (func_module): Break long lines.
64420         Suggested by Bruce Korb <bkorb@gnu.org>.
64421
64422 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64423
64424         Speed up by a factor of 1.12.
64425         * gnulib-tool (nl): New variable.
64426         (func_import): Rewrite include directive extraction to only read each
64427         directive once.
64428
64429 2006-09-17  Bruno Haible  <bruno@clisp.org>
64430
64431         * modules/javaversion (Makefile.am): Remove DEFS setting.
64432         (Depends-on): Add configmake, for PKGDATADIR definition.
64433
64434 2006-09-17  Bruno Haible  <bruno@clisp.org>
64435
64436         * gnulib-tool (func_create_testdir): Rewrite all files at once.
64437
64438 2006-09-17  Bruno Haible  <bruno@clisp.org>
64439
64440         * gnulib-tool (func_append): New function, stolen from libtool.m4.
64441         (func_modules_transitive_closure, func_modules_add_dummy,
64442         func_modules_to_filelist, func_import, func_create_testdir,
64443         func_create_megatestdir, ...): Use it wherever possible.
64444         Suggested by Ralf Wildenhues.
64445
64446 2006-09-16  Karl Berry  <karl@gnu.org>
64447
64448         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
64449         to avoid sectioning errors.
64450         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
64451         [ifinfo]: blank line after @center-ed titles.
64452         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
64453         Spell FSF address consistently with others.
64454         (These changes approved by rms.)
64455
64456 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64457
64458         Speed up by a factor of 1.61.
64459         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
64460         already checked module names again.
64461
64462 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64463
64464         Speed up by a factor of 1.13.
64465         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
64466         for new_files, and the input to func_add_or_update.
64467
64468 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64469
64470         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
64471         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
64472
64473 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64474
64475         * modules/mkancesdirs (Depends-on): Add fcntl.
64476         * modules/savewd: New file.
64477         * MODULES.html.sh (File system functions): Add savewd.
64478
64479         * modules/configmake (Makefile.am): Add support for the
64480         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
64481
64482 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64483
64484         * m4/savewd.m4: New file.
64485
64486 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64487
64488         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
64489         (dirchownmod): New arg FD.  All callers changed.
64490         Use FD rather than opening the directory ourself, as opening is
64491         now the caller's responsibility.
64492         * lib/dirchownmod.h: Likewise.
64493         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
64494         hosts that require <sys/types.h> before <sys/stat.h>.  Include
64495         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
64496         (test_dir): Remove.
64497         (mkancesdirs): Return length of prefix of FILE that has already
64498         been made, or -2 if there is a child doing the work.  Redo
64499         algorithm so that it is O(N) rather than O(N**2).  Optimize away
64500         ".", and treat ".." specially since it might stray back into
64501         already-created areas.  Use a subprocess if necessary.  New arg
64502         WD; all users changed.  MAKE_DIR function should now return 1
64503         if it creates a directory that is not readable.  Return -2 if
64504         a child process is spun off.
64505         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
64506         Adjust signature to match code.
64507         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
64508         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
64509         all users changed.
64510         * lib/savewd.c, lib/savewd.h: New files.
64511
64512 2006-09-15  Jim Meyering  <jim@meyering.net>
64513
64514         * modules/rename-dest-slash: New module.
64515         * MODULES.html.sh (posix_compat): Add it here.
64516
64517         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
64518
64519 2006-09-15  Jim Meyering  <jim@meyering.net>
64520
64521         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
64522         file.
64523
64524         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
64525
64526 2006-09-15  Jim Meyering  <jim@meyering.net>
64527
64528         * lib/rename-dest-slash.c (has_trailing_slash): Use
64529         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
64530         (rpl_rename_dest_slash): Perform the cheaper trailing slash
64531         test before testing whether SRC is a directory.
64532         Suggestions from Bruno Haible.
64533
64534         Avoid a warning about an unused variable.
64535         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
64536         into the #ifdef block where it's used.
64537
64538         * lib/rename-dest-slash.c: New file.
64539
64540 2006-09-14  Bruno Haible  <bruno@clisp.org>
64541
64542         * lib/allocsa.c: Include <config.h> unconditionally.
64543         * lib/asnprintf.c: Likewise.
64544         * lib/asprintf.c: Likewise.
64545         * lib/c-strcasecmp.c: Likewise.
64546         * lib/c-strcasestr.c: Likewise.
64547         * lib/c-strncasecmp.c: Likewise.
64548         * lib/c-strstr.c: Likewise.
64549         * lib/classpath.c: Likewise.
64550         * lib/clean-temp.c: Likewise.
64551         * lib/concatpath.c: Likewise.
64552         * lib/copy-file.c: Likewise.
64553         * lib/csharpcomp.c: Likewise.
64554         * lib/csharpexec.c: Likewise.
64555         * lib/execute.c: Likewise.
64556         * lib/fatal-signal.c: Likewise.
64557         * lib/findprog.c: Likewise.
64558         * lib/fwriteerror.c: Likewise.
64559         * lib/gl_array_list.c: Likewise.
64560         * lib/gl_array_oset.c: Likewise.
64561         * lib/gl_avltree_list.c: Likewise.
64562         * lib/gl_avltree_oset.c: Likewise.
64563         * lib/gl_avltreehash_list.c: Likewise.
64564         * lib/gl_carray_list.c: Likewise.
64565         * lib/gl_linked_list.c: Likewise.
64566         * lib/gl_linkedhash_list.c: Likewise.
64567         * lib/gl_list.c: Likewise.
64568         * lib/gl_oset.c: Likewise.
64569         * lib/gl_rbtree_list.c: Likewise.
64570         * lib/gl_rbtree_oset.c: Likewise.
64571         * lib/gl_rbtreehash_list.c: Likewise.
64572         * lib/imaxabs.c: Likewise.
64573         * lib/imaxdiv.c: Likewise.
64574         * lib/javacomp.c: Likewise.
64575         * lib/javaexec.c: Likewise.
64576         * lib/javaversion.c: Likewise.
64577         * lib/linebreak.c: Likewise.
64578         * lib/localcharset.c: Likewise.
64579         * lib/lock.c: Likewise.
64580         * lib/mbchar.c: Likewise.
64581         * lib/mbswidth.c: Likewise.
64582         * lib/mkdtemp.c: Likewise.
64583         * lib/pipe.c: Likewise.
64584         * lib/printf-args.c: Likewise.
64585         * lib/printf-parse.c: Likewise.
64586         * lib/progname.c: Likewise.
64587         * lib/progreloc.c: Likewise.
64588         * lib/readlink.c: Likewise.
64589         * lib/sh-quote.c: Likewise.
64590         * lib/stpcpy.c: Likewise.
64591         * lib/stpncpy.c: Likewise.
64592         * lib/strcasecmp.c: Likewise.
64593         * lib/strcasestr.c: Likewise.
64594         * lib/strcspn.c: Likewise.
64595         * lib/striconv.c: Likewise.
64596         * lib/strncasecmp.c: Likewise.
64597         * lib/strnlen1.c: Likewise.
64598         * lib/strstr.c: Likewise.
64599         * lib/strtok_r.c: Likewise.
64600         * lib/tls.c: Likewise.
64601         * lib/tmpdir.c: Likewise.
64602         * lib/unicodeio.c: Likewise.
64603         * lib/unsetenv.c: Likewise.
64604         * lib/vasnprintf.c: Likewise.
64605         * lib/vasprintf.c: Likewise.
64606         * lib/wait-process.c: Likewise.
64607         * lib/xallocsa.c: Likewise.
64608         * lib/xsetenv.c: Likewise.
64609         * lib/xstriconv.c: Likewise.
64610
64611 2006-09-13  Simon Josefsson  <jas@extundo.com>
64612
64613         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
64614         that internally, suggested by Ralf Wildenhues
64615         <Ralf.Wildenhues@gmx.de>.
64616
64617 2006-09-13  Simon Josefsson  <jas@extundo.com>
64618
64619         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
64620         @LIBOBJS@.
64621         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64622
64623 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64624
64625         * lib/_fpending.c: Include <config.h> unconditionally, since we no
64626         longer worry about uses that don't define HAVE_CONFIG_H.
64627         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
64628         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
64629         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
64630         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
64631         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
64632         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
64633         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
64634         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
64635         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
64636         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
64637         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
64638         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
64639         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
64640         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
64641         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
64642         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
64643         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
64644         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
64645         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
64646         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
64647         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
64648         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
64649         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
64650         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
64651         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
64652         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
64653         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
64654         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
64655         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
64656         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
64657         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
64658         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
64659         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
64660         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
64661         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
64662         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
64663         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
64664         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
64665         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
64666         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
64667         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
64668         Likewise.
64669
64670 2006-09-13  Eric Blake  <ebb9@byu.net>
64671
64672         * lib/getopt.c: Fix typo in last commit.
64673
64674 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64675
64676         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
64677         dgettext.
64678
64679 2006-09-12  Jim Meyering  <jim@meyering.net>
64680
64681         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
64682         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
64683         Reported by Nelson H. F. Beebe.
64684
64685 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64686
64687         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
64688         program_invocation_name and program_invocation_short_name are
64689         initialized.
64690         * lib/argp-namefrob.h: Move declarations of program_invocation_name
64691         and program_invocation_short_name to argp.h, so they are visible
64692         to user programs.
64693         * lib/argp.h: Likewise
64694
64695 2006-09-10  Bruno Haible  <bruno@clisp.org>
64696
64697         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
64698         m4/inttypes_h.m4, m4/uintmax_t.m4.
64699
64700 2006-09-10  Bruno Haible  <bruno@clisp.org>
64701
64702         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
64703         gl_AC_TYPE_UINTMAX_T.
64704
64705 2006-09-10  Bruno Haible  <bruno@clisp.org>
64706
64707         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
64708
64709 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64710
64711         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
64712         convention.  Text proposed by Bruno Haible.
64713         (struct argp_option): Document the use of N_() wrappers.
64714
64715         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
64716         '\v', and translate the two parts separately, instead of feeding
64717         the whole string to gettext.  This allows to exclude
64718         '\v' from the strings visible to the translator by writing doc
64719         strings as N_("..") "\v" N_("..").
64720
64721 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
64722
64723         * config/srclist.txt: Undo latest change; the bug was fixed.
64724
64725 2006-09-09  Bruno Haible  <bruno@clisp.org>
64726
64727         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
64728         assignments if building a library without libtool.
64729         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
64730         in func_emit_lib_Makefile_am.
64731         (func_import): When building a static library libfoo.a, arrange to
64732         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
64733         (func_create_testdir): Likewise.
64734         * modules/gc (configure.ac, Makefile.am): If building statically,
64735         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
64736         * modules/iconvme (configure.ac, Makefile.am): Likewise.
64737         * modules/striconv (configure.ac, Makefile.am): Likewise.
64738         Based on a suggestion by Ralf Wildenhues.
64739
64740 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64741
64742         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
64743         Check for unistd.h too, since Autoconf doesn't assume POSIX.
64744         Also:
64745
64746         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64747         Add year_2050_test to catch glibc bug 2821
64748         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
64749
64750         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64751         Prefer #ifdef to #if.
64752
64753         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
64754         Return from 'main' instead of calling 'exit'.
64755
64756 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64757
64758         * lib/mktime.c (guess_time_tm): Fix bug where mktime
64759         returned the maximum time_t value rather than (time_t) -1.
64760         Problem originally reported by William Bardwell
64761         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
64762
64763         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
64764         Moved to here ...
64765         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
64766         ... from here.
64767
64768 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64769
64770         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
64771         2821 is fixed.
64772
64773 2006-09-08  Jim Meyering  <jim@meyering.net>
64774
64775         Don't make generated files read-only.  That would bother too many
64776         people.  However, do retain the ability to work when targets are
64777         read-only: remove the destination and temporary files before writing
64778         them (when generated via sed or echo), or by using the -f option for
64779         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
64780         * modules/alloca-opt, modules/argz, modules/arpa_inet:
64781         * modules/byteswap, modules/configmake, modules/fcntl:
64782         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
64783         * modules/localcharset, modules/netinet_in, modules/poll:
64784         * modules/stdbool, modules/stdint, modules/sys_select:
64785         * modules/sys_socket, modules/sys_stat, modules/sysexits:
64786
64787 2006-09-08  Jim Meyering  <jim@meyering.net>
64788
64789         Avoid new build failure on FreeBSD 6.0.
64790         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
64791         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
64792         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
64793
64794 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64795
64796         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
64797
64798 2006-09-07  Jim Meyering  <jim@meyering.net>
64799
64800         Fix global typo in last change: use chmod u-w, not chmod u-x.
64801         Spotted by Paul Eggert and Bruce Korb.
64802         * modules/alloca-opt, modules/argz, modules/arpa_inet:
64803         * modules/byteswap, modules/configmake, modules/fcntl:
64804         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
64805         * modules/localcharset, modules/netinet_in, modules/poll:
64806         * modules/stdbool, modules/stdint, modules/sys_select:
64807         * modules/sys_socket, modules/sys_stat, modules/sysexits:
64808
64809 2006-09-06  Jim Meyering  <jim@meyering.net>
64810
64811         Make generated files be read-only.
64812         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
64813         Ensure that each generated file is now read-only.
64814         * modules/argz: Likewise.
64815         * modules/arpa_inet: Likewise.
64816         * modules/byteswap: Likewise.
64817         * modules/configmake: Likewise.
64818         * modules/fcntl: Likewise.
64819         * modules/fnmatch: Likewise.
64820         * modules/getopt: Likewise.
64821         * modules/glob: Likewise.
64822         * modules/inttypes: Likewise.
64823         * modules/netinet_in: Likewise.
64824         * modules/poll: Likewise.
64825         * modules/stdbool: Likewise.
64826         * modules/stdint: Likewise.
64827         * modules/sys_select: Likewise.
64828         * modules/sys_socket: Likewise.
64829         * modules/sys_stat: Likewise.
64830         * modules/sysexits: Likewise.
64831         * modules/localcharset: Same as above, but continue using temporary
64832         file named "t-$@" (why different?) rather than the "$@-t" used
64833         everywhere else.
64834
64835         * modules/sysexits (Makefile.am): Replace literal occurrences
64836         of "sysexit.h" more readable, and more consistent, "$@".
64837
64838 2006-09-06  Bruno Haible  <bruno@clisp.org>
64839
64840         * modules/striconv: New file.
64841         * modules/xstriconv: New file.
64842         * MODULES.html.sh (Internationalization functions): Add striconv,
64843         xstriconv.
64844
64845 2006-09-06  Bruno Haible  <bruno@clisp.org>
64846
64847         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
64848         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
64849         not using libtool correctly.
64850
64851 2006-09-06  Bruno Haible  <bruno@clisp.org>
64852
64853         * lib/striconv.h: New file.
64854         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
64855         iconvstring.c.
64856         * lib/xstriconv.h: New file.
64857         * lib/xstriconv.c: New file.
64858
64859 2006-09-06  Bruno Haible  <bruno@clisp.org>
64860
64861         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
64862         lib_..._LDFLAGS.
64863
64864 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64865
64866         * lib/argz_.h: Sync from Libtool.
64867
64868         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
64869                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
64870
64871         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
64872
64873 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
64874
64875         * modules/trim: New file.
64876
64877 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
64878
64879         * lib/trim.h: New file.
64880         * lib/trim.c: New file.
64881
64882 2006-09-05  Bruno Haible  <bruno@clisp.org>
64883
64884         * MODULES.html.sh (String handling): Add trim.
64885
64886 2006-09-04  Karl Berry  <karl@gnu.org>
64887
64888         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
64889         until next release.
64890
64891 2006-09-03  Bruno Haible  <bruno@clisp.org>
64892
64893         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
64894         correctly.
64895
64896 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64897
64898         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
64899         not gl_GETLOADAVG.  Omit unneeded semicolons.
64900         Problems reported by Ralf Wildenhues in
64901         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
64902         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
64903         at the end, which is the usual gnulib style.
64904
64905         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
64906         of doing all the work ourselves.
64907         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
64908         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
64909
64910 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64911
64912         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
64913         Problem reported by Ralf Wildenhues in
64914         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
64915
64916         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
64917         HAVE_STRUCT_STATFS_F_FSTYPENAME.
64918
64919 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64920
64921         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
64922         yesterday's patch by changing test -n to test -z.
64923
64924 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64925
64926         * modules/getloadavg (Files): Add m4/getloadavg.m4.
64927         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
64928         the former is now obsolescent.
64929
64930         * modules/chdir-long (Depends-on): Add fcntl.
64931
64932 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64933
64934         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
64935         obsolescent, and programs should use gnulib instead.
64936         * m4/getloadavg.m4: New file, with contents taken from Autoconf
64937         but with prefixes changed.
64938
64939 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64940
64941         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
64942         or stdbool.h, because they might not exist while configuring.
64943
64944         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
64945         Don't include unistd.h or limits.h; not needed, since chdir-long.h
64946         does that for us.
64947         (O_DIRECTORY): Remove.
64948
64949 2006-08-31  Eric Blake  <ebb9@byu.net>
64950
64951         * gnulib-tool: Don't let emacs change spaces to TAB.
64952
64953 2006-08-31  Bruno Haible  <bruno@clisp.org>
64954
64955         * gnulib-tool: When calling func_import more than once, do it in a
64956         subshell.
64957         Reported by Eric Blake <ebb9@byu.net>.
64958
64959 2006-08-31  Bruno Haible  <bruno@clisp.org>
64960
64961         * gnulib-tool (nl): Remove variable.
64962         (sed_transform_lib_file): Use more robust test for config-h module.
64963         (func_import): Fix typo in 2006-08-25 patch.
64964
64965 2006-08-31  Bruno Haible  <bruno@clisp.org>
64966
64967         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
64968         specified, augment Makefile.am variables instead of assigning them.
64969
64970 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64971
64972         Work around a bug in both the Linux and SunOS 64-bit kernels:
64973         nanosleep mishandles sleeps for longer than 2**31 seconds.
64974         Problem reported by Frank v Waveren in
64975         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
64976         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
64977         Check for nanosleep bug.
64978         (LIB_NANOSLEEP): Append clock_gettime library if needed.
64979
64980 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64981
64982         Work around a bug in both the Linux and SunOS 64-bit kernels:
64983         nanosleep mishandles sleeps for longer than 2**31 seconds.
64984         Problem reported by Frank v Waveren in
64985         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
64986         * lib/nanosleep.c (BILLION): New constant.
64987         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
64988         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
64989         implementation.
64990
64991 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64992
64993         * modules/nanosleep (Depends-on): Add gettime.
64994
64995 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64996         and Simon Josefsson  <jas@extundo.com>
64997         and Oskar Liljeblad  <oskar@osk.mine.nu>
64998
64999         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
65000         * gnulib-tool (func_import): New license type 'unmodifiable license
65001         text'.
65002         * modules/fdl: Use it.  Longer description.
65003         * module/gpl, module/lgpl: New files.
65004
65005 2006-08-30  Jim Meyering  <jim@meyering.net>
65006
65007         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
65008         shadowing the parameter.
65009
65010 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65011
65012         Sync from Libtool:
65013
65014         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65015
65016         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
65017         sharing with gnulib.  Report by Eric Blake.
65018
65019 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65020
65021         * modules/isapipe: New file.
65022         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
65023
65024 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65025
65026         * modules/configmake (Makefile.am): Add a comment, and omit
65027         the CONFIGMAKE_ prefix from generated macro names.  Suggested
65028         by Bruno Haible.
65029
65030 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65031
65032         * m4/isapipe.m4: New file.
65033
65034 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65035
65036         * lib/isapipe.c, lib/isapipe.h: New files.
65037
65038 2006-08-29  Jim Meyering  <jim@meyering.net>
65039
65040         * modules/configmake (Makefile.am): Make configmake.h depend on
65041         Makefile.  Otherwise, a stale configmake.h could hang around.
65042
65043 2006-08-29  Eric Blake  <ebb9@byu.net>
65044
65045         * lib/error.c (error_at_line, print_errno_message): Match libc, after
65046         resolution of upstream bug 3044.
65047
65048 2006-08-29  Bruno Haible  <bruno@clisp.org>
65049
65050         * modules/localcharset (Depends-on): Add configmake.
65051         (Makefile.am): Remove setting of LIBDIR through DEFS.
65052
65053 2006-08-29  Bruno Haible  <bruno@clisp.org>
65054
65055         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
65056         defined.
65057
65058 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65059
65060         * modules/fcntl: New file.
65061         * modules/chdir-safer (Depends-on): Add fcntl.
65062         * modules/fts: Likewise.
65063         * modules/mkdir-p: Likewise.
65064
65065         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
65066         This undoes the most recent change, since we're now addressing the
65067         problem in a different way.
65068
65069         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
65070         into output, since the output might be called Makefile.am even
65071         if $makefile_name is something different.
65072         (func_import): Use $makefile_am rather than
65073         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
65074         empty.
65075
65076         * modules/inttypes (Files): Add m4/inttypes-h.m4.
65077
65078 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65079
65080         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
65081         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
65082         recent change to stdint.m4, since we're now addressing the problem in a
65083         different way.
65084
65085 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65086
65087         * m4/fcntl_h.m4: New file.
65088
65089 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65090
65091         * lib/fcntl_.h: New file.
65092         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
65093         the fcntl module.
65094         * lib/dirchownmod.c: Likewise.
65095         * lib/fts.c: Likewise.
65096
65097         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
65098         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
65099         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
65100         just before including <inttypes.h>, to avoid circular inclusion.
65101
65102 2006-08-28  Jim Meyering  <jim@meyering.net>
65103
65104         * doc/visibility.texi: Actually read and correct the grammar of the
65105         sentence affected by yesterday's change.
65106
65107 2006-08-28  Eric Blake  <ebb9@byu.net>
65108
65109         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
65110         needs wrapper.
65111
65112 2006-08-28  Eric Blake  <ebb9@byu.net>
65113
65114         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
65115
65116 2006-08-28  Eric Blake  <ebb9@byu.net>
65117
65118         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
65119
65120 2006-08-28  Bruno Haible  <bruno@clisp.org>
65121
65122         * modules/c-strstr: New file, from GNU gettext.
65123         * MODULES.html.sh (String handling): Add c-strstr.
65124
65125 2006-08-28  Bruno Haible  <bruno@clisp.org>
65126
65127         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
65128         macros.
65129         Reported by Eric Blake.
65130
65131 2006-08-28  Bruno Haible  <bruno@clisp.org>
65132
65133         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
65134         (VASNPRINTF): Return a string of length > INT_MAX without failing.
65135         * lib/vasprintf.c: Include errno.h, limits.h.
65136         (EOVERFLOW): New fallback definition.
65137         (vasprintf): Test here whether the string length is > INT_MAX.
65138         * lib/vsnprintf.c: Include errno.h, limits.h.
65139         (EOVERFLOW): New fallback definition.
65140         (vsnprintf): Fix bug when generated string was too long for the buffer.
65141         Test here whether the string length is > INT_MAX.
65142
65143 2006-08-28  Bruno Haible  <bruno@clisp.org>
65144
65145         * lib/inttypes_.h (SCNX*): Remove definitions.
65146         Reported by Eric Blake.
65147
65148 2006-08-28  Bruno Haible  <bruno@clisp.org>
65149
65150         * lib/c-strstr.h: New file, from GNU gettext.
65151         * lib/c-strstr.c: New file, from GNU gettext.
65152
65153 2006-08-28  Bruno Haible  <bruno@clisp.org>
65154
65155         * gnulib-tool: Reorder some statements.
65156
65157 2006-08-28  Bruno Haible  <bruno@clisp.org>
65158
65159         * gnulib-tool: New option --makefile-name.
65160         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
65161         $makefile_name.
65162         (func_import): Write $makefile_name to the cache file, and read it from
65163         there unless explicitly specified. Use $makefile_name as file name
65164         instead of Makefile.am. Adjust the recommendations accordingly.
65165
65166 2006-08-28  Bruno Haible  <bruno@clisp.org>
65167
65168         * gnulib-tool (func_verify_module): Check against misapplying patch.
65169
65170 2006-08-28  Bruno Haible  <bruno@clisp.org>
65171
65172         * gnulib-tool (func_relativize, func_relconcat): New functions.
65173         Give an error if --local-dir is given with --update.
65174         Remove trailing slashes from $local_gnulib_dir.
65175         (func_import): Store the relativized $local_gnulib_dir in
65176         gnulib-cache.m4, and read it from there if not specified explicitly.
65177
65178 2006-08-28  Bruno Haible  <bruno@clisp.org>
65179
65180         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
65181         is the current directory. Respect also $local_gnulib_dir.
65182
65183 2006-08-28  Bruno Haible  <bruno@clisp.org>
65184             Simon Josefsson  <jas@extundo.com>
65185
65186         BeOS portability.
65187         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
65188
65189 2006-08-27  Jim Meyering  <jim@meyering.net>
65190
65191         * doc/visibility.texi: Remove duplicate word: "pointer".
65192
65193 2006-08-26  Bruno Haible  <bruno@clisp.org>
65194
65195         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
65196         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
65197         (Makefile.am): Create inttypes.h from inttypes_.h.
65198         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
65199
65200         * modules/imaxabs: New file.
65201
65202         * modules/imaxdiv: New file.
65203
65204 2006-08-26  Bruno Haible  <bruno@clisp.org>
65205
65206         * m4/inttypes.m4: New file.
65207         * m4/_inttypes_h.m4: Remove file.
65208         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
65209         PRI_MACROS_BROKEN.
65210         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
65211
65212         * m4/imaxabs.m4: New file.
65213
65214         * m4/imaxdiv.m4: New file.
65215
65216 2006-08-26  Bruno Haible  <bruno@clisp.org>
65217
65218         * lib/inttypes_.h: New file.
65219         * lib/inttypes.h: Remove file.
65220         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
65221
65222         * lib/imaxabs.c: New file.
65223
65224         * lib/imaxdiv.c: New file.
65225
65226 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65227
65228         New config-h module, so that "make" output needn't be cluttered
65229         by -DHAVE_CONFIG_H.
65230         * MODULES.html.sh (Support for building libraries and executables):
65231         Add config-h.
65232         * modules/config-h: New file.
65233         * gnulib-tool (nl, sed_transform_lib_file): New vars.
65234         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
65235         the config-h module is used.
65236
65237         New configmake module, so that "make" output needn't be cluttered
65238         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
65239         * MODULES.html.sh (Support for building libraries and executables):
65240         Add configmake.
65241         * modules/configmake: New file.
65242
65243 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65244
65245         * m4/config-h.m4: New file.
65246
65247 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65248
65249         * config/srclist.txt: Add elisp-comp.
65250
65251 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65252
65253         * MODULES.html.sh (Support for building libraries and executables):
65254         Add elisp-comp.
65255         * build-aux/elisp-comp: New file.
65256         * modules/elisp-comp: New file.
65257
65258 2006-08-24  Bruno Haible  <bruno@clisp.org>
65259
65260         * gnulib-tool (func_create_testdir): Use non-default values of
65261         sourcebase and m4base.
65262
65263 2006-08-24  Bruno Haible  <bruno@clisp.org>
65264
65265         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
65266         HTML structure.
65267
65268 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65269
65270         * modules/openat (Depends-on): Add lchown.
65271
65272 2006-08-23  Bruno Haible  <bruno@clisp.org>
65273
65274         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
65275         of gl_LOCK_EARLY instead of gl_LOCK.
65276
65277 2006-08-23  Bruno Haible  <bruno@clisp.org>
65278
65279         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
65280         on OSF/1 to no.
65281         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
65282
65283 2006-08-23  Bruno Haible  <bruno@clisp.org>
65284
65285         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
65286         as unusable.
65287
65288         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
65289         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
65290         (gl_LOCK): New macro.
65291
65292 2006-08-22  Simon Josefsson  <jas@extundo.com>
65293
65294         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
65295         to md5 module.
65296
65297 2006-08-22  Simon Josefsson  <jas@extundo.com>
65298
65299         * MODULES.html.sh: Add "Support for maintaining and release
65300         projects".
65301
65302         * build-aux/gnupload: New file, from coreutils.
65303
65304 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65305
65306         Avoid the need for AC_LIBSOURCES in m4 macros.
65307         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
65308         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
65309         * modules/check-version (EXTRA_DIST): Add check-version.h.
65310         * modules/crc (EXTRA_DIST): Add crc.h.
65311         * modules/des (EXTRA_DIST): Add des.h.
65312         * modules/gc (EXTRA_DIST): Add gc.h.
65313         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
65314         * modules/getline (EXTRA_DIST): Add getline.h.
65315         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
65316         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
65317         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
65318         * modules/md2 (EXTRA_DIST): Add md2.h.
65319         * modules/md4 (EXTRA_DIST): Add md4.h.
65320         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
65321         * modules/read-file (EXTRA_DIST): Add read-file.h.
65322         * modules/readline (EXTRA_DIST): Add readline.h.
65323         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
65324         rijndael-api-fst.h.
65325
65326 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65327
65328         * m4/rijndael.m4 (gl_ARCFOUR):
65329         * m4/arctwo.m4 (gl_ARCTWO):
65330         * m4/check-version.m4 (gl_CHECK_VERSION):
65331         * m4/crc.m4 (gl_CRC):
65332         * m4/des.m4 (gl_DES):
65333         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
65334         * m4/gc.m4 (gl_GC):
65335         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
65336         * m4/getline.m4 (gl_FUNC_GETLINE):
65337         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
65338         * m4/hmac-md5.m4 (gl_HMAC_MD5):
65339         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
65340         * m4/md2.m4 (gl_MD2):
65341         * m4/md4.m4 (gl_MD4):
65342         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
65343         * m4/read-file.m4 (gl_FUNC_READ_FILE):
65344         * m4/readline.m4 (gl_FUNC_READLINE):
65345         * m4/rijndael.m4 (gl_RIJNDAEL):
65346         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
65347         to get the necessary .h files and whatnot.
65348
65349 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65350
65351         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
65352         gnulib rather than the other way around.
65353         * config/srclistvars.sh (COREUTILS): Remove.
65354
65355 2006-08-22  Jim Meyering  <jim@meyering.net>
65356
65357         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
65358
65359         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
65360
65361 2006-08-22  Eric Blake  <ebb9@byu.net>
65362
65363         * modules/regexprops-generic: New file.
65364         * MODULES.html.sh (Support for building documentation): List it.
65365
65366 2006-08-22  Eric Blake  <ebb9@byu.net>
65367
65368         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
65369         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
65370         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
65371         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
65372
65373 2006-08-22  Bruno Haible  <bruno@clisp.org>
65374
65375         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
65376         and lib_LTLIBRARIES like the other lib_* variables.
65377
65378 2006-08-22  Bruno Haible  <bruno@clisp.org>
65379
65380         * build-aux/x-to-1.in: New file, from GNU gettext.
65381
65382 2006-08-22  Bruno Haible  <bruno@clisp.org>
65383
65384         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
65385         <utmpx.h> exists.
65386
65387 2006-08-22  Bruno Haible  <bruno@clisp.org>
65388
65389         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
65390         <utmpx.h> exists.
65391
65392 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65393
65394         BeOS portability.
65395         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
65396         exist.
65397         Problem reported by Bruno Haible.
65398
65399 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65400
65401         Avoid the need for AC_LIBSOURCES in m4 macros.
65402         * modules/acl (EXTRA_DIST): Add acl.h.
65403         * modules/argmatch (Files): Add m4/argmatch.m4.
65404         (configure.ac): Add gl_ARGMATCH.
65405         (EXTRA_DIST): Renamed from lib_SOURCES, for
65406         consistency with the other modules.  Remove argmatch.c.
65407         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
65408         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
65409         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
65410         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
65411         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
65412         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
65413         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
65414         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
65415         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
65416         * modules/closeout (EXTRA_DIST): Add closeout.h.
65417         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
65418         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
65419         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
65420         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
65421         dirname.h; remove basename.c and stripslash.c.
65422         * modules/exclude (EXTRA_DIST): Add exclude.h.
65423         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
65424         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
65425         * modules/file-type (EXTRA_DIST): Add file-type.h.
65426         * modules/filemode (EXTRA_DIST): Add filemode.h.
65427         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
65428         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65429         * modules/fpending (EXTRA_DIST): Add __fpending.h.
65430         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
65431         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
65432         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
65433         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
65434         * modules/getdate (EXTRA_DIST): Add getdate.c.
65435         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
65436         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
65437         * modules/getpass (EXTRA_DIST): Add getpass.h.
65438         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
65439         * modules/group-member (EXTRA_DIST): Add group-member.h.
65440         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
65441         * modules/hash (EXTRA_DIST): Add hash.h.
65442         * modules/human (EXTRA_DIST): Add human.h.
65443         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
65444         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
65445         * modules/lchown (EXTRA_DIST): Add lchown.h.
65446         * modules/long-options (EXTRA_DIST): Add long-options.h.
65447         * modules/lstat (EXTRA_DIST): Add lstat.h.
65448         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
65449         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
65450         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
65451         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
65452         * modules/memxor (EXTRA_DIST): Add memxor.h.
65453         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
65454         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
65455         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
65456         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
65457         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
65458         * modules/physmem (EXTRA_DIST): Add physmem.h.
65459         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
65460         * modules/posixver (EXTRA_DIST): Add posixver.h.
65461         * modules/quote (EXTRA_DIST): Add quote.h.
65462         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
65463         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
65464         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
65465         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
65466         regex_internal.h regexec.c.
65467         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
65468         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
65469         * modules/same (EXTRA_DIST): Add same.h.
65470         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
65471         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
65472         * modules/savedir (EXTRA_DIST): Add savedir.h.
65473         * modules/sha1 (EXTRA_DIST): Add sha1.h.
65474         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
65475         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
65476         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
65477         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
65478         * modules/strdup (EXTRA_DIST): Add strdup.h.
65479         * modules/strftime (EXTRA_DIST): Add strftime.h.
65480         * modules/strndup (EXTRA_DIST): Add strndup.h.
65481         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
65482         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
65483         * modules/time_r (EXTRA_DIST): Add time_r.h.
65484         * modules/timespec (EXTRA_DIST): Add timespec.h.
65485         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65486         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
65487         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
65488         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
65489         * modules/userspec (EXTRA_DIST): Add userspec.h.
65490         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
65491         * modules/utimens (EXTRA_DIST): Add utimens.h.
65492         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
65493         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
65494         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
65495         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
65496         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
65497         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
65498         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
65499         * modules/yesno (EXTRA_DIST): Add yesno.h.
65500
65501 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65502
65503         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
65504
65505         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
65506         * m4/dev-ino.m4, same-inode.m4: Remove.
65507
65508         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
65509         * m4/acl.m4 (AC_FUNC_ACL):
65510         * m4/backupfile.m4 (gl_BACKUPFILE):
65511         * m4/c-strtod.m4 (gl_C99_STRTOLD):
65512         * m4/canon-host.m4 (gl_CANON_HOST):
65513         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
65514         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
65515         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
65516         * m4/cloexec.m4 (gl_CLOEXEC):
65517         * m4/close-stream.m4 (gl_CLOSE_STREAM):
65518         * m4/closeout.m4 (gl_CLOSEOUT):
65519         * m4/dirfd.m4 (gl_FUNC_DIRFD):
65520         * m4/dirname.m4 (gl_DIRNAME):
65521         * m4/exclude.m4 (gl_EXCLUDE):
65522         * m4/exitfail.m4 (gl_EXITFAIL):
65523         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
65524         * m4/file-type.m4 (gl_FILE_TYPE):
65525         * m4/filemode.m4 (gl_FILEMODE):
65526         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
65527         * m4/fpending.m4 (gl_FUNC_FPENDING):
65528         * m4/fprintftime.m4 (gl_FPRINTFTIME):
65529         * m4/fts.m4 (gl_FUNC_FTS):
65530         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
65531         * m4/getdate.m4 (gl_GETDATE):
65532         * m4/gethrxtime.m4 (gl_GETHRXTIME):
65533         * m4/getpagesize.m4 (gl_GETPAGESIZE):
65534         * m4/getpass.m4 (gl_FUNC_GETPASS):
65535         * m4/gettime.m4 (gl_GETTIME):
65536         * m4/getugroups.m4 (gl_GETUGROUPS):
65537         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
65538         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
65539         * m4/hard-locale.m4 (gl_HARD_LOCALE):
65540         * m4/hash.m4 (gl_HASH):
65541         * m4/idcache.m4 (gl_IDCACHE):
65542         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
65543         * m4/lchown.m4 (gl_FUNC_LCHOWN):
65544         * m4/long-options.m4 (gl_LONG_OPTIONS):
65545         * m4/lstat.m4 (gl_FUNC_LSTAT):
65546         * m4/md5.m4 (gl_MD5):
65547         * m4/memcasecmp.m4 (gl_MEMCASECMP):
65548         * m4/memcoll.m4 (gl_MEMCOLL):
65549         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
65550         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
65551         * m4/memxor.m4 (gl_MEMXOR):
65552         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
65553         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
65554         * m4/modechange.m4 (gl_MODECHANGE):
65555         * m4/mountlist.m4 (gl_MOUNTLIST):
65556         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65557         * m4/openat.m4 (gl_FUNC_OPENAT):
65558         * m4/pathmax.m4 (gl_PATHMAX):
65559         * m4/physmem.m4 (gl_PHYSMEM):
65560         * m4/posixtm.m4 (gl_POSIXTM):
65561         * m4/posixver.m4 (gl_POSIXVER):
65562         * m4/quote.m4 (gl_QUOTE):
65563         * m4/quotearg.m4 (gl_QUOTEARG):
65564         * m4/readtokens.m4 (gl_READTOKENS):
65565         * m4/readutmp.m4 (gl_READUTMP):
65566         * m4/regex.m4 (gl_REGEX):
65567         * m4/safe-read.m4 (gl_SAFE_READ):
65568         * m4/safe-write.m4 (gl_SAFE_WRITE):
65569         * m4/same.m4 (gl_SAME):
65570         * m4/save-cwd.m4 (gl_SAVE_CWD):
65571         * m4/savedir.m4 (gl_SAVEDIR):
65572         * m4/settime.m4 (gl_SETTIME):
65573         * m4/sha1.m4 (gl_SHA1):
65574         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
65575         * m4/stat-macros.m4 (gl_STAT_MACROS):
65576         * m4/stat-time.m4 (gl_STAT_TIME):
65577         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
65578         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
65579         * m4/strdup.m4 (gl_FUNC_STRDUP):
65580         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
65581         * m4/strndup.m4 (gl_FUNC_STRNDUP):
65582         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
65583         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
65584         * m4/time_r.m4 (gl_TIME_R):
65585         * m4/timespec.m4 (gl_TIMESPEC):
65586         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
65587         * m4/unlinkdir.m4 (gl_UNLINKDIR):
65588         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
65589         * m4/userspec.m4 (gl_USERSPEC):
65590         * m4/utimecmp.m4 (gl_UTIMECMP):
65591         * m4/utimens.m4 (gl_UTIMENS):
65592         * m4/xalloc.m4 (gl_XALLOC):
65593         * m4/xgetcwd.m4 (gl_XGETCWD):
65594         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
65595         * m4/xreadlink.m4 (gl_XREADLINK):
65596         * m4/xstrtod.m4 (gl_XSTRTOD):
65597         * m4/yesno.m4 (gl_YESNO):
65598         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
65599         to get the necessary .h files and whatnot.
65600
65601 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
65602             Bruno Haible  <bruno@clisp.org>
65603
65604         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
65605         /bin/sh understanding of '!' conditional negation.
65606
65607 2006-08-21  Jim Meyering  <jim@meyering.net>
65608
65609         * modules/openat (Depends-on): Really alphabetize.
65610
65611         * modules/acl (Depends-on): Add error and quote.
65612
65613         * check-module (find_included_lib_files): Add at-func.c to the
65614         ok-to-include-more-than-once white list.
65615
65616         * modules/openat (Depends-on): Add lstat.  Alphabetize.
65617
65618 2006-08-21  Bruno Haible  <bruno@clisp.org>
65619
65620         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65621         Emit a pkgdata_DATA variable only if some snippets add contents to it.
65622         Reported by Martin Lambers <marlam@marlam.de>.
65623
65624 2006-08-21  Bruno Haible  <bruno@clisp.org>
65625
65626         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
65627         specify an installation location, don't emit a noinst_LIBRARIES or
65628         noinst_LTLIBRARIES assignment.
65629
65630 2006-08-21  Bruno Haible  <bruno@clisp.org>
65631
65632         BeOS portability.
65633         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
65634         BeOS has mbrtowc() but no <wctype.h>.
65635
65636 2006-08-21  Bruno Haible  <bruno@clisp.org>
65637
65638         BeOS portability.
65639         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
65640         exist.
65641
65642 2006-08-21  Bruno Haible  <bruno@clisp.org>
65643
65644         BeOS portability.
65645         * lib/mbchar.h: Include <wctype.h> only if it exists.
65646
65647 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65648
65649         Remove files that are no longer needed by their respective modules.
65650         * m4/obstack.m4: Remove.
65651         * m4/strerror_r.m4: Remove.
65652         * m4/uint32_t.m4: Remove.
65653         * m4/uintptr_t.m4: Remove.
65654         * m4/ullong_max.m4: Remove.
65655         * m4/xstrtoimax.m4: Remove.
65656         * m4/xstrtoumax.m4: Remove.
65657
65658         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
65659         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
65660         dependencies now capture this.
65661
65662         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
65663         Do not use AC_LIBSOURCES, since gnulib modules now do this.
65664         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
65665         * m4/human.m4 (gl_HUMAN): Likewise.
65666         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
65667         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
65668
65669         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
65670
65671         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
65672         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
65673         stdint.
65674         * m4/human.m4 (gl_HUMAN): Likewise.
65675         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
65676         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
65677         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
65678         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
65679         * m4/xstrtol (gl_XSTRTOL): Likewise.
65680
65681         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
65682         AC_TYPE_LONG_LONG_INT.
65683         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
65684         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
65685         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
65686         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
65687
65688         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
65689         on stdbool.
65690
65691         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
65692         (gl_PREREQ_XSTRTOUL): Remove.
65693
65694         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
65695
65696         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
65697         mode.
65698
65699 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65700
65701         Add and change modules to make it easier for coreutils to use
65702         gnulib-tool.
65703         * modules/backupfile (Files): Remove m4/d-ino.m4.
65704         (Depends-on): Add d-ino.
65705         * modules/cycle-check (Depends-on): Add stdint.
65706         (lib_SOURCES): Add cycle-check.h.
65707         * modules/d-ino: New module.
65708         * modules/d-type: New module.
65709         * modules/error (Files): Remove m4/strerror_r.m4.
65710         * modules/filemode (Files): Add m4/st_dm_mode.m4.
65711         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
65712         m4/inttypes_h.m4, m4/uintmax_t.m4.
65713         (Depends-on): Add stdint.
65714         (lib_SOURCES): Add fsusage.h.
65715         * modules/getcwd (Files): Remove d-ino.m4.
65716         (Depends-on): Add d-ino.
65717         * modules/getndelim2 (Depends-on): Add stdint.
65718         * modules/glob (Files): Remove m4/d-type.m4.
65719         (Depends-on): Add d-type.
65720         * modules/host-os: New module.
65721         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
65722         m4/inttypes_h.m4, m4/uintmax_t.m4.
65723         * Depends-on: Add stdint.
65724         (lib_SOURCES): Add human.h.
65725         * modules/inttostr (Files): Remove m4/intmax_t.m4,
65726         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
65727         m4/uintmax_t.m4, m4/ulonglong.m4.
65728         (Depends-on): Add stdint.
65729         (EXTRA_DIST): Add inttostr.h.
65730         * modules/lchmod: New module.
65731         * modules/link-follow: New module.
65732         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
65733         (Depends-on): Add lchmod.
65734         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
65735         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
65736         (Depends-on): Add stdint.
65737         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
65738         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
65739         (Depends-on): Add stdint.
65740         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
65741         * modules/perl: New module.
65742         * modules/regex (Depends-on): Add stdint.
65743         * modules/rmdir-errno: New module.
65744         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
65745         m4/intmax_t.m4.
65746         (Depends-on): Add stdint.
65747         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
65748         m4/uintmax_t.m4.
65749         (Depends-on): Add stdint.
65750         * modules/unlink-busy: New module.
65751         * modules/utimecmp (Depends-on): Add stdint.
65752         * modules/uptime: New module.
65753         * modules/winsz-ioctl: New module.
65754         * modules/winsz-termios: New module.
65755         * modules/xnanosleep (Depends-on): Add nanosleep.
65756         * modules/ullong_max: Remove.
65757         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
65758         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
65759         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
65760         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
65761         (Depends-on): Add inttypes.
65762         (lib_SOURCES): Add xstrtol.h.
65763         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
65764         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
65765         * MODULES.html.sh: Move 'assert' into the assert section.
65766         Move 'dummy' into the linking section.
65767         Remove ullong_max.
65768         Add section for compatibility checks for POSIX:2001 functions,
65769         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
65770         winsz-ioctl, and winsz-termios into it.
65771         Add lchmod.
65772         Add top-level Misc section and put host-os, perl, and uptime
65773         into it.
65774
65775 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65776
65777         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
65778         now assume the stdint module.  Do not include inttypes.h.
65779         * lib/fsusage.h: Likewise.
65780         * lib/getndelim2.c: Likewise.
65781         * lib/human.h: Likewise.
65782         * lib/inttostr.h: Likewise.
65783         * lib/obstack.c: Likewise.
65784         * lib/regex_internal.h: Likewise.
65785         * lib/tempname.c: Likewise.
65786         * lib/utimecmp.c: Likewise.
65787         * lib/xstrtol.h: Likewise.
65788
65789         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
65790
65791         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
65792         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
65793         * lib/xtime.h: Likewise.
65794
65795 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65796
65797         * modules/openat (Files): Add lib/fchmodat.c.
65798         Fixes problem reported by Jay Youngman.
65799
65800 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65801
65802         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
65803         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
65804
65805 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
65806             Bruno Haible  <bruno@clisp.org>
65807
65808         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
65809         and is a script that invokes bison. Tighten the code. Add comments.
65810
65811 2006-08-18  Jim Meyering  <jim@meyering.net>
65812
65813         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
65814         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
65815         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
65816         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
65817
65818 2006-08-18  Bruno Haible  <bruno@clisp.org>
65819
65820         * modules/bison-i18n: New file.
65821         * MODULES.html.sh (Internationalization functions): Add it.
65822
65823 2006-08-18  Bruno Haible  <bruno@clisp.org>
65824
65825         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
65826         sys/statvfs.h. When getmntinfo was found, check its declaration and
65827         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
65828
65829 2006-08-18  Bruno Haible  <bruno@clisp.org>
65830
65831         * m4/bison-i18n.m4: New file, from bison.
65832
65833 2006-08-18  Bruno Haible  <bruno@clisp.org>
65834
65835         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
65836         (ME_DUMMY): Treat "kernfs" as a dummy.
65837         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
65838
65839 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65840
65841         Update from coreutils.
65842
65843         2006-08-15  Jim Meyering  <jim@meyering.net>
65844
65845         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
65846
65847         2006-01-17  Jim Meyering  <jim@meyering.net>
65848
65849         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
65850
65851         2006-01-11  Jim Meyering  <jim@meyering.net>
65852
65853         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
65854         Check for the lchmod function.
65855
65856 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65857
65858         Update from coreutils.
65859
65860         * lib/__fpending.h: Add copyright notice.
65861         * lib/fprintftime.h: Likewise.
65862         * lib/savedir.c: Use (C) in copyright notice.
65863         * lib/savedir.h: Likewise.
65864
65865         2006-08-15  Jim Meyering  <jim@meyering.net>
65866
65867         * lib/at-func.c: New file, with the logic of all emulated at-functions.
65868         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
65869         in support of the EXPECTED_ERRNO macro.
65870         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
65871         definitions.  Instead, define the appropriate symbols and include
65872         "at-func.c".
65873         * lib/mkdirat.c (mkdirat): Likewise.
65874         * lib/fchmodat.c (fchmodat): Likewise.
65875         (ENOSYS): Remove definition.
65876         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
65877         it.  Don't include "unistd--.h" -- it wasn't ever used.
65878
65879         2006-01-17  Jim Meyering  <jim@meyering.net>
65880
65881         Rewrite fts.c not to change the current working directory,
65882         by using openat, fstatat, fdopendir, etc..
65883
65884         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
65885         (HAVE_OPENAT_SUPPORT): Define.
65886         [_LIBC] (fchdir): Don't undef or define; no longer used.
65887         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
65888         Now, this `function' always succeeds, and consumes its file descriptor
65889         parameter -- so callers must not close such FDs.  Update callers.
65890         (diropen_fd, opendirat, cwd_advance_fd): New functions.
65891         (diropen): Add parameter, SP.  Adjust all callers.
65892         Implement using diropen_fd, rather than open.
65893         (fts_open): Initialize new member, fts_cwd_fd.
65894         Remove fts_rft-setting code.
65895         (fts_close): Close fts_cwd_fd, if necessary.
65896         (__opendir2): Define in terms of opendir or opendirat,
65897         depending on whether the FST_NOCHDIR flag is set.
65898         (fts_build): Since fts_safe_changedir consumes its FD, and since
65899         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
65900         and close the dup'd file descriptor upon failure.
65901         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
65902         (fts_safe_changedir): Tweak semantics to reflect that this function
65903         now calls cwd_advance_fd and hence consumes its FD argument.
65904         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
65905         [struct FTS] (fts_rft): Remove now-unused member.
65906         [struct FTS] (fts_cycle.state): Improve comment.
65907
65908         * lib/openat.c (openat_needs_fchdir): New function.
65909         * lib/openat.h (openat_needs_fchdir): Declare it.
65910
65911 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
65912
65913         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
65914         Problem and fix reported by Pádraig Brady in
65915         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
65916
65917 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65918
65919         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
65920
65921 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65922
65923         * lib/memcoll.c (memcoll): Optimize for the common case where the
65924         arguments are bytewise equal.
65925
65926 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65927
65928         * doc/regexprops-generic.texi: Add a copyright notice.
65929
65930 2006-08-15  Bruno Haible  <bruno@clisp.org>
65931
65932         * modules/tmpdir (License): Change to LGPL.
65933
65934 2006-08-15  Bruno Haible  <bruno@clisp.org>
65935
65936         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
65937         module.
65938
65939 2006-08-14  Simon Josefsson  <jas@extundo.com>
65940
65941         * config/srclist.txt: Add gnupload.
65942
65943 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65944
65945         Change copyright notice from LGPL 2 to GPL 2, since that's the
65946         standard form used in the gnulib repository.
65947         * tests/test-lock.c: Likewise.
65948         * tests/test-stdint.c: Likewise.
65949         * tests/test-tls.c: Likewise.
65950
65951         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
65952         prelude-manager.  User shorter URLs for GNU projects, without '?'.
65953         Add copyright notice.
65954
65955         * check-module: Add copyright notice.  Output a copyright
65956         notice if "--version" is specified.
65957         * modules/COPYING: New file.
65958         * tests/test-getaddrinfo.c: Add copyright notice.
65959         * tests/test-verify.c: Likewise.
65960
65961 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65962
65963         Change copyright notice from LGPL 2 to GPL 2, since that's the
65964         standard form used in the gnulib repository.
65965         * lib/lock.c: LGPL -> GPL.
65966         * lib/lock.h: Likewise.
65967         * lib/strnlen1.c: Likewise.
65968         * lib/strnlen1.h: Likewise.
65969         * lib/tls.c: Likewise.
65970         * lib/tls.h: Likewise.
65971         * lib/tmpdir.c: Likewise.
65972
65973         * lib/TODO: Remove; this belongs only in coreutils.
65974
65975 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65976
65977         Add copyright notices to long-enough files that lack them, since
65978         otherwise the files aren't clearly free.  Use the same notice that
65979         getdate.texi already uses.
65980         * doc/alloca-opt.texi: Add copyright notice.
65981         * doc/alloca.texi: Likewise.
65982         * doc/ctime.texi: Likewise.
65983         * doc/functions.texi: Likewise.
65984         * doc/gcd.texi: Likewise.
65985         * doc/gnulib-tool.texi: Likewise.
65986         * doc/inet_ntoa.texi: Likewise.
65987         * doc/visibility.texi: Likewise.
65988
65989         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
65990         * doc/quote.texi: Add copyright notice.
65991
65992         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
65993         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
65994         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
65995         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
65996         is now obsolete, and give a pointer to the Sun list.
65997         Add copyright notice.
65998
65999 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66000
66001         * config/srclistvars.sh: Add copyright notice.
66002
66003 2006-08-14  Eric Blake  <ebb9@byu.net>
66004
66005         Import the following change from libc:
66006
66007         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
66008
66009         Upstream bug 2997.
66010         * lib/misc/error.c: Add space between program name and message if file
66011         name is missing.
66012
66013 2006-08-12  Karl Berry  <karl@gnu.org>
66014
66015         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
66016         remove, these originate in gnulib now.
66017
66018 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66019
66020         * doc/Makefile (standards.info standards.html standards.dvi):
66021         Also depend on make-stds.texi.
66022
66023 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
66024
66025         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
66026         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
66027
66028         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
66029         in wchar_t.  Problem reported by Eric Blake.
66030
66031         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
66032         LEN is smaller than SIZE.  Suggested by Bruno Haible.
66033         Also, help the compiler to keep LEN in a register.
66034
66035 2006-08-11  Eric Blake  <ebb9@byu.net>
66036
66037         * users.txt: Sort.  Add tar.
66038
66039 2006-08-11  Bruno Haible  <bruno@clisp.org>
66040
66041         * users.txt: New file.
66042
66043 2006-08-11  Bruno Haible  <bruno@clisp.org>
66044
66045         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
66046         before <wchar.h>. Needed for OSF/1 and BSD/OS.
66047
66048 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66049
66050         * modules/snprintf (Depends-on): Remove minmax.
66051         (Maintainer): Add self and Bruno.
66052
66053 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66054
66055         * lib/.cppi-disable: Add snprintf.h, socket_.h.
66056         * lib/snprintf.c: Include <errno.h> and <limits.h>.
66057         (EOVERFLOW): Define if the system does not.
66058         Do not include "minmax.h"; it wasn't used.
66059         (snprintf): Don't assume size_t promotes to an unsigned type.
66060         Fix bug when generated string was too long for the buffer: the
66061         buffer's contents are supposed to be the initial prefix of the
66062         output.  Don't assume vasnprintf returns EOVERFLOW if the size
66063         exceeds INT_MAX; do the check ourselves.
66064
66065         Import the following changes from libc:
66066
66067         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
66068
66069         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
66070         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
66071         set wc to the byte which couldn't be converted.
66072         (re_string_reconstruct): Don't clear valid_raw_len before calling
66073         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
66074         tip_context using re_string_context_at.
66075
66076         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
66077
66078         * lib/posix/regex.h: g++ still cannot handled [restrict].
66079
66080         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
66081
66082         * lib/posix/regex.h: Remove special handling for VMS.
66083
66084 2006-08-10  Jim Meyering  <jim@meyering.net>
66085
66086         * modules/same-inode: New module.
66087         * modules/dev-ino: New module.
66088         * modules/cycle-check: Depend on these modules, rather than simply
66089         including their .h files.
66090         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
66091         required via m4/cycle-check.m4.
66092         * modules/same: Depend on new same-inode module, rather than
66093         including same-inode.h.
66094         * modules/chdir-safer: New file.
66095
66096         * modules/chown (Depends-on): Add stat-macros.
66097
66098 2006-08-10  Jim Meyering  <jim@meyering.net>
66099
66100         * m4/cycle-check.m4: New file.
66101         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
66102         * m4/dev-ino.m4, m4/same-inode.m4: New files.
66103
66104 2006-08-10  Eric Blake  <ebb9@byu.net>
66105
66106         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
66107         in from original proposal.
66108
66109 2006-08-10  Eric Blake  <ebb9@byu.net>
66110         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
66111
66112         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
66113         namespace.
66114
66115 2006-08-10  Bruno Haible  <bruno@clisp.org>
66116
66117         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
66118         as well.
66119
66120 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66121
66122         Sync from coreutils.
66123
66124         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
66125
66126         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
66127         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
66128
66129 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66130
66131         * modules/restrict: Remove; no longer needed now that we assume
66132         Autoconf 2.59 or later.
66133         * MODULES.html.sh: Remove 'restrict'.
66134         * modules/argp (Depends-on): Remove 'restrict'.
66135         * modules/base64 (Depends-on): Likewise.
66136         * modules/gc (Depends-on): Likewise.
66137         * modules/getaddrinfo (Depends-on): Likewise.
66138         * modules/glob (Depends-on): Likewise.
66139         * modules/inet_ntop (Depends-on): Likewise.
66140         * modules/inet_pton (Depends-on): Likewise.
66141         * modules/memxor (Depends-on): Likewise.
66142         * modules/regex (Depends-on): Likewise.
66143         * modules/strtok_r (Depends-on): Likewise.
66144         * modules/time_r (Depends-on): Likewise.
66145
66146 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66147
66148         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
66149         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
66150         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66151         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
66152         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
66153         * m4/memxor.m4 (gl_MEMXOR): Likewise.
66154         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
66155         gl_C_RESTRICT replaced by AC_C_RESTRICT.
66156
66157         Merge from coreutils.
66158         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
66159         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
66160         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66161         * m4/time_r.m4 (gl_TIME_R): Likewise.
66162
66163 2006-08-09  Karl Berry  <karl@gnu.org>
66164
66165         * config/srclist.txt: no more gettext-tools, per Bruno.
66166
66167 2006-08-08  Eric Blake  <ebb9@byu.net>
66168
66169         * modules/verror: New module.
66170         * MODULES.html.sh: Document it.
66171
66172 2006-08-08  Eric Blake  <ebb9@byu.net>
66173
66174         * lib/verror.h, lib/verror.c: New files.
66175
66176 2006-08-08  Eric Blake  <ebb9@byu.net>
66177
66178         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
66179         verror_at_line output complies with GNU Coding Standards even when
66180         file is NULL.
66181
66182 2006-08-07  Bruno Haible  <bruno@clisp.org>
66183
66184         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
66185         versions of AIX.
66186         Reported by Ralf Wildenhues.
66187
66188 2006-08-07  Bruno Haible  <bruno@clisp.org>
66189
66190         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
66191         in an AC_DEFUN. Needed so that the autoconf snippets can use
66192         AC_REQUIRE.
66193
66194 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66195
66196         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66197         Initialize pkgdata_DATA.
66198         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
66199         overriding it.
66200
66201 2006-08-06  Eric Blake  <ebb9@byu.net>
66202
66203         * lib/error.h: Fold in some upstream changes from glibc.
66204         * lib/error.c: Likewise.
66205
66206 2006-08-04  Bruno Haible  <bruno@clisp.org>
66207
66208         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66209         Make the mostlyclean-local rule depend on mostlyclean-generic.
66210         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
66211
66212 2006-07-31  Bruno Haible  <bruno@clisp.org>
66213
66214         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
66215         <stdlib.h>, <string.h>.
66216
66217 2006-07-30  Bruno Haible  <bruno@clisp.org>
66218
66219         * modules/readlink (License): Change to LGPL.
66220
66221 2006-07-30  Bruno Haible  <bruno@clisp.org>
66222
66223         * modules/javaversion (Makefile.am): Distribute javaversion.java and
66224         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
66225         set PKGDATADIR to point to it.
66226
66227 2006-07-30  Bruno Haible  <bruno@clisp.org>
66228
66229         * modules/csharpexec (configure.ac): Comment out macro invocation.
66230         * modules/javaexec (configure.ac): Likewise.
66231         * modules/javacomp-script (configure.ac): Likewise.
66232
66233         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
66234
66235 2006-07-30  Bruno Haible  <bruno@clisp.org>
66236
66237         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
66238         linked-list.
66239
66240 2006-07-30  Bruno Haible  <bruno@clisp.org>
66241
66242         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
66243
66244 2006-07-30  Bruno Haible  <bruno@clisp.org>
66245
66246         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66247         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
66248         get removed.
66249
66250 2006-07-29  Bruno Haible  <bruno@clisp.org>
66251
66252         Make it possible for gnulib-tool to work with locally modified or
66253         augmented gnulib repositories.
66254         * gnulib-tool (func_usage): Document --local-dir option.
66255         (local_gnulib_dir): New variable.
66256         Handle --local-dir option.
66257         (func_lookup_file): New function.
66258         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
66259         (func_get_description, func_get_filelist, func_get_description,
66260         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
66261         func_get_automake_snippet, func_get_include_directive,
66262         func_get_license, func_get_maintainer): Use func_lookup_file.
66263         (func_import, func_create_testdir): Use func_lookup_file.
66264
66265 2006-07-29  Bruno Haible  <bruno@clisp.org>
66266
66267         * modules/setenv (Depends-on): Add unistd.
66268
66269 2006-07-29  Bruno Haible  <bruno@clisp.org>
66270
66271         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
66272
66273 2006-07-29  Bruno Haible  <bruno@clisp.org>
66274
66275         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
66276
66277 2006-07-29  Bruno Haible  <bruno@clisp.org>
66278
66279         * gnulib-tool (import, update): If there is no Makefile.am, look at
66280         aclocal.m4, instead of bailing out.
66281
66282 2006-07-29  Bruno Haible  <bruno@clisp.org>
66283
66284         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
66285         Categorize the options by when they are useful.
66286
66287 2006-07-29  Bruno Haible  <bruno@clisp.org>
66288
66289         * gnulib-tool (func_usage): Document option --no-libtool.
66290         Handle option --no-libtool.
66291         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
66292         for changed semantics of $libtool variable.
66293         (func_import): Likewise. If libtool is not used, show this through
66294         an option --no-libtool.
66295         (func_create_testdir): Update.
66296
66297 2006-07-29  Bruno Haible  <bruno@clisp.org>
66298
66299         * gnulib-tool (func_import): Extend error message about missing
66300         --doc-base.
66301
66302 2006-07-29  Bruno Haible  <bruno@clisp.org>
66303
66304         * gnulib-tool (func_import): Don't create the $docbase directory if
66305         there is no file to store there.
66306
66307 2006-07-29  Bruno Haible  <bruno@clisp.org>
66308
66309         * gnulib-tool (autoconf_minversion): If a --dir option is given and
66310         relevant, look for configure.ac there, not in the current directory.
66311         Also use a simple search for AC_PREREQ, not "autoconf --trace".
66312
66313 2006-07-29  Bruno Haible  <bruno@clisp.org>
66314
66315         * gnulib-tool (SORT): New variable.
66316         (func_usage): Undocument --assume-autoconf option.
66317         Remove --assume-autoconf option handling.
66318         (autoconf_minversion): Determine from the contents of configure.ac.
66319         (func_import): Remove autoconf_minversion handling.
66320         Suggested by Eric Blake.
66321
66322 2006-07-29  Bruno Haible  <bruno@clisp.org>
66323
66324         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
66325
66326 2006-07-29  Bruno Haible  <bruno@clisp.org>
66327
66328         * config/srclist.txt (*setenv.[ch]): Remove rules.
66329
66330 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66331
66332         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
66333
66334 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66335
66336         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
66337         arpa/inet.h.
66338
66339 2006-07-28  Simon Josefsson  <jas@extundo.com>
66340
66341         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
66342         * modules/inet_pton (Depends-on): Likewise.
66343
66344 2006-07-28  Simon Josefsson  <jas@extundo.com>
66345
66346         * m4/netinet_in_h.m4: New file.
66347
66348 2006-07-28  Simon Josefsson  <jas@extundo.com>
66349
66350         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
66351         #include's.
66352
66353 2006-07-28  Simon Josefsson  <jas@extundo.com>
66354
66355         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
66356         #include's.
66357
66358 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
66359
66360         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
66361         setgid on directories only if they set these bits.
66362         * lib/modechange.h: Remove obsolete comment about masks.
66363
66364 2006-07-28  Eric Blake  <ebb9@byu.net>
66365
66366         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
66367         macro expansion.
66368
66369 2006-07-28  Bruno Haible  <bruno@clisp.org>
66370
66371         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
66372
66373 2006-07-28  Bruno Haible  <bruno@clisp.org>
66374
66375         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
66376
66377 2006-07-28  Bruno Haible  <bruno@clisp.org>
66378
66379         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
66380         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
66381         Define fallbacks.
66382         Avoids link error on FreeBSD 4.x.
66383         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66384
66385         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
66386         encoding.
66387         * lib/mbswidth.c (iswcntrl): Likewise.
66388
66389 2006-07-27  Bruno Haible  <bruno@clisp.org>
66390
66391         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
66392         test.
66393
66394 2006-07-27  Bruno Haible  <bruno@clisp.org>
66395
66396         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
66397         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
66398         defined.
66399
66400 2006-07-26  Eric Blake  <ebb9@byu.net>
66401
66402         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
66403
66404 2006-07-26  Eric Blake  <ebb9@byu.net>
66405
66406         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
66407         like mingw that lack mkstemp.
66408         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
66409         avoid compilation warning on mingw.
66410
66411 2006-07-26  Bruno Haible  <bruno@clisp.org>
66412
66413         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
66414         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
66415         INT_FAST*_MIN, INTPTR_MIN.
66416
66417 2006-07-25  Bruno Haible  <bruno@clisp.org>
66418
66419         * modules/version-etc (Depends-on): Add stdarg.
66420
66421 2006-07-25  Bruno Haible  <bruno@clisp.org>
66422
66423         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
66424         complex commands.
66425
66426 2006-07-25  Bruno Haible  <bruno@clisp.org>
66427
66428         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
66429         defined in <stdarg.h> or config.h.
66430
66431 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66432
66433         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
66434         (gl_STDIO_SAFER): Remove.
66435
66436 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66437
66438         * MODULES.html.sh (File stream based Input/Output):
66439         Add fopen-safer, tmpfile-safer; remove stdio-safer.
66440         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
66441         * modules/fopen-safer, modules/tmpfile-safer: New files.
66442         * modules/stdio-safer: Remove.
66443
66444 2006-07-24  Bruno Haible  <bruno@clisp.org>
66445
66446         * modules/tmpdir: New file.
66447         * MODULES.html.sh (File system functions): Add it.
66448
66449 2006-07-24  Bruno Haible  <bruno@clisp.org>
66450
66451         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
66452         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
66453
66454 2006-07-24  Bruno Haible  <bruno@clisp.org>
66455
66456         * modules/clean-temp: New file.
66457
66458 2006-07-24  Bruno Haible  <bruno@clisp.org>
66459
66460         * m4/tmpdir.m4: New file, from GNU gettext.
66461
66462 2006-07-24  Bruno Haible  <bruno@clisp.org>
66463
66464         * lib/tmpdir.h: New file, from GNU gettext.
66465         * lib/tmpdir.c: New file, from GNU gettext.
66466
66467 2006-07-24  Bruno Haible  <bruno@clisp.org>
66468
66469         * lib/clean-temp.h: New file, from GNU gettext.
66470         * lib/clean-temp.c: New file, from GNU gettext.
66471
66472 2006-07-23  Eric Blake  <ebb9@byu.net>
66473
66474         * modules/stdio-safer (Files): Add tmpfile-safer.c.
66475         (Depends-on): Add binary-io.
66476
66477 2006-07-23  Eric Blake  <ebb9@byu.net>
66478
66479         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
66480
66481 2006-07-23  Eric Blake  <ebb9@byu.net>
66482
66483         * lib/tmpfile-safer.c: New file.
66484         * lib/stdio-safer.h (fopen_safer): Add prototype.
66485         * lib/stdio--.h (tmpfile): Make safer.
66486
66487 2006-07-23  Bruno Haible  <bruno@clisp.org>
66488
66489         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
66490         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
66491         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
66492         gl_linked_remove_at): Use it.
66493
66494 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66495         and Simon Josefsson <jas@extundo.com>
66496
66497         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
66498
66499         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
66500
66501 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66502
66503         * modules/close-stream: New file.
66504         * modules/closeout (Description): Make it clear that it exits
66505         with a diagnostic on error.
66506         (Depends-on): Add close-stream.  Remove fpending, stdbool.
66507         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
66508
66509 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66510
66511         * m4/close-stream.m4: New file.
66512
66513 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66514
66515         * lib/close-stream.c, lib/close-stream.h: New files.
66516
66517 2006-07-22  Bruno Haible  <bruno@clisp.org>
66518
66519         Merge from GNU gettext 0.15.
66520
66521         2006-05-01  Bruno Haible  <bruno@clisp.org>
66522
66523                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
66524
66525         2006-07-22  Bruno Haible  <bruno@clisp.org>
66526
66527                 * modules/javaversion: New file.
66528                 * MODULES.html.sh (Java): Add javaversion.
66529
66530         2006-03-12  Bruno Haible  <bruno@clisp.org>
66531
66532                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
66533
66534         2005-12-04  Bruno Haible  <bruno@clisp.org>
66535
66536                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
66537                 (untested).
66538
66539         2006-06-21  Bruno Haible  <bruno@clisp.org>
66540
66541                 Avoid warnings from recent versions of mcs.
66542                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
66543                 -o, -L, -r any more. Use options documented since mcs-1.0
66544                 instead. Similarly for -g.
66545
66546         2005-12-04  Bruno Haible  <bruno@clisp.org>
66547
66548                 * build-aux/csharpcomp.sh.in: Suffix for resources is
66549                 .resources, not .resource.
66550
66551         2005-07-09  Bruno Haible  <bruno@clisp.org>
66552
66553                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
66554                 add a .dll suffix.
66555                 Reported by Mark Junker <mjscod@gmx.de>.
66556
66557         2006-07-22  Bruno Haible  <bruno@clisp.org>
66558
66559                 * modules/gettext: Upgrade to gettext-0.15.
66560                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
66561                 m4/visibility.m4.
66562                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
66563
66564 2006-07-22  Bruno Haible  <bruno@clisp.org>
66565
66566         Merge from GNU gettext 0.15.
66567
66568         2006-03-25  Bruno Haible  <bruno@clisp.org>
66569
66570                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
66571
66572         2006-07-21  Bruno Haible  <bruno@clisp.org>
66573
66574                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
66575                 "1.1".
66576
66577         2006-05-09  Bruno Haible  <bruno@clisp.org>
66578
66579                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
66580                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
66581                 for the conftestver execution.
66582
66583         2006-05-01  Bruno Haible  <bruno@clisp.org>
66584
66585                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
66586                 optional target-version argument. Verify that the compiler
66587                 groks source of the specified source-version, or add -source
66588                 option as necessary. Verify that the compiler produces
66589                 bytecode in the specified target-version, or add -target and
66590                 -source options as necessary. Make the result of the test
66591                 available as variable CONF_JAVAC. Also log error output in
66592                 config.log.
66593
66594         2006-03-11  Bruno Haible  <bruno@clisp.org>
66595
66596                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
66597
66598         2006-05-09  Bruno Haible  <bruno@clisp.org>
66599
66600                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
66601                 CLASSPATH_SEPARATOR to a semicolon.
66602
66603         2006-03-12  Bruno Haible  <bruno@clisp.org>
66604
66605                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
66606                 available as variable CONF_JAVA, for subsequent autoconf
66607                 tests. Also log error output in config.log.
66608
66609         2006-07-19  Bruno Haible  <bruno@clisp.org>
66610
66611                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
66612                 that getline works on glibc2 systems. Needed to avoid trouble
66613                 in relocatable.c.
66614                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
66615
66616         2005-12-04  Bruno Haible  <bruno@clisp.org>
66617
66618                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
66619                 launcher (untested).
66620
66621         2005-12-04  Bruno Haible  <bruno@clisp.org>
66622
66623                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
66624
66625         2006-07-22  Bruno Haible  <bruno@clisp.org>
66626
66627                 * gettext.m4: Update from GNU gettext-0.15.
66628                 * nls.m4: Likewise.
66629                 * po.m4: Likewise.
66630                 * inttypes-pri.m4: Likewise.
66631                 * inttypes-h.m4: Renamed from inttypes.m4.
66632                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
66633
66634 2006-07-22  Bruno Haible  <bruno@clisp.org>
66635
66636         Merge from GNU gettext 0.15.
66637
66638         2005-07-05  Bruno Haible  <bruno@clisp.org>
66639
66640                 * printf-args.c (printf_fetchargs): Work around broken
66641                 definition of wint_t on mingw.
66642
66643         2005-02-12  Bruno Haible  <bruno@clisp.org>
66644
66645                 * xallocsa.h: Add extern "C" for C++.
66646
66647         2006-05-17  Bruno Haible  <bruno@clisp.org>
66648
66649                 Cygwin portability.
66650                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
66651
66652         2006-04-30  Bruno Haible  <bruno@clisp.org>
66653
66654                 * progreloc.c: Include <mach-o/dyld.h> if available.
66655                 (find_executable): Use _NSGetExecutablePath when possible.
66656
66657         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66658
66659                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
66660                 function.
66661
66662         2005-12-29  Bruno Haible  <bruno@clisp.org>
66663
66664                 * progreloc.c (set_program_name_and_installdir): Fix
66665                 compilation error.
66666
66667         2005-12-04  Bruno Haible  <bruno@clisp.org>
66668
66669                 Cygwin portability.
66670                 * progreloc.c: Include <windows.h> also on Cygwin.
66671                 (find_executable): Add support for Cygwin.
66672                 (set_program_name_and_installdir): Handle also platforms with
66673                 nonempty EXEEXT.
66674
66675         2006-07-11  Bruno Haible  <bruno@clisp.org>
66676
66677                 * javacomp.c: Fix a comment.
66678                 Reported by Jim Meyering.
66679
66680         2006-04-30  Bruno Haible  <bruno@clisp.org>
66681
66682                 * javacomp.h (compile_java_class): Add source_version,
66683                 target_version arguments.
66684                 * javacomp.c: Rewritten to choose only a compiler that
66685                 respects the specified source_version and target_version.
66686
66687         2006-06-27  Bruno Haible  <bruno@clisp.org>
66688
66689                 Assume correct S_ISDIR macro.
66690                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
66691
66692         2006-07-22  Bruno Haible  <bruno@clisp.org>
66693
66694                 * javaversion.h: New file, from GNU gettext.
66695                 * javaversion.c: New file, from GNU gettext.
66696                 * javaversion.java: New file, from GNU gettext.
66697                 * javaversion.class: New file, from GNU gettext.
66698
66699         2006-05-17  Bruno Haible  <bruno@clisp.org>
66700
66701                 Cygwin portability.
66702                 * javaexec.c (execute_java_class): Test for jview program
66703                 also on Cygwin.
66704
66705         2006-04-09  Bruno Haible  <bruno@clisp.org>
66706
66707                 * fatal-signal.c: Don't include string.h.
66708                 (at_fatal_signal): Use a copying loop instead of memcpy.
66709
66710         2005-12-04  Bruno Haible  <bruno@clisp.org>
66711
66712                 * csharpexec.c: Add support for 'clix' launcher (untested).
66713                 (execute_csharp_using_sscli): New function.
66714                 (execute_csharp_program): Call it.
66715
66716         2006-06-21  Bruno Haible  <bruno@clisp.org>
66717
66718                 Avoid warnings from recent versions of mcs.
66719                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
66720                 -o, -L, -r any more. Use options documented since mcs-1.0
66721                 instead. Similarly for -g.
66722
66723         2005-07-09  Bruno Haible  <bruno@clisp.org>
66724
66725                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
66726                 add a .dll suffix.
66727                 Reported by Mark Junker <mjscod@gmx.de>.
66728
66729         2006-06-17  Bruno Haible  <bruno@clisp.org>
66730
66731                 * config.charset: Update for NetBSD 3.0.
66732
66733         2006-05-17  Bruno Haible  <bruno@clisp.org>
66734
66735                 Cygwin portability.
66736                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
66737
66738         2006-05-16  Bruno Haible  <bruno@clisp.org>
66739
66740                 * localcharset.c [CYGWIN]: Include <windows.h>.
66741                 (get_charset_aliases): For Cygwin, return the same CPxxx
66742                 aliases list as under WIN32.
66743                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
66744                 the environment variables. Fall back to GetACP().
66745
66746         2006-04-05  Bruno Haible  <bruno@clisp.org>
66747
66748                 * config.charset: Update Juan Manuel Guerrero's address.
66749
66750         2005-02-12  Bruno Haible  <bruno@clisp.org>
66751
66752                 * allocsa.h: Add extern "C" for C++.
66753
66754         2005-02-10  Bruno Haible  <bruno@clisp.org>
66755
66756                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
66757                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
66758
66759         2006-07-22  Bruno Haible  <bruno@clisp.org>
66760
66761                 * gettext.h: Update to GNU gettext-0.15.
66762
66763 2006-07-22  Bruno Haible  <bruno@clisp.org>
66764
66765         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
66766         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
66767         lib-prefix.m4, longdouble.m4, ssize_t.m4.
66768
66769 2006-07-21  Eric Blake  <ebb9@byu.net>
66770
66771         * modules/stdlib-safer: New file.
66772         * MODULES.html.sh (File stream based Input/Output): Add
66773         stdlib-safer.
66774
66775 2006-07-21  Eric Blake  <ebb9@byu.net>
66776
66777         * lib/stdlib-safer.h: New file from coreutils, required by
66778         stdlib--.h.
66779
66780 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
66781
66782         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
66783
66784 2006-07-20  Bruno Haible  <bruno@clisp.org>
66785
66786         * gnulib-tool: Recognize new option --assume-autoconf.
66787         (autoconf_minversion): New variable.
66788         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
66789
66790 2006-07-20  Bruno Haible  <bruno@clisp.org>
66791
66792         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
66793
66794 2006-07-19  Derek R. Price  <derek@ximbiot.com>
66795
66796         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
66797         Reindent and repaginate.
66798
66799 2006-07-19  Derek Price  <derek@ximbiot.com>
66800
66801         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
66802         Correct grammar.
66803
66804 2006-07-17  Bruno Haible  <bruno@clisp.org>
66805
66806         * modules/list: New file.
66807         * modules/array-list: New file.
66808         * modules/carray-list, modules/carray-list-tests: New files.
66809         * modules/linked-list, modules/linked-list-tests: New files.
66810         * modules/avltree-list, modules/avltree-list-tests: New files.
66811         * modules/rbtree-list, modules/rbtree-list-tests: New files.
66812         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
66813         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
66814         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
66815         * modules/oset: New file.
66816         * modules/array-oset: New file.
66817         * modules/avltree-oset, modules/avltree-oset-tests: New files.
66818         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
66819         * tests/test-carray_list.c: New file.
66820         * tests/test-linked_list.c: New file.
66821         * tests/test-avltree_list.c: New file.
66822         * tests/test-rbtree_list.c: New file.
66823         * tests/test-linkedhash_list.c: New file.
66824         * tests/test-avltreehash_list.c: New file.
66825         * tests/test-rbtreehash_list.c: New file.
66826         * tests/test-avltree_oset.c: New file.
66827         * tests/test-rbtree_oset.c: New file.
66828         * MODULES.html.sh (Container data structures): New section.
66829
66830 2006-07-17  Bruno Haible  <bruno@clisp.org>
66831
66832         * m4/gl_list.m4: New file.
66833
66834 2006-07-17  Bruno Haible  <bruno@clisp.org>
66835
66836         * lib/gl_list.h: New file.
66837         * lib/gl_list.c: New file.
66838         * lib/gl_array_list.h: New file.
66839         * lib/gl_array_list.c: New file.
66840         * lib/gl_carray_list.h: New file.
66841         * lib/gl_carray_list.c: New file.
66842         * lib/gl_linked_list.h: New file.
66843         * lib/gl_linked_list.c: New file.
66844         * lib/gl_anylinked_list1.h: New file.
66845         * lib/gl_anylinked_list2.h: New file.
66846         * lib/gl_avltree_list.h: New file.
66847         * lib/gl_avltree_list.c: New file.
66848         * lib/gl_anyavltree_list1.h: New file.
66849         * lib/gl_anyavltree_list2.h: New file.
66850         * lib/gl_rbtree_list.h: New file.
66851         * lib/gl_rbtree_list.c: New file.
66852         * lib/gl_anyrbtree_list1.h: New file.
66853         * lib/gl_anyrbtree_list2.h: New file.
66854         * lib/gl_anytree_list1.h: New file.
66855         * lib/gl_anytree_list2.h: New file.
66856         * lib/gl_linkedhash_list.h: New file.
66857         * lib/gl_linkedhash_list.c: New file.
66858         * lib/gl_anyhash_list1.h: New file.
66859         * lib/gl_anyhash_list2.h: New file.
66860         * lib/gl_avltreehash_list.h: New file.
66861         * lib/gl_avltreehash_list.c: New file.
66862         * lib/gl_rbtreehash_list.h: New file.
66863         * lib/gl_rbtreehash_list.c: New file.
66864         * lib/gl_anytreehash_list1.h: New file.
66865         * lib/gl_anytreehash_list2.h: New file.
66866
66867         * lib/gl_oset.h: New file.
66868         * lib/gl_oset.c: New file.
66869         * lib/gl_array_oset.h: New file.
66870         * lib/gl_array_oset.c: New file.
66871         * lib/gl_avltree_oset.h: New file.
66872         * lib/gl_avltree_oset.c: New file.
66873         * lib/gl_rbtree_oset.h: New file.
66874         * lib/gl_rbtree_oset.c: New file.
66875         * lib/gl_anytree_oset.h: New file.
66876
66877 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66878
66879         * m4/mkancesdirs.m4: New file.
66880         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
66881         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
66882         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
66883         it.
66884
66885 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66886
66887         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
66888         * lib/mkancesdirs.h: New files.
66889         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
66890         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
66891         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
66892         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
66893         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
66894         callers changed.  Revamp internals significantly, by not
66895         attempting to create directories that are temporarily more
66896         permissive than the final results.  Do not attempt to use
66897         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
66898         This removes some race conditions, fixes some bugs, and simplifies
66899         things.  Use new dirchownmod function to do owner and mode changes.
66900         * lib/mkdir-p.h: Likewise.
66901         * lib/modechange.c (octal_to_mode): New function.
66902         (struct mode_change): New member mentioned.
66903         (make_node_op_equals): New arg mentioned.  All callers changed.
66904         (mode_compile): Keep track of which mode bits the user has explicitly
66905         mentioned.
66906         (mode_adjust): New arg DIR, so that we implement the X op correctly.
66907         New arg PMODE_BITS, to keep track of which mode bits the user
66908         mentioned; it treats S_ISUID and S_ISGID speciall.
66909         All callers changed.
66910         * lib/modechange.h: Likewise.
66911
66912 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66913
66914         * MODULES.html.sh: Add mkancestors.
66915         * modules/mkancesdirs: New module.
66916         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
66917         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
66918         The chdir-safer and afs files are now orphans; I'll remove them
66919         unless someone speaks up.
66920         Add lib/dirchownmod.c, lib/dirchownmod.h.
66921         (Depends-on): Remove alloca, chown, save-cwd, dirname.
66922         Add lchown, mkancesdirs.
66923         (Maintainer): Add self.
66924
66925 2006-07-15  Karl Berry  <karl@gnu.org>
66926
66927         * gnulib-tool: help message wording/arrangement.
66928
66929 2006-07-14  Simon Josefsson  <jas@extundo.com>
66930
66931         * doc/gnulib.texi (Libtool and Windows): New section.
66932
66933 2006-07-12  Simon Josefsson  <jas@extundo.com>
66934
66935         * modules/gendocs (License): Fix license, approved by Karl.
66936
66937 2006-07-12  Eric Blake  <ebb9@byu.net>
66938
66939         * MODULES.html.sh: Add gendocs.
66940
66941 2006-07-11  Eric Blake  <ebb9@byu.net>
66942
66943         * modules/fdl: New module, to install doc/fdl.texi.
66944         * MODULES.html.sh: Add new section for documentation modules.
66945         * gnulib-tool: Avoid space-tab.
66946         (--doc-base): New option, to manage files from doc.
66947
66948 2006-07-11  Eric Blake  <ebb9@byu.net>
66949
66950         * m4/absolute-header.m4: Fix comments to match recent change.
66951
66952 2006-07-11  Eric Blake  <ebb9@byu.net>
66953
66954         * gnulib-tool: List --doc-base before --tests-base.
66955
66956 2006-07-11  Derek R. Price  <derek@ximbiot.com>
66957
66958         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
66959
66960 2006-07-11  Bruno Haible  <bruno@clisp.org>
66961
66962         * README: Mention where to put documentation.
66963
66964 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66965
66966         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
66967
66968 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
66969
66970         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
66971         to stdint.m4.
66972
66973 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
66974
66975         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
66976         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
66977         "no/such/file/stdint.h" when there is no such file, so that
66978         the resulting C code can be parsed by dodgy compilers.
66979         Problems reported by Bob Proulx.
66980
66981 2006-07-10  Derek R. Price  <derek@ximbiot.com>
66982
66983         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
66984         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
66985         macros into the GNU _D_EXACT_NAMLEN.
66986         * lib/savedir.c:  Likewise.
66987         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
66988
66989 2006-07-10  Derek R. Price  <derek@ximbiot.com>
66990         and Paul Eggert  <eggert@cs.ucla.edu>
66991
66992         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
66993         * m4/savedir.m4:
66994         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
66995         macros into the GNU _D_EXACT_NAMLEN.
66996
66997 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66998
66999         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
67000         around the absolute name, to work around a problem with the HP-UX
67001         11.23 native C compiler, reported by Bob Proulx.
67002
67003 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67004
67005         * doc/maintain.texi, make-stds.texi: Sync from
67006         <http://savannah.gnu.org/projects/gnustandards>.
67007
67008 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67009
67010         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
67011
67012 2006-07-09  Jim Meyering  <jim@meyering.net>
67013
67014         * m4/glob.m4: Remove a doubled word in a comment.
67015
67016 2006-07-09  Jim Meyering  <jim@meyering.net>
67017
67018         * lib/argp-pv.c: Remove a doubled word in a comment.
67019         * lib/check-version.c (check_version): Likewise.
67020         * lib/javacomp.c (compile_java_class): Likewise.
67021
67022 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
67023
67024         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
67025         for the benefit of people using Autoconf 2.60.  If you want to
67026         support older Autoconf versions you can copy m4/onceonly_2_57.m4
67027         (or m4/onceonly.m4, if pre-2.57) manually.
67028
67029 2006-07-08  Jim Meyering  <jim@meyering.net>
67030
67031         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
67032         comment.
67033         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
67034         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
67035         comment.
67036
67037 2006-07-08  Jim Meyering  <jim@meyering.net>
67038
67039         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
67040
67041 2006-07-07  Simon Josefsson  <jas@extundo.com>
67042
67043         * tests/test-crc.c: Change expected crc value, the test vector
67044         were probably computed using the old broken crc.c?
67045
67046 2006-07-06  Simon Josefsson  <jas@extundo.com>
67047
67048         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
67049         now the canonical place for the M4 file).
67050
67051         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
67052         from the sys_socket dependency now.
67053
67054         * modules/inet_pton (Files): Ditto.
67055
67056         * modules/inet_ntop (Files): Ditto.
67057
67058 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67059
67060         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
67061         not gl_PREREQ_GETUSERSHELL.
67062
67063 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67064
67065         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
67066         with only one argument, for Autoconf 2.60.
67067         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
67068         expand to nothing, so add a shell command to avoid syntax error.
67069         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
67070
67071 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67072
67073         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
67074
67075 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67076
67077         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
67078         no longer needed.  Check for isblank decl.
67079         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
67080         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
67081         of existence.
67082
67083 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67084
67085         * lib/getloadavg.c: Use __VMS, not VMS.
67086         * lib/getopt.c: Likewise.
67087         * lib/getpagesize.h: Likewise.
67088         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
67089         and probably does not work.
67090
67091 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67092
67093         * lib/.cppi-disable: Add wcwidth.
67094         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
67095         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
67096         (ISGRAPH): Remove.  All uses changed to isgraph.
67097         (FOLD) [!defined _LIBC]: Remove special case.
67098         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
67099         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
67100         HAVE_ISBLANK.
67101         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
67102         case.
67103
67104 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
67105
67106         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
67107         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
67108         brackets.  Other minor changes to suppress some compiler
67109         warnings.
67110
67111 2006-07-06  Derek R. Price  <derek@ximbiot.com>
67112         and Paul Eggert  <eggert@cs.ucla.edu>
67113
67114         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
67115         of invoking obsolescent AC_HEADER_DIRENT macro.
67116         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
67117         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
67118         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
67119         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
67120         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
67121         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
67122         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
67123         * m4/readdir.m4: Remove; no longer needed.
67124
67125 2006-07-06  Derek R. Price  <derek@ximbiot.com>
67126         and Paul Eggert  <eggert@cs.ucla.edu>
67127
67128         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
67129         Don't worry about this obsolete case any more.
67130         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
67131         directories.
67132         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
67133         worry about this obsolete case any more.
67134         * lib/fts.c: Likewise.
67135         * lib/getcwd.c: Likewise.
67136         * lib/glob.h: Likewise.
67137         * lib/savedir.c: Likewise.
67138
67139 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67140
67141         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
67142         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
67143         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
67144         needed.
67145         All uses removed.
67146         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67147         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
67148         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
67149         needed.
67150         * m4/getdate.m4 (gl_GETDATE): Likewise.
67151         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
67152         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
67153         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
67154         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67155         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
67156         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67157         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
67158         needed.
67159
67160 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67161
67162         * lib/memcasecmp.c: Include <limits.h>.
67163         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
67164         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
67165         Don't assume isdigit succeeds only on '0' through '9'.
67166
67167 2006-07-05  Eric Blake  <ebb9@byu.net>
67168
67169         * modules/getaddrinfo (Depends-on): Add snprintf.
67170
67171 2006-07-05  Eric Blake  <ebb9@byu.net>
67172
67173         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
67174         to avoid 'header present but could not be compiled' on cygwin.
67175
67176 2006-07-05  Eric Blake  <ebb9@byu.net>
67177
67178         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
67179         missing from netdb.h.
67180         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
67181
67182 2006-07-05  Derek R. Price  <derek@ximbiot.com>
67183
67184         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
67185         no longer needed.
67186         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
67187         * m4/getdate.m4 (gl_GETDATE): Likewise.
67188         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
67189         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
67190         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
67191         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67192         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67193
67194 2006-07-05  Derek R. Price  <derek@ximbiot.com>
67195
67196         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
67197         All uses of is_space replaced by isspace.
67198         * lib/exit.h: Don't talk about STDC_HEADERS.
67199         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
67200         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
67201         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
67202         replaced by isprint etc.
67203         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
67204         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
67205         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
67206         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
67207         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
67208         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
67209
67210 2006-07-05  Bruno Haible  <bruno@clisp.org>
67211
67212         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
67213         the function exists, before testing against AIX.
67214         Reported by Martin Lambers <marlam@marlam.de>.
67215
67216 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
67217
67218         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
67219         From Mark D. Baushke.
67220
67221 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
67222
67223         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
67224         to the absolute name, not just one, to bypass Sun C 5.8's
67225         "warning: #include of /usr/include/... may be non-portable".
67226
67227 2006-07-04  Eric Blake  <ebb9@byu.net>
67228
67229         * modules/dirname-tests: New test module.
67230         * tests/test-dirname.c: New file, replacing dirname.c
67231         TEST_DIRNAME section that was recently deleted.
67232
67233 2006-07-04  Bruno Haible  <bruno@clisp.org>
67234
67235         Assume ANSI C header files and <ctype.h> functions.
67236         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
67237         (mbsnwidth): Use isprint, iscntrl instead.
67238
67239 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67240
67241         Merge from coreutils.
67242         * MODULES.html.sh: Add xstrtold.
67243         * modules/xstrtold: New file.
67244         * modules/cycle-check (Files): Add lib/same-inode.h.
67245         * modules/dirname (Files): Add m4/double-slash-root.m4.
67246         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
67247         * modules/mkdir-p (Files): Add lib/same-inode.h.
67248         * modules/same (Files): Add lib/same-inode.h.
67249
67250 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67251
67252         * m4/absolute-header.m4: Renamed from full-header-path.m4.
67253         This is to keep the terminology clean; POSIX talks about
67254         "absolute pathnames", not "full pathnames", but the GNU
67255         Coding Standards say to use "path" for something else;
67256         so use "absolute" to keep both sides happy.
67257         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
67258         Set gl_absolute_header, not gl_full_header_path.
67259         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
67260         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
67261         All uses changed.
67262
67263         Merge from coreutils.
67264
67265         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
67266
67267         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
67268         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
67269         want to require the building of c-strtod.o.
67270         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
67271         needs -lm directly.
67272         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
67273
67274         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
67275
67276         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
67277         --as-needed option if available.  Problem reported by Albert Chin in
67278         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
67279         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
67280         cc merely issues a bunch of annoying warnings for --as-needed
67281         (this problem was reported by Bob Proulx).  Also, try linking with
67282         -lm to detect a bug in binutils 2.16 (this problem was reported
67283         by Ralf Wildenhues).
67284
67285         2006-06-18  Jim Meyering  <jim@meyering.net>
67286
67287         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
67288         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
67289         macro.
67290         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
67291         also check for glibc-2.4's abort-inducing bug.
67292
67293         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
67294         Low-probability clean-up should be to use rmdir to get rid of
67295         the just-created directory, not unlink.
67296
67297         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
67298         configure fail, and request a bug report to inform us about it.
67299         Add a comment that, barring reports to the contrary, in 2007 we'll
67300         assume ftruncate is universally available.
67301
67302         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
67303
67304         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
67305
67306         2006-03-12  Jim Meyering  <jim@meyering.net>
67307
67308         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
67309         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
67310         * m4/same.m4 (gl_SAME): Likewise.
67311         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
67312
67313         2006-03-11  Eric Blake  <ebb9@byu.net>
67314
67315         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
67316         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
67317         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
67318         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
67319
67320 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67321
67322         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
67323         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
67324         reported by Mark D. Baushke, one in
67325         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
67326
67327         Merge from coreutils.
67328
67329         * lib/.cppi-disable: Add stdint_.h.
67330         * lib/.cvsignore: Add stdint.h.
67331
67332         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
67333
67334         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
67335         both double and long double versions.
67336         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
67337         * lib/xstrtold.c: New file.
67338         * lib/xstrtod.h (xstrtold): New decl.
67339
67340         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
67341
67342         * lib/filemode.c (setst): Remove.
67343         (strmode): Rewrite to avoid setst.  This makes the code shorter,
67344         (arguably) clearer, and the generated code is a bit smaller on my
67345         Debian GNU/Linux stable x86 host.
67346
67347         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
67348
67349         * lib/filemode.c: Include "filemode.h" first, to test the interface.
67350         Assume that filemode.h includes sys/types.h and sys/stat.h.
67351         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
67352         (ftypelet): Reorder to put common cases first, for efficiency.
67353         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
67354         to do 'M'.
67355         (strmode): Renamed from mode_string, and now stores 12 bytes instead
67356         of 10, for compatibility with FreeBSD.  All callers changed.
67357         (filemodestring): Now stores 12 bytes instead of 10, and sets file
67358         types that can't be deduced solely from st_mode.  First arg is now a
67359         const pointer.
67360         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
67361         (strmode): Renamed from mode_string.
67362         (filemodestring): New decl.
67363         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
67364         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
67365         needed.
67366         (S_ISPORT, S_ISWHT): New macros, if not already defined.
67367
67368         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
67369
67370         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
67371         fsusage.h now does that.  Include fsusage.h first, to test interface.
67372         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
67373         at most one method (the old code could have generated decls that
67374         didn't conform to C89, not that this was ever exercised).
67375         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
67376
67377         2006-03-19  Jim Meyering  <jim@meyering.net>
67378
67379         Work even in a chroot where d_ino values for entries in "/"
67380         don't match the stat.st_ino values for the same names.
67381         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
67382         number, iterate through all entries again, using lstat instead.
67383         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
67384         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
67385
67386         * lib/getcwd.c (__getcwd): Clarify a comment.
67387         Use memcpy in place of a call to strcpy.
67388
67389         2006-03-12  Jim Meyering  <jim@meyering.net>
67390
67391         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
67392         matches that of the current directory (which we're about to chdir ".."
67393         out of), then save the dev-ino of the parent, instead.
67394
67395         * lib/same-inode.h (SAME_INODE): New file/macro.
67396         * lib/chdir-safer.c (SAME_INODE): Remove definition.
67397         Include "same-inode.h", instead.
67398         * lib/same.c: Likewise.
67399         * lib/cycle-check.h: Include "same-inode.h".
67400         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
67401         * lib/cycle-check.c (SAME_INODE): Remove definition.
67402         * lib/root-dev-ino.h: Include "same-inode.h".
67403
67404         2006-03-11  Eric Blake  <ebb9@byu.net>
67405
67406         * lib/same.c (same_name): s/base_name/last_component/
67407         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
67408         * lib/filenamecat.c (file_name_concat): Likewise.
67409
67410         2006-03-11  Eric Blake  <ebb9@byu.net>,
67411                     Paul Eggert  <eggert@cs.ucla.edu>
67412
67413         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
67414         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
67415         drive prefix.
67416         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
67417         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
67418         (last_component): New method.
67419         * lib/dirname.c (dir_len): Determine when drive letters need a
67420         subsequent slash.  Preserve // when it is special.
67421         (dir_name): Don't append dot when drive letter is absolute.
67422         [TEST_DIRNAME]: Move into a full-blown gnulib test.
67423         * lib/basename.c (base_name): New semantics - malloc the result.
67424         Preserve // when it is special.  Preserve relative files that look
67425         like drive letters.
67426         (base_len): Preserve // when it is special.
67427         (last_component): New method, similar to old base_name semantics.
67428         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
67429         base_name.  Strip redundant slashes from ///.
67430
67431 2006-07-03  Jim Meyering  <jim@meyering.net>
67432
67433         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
67434         macro is used before the first cycle_check call.
67435
67436 2006-07-03  Eric Blake  <ebb9@byu.net>
67437
67438         * modules/dirname (Depends-on): Add xstrndup.
67439
67440 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67441
67442         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
67443         test cases, so that config.log is a bit easier to follow.
67444
67445 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67446
67447         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
67448         both are 64 bits, since this seems to be the tradition, and this
67449         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
67450         we ever run into a host that prefers long long to long in this
67451         case, we'll need another configure-time test.  Problem reported by
67452         Jim Meyering.
67453
67454 2006-07-02  Eric Blake  <ebb9@byu.net>
67455
67456         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
67457
67458 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67459
67460         * modules/inttypes (Depends-on): No longer depends on stdint.
67461         * modules/stdint (Description): Say more about assumptions.
67462         Say that the fast types might differ.  Say macros are used.
67463         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
67464         (Makefile.am): Revise list of substituted symbols to match
67465         new stdint.m4.
67466         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
67467         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
67468         * tests/test-stdint.c (verify_same_types)
67469         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
67470         the code conforms to C99/C89.
67471         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
67472         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
67473
67474 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67475
67476         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
67477         but fix a bug, by requiring at least 64 bits.
67478         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
67479         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
67480         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
67481         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
67482
67483         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
67484         changes.  Make 2.59 a prerequisite.  Check and substitute for
67485         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
67486         inttypes.h.  Do not use special include files; just use the
67487         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
67488         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
67489         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
67490         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
67491         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
67492         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
67493         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
67494         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
67495         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
67496         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
67497         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
67498         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
67499         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
67500         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
67501         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
67502         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
67503         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
67504         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
67505         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
67506         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
67507         WINT_MAX.  Check for C99 conformance more strictly, by detecting
67508         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
67509         not check for things that C99 does not require, e.g., int8_t.  If
67510         a test isn't needed unless <stdint.h> isn't working, and is
67511         unlikely to be needed for any other reason, then don't do it
67512         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
67513         size_t, since we assume C89 freestanding at least.  Do not check
67514         for sig_atomic_t, wchar_t, or wint_t, since the code now does
67515         the right thing even if the types are not defined.  Instead use:
67516         (gl_STDINT_TYPE_PROPERTIES): New macro.
67517         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
67518         testing whether <sys/types.h> clashes, as Autoconf does this for
67519         us now.  All uses removed.
67520         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
67521         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
67522         (gl_CHECK_TYPE_SAME):
67523         Remove; no longer needed.
67524         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
67525         exists, since we'll return 0 anyway in that case.
67526         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
67527
67528 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67529
67530         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
67531         possible collision with system files.
67532         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
67533         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
67534         WCHAR_MIN and WCHAR_MAX in this case.
67535         (<stddef.h>): Do not include; no longer needed.
67536         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
67537         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
67538         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
67539         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
67540         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
67541         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
67542         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
67543         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
67544         !defined(__c99))]: Include in this case too, since it's harmless
67545         now.
67546         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
67547         dangerous to do so.
67548         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
67549         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
67550         (_STDINT_MIN, _STDINT_MAX): New macros.
67551         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
67552         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
67553         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
67554         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
67555         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
67556         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
67557         macros, not typedefs; this simplifies things quite a bit.
67558         Use long int for all types narrower than int64_t.
67559         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
67560         Define in terms of long long int or int64_t or long int,
67561         not int64_t or int32_t.  This saves some compile-time testing.
67562         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
67563         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
67564         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
67565         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
67566         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
67567         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
67568         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
67569         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
67570         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
67571         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
67572         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
67573         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
67574         undef any previous version and define our own version, for
67575         simplicity and consistency with the new macros for types.
67576         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
67577         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
67578         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
67579         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
67580         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
67581         @WINT_T_SUFFIX@ to keep things simple here.
67582         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
67583         Simplify by assuming typical 8/16/32/64 host, since we're
67584         already doing that elsewhere anyway.
67585         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
67586         and assume long long int is 64 bits if available.  This
67587         speeds up 'configure'.
67588
67589 2006-07-01  Eric Blake  <ebb9@byu.net>
67590
67591         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
67592         Reported by Andreas Buening.
67593
67594 2006-07-01  Eric Blake  <ebb9@byu.net>
67595
67596         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
67597
67598 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
67599
67600         * lib/getaddrinfo.c: fixed typo
67601
67602 2006-06-29  Jim Meyering  <jim@meyering.net>
67603
67604         * modules/strftime (Maintainer): Add my name, since with the
67605         FPRINTFTIME changes strftime.c has forked from glibc.
67606
67607 2006-06-29  Eric Blake  <ebb9@byu.net>
67608
67609         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
67610
67611 2006-06-29  Eric Blake  <ebb9@byu.net>
67612
67613         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
67614
67615 2006-06-29  Eric Blake  <ebb9@byu.net>
67616
67617         * lib/stat_.h: New file.
67618
67619 2006-06-29  Eric Blake  <ebb9@byu.net>
67620
67621         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
67622         unused static function.
67623
67624 2006-06-29  Eric Blake  <ebb9@byu.net>
67625
67626         * doc/functions.texi (Function Portability): Document missing lstat
67627         on mingw.
67628
67629 2006-06-29  Eric Blake  <ebb9@byu.net>
67630
67631         * MODULES.html.sh: Add sys_stat.
67632         * modules/sys_stat: New module.
67633         * modules/mkstemp (Depends-on): Add sys_stat.
67634
67635 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67636
67637         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
67638
67639 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67640
67641         * m4/c-bs-a.m4: Removed.
67642
67643 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67644
67645         * lib/strftime.c: Assume strftime() exists.
67646
67647 2006-06-29  Derek Price  <derek@ximbiot.com>
67648
67649         * modules/c-bs-a: Removed - \a is C89.
67650         * MODULES.html.sh: Remove c-bs-a.
67651
67652 2006-06-29  Bruno Haible  <bruno@clisp.org>
67653
67654         * modules/wcwidth (License): Change to LGPL.
67655
67656 2006-06-28  Simon Josefsson  <jas@extundo.com>
67657
67658         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
67659         on _WIN32.
67660
67661         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
67662         getnameinfo.
67663
67664 2006-06-28  Simon Josefsson  <jas@extundo.com>
67665
67666         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
67667
67668 2006-06-28  Simon Josefsson  <jas@extundo.com>
67669
67670         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
67671         functions there.  It will succeed on Windows XP, but on Windows
67672         2000 and (presumably) earlier, it will fail, and use the internal
67673         re-implementation.
67674         (use_win32_p): New function.
67675         (getaddrinfo): Use strtoul on servname, to support numeric ports.
67676         Support AI_NUMERICSERV to disable getservbyname.
67677         (getnameinfo): New function, only supports
67678         NI_NUMERICHOST|NI_NUMERICSERV for now.
67679
67680         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
67681         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
67682         getnameinfo.
67683
67684 2006-06-28  Eric Blake  <ebb9@byu.net>
67685
67686         * modules/wcwidth: New file.
67687         * modules/mbchar (Depends-on): Add wcwidth.
67688         * modules/mbswidth (Depends-on): Add wcwidth.
67689         * MODULES.html.sh: Add wcwidth.
67690
67691 2006-06-28  Eric Blake  <ebb9@byu.net>
67692
67693         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
67694         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
67695
67696 2006-06-28  Eric Blake  <ebb9@byu.net>
67697
67698         * lib/xvasprintf.h: Fix comments.
67699
67700 2006-06-28  Eric Blake  <ebb9@byu.net>
67701
67702         * lib/mbchar.h (wcwidth): Include wcwidth.h.
67703         * lib/mbswidth.c (wcwidth): Move from here...
67704         * lib/wcwidth.h: ...to this new file.
67705
67706 2006-06-28  Derek R. Price  <derek@ximbiot.com>
67707
67708         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
67709
67710         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
67711         it's obsolete.
67712         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
67713
67714 2006-06-28  Derek R. Price  <derek@ximbiot.com>
67715
67716         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
67717         Autoconf 2.60 says this stuff was obsolete.
67718
67719 2006-06-28  Bruno Haible  <bruno@clisp.org>
67720
67721         * modules/wcwidth (Files): Add m4/wchar_t.m4.
67722
67723 2006-06-28  Bruno Haible  <bruno@clisp.org>
67724
67725         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
67726         gt_TYPE_WCHAR_T.
67727
67728 2006-06-28  Bruno Haible  <bruno@clisp.org>
67729
67730         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
67731         declaration for wcwidth.
67732         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
67733
67734 2006-06-28  Bruno Haible  <bruno@clisp.org>
67735
67736         * lib/mkdtemp.c [MINGW]: Include <io.h>.
67737         (mkdir): Define using _mkdir.
67738
67739 2006-06-28  Bruno Haible  <bruno@clisp.org>
67740
67741         * lib/getaddrinfo.h: Fix POSIX URL.
67742         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
67743         _WIN32.
67744         (use_win32_p): Make static.
67745         (getaddrinfo): Reject service name if it is empty or does not consist
67746         solely of decimal digits, or if its value is > 65535.
67747         (getnameinfo): Remove useless casts.
67748
67749 2006-06-27  Simon Josefsson  <jas@extundo.com>
67750
67751         * modules/sys_select: New file, suggested by Bruno Haible, Paul
67752         Eggert and Martin Lambers.
67753
67754 2006-06-27  Simon Josefsson  <jas@extundo.com>
67755
67756         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
67757         Eggert and Martin Lambers.
67758
67759 2006-06-27  Bruno Haible  <bruno@clisp.org>
67760
67761         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
67762         result to 0, not to empty.
67763         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
67764
67765 2006-06-27  Bruno Haible  <bruno@clisp.org>
67766
67767         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
67768
67769 2006-06-26  Simon Josefsson  <jas@extundo.com>
67770
67771         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
67772         present.
67773
67774 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
67775
67776         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
67777         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
67778         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
67779
67780 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
67781
67782         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
67783
67784 2006-06-26  Bruno Haible  <bruno@clisp.org>
67785
67786         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
67787
67788 2006-06-26  Bruno Haible  <bruno@clisp.org>
67789
67790         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
67791
67792 2006-06-26  Bruno Haible  <bruno@clisp.org>
67793
67794         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
67795         SGI C compiler in pre-C99 mode.
67796         Suggested by Mark D. Baushke and Larry Jones.
67797
67798 2006-06-26  Bruno Haible  <bruno@clisp.org>
67799
67800         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
67801         WCHAR_MAX.
67802         Reported by Mark D. Baushke and Larry Jones.
67803
67804 2006-06-26  Bruno Haible  <bruno@clisp.org>
67805
67806         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
67807         in pre-C99 mode.
67808         Suggested by Mark D. Baushke and Larry Jones.
67809
67810 2006-06-23  Simon Josefsson  <jas@extundo.com>
67811             Bruno Haible  <bruno@clisp.org>
67812
67813         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
67814         Emit mostlyclean-local rule.
67815         (func_emit_tests_Makefile_am): Likewise.
67816         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
67817
67818 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
67819
67820         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
67821
67822 2006-06-23  Bruno Haible  <bruno@clisp.org>
67823
67824         * tests/test-stdint.c: Update to match ISO C 99 Technical
67825         Corrigendum 1.
67826
67827 2006-06-23  Bruno Haible  <bruno@clisp.org>
67828
67829         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
67830
67831 2006-06-23  Bruno Haible  <bruno@clisp.org>
67832
67833         * lib/stdint_.h: Treat IRIX like OpenBSD.
67834
67835 2006-06-23  Bruno Haible  <bruno@clisp.org>
67836
67837         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
67838         ISO C 99 Technical Corrigendum 1.
67839
67840 2006-06-22  Simon Josefsson  <jas@extundo.com>
67841
67842         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
67843         MinGW.
67844
67845 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67846
67847         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
67848         needed.  Some compiler complained about some of them.  Problem reported
67849         by Larry Jones in
67850         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
67851
67852 2006-06-21  Simon Josefsson  <jas@extundo.com>
67853
67854         * tests/test-getaddrinfo.c: New file.
67855
67856         * modules/getaddrinfo-tests: New file.
67857
67858         * MODULES.html.sh: Add inet_pton.
67859
67860         * modules/inet_pton: New file.
67861
67862 2006-06-21  Simon Josefsson  <jas@extundo.com>
67863
67864         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
67865         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
67866         of using the (limited) gnulib implementation on Windows XP.
67867
67868         * m4/inet_pton.m4: New file.
67869
67870 2006-06-21  Simon Josefsson  <jas@extundo.com>
67871
67872         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
67873         variable.
67874
67875         * lib/socket_.h: Don't define WINVER.
67876
67877         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
67878         slightly modified to work in gnulib.
67879
67880 2006-06-21  Simon Josefsson  <jas@extundo.com>
67881
67882         * doc/gnulib.texi (Windows sockets): Add.
67883
67884 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
67885
67886         * lib/read-file.c (fread_file): Start with buffer allocation of
67887         0 bytes rather than 1 byte; this simplifies the code.
67888         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
67889         code to free buffer and save/restore errno.
67890         (internal_read_file): Remove unused local.
67891
67892 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
67893
67894         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
67895         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
67896         Problem reported by Denis Excoffier in
67897         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
67898
67899 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67900
67901         * modules/sys_socket, modules/socklen: Include sys/types since
67902         FreeBSD 4.x's sys/socket.h needs it.
67903
67904 2006-06-19  Simon Josefsson  <jas@extundo.com>
67905
67906         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
67907
67908 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
67909
67910         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
67911
67912 2006-06-19  Bruno Haible  <bruno@clisp.org>
67913
67914         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
67915         and FULL_PATH_INTTYPES_H in angle brackets.
67916         Reported by Mark D. Baushke <mdb@gnu.org>.
67917
67918 2006-06-17  Eric Blake  <ebb9@byu.net>
67919
67920         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
67921         errno.
67922
67923 2006-06-17  Bruno Haible  <bruno@clisp.org>
67924
67925         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
67926         <sys/inttypes.h>.
67927
67928 2006-06-17  Bruno Haible  <bruno@clisp.org>
67929
67930         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
67931         whether errno is declared. Assume <errno.h> declares errno.
67932
67933 2006-06-17  Bruno Haible  <bruno@clisp.org>
67934
67935         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
67936
67937 2006-06-17  Bruno Haible  <bruno@clisp.org>
67938
67939         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
67940         problem on Solaris 2.5.1.
67941
67942 2006-06-16  Eric Blake  <ebb9@byu.net>
67943
67944         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
67945         * lib/unicodeio.c [!defined errno]: Likewise.
67946         * lib/strtol.c [!defined errno]: Likewise.
67947         * lib/strtod.c [!defined errno]: Likewise.
67948
67949 2006-06-15  Eric Blake  <ebb9@byu.net>
67950
67951         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
67952
67953 2006-06-15  Eric Blake  <ebb9@byu.net>
67954
67955         * config/srclist.txt (ssize_t.m4): Lose sync.
67956
67957 2006-06-15  Bruno Haible  <bruno@clisp.org>
67958
67959         * modules/stdint (Files): Include m4/full-header-path.m4,
67960         m4/size_max.m4, m4/wchar_t.m4.
67961         (Makefile.am): Many more substitutions.
67962         * modules/stdint-tests: New file.
67963         * tests/test-stdint.c: New file.
67964
67965 2006-06-15  Bruno Haible  <bruno@clisp.org>
67966
67967         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
67968         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
67969         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
67970         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
67971         gl_CHECK_TYPE_SAME): New macros.
67972
67973 2006-06-15  Bruno Haible  <bruno@clisp.org>
67974
67975         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
67976
67977 2006-06-15  Bruno Haible  <bruno@clisp.org>
67978
67979         * lib/stdint_.h: Rewritten to be fully auto-configured.
67980         Fixes bug on HP-UX/IA64.
67981
67982 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
67983
67984         * lib/getdate.y (__attribute__): Don't define if already defined.
67985         Problem reported by Larry Jones.
67986         * lib/utimens.c (__attribute__): Likewise.
67987
67988 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
67989
67990         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
67991         reported by Andreas Schwab.
67992
67993 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67994             Bruno Haible  <bruno@clisp.org>
67995
67996         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
67997         check for the declaration of strnlen and a run test that exposes the
67998         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
67999         rpl_strndup.
68000
68001 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68002             Bruno Haible  <bruno@clisp.org>
68003
68004         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
68005
68006 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68007
68008         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
68009         compile test, for Tru64 4.0D.
68010
68011 2006-05-28  Karl Berry  <karl@gnu.org>
68012
68013         * config/srclist.txt (printf-args.c): lose sync.
68014
68015 2006-05-26  Martin Lambers  <marlam@marlam.de>
68016
68017         * lib/getpass.c: Updates the test for the native W32 API, and adds
68018         missing includes, thus fixing compilation warnings.
68019
68020 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
68021
68022         * lib/exclude.c (exclude_fnmatch): New function.
68023         (excluded_file_name): Call exclude_fnmatch.
68024         * lib/exclude.h (excluded_file_name): New prototype
68025
68026 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
68027
68028         * lib/tempname.c (small_open, large_open): New macros.
68029         (__open, __open64) [!_LIBC]: Remove.
68030         (__gen_tempname): Use small_open and large_open instead of __open
68031         and __open64.  This fixes a portability bug on HP-UX 11.11i
68032         reported by Simon Wing-Tang in
68033         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
68034
68035 2006-05-24  Bruno Haible  <bruno@clisp.org>
68036
68037         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
68038         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
68039         Reported by Thorsten Maerz <torte@netztorte.de> via
68040         Aaron Stone <aaron@serendipity.cx>.
68041
68042 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
68043
68044         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
68045         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
68046         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
68047         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
68048         not really conditional on the cache.
68049         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
68050
68051 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
68052
68053         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
68054         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
68055         (my_usleep): Don't mishandle maximum value.
68056
68057 2006-05-19  Jim Meyering  <jim@meyering.net>
68058
68059         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
68060
68061 2006-05-17  Bruno Haible  <bruno@clisp.org>
68062
68063         Cygwin portability.
68064         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
68065
68066 2006-05-17  Bruno Haible  <bruno@clisp.org>
68067
68068         * lib/stdint_.h: Fix recognition of Cygwin.
68069
68070 2006-05-15  Bruno Haible  <bruno@clisp.org>
68071
68072         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
68073         on libtool patch by Ralf Wildenhues.
68074
68075 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68076
68077         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
68078         test for C99 conformance; (bool) 0.5 is an integer constant
68079         expression, but (bool) -0.5 is not.  Problem reported by Fedor
68080         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
68081
68082 2006-05-11  Simon Josefsson  <jas@extundo.com>
68083
68084         * m4/xvasprintf.m4: Fix obvious typo.
68085
68086 2006-05-11  Jim Meyering  <jim@meyering.net>
68087
68088         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
68089         James Lemley.
68090
68091 2006-05-10  Simon Josefsson  <jas@extundo.com>
68092
68093         * lib/md4.c: Typo fix, update copyright years.
68094         (K1, K2): Don't use L because it turn computations into 64-bit on
68095         64-bit platforms.
68096
68097 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
68098
68099         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
68100         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
68101         unwanted sign propagation, e.g., on hosts with 64-bit int.
68102         There still are some problems with reeelly weird theoretical hosts
68103         (e.g., 33-bit int) but it's not worth worrying about now.
68104         * lib/sha1.c (rol): Likewise.
68105         (K1, K2, K3, K4): Remove unnecessary L suffix.
68106
68107 2006-05-10  Bruno Haible  <bruno@clisp.org>
68108
68109         * lib/des.c: Cast to avoid warnings.
68110
68111 2006-05-09  Bruno Haible  <bruno@clisp.org>
68112
68113         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
68114         (Depends-on): Depend also on xsize, stdarg.
68115         (configure.ac): Add gl_XVASPRINTF.
68116
68117 2006-05-09  Bruno Haible  <bruno@clisp.org>
68118
68119         * m4/xvasprintf.m4: New file.
68120
68121 2006-05-09  Bruno Haible  <bruno@clisp.org>
68122
68123         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
68124         (EOVERFLOW): Define fallback value.
68125         (xstrcat): New function.
68126         (xvasprintf): Recognize the special case of a string concatenation.
68127
68128 2006-05-08  Eric Blake  <ebb9@byu.net>
68129
68130         * gnulib-tool (func_version): Base copyright year on CVS date.
68131         (func_emit_copyright_notice): New function.
68132         (func_emit_lib_Makefile_am): Use it.
68133         (func_emit_tests_Makefile_am): Likewise.
68134         (func_import): Likewise.
68135
68136 2006-05-08  Bruno Haible  <bruno@clisp.org>
68137
68138         * modules/stdarg: New file.
68139         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
68140
68141 2006-05-08  Bruno Haible  <bruno@clisp.org>
68142
68143         * m4/stdarg.m4: New file, from GNU gettext.
68144
68145 2006-05-08  Bruno Haible  <bruno@clisp.org>
68146
68147         * config/srclist.txt (build-aux/config.rpath): different from latest
68148         release.
68149
68150 2006-05-08  Bruno Haible  <bruno@clisp.org>
68151
68152         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
68153
68154 2006-05-05  Jim Meyering  <jim@meyering.net>
68155
68156         * m4/warning.m4: New file, derived from bison's file by the same name.
68157
68158 2006-05-03  Bruno Haible  <bruno@clisp.org>
68159
68160         * lib/stdint_.h: Shorter URL.
68161         * lib/inttypes.h: Likewise.
68162
68163 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68164
68165         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
68166
68167 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68168
68169         * lib/verify.h: Document the internals better.  Most of this change
68170         was written by Bruno Haible.
68171
68172 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68173
68174         * doc/verify.texi: New file, partly based on a proposal by
68175         Bruno Haible.
68176
68177 2006-05-02  Bruno Haible  <bruno@clisp.org>
68178
68179         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
68180         test from here...
68181         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
68182
68183 2006-04-29  Bruno Haible  <bruno@clisp.org>
68184
68185         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
68186         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
68187
68188 2006-04-29  Bruno Haible  <bruno@clisp.org>
68189
68190         * gnulib-tool: Make --update option actually work.
68191
68192 2006-04-29  Bruno Haible  <bruno@clisp.org>
68193
68194         * doc/gcd.texi: New file.
68195         * doc/gnulib.texi: Include it.
68196
68197 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
68198
68199         * lib/getdate.y (get_date): When adding relative date, start with the
68200         initial time, not with the result of the first mktime call.
68201
68202 2006-04-25  Bruno Haible  <bruno@clisp.org>
68203
68204         * gnulib-tool (func_import): Output the include directives in three
68205         blocks, sorted separately.
68206         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68207
68208 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
68209
68210         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
68211         to define main with arguments, for C++.  Reported by Eric Blake.
68212         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
68213         Prefer 'int main ()' to 'int main (void)', for C++.
68214         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
68215         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
68216         for 'main', for C99 and C++.
68217
68218 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
68219
68220         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
68221         Don't assume that exit status -1 is valid.
68222         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68223         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
68224         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
68225         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
68226         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
68227         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
68228         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
68229         functions can be used without declaring them, or that you can
68230         exit with status -1.
68231         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
68232
68233 2006-04-24  Karl Berry  <karl@gnu.org>
68234
68235         * config/srclist.txt (longdouble.m4): sync lost.
68236
68237 2006-04-24  Eric Blake  <ebb9@byu.net>
68238
68239         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
68240
68241 2006-04-24  Bruno Haible  <bruno@clisp.org>
68242
68243         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
68244         poll() implementation in AIX.
68245         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68246
68247 2006-04-24  Bruno Haible  <bruno@clisp.org>
68248
68249         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
68250         assigned exactly once.
68251
68252 2006-04-23  Claudio Fontana  <claudio@gnu.org>
68253             Bruno Haible  <bruno@clisp.org>
68254
68255         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
68256         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
68257         for AM_CPPFLAGS.
68258
68259 2006-04-23  Bruno Haible  <bruno@clisp.org>
68260
68261         * modules/copy-file: Depend on unistd.
68262         * modules/execute: Likewise.
68263         * modules/fatal-signal: Likewise.
68264         * modules/findprog: Likewise.
68265         * modules/mkdtemp : Likewise.
68266         * modules/pipe: Likewise.
68267         * modules/wait-process: Likewise.
68268
68269 2006-04-23  Bruno Haible  <bruno@clisp.org>
68270
68271         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
68272         condition was already detected.
68273         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68274
68275 2006-04-23  Bruno Haible  <bruno@clisp.org>
68276
68277         * lib/copy-file.c: Include <unistd.h> unconditionally.
68278         * lib/execute.c: Likewise.
68279         * lib/fatal-signal.c: Likewise.
68280         * lib/findprog.c: Likewise.
68281         * lib/mkdtemp.c: Likewise.
68282         * lib/pipe.h: Likewise.
68283         * lib/pipe.c: Likewise.
68284         * lib/wait-process.h: Likewise.
68285
68286 2006-04-23  Bruno Haible  <bruno@clisp.org>
68287
68288         * gnulib-tool (func_usage): Fix --import description. Document
68289         --update.
68290         (func_import): Create temporary file in a temporary directory, if
68291         --dry-run is specified. Silence errors from 'grep' when there are no
68292         m4 files in $m4dir.
68293         (func_create_testdir): Silence errors from 'grep' when there are no
68294         m4 files in $m4dir.
68295         Reported by Karl Berry <karl@freefriends.org>.
68296
68297 2006-04-20  Bruno Haible  <bruno@clisp.org>
68298
68299         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
68300         one argument, so that the code will be portable to Autoconf 2.60.
68301         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
68302         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
68303         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
68304
68305 2006-04-19  Derek Price  <derek@ximbiot.com>
68306             Eric Blake  <ebb9@byu.net>
68307
68308         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
68309         rather than "/full/path.h".  Update comment to match.  Shorten &
68310         generalize m4_translit call via AS_TR_CPP.
68311
68312 2006-04-19  Derek Price  <derek@ximbiot.com>
68313             Eric Blake  <ebb9@byu.net>
68314
68315         * lib/inttypes.h: Correct grammar in comment.
68316
68317 2006-04-18  Derek Price  <derek@ximbiot.com>
68318             Paul Eggert  <eggert@cs.ucla.edu>
68319
68320         * modules/inttypes: New file.
68321         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
68322
68323 2006-04-18  Derek Price  <derek@ximbiot.com>
68324             Paul Eggert  <eggert@cs.ucla.edu>
68325
68326         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
68327         New files.
68328
68329 2006-04-18  Derek Price  <derek@ximbiot.com>
68330             Paul Eggert  <eggert@cs.ucla.edu>
68331
68332         * lib/inttypes.h: New file.
68333         * lib/strtoimax.c: Assume <inttypes.h>.
68334
68335 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
68336
68337         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
68338         isn't mounted.  Problem reported by Kir Kolyshkin.
68339
68340 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68341
68342         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
68343         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
68344         Derek R. Price.
68345         * lib/regex.h (RE_DUP_MAX): Update comment to match current
68346         implementation.
68347
68348 2006-04-12  Eric Blake  <ebb9@byu.net>
68349
68350         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
68351         is now done automatically by the corresponding Autoconf macro.
68352
68353 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
68354
68355         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
68356         time_r.h.
68357
68358 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68359
68360         Merge regex changes from libc, removing some of our
68361         POSIX-conformance changes that were rejected and redoing them in a
68362         less-intrusive way.
68363
68364         * lib/regcomp.c (re_compile_internal, init_dfa):
68365         Length arg is now size_t, not Idx.  All uses changed.
68366         (peek_token): Forward decl now says internal_function.
68367         (__re_error_msgid, __re_error_msgid_idx):
68368         Now static rather than extern with attribute_hidden.
68369         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
68370         For some reason libc prefers K&R style defns for external functions.
68371         (regerror) [!defined _LIBC]: Likewise.
68372         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
68373         (seek_collating_symbol_entry, lookup_collation_sequence_value):
68374         (build_range_exp, build_collating_symbol):
68375         Use K&R-style defn.
68376         (re_compile_fastmap): Use '\0' to memset, not 0.
68377         (utf8_sb_map): Make the calculations more obvious.
68378         (init_dfa, parse_bracket_exp, build_charclass_op):
68379         Call calloc and cast result, as glibc does.
68380         (init_word_char, fetch_token, peek_token, peek_token_bracket):
68381         (build_range_exp, build_collating_symbol):
68382         Now internal functions.
68383
68384         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
68385
68386         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
68387         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
68388         Don't depend on VMS; depend on __VMS instead, for POSIX
68389         namespace cleanness.
68390         (regoff_t): Define to ssize_t, not long int.
68391
68392         Remove the REG_ macros named below.  Instead, make the old names
68393         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
68394         __USE_GNU_REGEX.
68395         (REG_BACKSLASH_ESCAPE_IN_LISTS):
68396         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
68397         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
68398         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
68399         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
68400         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
68401         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
68402         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
68403         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
68404         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
68405         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
68406         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
68407         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
68408         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
68409         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
68410         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
68411         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
68412         (REG_NREGS):
68413         Remove.  All uses replaced by the old RE_* names.
68414         (RE_BACKSLASH_ESCAPE_IN_LISTS):
68415         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
68416         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
68417         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
68418         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
68419         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
68420         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
68421         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
68422         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
68423         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
68424         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
68425         Don't bother having these macros be independent of each others'
68426         values, since they no longer exist in the POSIX name space.
68427
68428         Rename the following member names back to their old names,
68429         unless !__USE_GNU_REGEX.  All uses changed back.
68430         (buffer): Renamed from re_buffer.
68431         (allocated): Renamed from re_allocated.
68432         (used): Renamed from re_used.
68433         (syntax): Renamed from re_syntax.
68434         (fastmap): Renamed from re_fastmap.
68435         (translate): Renamed from re_translate.
68436         (can_be_null): Renamed from re_can_be_null.
68437         (regs_allocated): Renamed from re_regs_allocated.
68438         (fastmap_accurate): Renamed from re_fastmap_accurate.
68439         (no_sub): Renamed from re_no_sub.
68440         (not_bol): Renamed from re_not_bol.
68441         (not_eol): Renamed from re_not_eol.
68442         (newline_anchor): Renamed from re_newline_anchor.
68443         (num_regs): Renamed from rm_num_regs.
68444         (start): Renamed from rm_start.
68445         (end): Renamed from rm_end.
68446
68447         (free_state): Move up a bit.
68448
68449         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
68450         #define to be empty.
68451         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
68452         when that is what is intended.
68453         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
68454         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
68455         (MAX): New macro.
68456         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
68457         All uses changed back to re_malloc, etc.  It's now the caller's
68458         responsibility to check for overflow; all callers changed.
68459         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
68460         (re_x2nrealloc): Remove.
68461         (free_state): Remove decl.
68462
68463         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
68464         (re_set_registers, re_exec):
68465         Use K&R-style defn.
68466
68467         2006-01-31  Roland McGrath  <roland@redhat.com>
68468
68469         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
68470         Reported by Mike Frysinger <vapier@gentoo.org>.
68471
68472         2006-01-15  Andreas Jaeger  <aj@suse.de>
68473
68474         [BZ #1950]
68475         * lib/regex_internal.c (re_string_reconstruct): Adjust for
68476         build_wcs_upper_buffer change.
68477         (build_wcs_upper_buffer): Change return type.
68478
68479         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
68480
68481         * lib/regex_internal.h: Include <stdint.h> if available.
68482
68483         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
68484
68485         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
68486
68487         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
68488
68489         * lib/regcomp.c: Adjust for changed secondary hash function.
68490
68491         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
68492
68493         * lib/regex.h: Pretty printing.
68494         Clean up namespace a bit.
68495
68496         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
68497
68498         * lib/regexec.c (update_cur_sifted_state, check_arrival,
68499         check_arrival_add_next_nodes): Avoid using uninitialized variable.
68500
68501         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68502                     Ulrich Drepper  <drepper@redhat.com>
68503
68504         [BZ #1302]
68505         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
68506         changed.
68507         (bitset_word_t): Renamed from bitset_word.  All uses changed.
68508
68509         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
68510
68511         [BZ #281]
68512         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
68513         * lib/regcomp.c: Remove unnecessary uses of
68514         unsigned RE_TRANSLATE_TYPE.
68515         * lib/regex_internal.h: Likewise.
68516         * lib/regex_internal.c: Likewise.
68517         * lib/regexec.c: Likewise.
68518         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
68519
68520         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
68521
68522         * lib/regexec.c (find_recover_state): Remove unnecessary
68523         initialization.
68524         (transit_state_bkref): Make DFA a const pointer.
68525         (get_subexp): Likewise.
68526         (check_arrival): Likewise.
68527         (update_cur_sifted_state): Likewise.
68528         (re_search_internal): Likewise.
68529         (prune_impossible_nodes): Likewise.
68530         (acquire_init_state_context): Likewise.
68531         (proceed_next_node): Likewise.
68532         (set_regs): Likewise.
68533         (free_fail_stack_return): Likewise.
68534         (check_arrival_expand_ecl): Mark DFA parameter as const.
68535         (check_arrival_expand_ecl_sub): Likewise.
68536         (check_subexp_limits): Likewise.
68537         (sub_epsilon_src_nodes):  Likewise.
68538         (add_epsilon_src_nodes):  Likewise.
68539         (merge_state_array): Likewise.
68540         (update_regs): Likewise.
68541         (build_trtable): Likewise.
68542         (sift_states_backward): Mark MCTX parameter as const.
68543         (build_sifted_states): Likewise.
68544         (update_cur_sifted_state): Likewise.
68545         (sift_states_mkref): Likewise.
68546         (check_arrival_expand_ecl): Mark eclosure as const.
68547         (check_dst_limits_calc_pos_1): Likewise.
68548         * lib/regex_internal.h (re_match_context_t): Make dfa a const
68549         pointer.
68550
68551         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
68552
68553         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
68554         (transit_state_sb): Likewise.
68555         (transit_state_mb): Likewise.
68556         (sift_states_iter_mb): Likewise.
68557         (check_arrival_add_next_nodes): Likewise.
68558         (check_node_accept_bytes): Change first parameter to pointer-to-const.
68559         [_LIBC] (re_search_2_stub): Use mempcpy.
68560
68561         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
68562         mbrtowc for very simple UTF-8 case.
68563
68564         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
68565         a pointer-to-const.
68566         (re_acquire_state_context): Likewise.
68567         * lib/regex_internal.h: Adjust prototypes.
68568
68569         * lib/regex.c: Prevent using C++ compilers.
68570
68571         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
68572         (re_acquire_state_context): Likewise.
68573
68574 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68575
68576         * modules/regex (Depends-on): Add ssize_t.
68577
68578 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68579
68580         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
68581         translation table.
68582
68583 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68584
68585         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
68586
68587 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
68588             Bruno Haible  <bruno@clisp.org>
68589
68590         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
68591         <sys/types.h> and <inttypes.h>.
68592
68593 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68594
68595         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
68596         `__error_t_defined', so argp.h will not typedef the former.
68597
68598 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
68599
68600         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
68601         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
68602         glibc names.  Even if glibc is changed to conform to POSIX, the
68603         traditional names will be available anyway, since regex depends on
68604         the extensions module.  Also, fix a longstanding typo in the
68605         implementation of Spencer ERE test #75 from grep 2.3.  Problems
68606         reported by Emanuele Giaquinta.  Also, change sense of cached
68607         variable, so that the message makes sense.
68608
68609 2006-03-24  Simon Josefsson  <jas@extundo.com>
68610
68611         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
68612         including some doc fixes.
68613         (base64_encode_alloc): Fix +1 bug on allocation failures.
68614
68615 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68616
68617         * lib/base64.c (base64_encode): Do not read past end of array with
68618         unsanitized input on systems with CHAR_BIT > 8.
68619
68620 2006-03-24  Eric Blake  <ebb9@byu.net>
68621
68622         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
68623
68624 2006-03-22  Karl Berry  <karl@gnu.org>
68625
68626         * config/srclist.txt (*setenv.[ch]): get from coreutils.
68627         * config/srclistvars.sh (COREUTILS): new var.
68628
68629 2006-03-17  Jim Meyering  <jim@meyering.net>
68630
68631         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
68632         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
68633
68634 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
68635
68636         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
68637         no longer needs it.  Instead, check that regoff_t is as least
68638         as wide as ptrdiff_t.
68639
68640         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
68641         so that our regex.h stays compatible with the installed regex.
68642         This is helpful for installers who configure --without-included-regex.
68643         Problem reported by Emanuele Giaquinta.
68644
68645 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
68646
68647         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
68648         Typedef to long int, not to off_, as POSIX will likely change
68649         in that direction.
68650
68651 2006-03-15  Eric Blake  <ebb9@byu.net>
68652
68653         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
68654
68655 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
68656
68657         * lib/argp-help.c (validate_uparams): Fix typo
68658         * lib/argp-parse.c (argp_default_options): Consistently begin help
68659         messages with a lowercase letter.
68660
68661 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
68662
68663         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
68664         overrun buffers and shouldn't be used (much as gets shouldn't be
68665         used).
68666         * lib/time_r.c (asctime_r, ctime_r): Likewise.
68667
68668 2006-03-08  Simon Josefsson  <jas@extundo.com>
68669
68670         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
68671         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68672
68673 2006-03-08  Simon Josefsson  <jas@extundo.com>
68674
68675         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
68676         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68677
68678 2006-03-08  Simon Josefsson  <jas@extundo.com>
68679
68680         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
68681         signal that configure disabled the device.
68682
68683 2006-03-08  Simon Josefsson  <jas@extundo.com>
68684
68685         * build-aux/maint.mk: Fix refresh-po, to handle no translated
68686         languages.
68687
68688 2006-03-07  Simon Josefsson  <jas@extundo.com>
68689
68690         * modules/getopt (Depends-on): Add unistd.
68691
68692         * modules/unistd: New file.
68693
68694 2006-03-07  Simon Josefsson  <jas@extundo.com>
68695
68696         * modules/gc-random: New file.
68697
68698 2006-03-07  Simon Josefsson  <jas@extundo.com>
68699
68700         * m4/unistd_h.m4: New file.
68701
68702 2006-03-07  Simon Josefsson  <jas@extundo.com>
68703
68704         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
68705         test to be side-effect free by storing the result in the cache
68706         variable gl_cv_lib_readline, and moving the assignment of
68707         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
68708         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68709
68710 2006-03-07  Simon Josefsson  <jas@extundo.com>
68711
68712         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
68713         error on missing devices (the functions will return an error).
68714
68715         * m4/gc.m4: Move random stuff to gc-random.m4
68716
68717 2006-03-07  Simon Josefsson  <jas@extundo.com>
68718
68719         * lib/unistd_.h: New file.
68720
68721 2006-03-07  Simon Josefsson  <jas@extundo.com>
68722
68723         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
68724
68725 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68726
68727         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
68728         Problem reported by Juan Manuel Guerrero.
68729
68730 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68731
68732         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
68733         the unistd module.
68734         * lib/getlogin_r.c: Likewise.
68735         * lib/getlogin_r.h: Likewise.
68736         * lib/glob.c: Likewise.
68737         * lib/pagealign_alloc.c: Likewise.
68738         * lib/unistd_.h: Remove; no longer needed.
68739
68740 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68741
68742         * MODULES.html.sh (Support for systems lacking POSIX:2001):
68743         Add unistd.
68744         * modules/c-stack (Depends-on): Add unistd.
68745         * modules/getlogin_r: Likewise.
68746         * modules/glob: Likewise.
68747         * modules/pagealign_alloc: Likewise.
68748         * modules/unistd (Files): Remove lib/unistd_.h.
68749         (EXTRA_DIST): Remove.
68750         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
68751         need unistd_.h.
68752         (MOSTLYCLEANFILES): Remove unistd.h-t.
68753
68754 2006-03-03  Simon Josefsson  <jas@extundo.com>
68755
68756         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
68757
68758 2006-03-03  Simon Josefsson  <jas@extundo.com>
68759
68760         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
68761         libidn and bison.
68762
68763 2006-03-03  Simon Josefsson  <jas@extundo.com>
68764
68765         * build-aux/maint.mk: Add indent target.
68766
68767 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
68768
68769         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
68770         our replacement poll.h in any case, to avoid a differing
68771         declaration from a system header.  Seen on AIX.
68772
68773 2006-03-01  Simon Josefsson  <jas@extundo.com>
68774
68775         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
68776         <kasal@ucw.cz>.
68777
68778 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68779
68780         * modules/gettime (Depends-on): Add extensions module.
68781         * modules/nanosleep (Depends-on): Likewise.
68782         * modules/settime (Depends-on): Likewise.
68783
68784 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68785
68786         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
68787         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
68788         pedantically.
68789         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68790         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
68791
68792         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
68793         not "==".  Reported by Ralf Wildenhues.
68794
68795 2006-03-01  Karl Berry  <karl@gnu.org>
68796
68797         * doc/Copyright/request-*: new files, synced from gnuorg.
68798
68799 2006-03-01  Karl Berry  <karl@gnu.org>
68800
68801         * config/srclist.txt (Copyright/*): new entries.
68802
68803 2006-02-28  Simon Josefsson  <jas@extundo.com>
68804
68805         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
68806
68807 2006-02-27  Simon Josefsson  <jas@extundo.com>
68808
68809         * lib/base64.h: Indent #define's.  From Jim Meyering
68810         <jim@meyering.net>.
68811
68812 2006-02-27  Jim Meyering  <jim@meyering.net>
68813
68814         Revert the change of 2006-02-24, so these files can continue
68815         to be sync'd from gettext.
68816         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
68817         of `config.h'.
68818
68819 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
68820
68821         * modules/intprops: New file.
68822         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
68823         Add intprops.
68824         * modules/getloadavg (Files): Remove lib/intprops.h.
68825         (Depends-on): Add intprops.
68826         * modules/human: Likewise.
68827         * modules/inttostr: Likewise.
68828         * modules/openat: Likewise.
68829         * modules/sig2str: Likewise.
68830         * modules/userspec: Likewise.
68831         * modules/utimecmp: Likewise.
68832         * modules/xnanosleep: Likewise.
68833         * modules/xstrtol: Likewise.
68834
68835 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
68836
68837         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
68838         * modules/lock-tests (TESTS): Use $(EXEEXT).
68839         * modules/tls-tests: Likewise.
68840         * modules/argp-tests: Likewise.
68841         (check_PROGRAMS): New var, replacing...
68842         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
68843
68844 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68845
68846         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
68847         `config.h'.
68848
68849 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
68850
68851         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
68852
68853 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68854
68855         Sync from coreutils.
68856         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
68857         gl_CHDIR_SAFER.
68858
68859 2006-02-22  Jim Meyering  <jim@meyering.net>
68860
68861         Sync from coreutils.
68862         * m4/chdir-safer.m4: New file.
68863
68864 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68865
68866         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
68867         AT_FDCWD exceeds INT_MAX.
68868         * lib/openat.h (AT_FDCWD): Likewise.
68869
68870 2006-02-17  Eric Blake  <address@hidden>
68871
68872         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
68873
68874 2006-02-16  Simon Josefsson  <jas@extundo.com>
68875
68876         * modules/getaddrinfo (Depends-on): Add sys_socket.
68877
68878 2006-02-15  Simon Josefsson  <jas@extundo.com>
68879
68880         * build-aux/maint.mk: Add dsyntax-check rule.
68881
68882 2006-02-15  Eric Blake  <ebb9@byu.net>
68883
68884         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
68885         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
68886         'present but cannot compile' warnings on cygwin.
68887         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
68888         use ws2tcpip.h if sys/socket.h works.
68889         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
68890         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
68891
68892 2006-02-14  Simon Josefsson  <jas@extundo.com>
68893
68894         * modules/maintainer-makefile (Files): Rename.
68895
68896         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
68897         and (the local) Makefile.cfg to maint-cfg.mk.
68898
68899         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
68900         to the latter.
68901
68902         * modules/maintainer-makefile: New module.
68903
68904         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
68905         severaly stripped to make it possible to build it up from scratch
68906         with reliable tests.
68907
68908         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
68909         fixes to permit overriding the default actions when configure and
68910         makefile are not available.
68911
68912 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68913
68914         Sync from coreutils.
68915         * modules/lstat (Depends-on): Don't depend on xalloc.
68916         (License): Change from GPL to LGPL, since this is now simply a
68917         replacement for a libc function.
68918
68919 2006-02-14  Jim Meyering  <jim@meyering.net>
68920
68921         Sync from coreutils.
68922
68923         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
68924         failure on deficient systems, and simplify gnulib lgpl dependencies.
68925         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
68926         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
68927
68928         * lib/xalloc-die.c: Remove unused definition of N_.
68929
68930 2006-02-14  Jim Meyering  <jim@meyering.net>
68931
68932         Sync from coreutils.
68933         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
68934         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
68935         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
68936         double-quote uses of that variable, to accommodate the rare case in
68937         which getmntent is available in none of the libraries checked.  This
68938         happens at least on FreeBSD 5.0.
68939
68940 2006-02-13  Simon Josefsson  <jas@extundo.com>
68941
68942         * gnulib-tool (Usage): Fix --import, from
68943         karl@freefriends.org (Karl Berry).
68944
68945 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
68946
68947         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
68948
68949 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
68950
68951         * lib/argp-namefrob.h: Restore changes accidentally lost during the
68952         "autoupdate" on 2005-12-12.
68953
68954 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
68955
68956         * modules/closeout (Depends-on): Remove atexit.
68957
68958 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
68959
68960         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
68961         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
68962
68963 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
68964
68965         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
68966         __EXTENSIONS__ if this causes compilation to fail.  Problem
68967         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
68968         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
68969
68970 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
68971
68972         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
68973         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
68974         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
68975         All uses changed.
68976
68977 2006-01-26  Simon Josefsson  <jas@extundo.com>
68978
68979         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
68980         prototype is visible on mingw32.
68981
68982         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
68983         for mingw32.
68984
68985         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
68986         mingw32).
68987
68988 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
68989
68990         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
68991         attempt to open for write; this always fails, at least on POSIX
68992         hosts.  This reinstates the 2006-01-09 change, which was
68993         inadvertently removed.
68994
68995 2006-01-26  Bruno Haible  <bruno@clisp.org>
68996
68997         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
68998         Reported by Paul Eggert.
68999
69000 2006-01-26  Bruno Haible  <bruno@clisp.org>
69001             Paul Eggert  <eggert@cs.ucla.edu>
69002
69003         * lib/stdbool_.h (_Bool)
69004         [(! (defined __cplusplus || defined __BEOS__)
69005           && !defined __GNUC__
69006           && !(defined __HP_cc || defined __xlc__
69007                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
69008                || defined __sgi))]:
69009         #define to signed char in these cases too; this simplifies
69010         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
69011         etc., separately) and makes it more conservative.
69012
69013 2006-01-25  Simon Josefsson  <jas@extundo.com>
69014
69015         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
69016         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
69017         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
69018
69019 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
69020
69021         * lib/argp-namefrob.h: Bugfix. Remove stray #
69022
69023 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
69024
69025         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
69026         so that we test the test.
69027         Check for yet another HP-UX cc bug involving *bool |= bool.
69028
69029 2006-01-25  Karl Berry  <karl@gnu.org>
69030
69031         * config/srclist.txt (vasnprintf.c): sync lost.
69032
69033 2006-01-25  Jim Meyering  <jim@meyering.net>
69034
69035         Sync from the stable (b5) branch of coreutils:
69036
69037         * lib/fts.c (fts_children): Don't let close() clobber errno from
69038         failed fchdir().
69039
69040         * lib/fts.c (fts_stat): When following a symlink-to-directory,
69041         don't necessarily interpret stat-fails+lstat-succeeds as indicating
69042         a dangling symlink.  That can also happen at least for ELOOP.
69043         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
69044         FYI, this bug predates the inclusion of fts.c in coreutils.
69045
69046         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
69047         in their own block, so pre-c99 compilers don't object.
69048
69049         Avoid the double-free (first in fts_read, second in fts_close) that
69050         would occur when an `active' directory is made inaccessible (e.g.,
69051         via chmod a-x) during a traversal.
69052         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
69053         before returning.  Reproduce this failure by
69054         mkdir -p a/b; cd a; chmod a-x . b
69055         Reported by Stavros Passas.
69056
69057 2006-01-25  Jim Meyering  <jim@meyering.net>
69058
69059         * lib/fileblocks.c: Remove more useless parentheses.
69060         * lib/readutmp.h: Likewise.
69061
69062 2006-01-25  Bruno Haible  <bruno@clisp.org>
69063
69064         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
69065         warnings.
69066         Reported by Paul Eggert.
69067
69068 2006-01-25  Bruno Haible  <bruno@clisp.org>
69069
69070         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
69071         rid of a trap command. For Solaris sh.
69072         Reported by Mark D. Baushke <mdb@gnu.org>.
69073
69074 2006-01-24  Simon Josefsson  <jas@extundo.com>
69075
69076         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
69077         Bruno.
69078
69079 2006-01-24  Karl Berry  <karl@gnu.org>
69080
69081         * config/srclist.txt (argp-namefrob.h): sync lost.
69082
69083 2006-01-24  Jim Meyering  <jim@meyering.net>
69084
69085         * modules/openat (Files): Add lib/intprops.h.
69086         From Mark D. Baushke.
69087
69088 2006-01-24  Jim Meyering  <jim@meyering.net>
69089
69090         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
69091         Reported by Mark D. Baushke.
69092
69093 2006-01-24  Jim Meyering  <jim@meyering.net>
69094
69095         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
69096
69097 2006-01-24  Bruno Haible  <bruno@clisp.org>
69098
69099         * modules/strnlen (Maintainer): Change from glibc to all.
69100
69101 2006-01-24  Bruno Haible  <bruno@clisp.org>
69102
69103         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
69104         Patch by Paul Eggert.
69105
69106 2006-01-24  Bruno Haible  <bruno@clisp.org>
69107
69108         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
69109         already has it.
69110         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
69111         2005-11-26.
69112
69113         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
69114         'signed char' to avoid problems with the built-in _Bool type.
69115         Reported by Paul Eggert on 2005-11-26.
69116
69117 2006-01-24  Bruno Haible  <bruno@clisp.org>
69118
69119         * gnulib-tool (func_import): Avoid constructing complicated sed
69120         expressions inside backquote.
69121         Report and solution by Mark D. Baushke <mdb@gnu.org>.
69122
69123 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
69124
69125         These changes imported from libc.
69126         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
69127         test and two separate function calls.
69128         * lib/strndup.c (__strndup): Add libc_hidden_def.
69129
69130 2006-01-23  Simon Josefsson  <jas@extundo.com>
69131
69132         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
69133         Remove the test_*_SOURCES variable: automake infers it by default.
69134         * modules/tls-tests: Likewise.
69135
69136 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69137
69138         Work around porting bugs reported by Dieter in
69139         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
69140         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
69141         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
69142         Include "getopt.h" first, to check interface.
69143         (getenv): Declare only if defined HAVE_DECL_GETENV &&
69144         !HAVE_DECL_GETENV.
69145         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
69146         (__strndup): Revert to K&R-style function dfns, the glibc style.
69147         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
69148         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
69149         Include strnlen.h first, to get prototype properly.
69150         (strnlen): Renamed from __strnlen.
69151         Remove weak alias.
69152
69153 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69154
69155         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
69156
69157 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69158
69159         * config/srclist.txt: Adjust to reflect glibc reorganization.
69160         This affects only comments.
69161
69162 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69163
69164          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
69165          Reported by Bruce Korb <bkorb@gnu.org>.
69166
69167 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
69168
69169         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
69170         to pacify gcc -Wswitch-default.
69171
69172 2006-01-22  Bruno Haible  <bruno@clisp.org>
69173
69174         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
69175         temporary buffer for sprintf, take into account the precision also
69176         for 'd', 'i', 'u', 'o', 'x', 'X'.
69177
69178 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
69179
69180         * modules/argp-tests: New module
69181         * tests/test-argp.c: New file
69182         * tests/test-argp-2.sh: New file
69183
69184 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
69185
69186         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
69187         (__argp_base_name): Removed
69188         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
69189         typo.
69190         (__argp_base_name): Provide macro definition or extern declaration
69191         depending on the configuration
69192
69193 2006-01-20  Simon Josefsson  <jas@extundo.com>
69194
69195         * modules/inet_ntop (Depends-on): Depend on sys_socket.
69196
69197 2006-01-20  Simon Josefsson  <jas@extundo.com>
69198
69199         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
69200
69201 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69202
69203         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
69204         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
69205         Suggested by Bruno Haible.
69206
69207 2006-01-20  Karl Berry  <karl@gnu.org>
69208
69209         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
69210         until changes propagate, I guess.
69211
69212 2006-01-19  Simon Josefsson  <jas@extundo.com>
69213
69214         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
69215
69216 2006-01-19  Simon Josefsson  <jas@extundo.com>
69217
69218         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
69219
69220 2006-01-19  Simon Josefsson  <jas@extundo.com>
69221
69222         * gnulib-tool: Set check_PROGRAMS.
69223
69224         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
69225         modules/des-tests, modules/gc-arcfour-tests,
69226         modules/gc-arctwo-tests, modules/gc-des-tests,
69227         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
69228         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
69229         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
69230         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
69231         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
69232         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
69233         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
69234         test_*_SOURCES.
69235
69236 2006-01-18  Simon Josefsson  <jas@extundo.com>
69237
69238         * modules/socklen (Depends-on): Depend on sys_socket.
69239
69240 2006-01-18  Simon Josefsson  <jas@extundo.com>
69241
69242         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
69243         modules/des-tests, modules/gc-arcfour-tests,
69244         modules/gc-arctwo-tests, modules/gc-des-tests,
69245         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
69246         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
69247         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
69248         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
69249         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
69250         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
69251         $(EXEEXT) to automake TESTS variable, for mingw32.
69252
69253 2006-01-17  Simon Josefsson  <jas@extundo.com>
69254
69255         * modules/socklen (Include): Need sys/socket.h.
69256
69257 2006-01-17  Bruno Haible  <bruno@clisp.org>
69258
69259         * modules/ssize_t (Include): Add <sys/types.h>.
69260
69261 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
69262
69263         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
69264         it's not portable and it doesn't work with cross-compiles.
69265         Problem reported by Bruno Haible.  Fix missing-$ typo in
69266         'test "gl_cv_ignore_unused_libraries" ...' that prevented
69267         -zignore from being used with Sun's C compiler.
69268
69269 2006-01-12  Simon Josefsson  <jas@extundo.com>
69270
69271         * lib/base64.c: Fix warning, reported by Bruno Haible
69272         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
69273
69274 2006-01-12  Bruno Haible  <bruno@clisp.org>
69275
69276         * modules/ldd: New file.
69277         * build-aux/ldd.sh.in: New file.
69278         * MODULES.html.sh (Support for building libraries and executables): Add
69279         ldd.
69280
69281 2006-01-12  Bruno Haible  <bruno@clisp.org>
69282
69283         * m4/ldd.m4: New file.
69284
69285 2006-01-12  Bruno Haible  <bruno@clisp.org>
69286
69287         * gnulib-tool (func_import, func_create_testdir): Don't go into an
69288         endless loop while replacing $auxdir with build-aux.
69289
69290 2006-01-11  Simon Josefsson  <jas@extundo.com>
69291
69292         * lib/stdint_.h (SIZE_MAX): Add missing (.
69293
69294 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
69295
69296         Sync from coreutils.
69297         * lib/md5.c: Fix commentary typos.
69298         (alignof, UNALIGNED_P): No need for a GCC-specific version.
69299         * lib/md5.h (__attribute__): Remove; unused.
69300         * lib/sha1.c: Fix commentary to match md5 better.
69301         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
69302         so that we don't need to worry about alignment.  All uses changed.
69303         This merges the 2005-10-28 md5 change into sha1.
69304
69305 2006-01-11  Jim Meyering  <jim@meyering.net>
69306
69307         Sync from coreutils.
69308         * lib/md5.c (OP): Fix spacing.
69309
69310 2006-01-11  Bruno Haible  <bruno@clisp.org>
69311
69312         Ensure automatic ordering between gl_LOCK and gl_ARGP.
69313         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
69314         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
69315
69316 2006-01-11  Bruno Haible  <bruno@clisp.org>
69317
69318         Ensure automatic ordering between gl_LOCK and gl_ARGP.
69319         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
69320         the "early" section as well.
69321
69322 2006-01-11  Bruno Haible  <bruno@clisp.org>
69323
69324         Avoid "ar: no archive members specified" error on MacOS X.
69325         * gnulib-tool (func_modules_add_dummy): New function.
69326         (func_import, func_create_testdir): Invoke it.
69327
69328 2006-01-11  Bruno Haible  <bruno@clisp.org>
69329
69330         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
69331         with $auxdir in AC_CONFIG_FILES statements.
69332
69333 2006-01-11  Bruno Haible  <bruno@clisp.org>
69334
69335         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69336         Initialize also noinst_HEADERS to empty.
69337
69338 2006-01-11  Bruno Haible  <bruno@clisp.org>
69339
69340         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
69341         variables.
69342         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
69343         autoreconf.
69344
69345 2006-01-11  Bruno Haible  <bruno@clisp.org>
69346
69347         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
69348         overridable by the user.
69349         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69350
69351 2006-01-10  Simon Josefsson  <jas@extundo.com>
69352
69353         * modules/sys_socket: New file.
69354
69355 2006-01-10  Simon Josefsson  <jas@extundo.com>
69356
69357         * m4/sys_socket_h.m4: New file.
69358
69359 2006-01-10  Simon Josefsson  <jas@extundo.com>
69360
69361         * lib/socket_.h: New file.
69362
69363 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69364
69365         * modules/readutmp (Maintainer): Add myself.
69366
69367 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69368
69369         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
69370         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
69371         People who are still concerned with buggy memcmp implementations
69372         can invoke gl_FUNC_MEMCMP themselves.
69373
69374 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69375
69376         * lib/regex_internal.h (BITSET_WORD_BITS):
69377         Work around a bug in 64-bit PGC (before version 6.1-2), where the
69378         preprocessor mishandles large unsigned values as if they were signed.
69379         Problem reported by Claudio Fontana in
69380         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
69381
69382 2006-01-10  Jim Meyering  <jim@meyering.net>
69383
69384         Avoid the double-free (first in fts_read, second in fts_close) that
69385         would occur when an `active' directory is made inaccessible (e.g.,
69386         via chmod a-x) during a traversal.
69387         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
69388         before returning.  Reproduce this failure by
69389         mkdir -p a/b; cd a; chmod a-x . b
69390         Reported by Stavros Passas.
69391
69392         Sync from coreutils.
69393         * lib/sha1.c: Tweak grammar in a comment.
69394
69395 2006-01-10  Jim Meyering  <jim@meyering.net>
69396
69397         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
69398         Patch by Joerg Sonnenberger.
69399
69400 2006-01-10  Bruno Haible  <bruno@clisp.org>
69401
69402         * modules/readutmp: Depend on module free.
69403         * modules/strtok_r: Depend on module restrict.
69404
69405 2006-01-10  Bruno Haible  <bruno@clisp.org>
69406
69407         * modules/gettext (configure.ac): Add an invocation of
69408         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
69409
69410 2006-01-10  Bruno Haible  <bruno@clisp.org>
69411
69412         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
69413         Reported by Werner Lemberg <wl@gnu.org>.
69414
69415 2006-01-10  Bruno Haible  <bruno@clisp.org>
69416
69417         * lib/localcharset.c: Update from GNU gettext.
69418
69419 2006-01-10  Bruno Haible  <bruno@clisp.org>
69420
69421         * lib/argp.h (__const): Remove macro. Use const instead.
69422         * lib/argp-fmtstream.h (__const): Likewise.
69423         * lib/glob_.h (__const): Remove macro.
69424         * lib/glob-libc.h: Use const instead of __const.
69425
69426 2006-01-10  Bruno Haible  <bruno@clisp.org>
69427
69428         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
69429         variable.
69430         Needed to avoid an automake error regarding the 'gettext' module.
69431
69432 2006-01-09  Simon Josefsson  <jas@extundo.com>
69433
69434         * modules/inet_ntop (Depends-on): Add restrict.
69435
69436 2006-01-09  Simon Josefsson  <jas@extundo.com>
69437
69438         * modules/gc-rijndael-tests (License): Put under LGPL.
69439
69440         * modules/gc-des-tests (License): Likewise.
69441
69442         * modules/gc-arcfour-tests (License): Likewise.
69443
69444         * modules/gc-arctwo-tests (License): Likewise.
69445
69446         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
69447
69448         * modules/gc-hmac-sha1-tests (Files): Likewise.
69449
69450         * modules/gc-hmac-md5-tests (License): Likewise.
69451
69452         * modules/gc-sha1-tests (License): Likewise.
69453
69454         * modules/gc-md5-tests (License): Likewise.
69455
69456         * modules/gc-md4-tests (License): Likewise.
69457
69458         * modules/gc-md2-tests (License): Likewise.
69459
69460         * modules/gc-tests (License): Likewise.
69461
69462         * modules/des-tests (License): Likewise.
69463
69464         * modules/md4-tests (License): Likewise.
69465
69466         * modules/md2-tests (License): Likewise.
69467
69468 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69469
69470         Sync from coreutils:
69471
69472         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
69473         * modules/lib-ignore: New file.
69474         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
69475         chdir-safer.m4, lchmod.m4.
69476         * modules/openat: Add mkdirat.c, openat-priv.h.
69477
69478 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69479
69480         Sync from coreutils.
69481         * m4/lib-ignore.m4: New file.
69482         * m4/lchmod.m4: New file.
69483
69484 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69485
69486         Sync from coreutils.
69487         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
69488         for write access: POSIX says that must fail.
69489         * lib/fts.c (diropen): Likewise.
69490         * lib/save-cwd.c (save_cwd): Likewise.
69491         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
69492         well, for minor improvements on hosts that lack O_DIRECTORY.
69493         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
69494         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
69495         Fall back on chown if open failed with EACCES.
69496
69497         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
69498         Report an error at compile-time if only a 1-second nominal clock
69499         resolution is found.
69500
69501         * lib/lchmod.h: New file.
69502         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
69503         (make_dir_parents): Use lchown rather than chown, and
69504         lchmod rather than chmod.
69505
69506         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
69507         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
69508         "proc" reported by n0dalus.
69509
69510         * lib/mountlist.c: Include <limits.h>.
69511         (dev_from_mount_options)
69512         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
69513         New function.  It no longer assumes "dev=" has the System V meaning
69514         on Linux (since it doesn't).  It also parses "dev=" more carefully.
69515         (read_file_system_list)
69516         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
69517         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
69518         dev= in that case.
69519
69520         * lib/posixtm.h (PDS_PRE_2000): New macro.
69521         * lib/posixtm.c (year): Arg is now syntax_bits rather than
69522         allow_century.  All usages changed.  Reject dates outside the range
69523         1969-1999 if PDS_PRE_2000 is used.
69524
69525 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69526
69527         Sync from coreutils.
69528         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
69529         (Time of day items): Mention the possibility of leap seconds.
69530         Problem reported by Dr. David Alan Gilbert.
69531
69532 2006-01-09  Jim Meyering  <jim@meyering.net>
69533
69534         Sync from coreutils.
69535
69536         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
69537
69538         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
69539
69540         * lib/modechange.c (mode_compile): Reject an invalid mode string
69541         that starts with an octal digit.  From Andreas Gruenbacher.
69542
69543         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
69544         and dup to open_safer and dup_safer, respectively.
69545         (openat_permissive): Fix typo in comment.
69546
69547         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
69548         "gettext.h"; either no longer needed or are guaranteed by openat.h.
69549         (_): Remove; no longer needed.
69550         (openat): Renamed from rpl_openat; no need for rpl_openat
69551         since openat.h renames openat for us.
69552         Replace most of the body with a call to openat_permissive,
69553         to avoid duplicate code.
69554         Port to (probably hypothetical) environments were mode_t is
69555         wider than int.
69556         (openat_permissive): Require mode arg, so that we can check
69557         types better.  Put it just after flags.  Change cwd failure
69558         indicator from pointer-to-bool to pointer-to-errno-value.
69559         All callers changed.
69560         Invoke openat_save_fail and/or openat_restore_fail if
69561         cwd_errno is null, so that openat can call us.
69562         (openat_permissive, fdopendir, fstatat, unlinkat):
69563         Simplify errno handling to avoid some duplicate code,
69564         as it's OK to set errno on success.
69565         * lib/openat.h: Revamp code so that function macros depend on
69566         __OPENAT_PREFIX only, not also on AT_FDCWD.
69567         (openat_ro): Remove.  Caller changed to use openat_permissive.
69568         (openat_permissive): Now a macro, if not a function.
69569         (openat_restore_fail, openat_save_fail): Now always functions,
69570         since mkdirat needs them even if __OPENAT_PREFIX is defined.
69571
69572         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
69573         and openat.c.
69574         * lib/mkdirat.c: Include openat-priv.h.
69575         Remove definitions of macros defined therein.
69576         * lib/openat.c: Likewise.
69577
69578         * lib/mkdirat.c (mkdirat): New file and function.
69579         * lib/openat.h (mkdirat): Declare.
69580
69581         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
69582
69583         * lib/openat.h (openat_permissive): Declare.
69584         (openat_ro): Define.
69585
69586         * lib/openat.c (EXPECTED_ERRNO): New macro.
69587         (openat_permissive): New function -- used in remove.c rewrite.
69588         (all functions): Set errno just before returning, only if there
69589         was an actual failure.
69590         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
69591
69592         Emulate openat-family functions using Linux's procfs, if possible.
69593         Idea and some code based on Ulrich Drepper's glibc changes.
69594
69595         * lib/openat.c: (BUILD_PROC_NAME): New macro.
69596         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
69597         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
69598         before falling back on save_cwd and restore_cwd.
69599         (fdopendir, fstatat, unlinkat): Likewise.
69600
69601         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
69602         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
69603
69604         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
69605         as second argument to va_arg.  Otherwise, some versions of gcc
69606         warn that `if this code is reached, the program will abort'.
69607
69608 2006-01-09  Jim Meyering  <jim@meyering.net>
69609
69610         Sync from coreutils.
69611         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
69612         Require openat-priv.h.
69613
69614 2006-01-09  Bruno Haible  <bruno@clisp.org>
69615
69616         * modules/strnlen (Include): Use strnlen.h.
69617
69618 2006-01-09  Bruno Haible  <bruno@clisp.org>
69619
69620         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
69621
69622 2006-01-09  Bruno Haible  <bruno@clisp.org>
69623
69624         * lib/sysexit_.h (EX_OK): New macro.
69625         Suggested by Martin Lambers <marlam@marlam.de>.
69626
69627 2006-01-09  Bruno Haible  <bruno@clisp.org>
69628
69629         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
69630         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
69631
69632 2006-01-09  Bruno Haible  <bruno@clisp.org>
69633
69634         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
69635         numbers.
69636
69637 2006-01-09  Bruno Haible  <bruno@clisp.org>
69638
69639         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
69640         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
69641         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
69642         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
69643
69644 2006-01-09  Bruno Haible  <bruno@clisp.org>
69645
69646         * build-aux/javacomp.sh.in: New file, moved from lib/.
69647         * modules/javacomp-script (Files): Update.
69648         (configure.ac): Add AC_CONFIG_FILES invocation.
69649         (EXTRA_DIST): Remove variable.
69650
69651         * build-aux/javaexec.sh.in: New file, moved from lib/.
69652         * modules/javaexec (Files): Update.
69653         (configure.ac): Add AC_CONFIG_FILES invocation.
69654         (EXTRA_DIST): Remove javaexec.sh.in.
69655
69656         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
69657         * modules/csharpcomp-script (Files): Update.
69658         (configure.ac): Add AC_CONFIG_FILES invocation.
69659         (EXTRA_DIST): Remove variable.
69660
69661         * build-aux/csharpexec.sh.in: New file, moved from lib/.
69662         * modules/csharpexec (Files): Update.
69663         (configure.ac): Add AC_CONFIG_FILES invocation.
69664         (EXTRA_DIST): Remove csharpexec.sh.in.
69665
69666 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
69667
69668         Sync from coreutils.
69669
69670         Add POSIX ACL support
69671         * lib/acl.h (copy_acl, set_acl): Add declarations.
69672         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
69673         systems other than Linux.
69674         (chmod_or_fchmod): New function: use fchmod when possible,
69675         and chmod otherwise.
69676         (file_has_acl): Add a POSIX ACL implementation, with a
69677         Linux-specific subcase.
69678         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
69679         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
69680         acls are unsupported.
69681         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
69682         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
69683         are unsupported.
69684
69685 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
69686
69687         Sync from coreutils.
69688         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
69689
69690 2006-01-07  Bruno Haible  <bruno@clisp.org>
69691
69692         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
69693         gl_EARLY.
69694
69695 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69696
69697         * lib/strftime.c (tzname): Don't declare if it is already #defined.
69698         Problem reported for Mingw by Mark Junker.
69699
69700 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69701
69702         * README: Gnulib normally doesn't generate a tarball.
69703
69704 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
69705
69706         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
69707         long int, not int, for nanosecond counts, so that people who are
69708         used to POSIX struct timespec won't be surprised.  Reported by Jim
69709         Meyering.
69710
69711 2005-12-28  Bruno Haible  <bruno@clisp.org>
69712
69713         * build-aux/config.rpath: Update from GNU gettext.
69714
69715 2005-12-16  Jim Meyering  <jim@meyering.net>
69716
69717         * modules/fprintftime: New module.
69718         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
69719
69720 2005-12-16  Jim Meyering  <jim@meyering.net>
69721
69722         * m4/fprintftime.m4: New file.
69723
69724 2005-12-16  Jim Meyering  <jim@meyering.net>
69725
69726         * lib/fprintftime.c, lib/fprintftime.h: New files.
69727
69728 2005-12-15  Simon Josefsson  <jas@extundo.com>
69729
69730         * modules/socklen (configure.ac): Fix M4 macro name, to align with
69731         new m4/socklen.m4.
69732
69733 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69734
69735         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
69736         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
69737
69738 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69739
69740         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
69741         * lib/argp-help.c (fill_in_uparams): Check if the constructed
69742         struct uparams is valid. Fall back to the default values if it is
69743         not.
69744
69745 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69746
69747         * modules/argp (Files): Add argp-pin.c
69748         (Depends-on): dirname
69749         (lib_SOURCES): Add argp-pin.c
69750
69751 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69752
69753         * m4/argp.m4:  Check if program_invocation_name and
69754         program_invocation_short_name are declared and define appropriate
69755         macros if they are not.
69756
69757 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69758
69759         * lib/argp-help.c (__argp_base_name): New function
69760         (__argp_short_program_name): Rewrite using __argp_base_name
69761         * lib/argp-namefrob.h: Define program_invocation_name and
69762         program_invocation_short_name if requested
69763         (__argp_base_name): Add prototype
69764         * lib/argp-parse.c (argp_def): Use gettext wrappers
69765         (argp_default_parser): Use __argp_base_name
69766         * lib/argp-pin.c: New file. Defines program_invocation_name and
69767         program_invocation_short_name on systems that lack them.
69768
69769 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69770
69771         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
69772         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
69773         porting problem reported by Georg Schwarz in
69774         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
69775
69776 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69777
69778         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
69779         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
69780         porting problem reported by Georg Schwarz in
69781         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
69782
69783 2005-12-05  Bruno Haible  <bruno@clisp.org>
69784
69785         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
69786         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
69787         Reported by Mark Junker <mjscod@gmx.de>.
69788
69789 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
69790
69791         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
69792         Use implementation from Albert Chin, with some
69793         comments/corrections by Stepan Kasal and myself.
69794
69795 2005-12-02  Bruno Haible  <bruno@clisp.org>
69796
69797         * gnulib-tool (func_import): Accept GPLed build tool modules when
69798         --lgpl is given.
69799         * modules/csharpcomp-script: New file.
69800         * modules/csharpcomp: Depend on it.
69801         * modules/javacomp-script: New file.
69802         * modules/javacomp: Depend on it.
69803         Suggested by Simon Josefsson.
69804
69805 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
69806
69807         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
69808         statement, to work around an HP-UX 10.20 compiler bug reported by
69809         Peter O'Gorman.
69810
69811 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
69812
69813         * modules/savedir (Depends-on): Add openat.
69814
69815 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
69816
69817         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
69818         (uintmax_t) [defined uintmax_t]: Do not declare.
69819         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
69820         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
69821         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
69822         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
69823         sake of portability to weird hosts that C allows (though we don't
69824         know of any practical examples).
69825
69826         * lib/savedir.h (fdsavedir): New decl.
69827         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
69828         contains most of the former guts of savedir.
69829         (savedir): Use savedirstream.
69830         Include "openat.h".
69831
69832 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69833
69834         * modules/obstack (Files): Add m4/ulonglong.m4.
69835         Problem reported by Davide Angelocola.
69836
69837 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
69838
69839         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
69840         coreutils no longer futzes with rounding modes.
69841
69842 2005-11-14  Jim Meyering  <jim@meyering.net>
69843
69844         * lib/mkstemp-safer.c: Include <config.h>, required for possible
69845         replacement of mkstemp.
69846
69847 2005-11-10  Simon Josefsson  <jas@extundo.com>
69848
69849         * lib/readline.c: Remove EOL.
69850
69851 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69852
69853         * modules/gethrxtime (Depends-on): Add gettime.
69854
69855 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69856
69857         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
69858         or gettimeofday; no longer needed.
69859
69860 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69861
69862         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
69863         time business.
69864         (gethrxtime) [! (HAVE_NANOUPTIME
69865         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
69866         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
69867         our own approximation.
69868
69869 2005-11-08  Eric Blake  <ebb9@byu.net>
69870
69871         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
69872
69873 2005-11-08  Eric Blake  <ebb9@byu.net>
69874
69875         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
69876
69877 2005-11-04  Bruno Haible  <bruno@clisp.org>
69878
69879         * gnulib-tool: Implement --update mode.
69880
69881 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
69882
69883         Fix porting problem reported by Theodoros V. Kalamatianos.
69884         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
69885         Don't assume that futimes failing means we must fail.
69886
69887 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
69888
69889         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
69890         variables to suggest the intended function of the PATH_MAX check.
69891
69892 2005-10-30  Kean Johnston  <jkj@sco.com>
69893
69894         Trivial changes to support SCO systems.
69895         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
69896         as PATH_MAX.
69897         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
69898         where __ptr is null when no I/O is pending.
69899
69900 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69901
69902         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
69903         leave errno alone.  Problem reported by Dmitry V. Levin.
69904
69905 2005-10-28  Simon Josefsson  <jas@extundo.com>
69906
69907         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
69908         Test more.
69909
69910         * tests/test-gc-md2.c, tests/test-md2.c: New files.
69911
69912         * modules/md2, modules/md2-tests: New files.
69913
69914 2005-10-28  Simon Josefsson  <jas@extundo.com>
69915
69916         * m4/inet_ntop.m4: More tests.
69917
69918         * m4/gc-md2.m4, md2.m4: New file.
69919
69920 2005-10-28  Simon Josefsson  <jas@extundo.com>
69921
69922         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
69923         "restrict" keywords, as per POSIX.  Protect the function
69924         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
69925         Don't use K&R prototypes.  Check the sprintf return values.
69926         Re-define EAFNOSUPPORT if not present.  Indent.
69927
69928         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
69929         suggested by Bruno Haible <bruno@clisp.org>.
69930
69931         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
69932
69933         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
69934
69935         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
69936         libgcrypt).
69937
69938         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
69939
69940         * lib/md2.h, lib/md2.c: New files.
69941
69942 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
69943
69944         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
69945         errno alone.  Problem reported by Frederic Jolliton.
69946
69947 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
69948
69949         * modules/verify (License): Change from GPL to LGPL.  This is a
69950         tiny module and there are apparently near-equivalents that are
69951         under the BSD license.
69952
69953 2005-10-24  Simon Josefsson  <jas@extundo.com>
69954
69955         * modules/sha1: Relicense to LGPL.
69956
69957 2005-10-24  Simon Josefsson  <jas@extundo.com>
69958
69959         * lib/md4.h: Shrink buffer size, now that we changed the type.
69960
69961 2005-10-23  Simon Josefsson  <jas@extundo.com>
69962
69963         * gnulib-tool (func_import): Fix --tests-base.
69964
69965 2005-10-22  Simon Josefsson  <jas@extundo.com>
69966
69967         * modules/arcfour (Depends-on): Need stdint.
69968
69969 2005-10-22  Simon Josefsson  <jas@extundo.com>
69970
69971         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
69972         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
69973
69974 2005-10-22  Simon Josefsson  <jas@extundo.com>
69975
69976         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
69977         suggested by Bruno Haible <bruno@clisp.org>.
69978
69979 2005-10-22  Simon Josefsson  <jas@extundo.com>
69980
69981         * lib/crc.h: Include stddef.h, for size_t.
69982
69983 2005-10-22  Simon Josefsson  <jas@extundo.com>
69984
69985         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
69986         arcfour_context struct (simplify test vector testing in GNU
69987         Shishi).
69988
69989 2005-10-21  Simon Josefsson  <jas@extundo.com>
69990
69991         * modules/des, modules/des-tests: New files.
69992
69993         * modules/gc-des, modules/gc-des-tests: New files.
69994
69995         * tests/test-des.c, tests/test-gc-des.c: New file.
69996
69997 2005-10-21  Simon Josefsson  <jas@extundo.com>
69998
69999         * modules/arctwo, modules/arctwo-tests: New files.
70000
70001         * tests/test-arctwo.c: New file.
70002
70003         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
70004
70005         * tests/test-gc-arctwo.c: New file.
70006
70007 2005-10-21  Simon Josefsson  <jas@extundo.com>
70008
70009         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
70010         Bruno Haible <bruno@clisp.org>.
70011
70012         * m4/gc-des.m4: New file.
70013
70014 2005-10-21  Simon Josefsson  <jas@extundo.com>
70015
70016         * m4/arctwo.m4: New file.
70017
70018         * m4/gc-arctwo.m4: New file.
70019
70020 2005-10-21  Simon Josefsson  <jas@extundo.com>
70021
70022         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
70023         block.
70024
70025 2005-10-21  Simon Josefsson  <jas@extundo.com>
70026
70027         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
70028         <bruno@clisp.org>.
70029
70030         * lib/hmac-sha1.c (hmac_sha1): Likewise.
70031
70032         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
70033         Bruno Haible <bruno@clisp.org>.
70034
70035         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
70036         <bruno@clisp.org>.
70037
70038 2005-10-21  Simon Josefsson  <jas@extundo.com>
70039
70040         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
70041
70042 2005-10-21  Simon Josefsson  <jas@extundo.com>
70043
70044         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
70045
70046 2005-10-21  Simon Josefsson  <jas@extundo.com>
70047
70048         * lib/des.h, lib/des.c: New files.
70049
70050         * lib/gc-gnulib.c: Support DES.c
70051
70052 2005-10-21  Simon Josefsson  <jas@extundo.com>
70053
70054         * lib/arctwo.h, lib/arctwo.c: New files.
70055
70056         * lib/gc-gnulib.c: Support ARCTWO.
70057
70058 2005-10-21  Simon Josefsson  <jas@extundo.com>
70059
70060         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
70061         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70062
70063 2005-10-21  Simon Josefsson  <jas@extundo.com>
70064
70065         * gnulib-tool (func_import, func_create_testdir): Define automake
70066         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
70067         Makefile.am snippet),
70068         suggested by Bruno Haible <bruno@clisp.org>.
70069
70070         * modules/gc (Makefile.am): Use it.
70071
70072 2005-10-21  Bruno Haible  <bruno@clisp.org>
70073
70074         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
70075         patch.
70076
70077 2005-10-19  Simon Josefsson  <jas@extundo.com>
70078
70079         * tests/test-gc-rijndael.c: New file.
70080
70081         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
70082
70083 2005-10-19  Simon Josefsson  <jas@extundo.com>
70084
70085         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
70086         interface too.
70087
70088 2005-10-19  Simon Josefsson  <jas@extundo.com>
70089
70090         * tests/test-gc-arcfour.c: New file.
70091
70092         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
70093
70094 2005-10-19  Simon Josefsson  <jas@extundo.com>
70095
70096         * modules/gc-md4, modules/gc-md4-tests: New file.
70097
70098         * tests/test-gc-md4.c: New file.
70099
70100 2005-10-19  Simon Josefsson  <jas@extundo.com>
70101
70102         * m4/gc-md4.m4: New file.
70103
70104 2005-10-19  Simon Josefsson  <jas@extundo.com>
70105
70106         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
70107         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
70108         <kasal@ucw.cz>.
70109
70110 2005-10-19  Simon Josefsson  <jas@extundo.com>
70111
70112         * m4/gc-arcfour.m4: New file.
70113
70114         * m4/gc-rijndael.m4: New file.
70115
70116 2005-10-19  Simon Josefsson  <jas@extundo.com>
70117
70118         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
70119
70120 2005-10-19  Simon Josefsson  <jas@extundo.com>
70121
70122         * lib/gc-gnulib.c: Support ARCFOUR.
70123
70124 2005-10-19  Simon Josefsson  <jas@extundo.com>
70125
70126         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
70127         support.
70128
70129         * lib/gc.h: Add ECB enum type.
70130
70131         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
70132
70133 2005-10-18  Simon Josefsson  <jas@extundo.com>
70134
70135         * tests/test-md5.c: New file.
70136
70137         * modules/md5-tests: New file.
70138
70139 2005-10-18  Simon Josefsson  <jas@extundo.com>
70140
70141         * tests/test-md4.c: New file.
70142
70143         * modules/md4, modules/md4-tests: New files.
70144
70145 2005-10-18  Simon Josefsson  <jas@extundo.com>
70146
70147         * m4/md4.m4: New file.
70148
70149 2005-10-18  Simon Josefsson  <jas@extundo.com>
70150
70151         * lib/md4.h, lib/md4.c: New files, based on md5.?.
70152
70153 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
70154
70155         * gnulib-tool (func_create_testdir): Omit the second check whether
70156         BUILT_SOURCES in nonempty.
70157
70158 2005-10-17  Simon Josefsson  <jas@extundo.com>
70159
70160         * tests/test-rijndael.c: New file.
70161
70162 2005-10-17  Simon Josefsson  <jas@extundo.com>
70163
70164         * modules/sha1: Depend on stdint instead of md5.
70165
70166         * modules/md5: Depend on stdint, remove uint32_t.
70167
70168 2005-10-17  Simon Josefsson  <jas@extundo.com>
70169
70170         * modules/gc-sha1-tests: New file.
70171
70172         * tests/test-gc-sha1.c: New file.
70173
70174 2005-10-17  Simon Josefsson  <jas@extundo.com>
70175
70176         * m4/md5.m4: Remove call to uint32_t.m4.
70177
70178 2005-10-17  Simon Josefsson  <jas@extundo.com>
70179
70180         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
70181
70182         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
70183         md5.h.
70184
70185         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
70186
70187         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
70188
70189 2005-10-17  Simon Josefsson  <jas@extundo.com>
70190
70191         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
70192
70193 2005-10-17  Simon Josefsson  <jas@extundo.com>
70194
70195         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
70196
70197 2005-10-17  Simon Josefsson  <jas@extundo.com>
70198
70199         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
70200
70201         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
70202
70203 2005-10-17  Bruno Haible  <bruno@clisp.org>
70204
70205         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
70206         that it can also be used in a test.
70207
70208 2005-10-16  Bruno Haible  <bruno@clisp.org>
70209
70210         * gnulib-tool (func_emit_tests_Makefile_am): Also define
70211         TESTS_ENVIRONMENT, so that individual tests can augment it.
70212
70213         * gnulib-tool (func_create_testdir): Use an intermediate target for
70214         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
70215         macros, like $(ALLOCA_H), which cannot be passed through the command
70216         line.
70217
70218 2005-10-15  Simon Josefsson  <jas@extundo.com>
70219
70220         * modules/rijndael-tests: New file.
70221
70222         * modules/rijndael: New file.
70223
70224 2005-10-15  Simon Josefsson  <jas@extundo.com>
70225
70226         * m4/rijndael.m4: New file.
70227
70228 2005-10-15  Simon Josefsson  <jas@extundo.com>
70229
70230         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
70231
70232         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
70233
70234 2005-10-14  Simon Josefsson  <jas@extundo.com>
70235
70236         * tests/test-arcfour.c: New file.
70237
70238         * modules/arcfour, modules/arcfour-tests: New files.
70239
70240 2005-10-14  Simon Josefsson  <jas@extundo.com>
70241
70242         * m4/arcfour.m4: New file.
70243
70244 2005-10-14  Simon Josefsson  <jas@extundo.com>
70245
70246         * lib/arcfour.h, lib/arcfour.c: New files.
70247
70248 2005-10-14  Roland McGrath  <roland@redhat.com>
70249
70250         Import from libc.  [BZ #1331]
70251         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
70252         macro argument.
70253         Reported by Matej Vela <vela@debian.org>.
70254
70255 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70256
70257         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
70258         include <wchar.h>; no longer needed.
70259
70260 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70261
70262         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
70263
70264 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
70265         and  Ulrich Drepper  <drepper@redhat.com>
70266
70267         Import from libc.
70268         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
70269         instead of inline stream orientation test and two separate
70270         function calls.  Pay no attention to USE_IN_LIBIO.
70271
70272 2005-10-13  Simon Josefsson  <jas@extundo.com>
70273
70274         * modules/gc-hmac-md5-tests: New file.
70275
70276         * tests/test-gc-hmac-sha1.c: New file.
70277
70278         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
70279
70280         * modules/gc-hmac-md5-tests: New file.
70281
70282         * tests/test-gc-md5.c: New file.
70283
70284         * modules/gc-md5-tests: New file.
70285
70286 2005-10-13  Simon Josefsson  <jas@extundo.com>
70287
70288         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
70289         Move memory allocation outside of loop.
70290
70291 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
70292
70293         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
70294         intermediate directory is in a read-only file system.  Problem
70295         reported by Eric Blake.
70296
70297 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
70298
70299         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
70300
70301 2005-10-12  Simon Josefsson  <jas@extundo.com>
70302
70303         * tests/test-hmac-sha1.c: New file.
70304
70305         * modules/hmac-sha1-tests: New file.
70306
70307         * modules/hmac-sha1: New file.
70308
70309 2005-10-12  Simon Josefsson  <jas@extundo.com>
70310
70311         * modules/gc-sha1: New file.
70312
70313 2005-10-12  Simon Josefsson  <jas@extundo.com>
70314
70315         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
70316
70317         * tests/test-gc-pbkdf2-sha1.c: New file.
70318
70319 2005-10-12  Simon Josefsson  <jas@extundo.com>
70320
70321         * modules/gc-md5, modules/gc-hmac-md5: New files.
70322
70323         * modules/gc (Files): Remove md5, memxor and hmac files.
70324
70325 2005-10-12  Simon Josefsson  <jas@extundo.com>
70326
70327         * m4/gc-pbkdf2-sha1.m4: New file.
70328
70329         * m4/gc-hmac-sha1.m4: New file.
70330
70331         * m4/gc-sha1: New file.
70332
70333         * m4/hmac-sha1.m4: New file.
70334
70335 2005-10-12  Simon Josefsson  <jas@extundo.com>
70336
70337         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
70338
70339         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
70340
70341 2005-10-12  Simon Josefsson  <jas@extundo.com>
70342
70343         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
70344         suggested by Bruno Haible <bruno@clisp.org>.
70345
70346 2005-10-12  Simon Josefsson  <jas@extundo.com>
70347
70348         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
70349
70350 2005-10-12  Simon Josefsson  <jas@extundo.com>
70351
70352         * lib/gc-pbkdf2-sha1.c: New file.
70353
70354         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
70355
70356 2005-10-12  Simon Josefsson  <jas@extundo.com>
70357
70358         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
70359
70360         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
70361
70362 2005-10-12  Simon Josefsson  <jas@extundo.com>
70363
70364         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
70365         GC_USE_HMAC_MD5, respectively.
70366
70367         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
70368         (gc_md5): Fix typo.
70369
70370         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
70371
70372         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
70373
70374         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
70375
70376 2005-10-12  Bruno Haible  <bruno@clisp.org>
70377
70378         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
70379         Reported by Stepan Kasal <kasal@ucw.cz>.
70380
70381 2005-10-11  Simon Josefsson  <jas@extundo.com>
70382
70383         * tests/test-crc.c: New file.
70384
70385         * modules/crc, modules/crc-tests: New files.
70386
70387 2005-10-11  Simon Josefsson  <jas@extundo.com>
70388
70389         * m4/crc.m4: New file.
70390
70391 2005-10-11  Simon Josefsson  <jas@extundo.com>
70392
70393         * lib/gc.h: Add gc_hash and gc_hash_buffer.
70394
70395         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
70396
70397         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
70398
70399 2005-10-11  Simon Josefsson  <jas@extundo.com>
70400
70401         * lib/crc.h, lib/crc.c: New files.
70402
70403         * lib/gc.h (gc_hash_buffer): Add doc.
70404
70405 2005-10-11  Bruno Haible  <bruno@clisp.org>
70406
70407         * modules/c-strcasestr: New file.
70408         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
70409
70410 2005-10-11  Bruno Haible  <bruno@clisp.org>
70411
70412         * modules/c-strcase: New file.
70413         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
70414
70415 2005-10-11  Bruno Haible  <bruno@clisp.org>
70416
70417         * lib/strcasecmp.c: Include limits.h.
70418         (strcasecmp): Avoid integer overflow on exotic platforms.
70419         * lib/strncasecmp.c: Include limits.h.
70420         (strncasecmp): Avoid integer overflow on exotic platforms.
70421         Reported by Paul Eggert.
70422
70423 2005-10-11  Bruno Haible  <bruno@clisp.org>
70424
70425         * lib/c-strcasestr.h: New file, from GNU gettext.
70426         * lib/c-strcasestr.c: New file, from GNU gettext.
70427
70428 2005-10-11  Bruno Haible  <bruno@clisp.org>
70429
70430         * lib/c-strcase.h: New file, from GNU gettext.
70431         * lib/c-strcasecmp.c: New file, from GNU gettext.
70432         * lib/c-strncasecmp.c: New file, from GNU gettext.
70433
70434 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70435
70436         * modules/mempcpy (License): GPL -> LGPL.
70437         * modules/strchrnul (License): Likewise.
70438         * modules/sysexits (License): Likewise.
70439
70440 2005-10-08  Simon Josefsson  <jas@extundo.com>
70441
70442         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
70443
70444 2005-10-07  Simon Josefsson  <jas@extundo.com>
70445
70446         * m4/memxor.m4: Remove gl_C_RESTRICT call.
70447
70448 2005-10-06  Simon Josefsson  <jas@extundo.com>
70449
70450         * tests/test-hmac-md5.c: New file.
70451
70452         * modules/hmac-md5-tests: New file.
70453
70454         * modules/hmac-md5: New file.
70455
70456 2005-10-06  Simon Josefsson  <jas@extundo.com>
70457
70458         * m4/hmac-md5.m4: New file.
70459
70460         * m4/memxor.m4: Require gl_C_RESTRICT.
70461
70462 2005-10-06  Simon Josefsson  <jas@extundo.com>
70463
70464         * lib/memxor.c (memxor): Avoid casts and warnings.
70465
70466 2005-10-06  Simon Josefsson  <jas@extundo.com>
70467
70468         * lib/hmac-md5.c: New file.
70469
70470         * lib/hmac.h: New file.
70471
70472 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70473
70474         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
70475         promotes to int, not unsigned int, to catch the AIX 5.3
70476         compiler bug.
70477
70478 2005-10-05  Simon Josefsson  <jas@extundo.com>
70479
70480         * modules/memxor: New file.
70481
70482         * modules/iconv (Files): Move config.rpath to havelib, it is used
70483         there.
70484
70485         * modules/havelib (Files): Add config.rpath.
70486
70487 2005-10-05  Simon Josefsson  <jas@extundo.com>
70488
70489         * m4/memxor.m4: New file.
70490
70491 2005-10-05  Simon Josefsson  <jas@extundo.com>
70492
70493         * lib/memxor.c (memxor): Fix compiler error.
70494
70495         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
70496         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
70497
70498         * lib/memxor.h, lib/memxor.c: New files.
70499
70500         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
70501         we assume all systems have it, suggested by Jim Meyering
70502         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
70503         any systems lack sys/socket.h; mingw32 is known to lack it, but we
70504         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
70505         same reasons.
70506
70507 2005-10-05  Simon Josefsson  <jas@extundo.com>
70508
70509         * config/srclist.txt: Add glibc bug 1423 for md5.h.
70510
70511 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
70512
70513         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
70514         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
70515         needed, since the source code now assumes these .h files.
70516
70517 2005-10-05  Derek Price  <derek@ximbiot.com>
70518
70519         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
70520
70521 2005-10-05  Bruno Haible  <bruno@clisp.org>
70522
70523         * modules/stdint (License): Change to LGPL.
70524
70525 2005-10-04  Simon Josefsson  <jas@extundo.com>
70526
70527         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
70528         D. Baushke" <mdb@gnu.org>.
70529
70530 2005-10-04  Bruno Haible  <bruno@clisp.org>
70531
70532         * lib/verify.h (verify_true): Provide alternative definition for C++.
70533
70534 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
70535
70536         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
70537         (SSIZE_MAX): New macro, if not already defined.
70538         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
70539         than 2 GiB.
70540
70541 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70542
70543         Sync from coreutils.
70544         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
70545         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
70546         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
70547         ULLONG_MAX doesn't work with 2.7.2.1.
70548
70549 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70550
70551         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
70552         From Ben Pfaff.
70553
70554         * modules/exclude (Depends-on): Depend on verify.
70555         * modules/strtoimax (Depends-on): Likewise.
70556         * modules/utimecmp (Depends-on): Likewise.
70557
70558 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70559
70560         * lib/exclude.c: Include verify.h.
70561         (verify): Remove.  All callers changed to use verify.h's version.
70562         * lib/strtoimax.c: Likewise.
70563         * lib/utimecmp.c: Likewis.e
70564
70565         Sync from coreutils.
70566         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
70567         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
70568         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
70569         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
70570         bother returning ENOSYS if settimeofday or stime fails; just let
70571         them return whatever errno they want to return.
70572         * lib/utimens.c: Include unistd.h, for dup2.
70573         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
70574         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
70575
70576 2005-10-02  Jim Meyering  <jim@meyering.net>
70577
70578         Sync from coreutils.
70579         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
70580         from glibc-2.2.5 that fails for read-only files.
70581
70582 2005-10-02  Jim Meyering  <jim@meyering.net>
70583
70584         Sync from coreutils.
70585         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
70586         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
70587         `#if HAVE_CONFIG_H'.
70588         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
70589         Remove AT_FDCWD test.
70590         Do not consume the fd unless successful.
70591         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
70592         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
70593         block, so that we don't even try to compile it if settimeofday is
70594         available.  This works around a compilation failure on OSF1 V5.1,
70595         due to stime requiring a `long int*' while tv_sec is `int'.
70596
70597 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
70598
70599         Sync from coreutils.
70600         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
70601         against `yes', rather than just testing for nonempty.
70602
70603 2005-10-01  Simon Josefsson  <jas@extundo.com>
70604
70605         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
70606         and Darwin.
70607
70608         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
70609         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
70610         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
70611         freeaddrinfo and gai_strerror are declared by the POSIX headers.
70612         Check if struct addrinfo is declared.
70613
70614 2005-10-01  Simon Josefsson  <jas@extundo.com>
70615
70616         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
70617         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
70618         AI_* and EAI_* definitions.  Protect function declarations.
70619
70620 2005-10-01  Jim Meyering  <jim@meyering.net>
70621
70622         Sync from coreutils.
70623
70624         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
70625         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
70626         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
70627         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
70628         in the inet and nsl libraries.  Required on Solaris 5.7.
70629
70630 2005-10-01  Jim Meyering  <jim@meyering.net>
70631
70632         Sync from coreutils.
70633         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
70634         in the inet and nsl libraries.  Required on Solaris 5.7.
70635
70636 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
70637
70638         * lib/getdelim.c (getdelim): Remove unused variables.
70639
70640 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
70641
70642         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
70643         so that the code works even with ancient cpp.  Portability problem
70644         with GCC 2.7.2.1 reported by Thomas M.Ott.
70645
70646 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
70647
70648         * modules/regex (Depends-on): Add strcase.
70649
70650         * modules/gethostname (Licence): Change from GPL to LGPL, since
70651         gethostname.c is a trivial implementation of a standard library
70652         function.
70653         * modules/poll (License): Change from GPL to LGPL, since it's
70654         derived from LGPL code.
70655
70656 2005-09-27  Jim Meyering  <jim@meyering.net>
70657
70658         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
70659         HAVE_CONFIG_H.
70660
70661         * lib/intprops.h (signed_type_or_expr__): Define.
70662         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
70663         for unsigned types.
70664
70665 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
70666
70667         * lib/verify.h (verify_expr): Remove, replacing with:
70668         (verify_true): New macro that returns true instead of void.
70669         (verify_type__): Remove.
70670         (verify): Use verify_true rather than verify_type__.
70671
70672 2005-09-26  Bruno Haible  <bruno@clisp.org>
70673
70674         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
70675         is necessary.
70676         (lib_SOURCES): Remove mbchar.c.
70677         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
70678         (Files): Add m4/mbrtowc.m4.
70679         * modules/mbiter: Likewise.
70680         * modules/mbuiter: Likewise.
70681
70682 2005-09-26  Bruno Haible  <bruno@clisp.org>
70683
70684         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
70685         compile mbchar.c if they are not both present.
70686         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
70687         * m4/mbiter.m4 (gl_MBITER): Likewise.
70688         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
70689         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
70690         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
70691
70692 2005-09-25  Jim Meyering  <jim@meyering.net>
70693
70694         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
70695         also uses socklen_t.
70696
70697 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
70698
70699         * lib/utimens.c (ENOSYS): Define if not already defined.
70700         (futimens): Support having a null PATH if the file descriptor
70701         is nonnegative.
70702
70703         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
70704         Remove.
70705         (__attribute): Define to empty unless GCC 3.1 or later.
70706         This works around a core dump on OpenBSD 3.4, which has GCC
70707         2.95.3, which dumps core when given __attribute__(()).  It also
70708         simplifies other tests, since we really don't want to bother with
70709         worrying about which ancient version of GCC supported what.
70710         Original problem reported by Yoann Vandoorselaere, with part of
70711         the fix suggested by Derek Price.
70712
70713 2005-09-24  Jim Meyering  <jim@meyering.net>
70714
70715         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
70716         so we can once again use a positive bitfield width of 1 -- now we
70717         don't have to explain why we were using a bitfield width of 2.
70718
70719 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
70720
70721         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
70722         and similarly for the other external symbols.  Problem reported
70723         by James Gallager.
70724
70725         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
70726         bug reported by Jim Meyering.
70727
70728         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
70729         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
70730         not needed, since socklen is a prerequisite module.
70731
70732 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
70733
70734         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
70735         Problem reported by Eric Blake.
70736         (getaddrinfo): Initialize se so that it's not garbage.
70737         Redo internal storage allocation so that it doesn't make unportable
70738         assumptions about alignment.
70739         Fix a memory leak.
70740
70741         * lib/utimens.c (futimens): Use futimesat if available.
70742         Prefer it to futimes since it doesn't have the futimes bug.
70743
70744         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
70745         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
70746         Instead, declare a function that returns a pointer to an array,
70747         and use verify_type__ to declare the size of the array.
70748         Problem and germ of a solution reported by Bruno Haible.
70749         (verify_type__): Use 2, not 1, for bitfield size, to avoid
70750         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
70751
70752 2005-09-23  Jim Meyering  <jim@meyering.net>
70753
70754         Sync from coreutils.
70755         Correct build failure (socklen_t not defined) on at least
70756         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
70757         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
70758
70759 2005-09-23  Jim Meyering  <jim@meyering.net>
70760
70761         * modules/getaddrinfo (Depends-on): Add socklen.
70762
70763 2005-09-23  Bruno Haible  <bruno@clisp.org>
70764
70765         * tests/test-verify.c: New file.
70766
70767 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70768
70769         Sync from coreutils.
70770
70771         * modules/argmatch (Depends-on): Add verify.
70772         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
70773         unistd-safer.
70774         * modules/save-cwd (Depends-on): Likewise.
70775
70776         * modules/openat (Files): Add lib/openat-die.c.
70777         (Depends-on): Remove error, exitfail.
70778         Add dirname.
70779
70780         * modules/verify: New file.
70781         * MODULES.html.sh (Diagnostics <assert.h>): New section,
70782         with "verify" module.
70783
70784 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70785
70786         Sync from coreutils.
70787
70788         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
70789         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
70790         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
70791         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
70792         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
70793         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
70794         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
70795         Don't bother checking for string.h, stdlib.h, unistd.h.
70796         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
70797         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
70798         module's job.
70799         * m4/jm-macros.m4 (gl_MACROS): Likewise.
70800         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
70801
70802         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
70803         (gl_GETDATE): Use it.
70804
70805         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
70806
70807 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70808
70809         Sync from coreutils.
70810
70811         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
70812         stat-time.h.
70813         * lib/argmatch.h: Include verify.h
70814         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
70815         (ARGMATCH_ASSERT): Remove; unused.
70816         * lib/canonicalize.c: Assume STDC_HEADERS.
70817         * lib/exclude.c: Include "strcase.h".
70818         * lib/regex_internal.h [!defined _LIBC]: Likewise.
70819         * lib/getusershell.c: Include stdio--.h rather than stdio.h
70820         and stdio-safer.h.
70821         (getusershell): Call fopen, not fopen_safer.
70822         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
70823         Do not include unistd-safer.h.
70824         (save_cwd): Don't call fd_safer; no longer needed
70825         now that we include fcntl--.h.
70826
70827         * lib/getdate.y (relative_time): New type.
70828         (RELATIVE_TIME_0): New constant.
70829         (parser_control): Use relative_time instead of doing it ourselves.
70830         (%union): Add new relative_time rel member.
70831         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
70832         Now typeless.
70833         (relunit, relunit_snumber): Now of type rel.
70834         (zone, rel, relunit, get_date): Adjust to above changes.
70835
70836         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
70837         Do not include unistd-safer.h.
70838         (getloadavg): Don't call fd_safer; no longer needed
70839         now that we include fcntl--.h.
70840
70841         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
70842         (make_dir_parents): Treat ENOSYS like EEXIST.
70843
70844         Improve quality of diagnostics on restore_cwd failure.
70845         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
70846         (make_dir_parents): Last arg is now int * (for errno), not bool *.
70847         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
70848         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
70849         each time through the loop.  Do not diagnose restore_cwd failure;
70850         that is the caller's job (and perhaps the caller does not care).
70851
70852         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
70853         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
70854         If the file already exists but is not a directory, don't bother
70855         to try to make its parents.
70856         Close potential file descriptor leak if we can't chdir("/") (!).
70857         Don't always return true if chdir($PWD) fails; return true only
70858         if the requested action was done successfully (except for the
70859         chdir($PWD)).
70860         Don't log final directory unless we actually made it.
70861         Refactor to avoid duplicate code to fix up permissions.
70862         Don't attempt to fix up parent permissions if chdir($PWD) fails.
70863
70864         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
70865         to make it a bit faster and (I hope) clearer.
70866         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
70867         Fix bug in formats like %2N.
70868
70869         * lib/verify.h: New file.
70870
70871 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70872
70873         Sync from coreutils.
70874         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
70875
70876 2005-09-22  Jim Meyering  <jim@meyering.net>
70877
70878         Sync from coreutils.
70879
70880         * m4/lstat.m4 (gl_FUNC_LSTAT):
70881         Use AC_LIBSOURCES to require lstat.c and lstat.h.
70882         Remove obsolete comment.
70883         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
70884         * m4/xstrtod.m4: Likewise.
70885
70886         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
70887
70888 2005-09-22  Jim Meyering  <jim@meyering.net>
70889
70890         Sync from coreutils.
70891
70892         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
70893
70894         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
70895         the .tm_year member, since otherwise gcc-4.0 would now warn about
70896         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
70897
70898         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
70899         order to avoid an unsuppressible warning from gcc on 64-bit systems.
70900
70901         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
70902         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
70903         when run in a time zone for which daylight savings time is in effect
70904         for the starting date.
70905
70906         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
70907         stop us from restricting permissions of just-created absolute-named
70908         directories.
70909         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
70910         to restore initial working directory.
70911         * lib/mkdir-p.c (make_dir_parents): New parameter:
70912         different_working_dir, to tell caller if/when we change the working
70913         directory and are unable to return to the initial one.
70914         * lib/mkdir-p.h (make_dir_parents): Update prototype.
70915         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
70916         `return false'.  This fixes a bug introduced on 2004-07-30.
70917
70918         * lib/openat.c (fdopendir): Be sure to close the supplied
70919         file descriptor before returning.  This makes our replacement
70920         implementation a little closer to Solaris's, where fdopendir
70921         ties the file descriptor to the returned DIR* pointer.
70922         * lib/openat.c (unlinkat): New function.
70923         * lib/openat.h (unlinkat): Add prototype.
70924         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
70925         (openat_restore_fail): Rename from openat_restore_die.
70926         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
70927
70928         Provide an alternative to exiting immediately upon save_cwd or
70929         restore_cwd failure.  Now, an application can arrange e.g.,
70930         to perform a longjump in that case.
70931         * lib/openat.c: Include dirname.h.
70932         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
70933         (rpl_openat, fdopendir, fstatat): Call openat_save_die
70934         and openat_restore_die rather than calling error directly.
70935         Don't include "error.h" or "exitfail.h"; they're no longer needed.
70936
70937         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
70938         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
70939         define.
70940
70941         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
70942         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
70943                             int utc, int nanoseconds);
70944         Background:
70945         date should not have to allocate a megabyte of virtual memory to
70946         handle a format argument like +%1048575T.  When implemented with
70947         strftime, it must allocate such a buffer, use strftime to fill it
70948         in, print it, then free it.
70949         With fprintftime, it simply prints everything and exits.
70950         With no need for memory allocation, that's one fewer way to fail.
70951         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
70952         optional field width, not before, so we accept %9:z, not %:9z.
70953         (my_strftime): Be sure to use L_('x') for literals.
70954
70955         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
70956         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
70957         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
70958         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
70959         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
70960         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
70961         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
70962         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
70963         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
70964         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
70965         * lib/xgethostname.c, lib/xreadlink.c:
70966         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
70967
70968         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
70969         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
70970         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
70971         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
70972         and don't include <sys/file.h>).
70973
70974 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
70975
70976         Sync from coreutils.
70977
70978         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
70979         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
70980         [!LDAV_DONE]: Avoid unused variable warning.
70981
70982 2005-09-21  Bruno Haible  <bruno@clisp.org>
70983
70984         * lib/unicodeio.h (unicode_to_mb): New declaration.
70985
70986 2005-09-20  Derek Price  <derek@ximbiot.com>
70987
70988         * lib/getaddrinfo.c: Don't include <netdb.h> included from
70989         getaddrinfo.h.
70990
70991 2005-09-20  Bruno Haible  <bruno@clisp.org>
70992
70993         * gnulib-tool: Remove trailing slashes from the values specified for
70994         --source-base, --m4-base, --tests-base, --aux-dir.
70995         Suggested by Simon Josefsson <jas@extundo.com>.
70996
70997 2005-09-20  Bruno Haible  <bruno@clisp.org>
70998
70999         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
71000         func_modules_to_filelist, func_import, func_create_testdir): Make all
71001         sorting results locale-independent, so that gnulib-cache.m4 doesn't
71002         change when gnulib-tool is invoked in a different locale.
71003
71004 2005-09-19  Simon Josefsson  <jas@extundo.com>
71005
71006         * m4/socklen.m4: Fix typo.
71007
71008 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71009
71010         Use a consistent style for including <config.h>.
71011         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
71012         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
71013         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
71014         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
71015         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
71016         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
71017         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
71018         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
71019         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
71020         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
71021         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
71022         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
71023         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
71024         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
71025         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
71026         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
71027         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
71028         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
71029         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
71030         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
71031         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
71032         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
71033         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
71034         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
71035         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
71036         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
71037         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
71038         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
71039         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
71040         lib/xstrtoumax.c, lib/yesno.c:
71041         Standardize inclusion of config.h.
71042         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
71043         lib/inttostr.h:  Removed inclusion of config.h from header files.
71044         * lib/inttostr.c:  Adjusted in-tree users.
71045         * lib/timespec.h: Remove superfluous warning to include config.h.
71046         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
71047         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
71048         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
71049         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
71050         config.h with HAVE_CONFIG_H.
71051
71052 2005-09-19  Jim Meyering  <jim@meyering.net>
71053
71054         * modules/pathmax (License): Change to LGPL.
71055
71056 2005-09-19  Derek Price  <derek@ximbiot.com>
71057
71058         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
71059
71060 2005-09-19  Bruno Haible  <bruno@clisp.org>
71061
71062         * gnulib-tool (import): Provide default for --tests-base.
71063
71064 2005-09-19  Bruno Haible  <bruno@clisp.org>
71065
71066         * doc/quote.texi: New file, extracted from gnulib.texi.
71067         * doc/ctime.texi: New file, extracted from gnulib.texi.
71068         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
71069         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
71070         * doc/gnulib.texi: Include them.
71071
71072 2005-09-18  Bruno Haible  <bruno@clisp.org>
71073
71074         Portability fix.
71075         * gnulib-tool (func_readlink): New function.
71076         (func_ln_if_changed): Use it.
71077
71078 2005-09-18  Bruno Haible  <bruno@clisp.org>
71079
71080         * gnulib-tool: Support --with-tests also with --import.
71081         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
71082         (func_import): Use variables $testsbase and $inctests. Emit a
71083         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
71084         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
71085         SUBDIRS += $testsdir.
71086         (func_create_testdir): Update.
71087
71088 2005-09-18  Bruno Haible  <bruno@clisp.org>
71089
71090         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
71091         instead of $dry_run.
71092         (func_cp_if_changed, func_mv_if_changed): Remove functions.
71093         (func_ln_if_changed): Don't handle dry-run here.
71094         (func_import): In dry-run mode, detect more precisely which actions
71095         would be performed, and don't use "...ing" verbs.
71096
71097 2005-09-18  Bruno Haible  <bruno@clisp.org>
71098
71099         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
71100         (func_import): Use join on two temporary files instead of three nested
71101         loops, in order to determine which files are new or old.
71102
71103 2005-09-18  Bruno Haible  <bruno@clisp.org>
71104
71105         * gnulib-tool (func_import): Comment out code that spits out the
71106         new files with --dry-run.
71107
71108 2005-09-18  Bruno Haible  <bruno@clisp.org>
71109
71110         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
71111
71112 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71113
71114         * lib/stat-time.h: New file.
71115         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
71116         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
71117         in a different way.
71118         (timespec_cmp): New function.
71119         * lib/utimecmp.c: Include stat-time.h.
71120         (SYSCALL_RESOLUTION): Depend on whether various struct stat
71121         members exist, not on the obsolescent ST_MTIM_NSEC.
71122         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
71123
71124 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71125
71126         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
71127
71128 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71129
71130         * MODULES.html.sh (File system functions): Add stat-time.
71131         * modules/stat-time: New file.
71132         * modules/timespec (Files): Remove m4/st_mtim.m4; this
71133         is now done in a different way, by the stat-time module.
71134         * modules/utimecmp (Depends-on): Add stat-time.
71135
71136 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
71137
71138         * m4/st_mtim.m4: Remove.  Superseded by...
71139         * m4/stat-time.m4: New file.
71140         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
71141         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
71142
71143 2005-09-15  Derek Price  <derek@ximbiot.com>
71144
71145         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
71146
71147 2005-09-15  Derek Price  <derek@ximbiot.com>
71148
71149         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
71150         * lib/regex_internal.c: Ditto, using this...
71151         (__GNUC_PREREQ): ...new macro.
71152         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
71153         using...
71154         (__GNUC_PREREQ): ...this new macro.
71155
71156         * lib/strstr.h: Include string.h. Define strstr as a macro here.
71157
71158 2005-09-15  Derek Price  <derek@ximbiot.com>
71159             Paul Eggert  <eggert@cs.ucla.edu>
71160
71161         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
71162         changes, consolidating in...
71163         * lib/regex_internal.h: ...this file.
71164
71165 2005-09-13  Jim Meyering  <jim@meyering.net>
71166
71167         * lib/canon-host.c: Filter through gnu indent and reword comments
71168         slightly.
71169         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
71170
71171 2005-09-13  Derek Price  <derek@ximbiot.com>
71172
71173         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
71174         failure.
71175         Reported by Jim Meyering  <jim@meyering.net>.
71176
71177 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71178
71179         * lib/base64.c: Typo.
71180         (base64_encode): Put b64str in initialized data section.
71181
71182 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
71183
71184         Merge glibc and coreutils changes into gnulib, plus a few
71185         extra fixes.
71186         * lib/md5.c: Use #error rather than a string.
71187         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
71188         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
71189         (__attribute__): Define to empty for non recent-GCC.
71190         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
71191         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
71192         Renamed from their non-__ counterparts, with new macros replacing
71193         them if not _LIBC.  Add __THROW attribute.
71194         (rol): Remove.
71195         (struct md5_ctx): Align buffer if using GCC.
71196         * lib/sha1.h (struct sha1_ctx): Likewise.
71197         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
71198         The old name was backwards.
71199         (NOTSWAP): Remove; not used.
71200         (rol): New macro, moved here from md5.h.
71201         (sha1_process_block): Remove a FIXME that doesn't make sense.
71202
71203 2005-09-12  Derek Price  <derek@ximbiot.com>
71204
71205         Return usable errors from canon-host.
71206         * lib/canon-host.h: New file.
71207         * lib/canon-host.c (canon_host): Wrap...
71208         (canon_host_r): ...this new function, which now relies exclusively on
71209         getaddrinfo.
71210         (ch_strerror): New function.
71211         (last_cherror): New global.
71212         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
71213         interface.
71214         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
71215         void *.
71216         (freeaddrinfo): Free ai->ai_canonname when set.
71217
71218 2005-09-12  Derek Price  <derek@ximbiot.com>
71219
71220         Make canon-host require getaddrinfo.
71221         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
71222         AC_LIBSOURCE canon-host.h.  Call...
71223         (gl_PREREQ_CANON_HOST): ...this new function, which requires
71224         gl_GETADDRINFO.
71225         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
71226
71227 2005-09-12  Derek Price  <derek@ximbiot.com>
71228
71229         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
71230         LGPL.
71231         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
71232
71233 2005-09-12  Derek Price  <derek@ximbiot.com>
71234
71235         * lib/gai_strerror.c: Include config.h when available.  Include
71236         getaddrinfo.h before other headers to test interface.
71237         Reported by Larry Jones <lawrence.jones@ugs.com>.
71238
71239 2005-09-12  Derek Price  <derek@ximbiot.com>
71240             Paul Eggert  <eggert@cs.ucla.edu>
71241
71242         * modules/glob (Files): Add glob-libc.h.
71243
71244 2005-09-12  Derek Price  <derek@ximbiot.com>
71245             Paul Eggert  <eggert@cs.ucla.edu>
71246
71247         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
71248         glob_.h, glob-libc.h.
71249         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
71250
71251 2005-09-12  Derek Price  <derek@ximbiot.com>
71252             Paul Eggert  <eggert@cs.ucla.edu>
71253
71254         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
71255         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
71256         protecting things that should be done only in gnulib contexts.
71257         * lib/glob_.h: New file, containing only the glob things needed for
71258         gnulib.
71259         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
71260         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
71261         (glob, globfree, glob_pattern_p): Now defined simply in terms of
71262         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
71263         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
71264         and to respect the namespace rules better.
71265
71266 2005-09-08  Simon Josefsson  <jas@extundo.com>
71267
71268         * modules/socklen: New file.
71269
71270 2005-09-08  Simon Josefsson  <jas@extundo.com>
71271
71272         * m4/socklen.m4: New file.
71273
71274 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71275
71276         * modules/utimens (Files): Add m4/utimbuf.m4, since
71277         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
71278         Reported by Sergey Poznyakoff.
71279
71280 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71281
71282         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
71283         definitions, since that's the preferred style in glibc.
71284         Fix a minor spacing issue, and update copyright notice to match
71285         glibc's.
71286
71287 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71288
71289         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
71290
71291 2005-09-06  Simon Josefsson  <jas@extundo.com>
71292
71293         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
71294         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
71295
71296 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71297
71298         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
71299         warning.
71300
71301 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71302
71303         * config/srclist.txt: Add glibc bug 1302.
71304
71305 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
71306
71307         Change bitset word type from unsigned int to unsigned long int,
71308         as this has better performance on typical 64-bit hosts.
71309         Port bitset code to hosts with unusual word sizes.
71310         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
71311         (build_collating_symbol):
71312         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
71313         argument is a bitset.  This is merely a style issue, but it makes
71314         it clearer that an entire array is expected.
71315         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
71316         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
71317         Port to the case where bitset_word is not the same as unsigned int.
71318         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
71319         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
71320         Likewise.
71321         * lib/regexec.c (check_dst_limits_calc_pos_1,
71322         check_subexp_matching_top):
71323         (build_trtable, group_nodes_into_DFAstates):
71324         Likewise.
71325         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
71326         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
71327         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
71328         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
71329         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
71330         * lib/regcomp.c (optimize_subexps, lower_subexp):
71331         Work even if bitset_word has holes in its bitwise representation.
71332         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
71333         * lib/regexec.c (check_dst_limits_calc_pos_1,
71334         check_subexp_matching_top):
71335         Likewise.
71336         * lib/regex_internal.c (re_string_reconstruct):
71337         Don't assume UCHAR_MAX == 255.
71338         * lib/regex_internal.h (bitset_set_all): Likewise.
71339         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
71340         All uses changed.
71341         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
71342         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
71343         All uses changed.
71344         (BITSET_WORD_MAX): New macro.
71345         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
71346         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
71347         (bitset_empty, bitset_copy):
71348         Prefer sizeof (bitset) to multiplying it out ourselves.
71349         (bitset_not_merge): Remove; unused.
71350         (bitset_contain): Return bool, not unsigned int with one bit on.
71351         All callers changed.
71352         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
71353         alignment than re_node_set; do this by defining a new internal
71354         type struct dests_alloc and using it to allocate memory.
71355
71356 2005-09-05  Bruno Haible  <bruno@clisp.org>
71357
71358         * gnulib-tool (func_import): Fix comparison in handling of symbolic
71359         links.
71360
71361 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
71362
71363         * modules/size_max (Makefile.am): Add size_max.h
71364
71365 2005-09-04  Derek Price  <derek@ximbiot.com>
71366
71367         * gnulib-tool (func_import): Fix reversed $symbolic logic.
71368
71369 2005-09-03  Simon Josefsson  <jas@extundo.com>
71370
71371         * gnulib-tool: Fix typo.
71372
71373 2005-09-03  Simon Josefsson  <jas@extundo.com>
71374
71375         * config/srclist.txt: Add glibc bug 1293.
71376
71377 2005-09-03  Derek Price  <derek@ximbiot.com>
71378
71379         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
71380         From Larry Jones <lawrence.jones@ugs.com>.
71381
71382 2005-09-02  Simon Josefsson  <jas@extundo.com>
71383
71384         * modules/socklen: New file.
71385
71386 2005-09-02  Simon Josefsson  <jas@extundo.com>
71387
71388         * modules/havelib: New module.
71389
71390         * modules/gettext, modules/iconv, modules/lock, modules/readline:
71391         Use havelib.
71392
71393 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
71394
71395         Check for arithmetic overflow when calculating sizes, to prevent
71396         some buffer-overflow issues.  These patches are conservative, in the
71397         sense that when I couldn't determine whether an overflow was possible,
71398         I inserted a run-time check.
71399         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
71400         macros.
71401         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
71402         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
71403         (re_xnrealloc, re_x2nrealloc): New inline functions.
71404         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
71405         parse_bracket_exp):
71406         (build_equiv_class, build_charclass): Check for arithmetic overflow
71407         in size expression calculations.
71408         * lib/regex_internal.c (re_string_realloc_buffers):
71409         (build_wcs_upper_buffer, re_node_set_add_intersect):
71410         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
71411         (re_dfa_add_node, register_state): Likewise.
71412         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
71413         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
71414         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
71415         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
71416
71417 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
71418
71419         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
71420         m4/ulonglong.m4.  Problem reported by Martin Lambers.
71421
71422 2005-09-02  Bruno Haible  <bruno@clisp.org>
71423
71424         Support for lib vs. lib64 distinction on biarch platforms.
71425         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
71426         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
71427         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
71428
71429 2005-09-02  Bruno Haible  <bruno@clisp.org>
71430
71431         * gnulib-tool (import): In the other first-use case, provide defaults
71432         as well.
71433
71434 2005-09-02  Bruno Haible  <bruno@clisp.org>
71435
71436         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
71437         patches not yet found in the latest gettext release.
71438
71439 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71440
71441         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
71442         to avoid a collision with bits/local_lim.h in glibc.
71443         All uses changed.  Problem reported by Dmitry V. Levin in
71444         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
71445
71446         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
71447         bugs in int versus size_t comparisons.
71448         (re_string_context_at): Fix bug where the code assumed that
71449         Idx is signed.
71450
71451         Use bool where appropriate.
71452         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
71453         All callers changed.
71454         (calc_eclosure_iter): Likewise, for ROOT arg.
71455         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
71456         (build_charclass_op): Likewise, for NON_MATCH arg.
71457         * lib/regex_internal.c (re_string_allocate, re_string_construct):
71458         (re_string_construct_common): Likewise, for ICASE arg.
71459         * lib/regexec.c (re_search_2_stub, re_search_stub):
71460         Likewise, for RET_LEN arg.
71461         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
71462         (set_regs): Likewise, for FL_BACKTRACK arg.
71463         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
71464         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
71465         (calc_eclosure_iter, parse_bracket_exp):
71466         Use bool for internal variables that are booleans.
71467         * lib/regexec.c (re_search_internal, check_matching,
71468         proceed_next_node):
71469         (set_regs, build_sifted_states, sift_states_bkref):
71470         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
71471         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
71472         (find_collation_sequence_value):
71473         Likewise.
71474         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
71475         (re_node_set_compare):
71476         Return bool, not int. All callers changed.
71477         * lib/regexec.c (check_halt_node_context, check_dst_limits):
71478         (build_trtable, check_node_accept): Likewise.
71479         * lib/regex_internal.h: Include stdbool.h.
71480
71481         Fix bugs uncovered when converting to bool.
71482         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
71483         failure instead of charging ahead blindly.
71484         * lib/regex_internal.c (register_state): Likewise.
71485         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
71486         for freeing internal storage.
71487         (group_nodes_into_DFA_states): Use unsigned int, not int, for
71488         bitset pieces used as boolean, to avoid undefined behavior
71489         on hosts that do int overflow checking.
71490
71491 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71492
71493         * config/srclist.txt: Add glibc bugs 1285-1287.
71494
71495 2005-09-01  Jim Meyering  <jim@meyering.net>
71496
71497         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
71498         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
71499         Require gl_STAT_MACROS, too.
71500
71501 2005-09-01  Bruno Haible  <bruno@clisp.org>
71502
71503         * gnulib-tool (import): In the first-use case, provide defaults.
71504
71505 2005-09-01  Bruno Haible  <bruno@clisp.org>
71506
71507         * gnulib-tool (func_import): Remove the .tmp files.
71508
71509 2005-09-01  Bruno Haible  <bruno@clisp.org>
71510
71511         * gnulib-tool (func_import): Fix handling of symbolic links.
71512
71513 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71514
71515         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
71516         old glibc regex code mishandles strings longer than 2**31 bytes.
71517         This patch fixes this when the regex code is used in gnulib
71518         (i.e., outside glibc).
71519
71520         This patch should not affect the use of the regex code inside
71521         glibc.  No doubt this problem also needs to be handled for glibc
71522         as well, but the result will be an incompatible change to the
71523         glibc ABI, and the old ABI will have to be supported too.  That
71524         can be the the subject for another patch.
71525
71526         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
71527         governing whether the rest of this patch is active.  By default,
71528         the macro is disabled and the patch has no effect.
71529         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
71530         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
71531         (struct re_pattern_buffer, re_search, re_search_2, re_match):
71532         (re_match_2, re_set_registers): Use the new types.
71533         * lib/regex_internal.h (Idx, re_hashval_t): New types.
71534         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
71535         New macros.
71536         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
71537         (re_string_context_at, bin_tree_t, re_dfastate_t):
71538         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
71539         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
71540         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
71541         (re_string_char_size_at, re_string_wchar_at):
71542         (re_string_elem_size_at):
71543         Use the new types and macros to port to 64-bit hosts.
71544         Use unsigned types for internal values, so that the code
71545         mostly works even for arrays larger than SSIZE_MAX.
71546         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
71547         (search_duplicated_node, calc_eclosure_iter, fetch_number):
71548         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
71549         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
71550         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
71551         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
71552         (calc_inveclosure, parse_dup_op, build_range_exp):
71553         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
71554         (fetch_number, create_token_tree, mark_opt_subexp):
71555         Likewise.
71556         * lib/regex_internal.c (re_string_construct_common,
71557         create_ci_newstate):
71558         (create_cd_newstate, re_string_allocate, re_string_construct):
71559         (re_string_realloc_buffers, build_wcs_upper_buffer):
71560         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
71561         (re_string_reconstruct, re_string_peek_byte_case):
71562         (re_string_fetch_byte_case, re_string_context_at):
71563         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
71564         (re_node_set_init_copy, re_node_set_add_intersect):
71565         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71566         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71567         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
71568         (re_acquire_state, re_acquire_state_context, register_state):
71569         Likewise.
71570         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
71571         search_cur_bkref_entry):
71572         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
71573         (re_search_internal, re_search_2_stub, re_search_stub)
71574         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
71575         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
71576         (update_cur_sifted_state, check_dst_limits):
71577         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
71578         (check_subexp_limits, sift_states_bkref, merge_state_array):
71579         (check_subexp_matching_top, get_subexp, get_subexp_sub):
71580         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
71581         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
71582         (expand_bkref_cache, check_node_accept_bytes):
71583         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
71584         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
71585         (acquire_init_state_context, check_halt_node_context):
71586         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
71587         (sift_states_backward, clean_state_log_if_needed):
71588         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
71589         (find_recover_state, transit_state_sb, transit_state_mb):
71590         (transit_state_bkref, build_trtable, match_ctx_clean):
71591         Likewise.
71592         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
71593         to work around an assumption that REG_MISSING is negative.
71594
71595         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
71596         (seek_collating_symbol_entry) [defined _LIBC]:
71597         (lookup_collation_sequence_value) [defined _LIBC]:
71598         (build_range_exp, build_collating_symbol) [defined _LIBC]:
71599         Use prototypes rather than old-style function definitions.
71600         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
71601         (transit_state_sb) [0]:
71602         (find_collation_sequence_value) [defined _LIBC]: Likewise.
71603
71604         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
71605         rm_eo.
71606
71607         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
71608         (optimize_subexps, lower_subexp):
71609         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
71610         since the signed shift might overflow.  Use 1u<<31 instead.
71611         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
71612         Likewise.
71613         * lib/regexec.c (check_dst_limits_calc_pos_1,
71614         check_subexp_matching_top): Likewise.
71615
71616         * lib/regcomp.c (optimize_subexps, lower_subexp):
71617         Use CHAR_BIT rather than 8, for clarity.
71618         * lib/regexec.c (check_dst_limits_calc_pos_1):
71619         (check_subexp_matching_top): Likewise.
71620         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
71621         have to worry about portability issues when shifting it left.
71622         Remove no-longer-needed test for table_size > 0.
71623         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
71624         in a word, as the resulting behavior is undefined.
71625         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
71626         in one case, a <= should have been an <, and in another case the
71627         whole test was missing.
71628         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
71629         the standard name CHAR_BIT.
71630         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
71631         this is not true on one's complement and signed-magnitude hosts.
71632
71633         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
71634         next_last_offset.
71635         (struct re_dfa_t): Remove unused member states_alloc.
71636         * lib/regcomp.c (init_dfa): Don't initialize unused members.
71637
71638 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71639
71640         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
71641         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
71642         and large-file glibc and in 32-bit large-file Solaris.
71643
71644 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71645
71646         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
71647         lengths fit in regoff_t; this isn't true if regoff_t is the same
71648         width as size_t.
71649         * lib/regex.c (re_search_internal): 5th arg is LAST_START
71650         (= START + RANGE) instead of RANGE.  This avoids overflow
71651         problems when regoff_t is the same width as size_t.
71652         All callers changed.
71653         (re_search_2_stub): Check for overflow when adding the
71654         sizes of the two strings.
71655         (re_search_stub): Check for overflow when adding START
71656         to RANGE; if it occurs, substitute the extreme value.
71657
71658 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71659
71660         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
71661
71662 2005-08-31  Jim Meyering  <jim@meyering.net>
71663
71664         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
71665         a pointer-to-const.
71666         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
71667         (register_state): Likewise.
71668         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
71669         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
71670         (group_nodes_into_DFAstates): Likewise.
71671
71672 2005-08-31  Jim Meyering  <jim@meyering.net>
71673
71674         * check-module: Add a FIXME comment.
71675
71676 2005-08-31  Eric Blake  <ebb9@byu.net>
71677
71678         * modules/unistd-safer (Files): Add unistd--.h.
71679         * modules/stdio-safer (Files): Add stdio--.h.
71680
71681 2005-08-31  Derek Price  <derek@ximbiot.com>
71682
71683         * lib/getdelim.c (getdelim): Return EOF on EOF.
71684         Reported by Larry Jones <lawrence.jones@ugs.com>.
71685
71686 2005-08-31  Bruno Haible  <bruno@clisp.org>
71687
71688         Avoid unnecessary diffs in the generated lib/Makefile.am.
71689         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
71690         the generated files.
71691         (func_import): Don't set cmd.
71692
71693 2005-08-31  Bruno Haible  <bruno@clisp.org>
71694
71695         * lib/strstr.c: Include <stddef.h>, for NULL.
71696         * lib/strcasestr.c: Likewise.
71697         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71698
71699 2005-08-31  Bruno Haible  <bruno@clisp.org>
71700
71701         * gnulib-tool: New option --macro-prefix.
71702         (func_import): Use macro_prefix.
71703         (import): Handle option --macro-prefix.
71704
71705 2005-08-31  Bruno Haible  <bruno@clisp.org>
71706
71707         * gnulib-tool (import): Rename most ac_* variables to cached_*.
71708         Also use new variables cached_lgpl, cached_libtool.
71709
71710 2005-08-31  Bruno Haible  <bruno@clisp.org>
71711
71712         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
71713         always instantiating them.
71714
71715 2005-08-31  Bruno Haible  <bruno@clisp.org>
71716
71717         * gnulib-tool (func_import): Read the previous cached settings
71718         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
71719         earlier added by gnulib but are now dropped. Warn when a gnulib file
71720         overwrites a non-gnulib file.
71721
71722 2005-08-31  Bruno Haible  <bruno@clisp.org>
71723
71724         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
71725         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
71726         projects that don't keep autogenerated files in CVS. Put into
71727         actioncmd only the specified modules, not the transitive closure.
71728
71729 2005-08-31  Bruno Haible  <bruno@clisp.org>
71730
71731         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
71732         Create directories that shall be filled.
71733         (import): Don't look for gl_* macros in configure.ac. Recurse across
71734         all directories containing a gnulib-cache.m4 files, if meaningful.
71735
71736 2005-08-31  Bruno Haible  <bruno@clisp.org>
71737
71738         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
71739         (import): Set seen_libtool when we see gl_LIBTOOL.
71740
71741 2005-08-31  Bruno Haible  <bruno@clisp.org>
71742
71743         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
71744         declaration macro definitions from generated gnulib.m4.
71745
71746 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
71747
71748         * lib/iconvme.h: Add prototype for iconv_alloc.
71749
71750 2005-08-29  Simon Josefsson  <jas@extundo.com>
71751
71752         * lib/iconvme.c: Fix errno.
71753
71754 2005-08-29  Bruno Haible  <bruno@clisp.org>
71755
71756         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
71757         that it works when the directory contains spaces.
71758
71759 2005-08-29  Bruno Haible  <bruno@clisp.org>
71760
71761         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
71762
71763 2005-08-29  Bruno Haible  <bruno@clisp.org>
71764
71765         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
71766         Emit more advice.
71767
71768 2005-08-29  Bruno Haible  <bruno@clisp.org>
71769         and Stepan Kasal  <kasal@ucw.cz>
71770
71771         * check-module: If more parameters are given, check each of them
71772         separately; add more exceptions, as noted by Jim Meyering.
71773         (check_module): New procedure.
71774         (%exempt_header): Now contains all exceptions.
71775
71776 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
71777
71778         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
71779
71780 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
71781
71782         * lib/iconvme.c: Split iconv_string into iconv_alloc.
71783
71784 2005-08-28  Bruno Haible  <bruno@clisp.org>
71785
71786         * m4/gnulib-tool.m4: New file.
71787
71788 2005-08-27  Jim Meyering  <jim@meyering.net>
71789
71790         * modules/unistd-safer (Files): Add pipe-safer.c.
71791         * modules/fcntl-safer (Files): Add creat-safer.c.
71792
71793 2005-08-27  Jim Meyering  <jim@meyering.net>
71794
71795         * m4/stdlib-safer.m4: New file.  From coreutils.
71796         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
71797         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
71798         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
71799         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
71800         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
71801
71802 2005-08-27  Jim Meyering  <jim@meyering.net>
71803
71804         * lib/fopen-safer.c: Merge minor changes from coreutils.
71805         * lib/dup-safer.c: Likewise.
71806         * lib/fd-safer.c: Likewise.
71807
71808         Merge from coreutils.
71809         * lib/stdio--.h: New file.
71810         * lib/stdlib--.h: New file.
71811         * lib/mkstemp-safer.c: New file.
71812
71813         GNU tar needs these.
71814         * lib/pipe-safer.c: New file.
71815         * lib/creat-safer.c: New file.
71816         * lib/fcntl--.h (creat): Define to creat_safer.
71817         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
71818         * lib/unistd--.h (pipe): Define to pipe_safer.
71819         * lib/unistd-safer.h: Declare pipe_safer.
71820
71821 2005-08-26  Simon Josefsson  <jas@extundo.com>
71822
71823         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
71824         Haible <bruno@clisp.org>.
71825
71826 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
71827
71828         * lib/regex_internal.h: Remove all references to
71829         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
71830         or better.
71831         (bitset_not, bitset_merge, bitset_not_merge):
71832         (bitset_mask, re_string_allocate, re_string_construct):
71833         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
71834         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
71835         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
71836         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
71837         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71838         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71839         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
71840         (re_acquire_state_context):
71841         Remove unnecessary forward decls.
71842         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
71843         Put __attribute at function definition,
71844         now that the function decl has been removed.
71845         * lib/regex_internal.c (re_string_peek_byte_case):
71846         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
71847         Likewise.
71848
71849 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
71850
71851         * m4/regex.m4: Add AC_PREREQ(2.50).
71852         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
71853
71854 2005-08-25  Simon Josefsson  <jas@extundo.com>
71855
71856         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
71857         __fsetlocking.
71858
71859 2005-08-25  Simon Josefsson  <jas@extundo.com>
71860
71861         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
71862         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
71863         GLIBC specific code.
71864
71865 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71866
71867         Make regex safe for g++.  This fixes one real bug (an "err"
71868         that should have been "*err").  g++ problem reported by
71869         Sam Steingold.
71870         * lib/regex_internal.h (re_calloc): New macro, consistent with
71871         re_malloc etc.  All callers of calloc changed to use re_calloc.
71872         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
71873         not int.  All callers changed.
71874         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
71875         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
71876         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
71877         (find_recover_state): Change "err" to "*err"; this fixes what
71878         appears to be a real bug.
71879         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
71880         versus int.
71881
71882 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71883
71884         * modules/regex (Depends-on): Add malloc, since the code
71885         assumes that !malloc(0) means failure.
71886
71887 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71888
71889         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
71890
71891         alloca modernization/simplification for regex.
71892         * lib/regex.c: Remove portability cruft for alloca.  This no longer
71893         needs to be at the start of the file, and can be moved into
71894         regex_internal.h and simplified.
71895         * lib/regex_internal.h: Include <alloca.h>.
71896         (__libc_use_alloca) [!defined _LIBC]: New macro.
71897         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
71898         now works outside glibc.
71899
71900 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71901
71902         * config/srclist.txt: Add glibc bugs 1241, 1245.
71903
71904 2005-08-25  Jim Meyering  <jim@meyering.net>
71905
71906         * lib/open-safer.c: Include <config.h>.
71907         Otherwise, we'd lose LARGEFILE support in any file using
71908         e.g. "fcntl--.h"
71909
71910 2005-08-25  Bruno Haible  <bruno@clisp.org>
71911
71912         * m4/minmax.m4: Require autoconf 2.52.
71913         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
71914         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
71915         alternatives of translit over the alphabet.
71916         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
71917
71918 2005-08-24  Simon Josefsson  <jas@extundo.com>
71919
71920         * tests/test-getpass.c: New file.
71921
71922 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71923
71924         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
71925         for GNU regex features.
71926
71927 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71928
71929         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
71930         * lib/regex.h (regerror): Likewise.
71931
71932         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
71933         requires this.  (The code never needed it.)
71934
71935         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
71936         All uses of recently-renamed identifiers changed to use the new,
71937         POSIX-compliant names.  The code will build and run just fine
71938         without these changes, but it's better to eat our own dog food
71939         and use the standard-conforming names.
71940
71941         * lib/regex.h: Fix a multitude of POSIX name space violations.
71942         These changes have an effect only for programs that define
71943         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
71944         do not change anything for programs compiled in the normal way.
71945         Also, there is no effect on the ABI.
71946
71947         (_REGEX_SOURCE): New macro.
71948         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
71949         defined and _GNU_SOURCE is not; this fixes a name space violation.
71950
71951         Rename the following macros to obey POSIX requirements.
71952         The old names are still visible as macros if _REGEX_SOURCE is defined.
71953         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
71954         RE_BACKSLASH_ESCAPE_IN_LISTS.
71955         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
71956         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
71957         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
71958         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
71959         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
71960         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
71961         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
71962         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
71963         (REG_INTERVALS): renamed from RE_INTERVALS.
71964         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
71965         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
71966         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
71967         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
71968         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
71969         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
71970         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
71971         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
71972         RE_UNMATCHED_RIGHT_PAREN_ORD.
71973         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
71974         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
71975         (REG_DEBUG): renamed from RE_DEBUG.
71976         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
71977         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
71978         unusual, since we can't clash with the POSIX REG_ICASE.
71979         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
71980         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
71981         (REG_NO_SUB): renamed from RE_NO_SUB.
71982         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
71983         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
71984         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
71985         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
71986         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
71987         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
71988         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
71989         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
71990         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
71991         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
71992         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
71993         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
71994         RE_SYNTAX_POSIX_MINIMAL_BASIC.
71995         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
71996         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
71997         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
71998         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
71999         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
72000         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
72001         (REG_FIXED): Renamed from REGS_FIXED.
72002         (REG_NREGS): Renamed from RE_NREGS.
72003
72004         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
72005         of other REG_* macros, since POSIX says the user is allowed to
72006         #undef these macros selectively.
72007
72008         (reg_errcode_t): Update comment stating what other tables need
72009         to be consistent.
72010
72011         Rename the following enum values to obey POSIX requirements.
72012         The old names are still visible as macros.
72013         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
72014         is not defined, since GNU is supposed to be a superset of POSIX as
72015         much as possible, and since we want reg_errcode_t to be a signed
72016         type for implementation consistency.
72017         (_REG_NOERROR): Renamed from REG_NOERROR.
72018         (_REG_NOMATCH): Renamed from REG_NOMATCH.
72019         (_REG_BADPAT): Renamed from REG_BADPAT.
72020         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
72021         (_REG_ECTYPE): Renamed from REG_ECTYPE.
72022         (_REG_EESCAPE): Renamed from REG_EESCAPE.
72023         (_REG_ESUBREG): Renamed from REG_ESUBREG.
72024         (_REG_EBRACK): Renamed from REG_EBRACK.
72025         (_REG_EPAREN): Renamed from REG_EPAREN.
72026         (_REG_EBRACE): Renamed from REG_EBRACE.
72027         (_REG_BADBR): Renamed from REG_BADBR.
72028         (_REG_ERANGE): Renamed from REG_ERANGE.
72029         (_REG_ESPACE): Renamed from REG_ESPACE.
72030         (_REG_BADRPT): Renamed from REG_BADRPT.
72031         (_REG_EEND): Renamed from REG_EEND.
72032         (_REG_ESIZE): Renamed from REG_ESIZE.
72033         (_REG_ERPAREN): Renamed from REG_ERPAREN.
72034         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
72035         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
72036         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
72037         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
72038
72039         (_REG_RE_NAME, _REG_RM_NAME): New macros.
72040         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
72041         changed.  But support the old name if the new one is not defined
72042         and if _REGEX_SOURCE.
72043
72044         Change the following member names in struct re_pattern_buffer.
72045         The old names are still supported if !_REGEX_SOURCE.
72046         The new names are always supported, regardless of _REGEX_SOURCE.
72047         (re_buffer): Renamed from buffer.
72048         (re_allocated): Renamed from allocated.
72049         (re_used): Renamed from used.
72050         (re_syntax): Renamed from syntax.
72051         (re_fastmap): Renamed from fastmap.
72052         (re_translate): Renamed from translate.
72053         (re_can_be_null): Renamed from can_be_null.
72054         (re_regs_allocated): Renamed from regs_allocated.
72055         (re_fastmap_accurate): Renamed from fastmap_accurate.
72056         (re_no_sub): Renamed from no_sub.
72057         (re_not_bol): Renamed from not_bol.
72058         (re_not_eol): Renamed from not_eol.
72059         (re_newline_anchor): Renamed from newline_anchor.
72060
72061         Change the following member names in struct re_registers.
72062         The old names are still supported if !_REGEX_SOURCE.
72063         The new names are always supported, regardless of _REGEX_SOURCE.
72064         (rm_num_regs): Renamed from num_regs.
72065         (rm_start): Renamed from start.
72066         (rm_end): Renamed from end.
72067
72068         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
72069         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
72070         Prepend __ to parameter names.
72071
72072         Undo yesterday's changes.
72073
72074 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72075
72076         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
72077         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
72078         lib/regex.c.
72079
72080 2005-08-24  Jim Meyering  <jim@meyering.net>
72081
72082         Sync from coreutils.
72083         * m4/fcntl-safer.m4: New file.
72084
72085         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
72086         and object files for this module.
72087
72088 2005-08-24  Jim Meyering  <jim@meyering.net>
72089
72090         Sync from coreutils.
72091         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
72092
72093 2005-08-24  Jim Meyering  <jim@meyering.net>
72094
72095         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
72096         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
72097
72098 2005-08-24  Jim Meyering  <jim@meyering.net>
72099
72100         * modules/fcntl-safer: New module.
72101         * modules/fts (Depends-on): Add fcntl-safer.
72102         * MODULES.html.sh (File descriptor based Input/Output):
72103         Add fcntl-safer.
72104
72105 2005-08-24  Bruno Haible  <bruno@clisp.org>
72106
72107         Support for unit test modules.
72108         * modules/README: Mention tests modules.
72109         * modules/TEMPLATE-TESTS: New file.
72110         * gnulib-tool: New options --extract-tests-module, --with-tests and
72111         --tests-base (unused for the moment).
72112         (testsbase, inctests): New variables.
72113         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
72114         (func_verify_module): Exclude TEMPLATE-TESTS.
72115         (func_verify_nontests_module, func_verify_tests_module): New functions.
72116         (func_get_dependencies): Add implicit dependency for tests modules.
72117         (func_get_tests_module): New function.
72118         (func_modules_transitive_closure): When --with-tests was specified,
72119         include the unit tests as well, unless explicitly avoided.
72120         (func_emit_lib_Makefile_am): Ignore the tests modules here.
72121         (func_emit_tests_Makefile_am): New function.
72122         (func_create_testdir): When --with-tests was specified, emit a
72123         tests/ directory.
72124         * MODULES.html.sh (Future developments): Update.
72125
72126 2005-08-24  Bruno Haible  <bruno@clisp.org>
72127
72128         * modules/tls-tests: New file.
72129         * tests/test-tls.c: New file, from GNU gettext.
72130
72131 2005-08-24  Bruno Haible  <bruno@clisp.org>
72132
72133         * modules/lock-tests: New file.
72134         * tests/test-lock.c: New file, from GNU gettext.
72135
72136 2005-08-24  Bruno Haible  <bruno@clisp.org>
72137
72138         * lib/lock.h: Add multiple inclusion guard.
72139         * lib/tls.h: Add multiple inclusion guard.
72140
72141 2005-08-24  Bruno Haible  <bruno@clisp.org>
72142
72143         * gnulib-tool: Add support for the --aux-dir option to
72144         --create-testdir, --create-megatestdir, --test, --megatest.
72145         (func_create_testdir, func_create_megatestdir): Optionally emit a
72146         AC_CONFIG_AUX_DIR directive.
72147         (create-testdir, create-megatestdir, test, megatest): Provide a
72148         default value for $auxdir.
72149
72150 2005-08-24  Bruno Haible  <bruno@clisp.org>
72151
72152         * gnulib-tool (import): Use compound statement instead of subshell
72153         where possible.
72154
72155 2005-08-24  Bruno Haible  <bruno@clisp.org>
72156
72157         * gnulib-tool (import): Change --aux-dir default to "build-aux".
72158
72159 2005-08-24  Bruno Haible  <bruno@clisp.org>
72160
72161         * gnulib-tool (func_version): Update.
72162
72163 2005-08-24  Bruno Haible  <bruno@clisp.org>
72164
72165         * gnulib-tool (func_import, func_create_testdir,
72166         func_create_megatestdir): Quote all autoconf macro arguments.
72167
72168 2005-08-24  Bruno Haible  <bruno@clisp.org>
72169
72170         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
72171         option --force, because --force causes the aclocal.m4 of each
72172         subdirectory to be newer than the corresponding config.h.in.
72173
72174 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72175
72176         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
72177         All contents moved to gl_REGEX.
72178         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
72179         assume that it does.
72180
72181 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72182
72183         * lib/regex.h (REG_NOSYS)
72184         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
72185         Define, since POSIX requires it as of 2001.
72186         (_REG_ENOSYS)
72187         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
72188         New private symbol, used to keep the enum signed in all cases.
72189         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
72190         Youngman in
72191         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
72192
72193         * lib/regex_internal.c (re_string_skip_chars, register_state):
72194         (calc_state_hash):
72195         Remove forward decls; no longer needed now that we use prototypes.
72196         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
72197         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
72198         (clean_state_log_if_needed): Likewise.
72199
72200 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72201
72202         * config/srclist.txt: Add glibc bugs 1231-1233.
72203
72204 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72205
72206         Fix problems reported by Sam Steingold in
72207         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
72208         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
72209         assumed that reg_errcode_t is a signed type, which is not
72210         necessarily true if _XOPEN_SOURCE is not defined.
72211         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
72212         since some compilers warn about it otherwise.
72213
72214 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72215
72216         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
72217         (init_word_char, create_initial_state, duplicate_node_closure):
72218         (fetch_token, peek_token_bracket, build_range_exp):
72219         (build_collating_symbol): Remove forward decls; no longer needed
72220         now that we use prototypes.
72221
72222         * lib/regcomp.c:
72223         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
72224         (re_compile_fastmap_iter, regcomp, regerror, regfree):
72225         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
72226         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
72227         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
72228         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
72229         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
72230         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
72231         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
72232         (build_range_exp, build_collating_symbol, parse_bracket_exp):
72233         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
72234         (build_charclass, build_charclass_op, fetch_number, create_tree):
72235         (create_token_tree, mark_opt_subexp, duplicate_tree):
72236         Use prototypes rather than old-style definitions.
72237
72238         * lib/regex_internal.c:
72239         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
72240         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
72241         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
72242         (re_string_reconstruct, re_string_peek_byte_case):
72243         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
72244         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
72245         (re_node_set_init_copy, re_node_set_add_intersect):
72246         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72247         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72248         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
72249         (re_acquire_state, re_acquire_state_context, register_state):
72250         (create_ci_newstate, create_cd_newstate, free_state):
72251         Likewise.
72252         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
72253         re_search_2):
72254         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
72255         (re_search_internal, prune_impossible_nodes):
72256         (acquire_init_state_context, check_matching, static):
72257         (check_halt_node_context, check_halt_state_context, proceed_next_node):
72258         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
72259         (update_regs, sift_states_backward, build_sifted_states):
72260         (clean_state_log_if_needed, merge_state_array):
72261         (update_cur_sifted_state, add_epsilon_src_nodes):
72262         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
72263         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
72264         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
72265         (find_recover_state, check_subexp_matching_top, transit_state_mb):
72266         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
72267         (check_arrival, check_arrival_add_next_nodes):
72268         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
72269         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
72270         (check_node_accept_bytes, check_node_accept, extend_buffers):
72271         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
72272         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
72273         (sift_ctx_init):
72274         Likewise.
72275
72276         * lib/regex_internal.h:
72277         (re_string_allocate, re_string_construct, re_string_reconstruct):
72278         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
72279         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
72280         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
72281         (re_string_context_at, re_string_peek_byte_case):
72282         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
72283         is defined, since we now use prototypes always.
72284
72285         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
72286         C89 or better.  All uses removed.
72287
72288 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72289
72290         * config/srclist.txt: Add glibc bugs 1220-1227.
72291
72292 2005-08-20  Jim Meyering  <jim@meyering.net>
72293
72294         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
72295         of unused local, dfa.
72296
72297 2005-08-20  Bruno Haible  <bruno@clisp.org>
72298
72299         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
72300
72301 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72302
72303         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
72304         (re_node_set_insert_last, re_dfa_add_node):
72305         Rename local variables to avoid GCC shadowing warnings.
72306
72307 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72308
72309         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
72310         [defined lint]: Suppress bogus uninitialized-variable warnings.
72311
72312         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
72313         and let the caller return REG_ESPACE if out of space.  This
72314         removes an uninitialied-variable warning with GCC 4.0.1, and also
72315         avoids taking the address of a local variable.  All callers
72316         changed.
72317
72318 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72319
72320         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
72321         $LIBCSRC/posix/regexec.c.
72322         Add glibc bug 1217 for regcomp.c.
72323
72324 2005-08-19  Jim Meyering  <jim@meyering.net>
72325
72326         * lib/regexec.c (proceed_next_node): Redo local variables to
72327         avoid GCC shadowing warnings.
72328
72329 2005-08-18  Bruno Haible  <bruno@clisp.org>
72330
72331         * lib/strstr.c (strstr): Fix return value in multibyte case.
72332         * lib/strcasestr.c (strcasestr): Likewise.
72333
72334 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72335
72336         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
72337
72338 2005-08-17  Jim Meyering  <jim@meyering.net>
72339
72340         Make the %s format (seconds since the epoch) work for a negative
72341         number and when used with a zero-padded field width, e.g. %015s.
72342
72343         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
72344         label so that it precedes the code to set `digits'.  Otherwise,
72345         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
72346         print `00-22'.  Now, it prints `-0022', as it should.
72347
72348 2005-08-17  Bruno Haible  <bruno@clisp.org>
72349
72350         * modules/strstr (Files): Add m4/mbrtowc.m4.
72351         (Depends-on): Add mbuiter.
72352
72353 2005-08-17  Bruno Haible  <bruno@clisp.org>
72354
72355         * modules/strcasestr: New file.
72356         * MODULES.html.sh (String handling, based on ANSI C 89): Add
72357         strcasestr.
72358
72359 2005-08-17  Bruno Haible  <bruno@clisp.org>
72360
72361         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
72362
72363 2005-08-17  Bruno Haible  <bruno@clisp.org>
72364
72365         * modules/mbuiter: New file.
72366         * MODULES.html.sh (Extended multibyte and wide character utilities):
72367         Add mbuiter.
72368
72369 2005-08-17  Bruno Haible  <bruno@clisp.org>
72370
72371         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
72372         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
72373
72374 2005-08-17  Bruno Haible  <bruno@clisp.org>
72375
72376         * m4/strcasestr.m4: New file.
72377
72378 2005-08-17  Bruno Haible  <bruno@clisp.org>
72379
72380         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
72381         * lib/strstr.c: Completely rewritten, with multibyte locale support.
72382
72383 2005-08-17  Bruno Haible  <bruno@clisp.org>
72384
72385         * lib/strcasestr.h: New file.
72386         * lib/strcasestr.c: New file.
72387
72388 2005-08-17  Bruno Haible  <bruno@clisp.org>
72389
72390         * lib/strcasecmp.c: Use mbuiter.h.
72391
72392 2005-08-17  Bruno Haible  <bruno@clisp.org>
72393
72394         * lib/mbuiter.h: New file.
72395
72396 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
72397
72398         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
72399         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
72400         and gl_GETOPT are both invoked via different paths (as happens
72401         with GNU tar CVS because it uses both argp and getopt), the former
72402         wins.
72403
72404 2005-08-16  Bruno Haible  <bruno@clisp.org>
72405
72406         * modules/tls: New file.
72407         * MODULES.html.sh (Multithreading): Add tls.
72408
72409 2005-08-16  Bruno Haible  <bruno@clisp.org>
72410
72411         * modules/strnlen1: New file.
72412         * MODULES.html.sh (String handling): Add strnlen1.
72413
72414 2005-08-16  Bruno Haible  <bruno@clisp.org>
72415
72416         * modules/strcase (Files): Add m4/mbrtowc.m4.
72417         (Depends-on): Add strnlen1, mbchar.
72418
72419 2005-08-16  Bruno Haible  <bruno@clisp.org>
72420
72421         * modules/mbiter: New file.
72422         * MODULES.html.sh (Extended multibyte and wide character utilities):
72423         Add mbiter.
72424
72425 2005-08-16  Bruno Haible  <bruno@clisp.org>
72426
72427         * modules/mbfile: New file.
72428         * MODULES.html.sh (Extended multibyte and wide character utilities):
72429         Add mbfile.
72430
72431 2005-08-16  Bruno Haible  <bruno@clisp.org>
72432
72433         * modules/mbchar: New file.
72434         * MODULES.html.sh (Extended multibyte and wide character utilities):
72435         New section.
72436
72437 2005-08-16  Bruno Haible  <bruno@clisp.org>
72438
72439         * m4/tls.m4: New file, from GNU gettext.
72440
72441 2005-08-16  Bruno Haible  <bruno@clisp.org>
72442
72443         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
72444         always.
72445         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
72446
72447 2005-08-16  Bruno Haible  <bruno@clisp.org>
72448
72449         * m4/mbiter.m4: New file.
72450
72451 2005-08-16  Bruno Haible  <bruno@clisp.org>
72452
72453         * m4/mbfile.m4: New file.
72454
72455 2005-08-16  Bruno Haible  <bruno@clisp.org>
72456
72457         * m4/mbchar.m4: New file.
72458
72459 2005-08-16  Bruno Haible  <bruno@clisp.org>
72460
72461         * lib/tls.h: New file, from GNU gettext.
72462         * lib/tls.c: New file, from GNU gettext.
72463
72464 2005-08-16  Bruno Haible  <bruno@clisp.org>
72465
72466         * lib/strnlen1.h: New file.
72467         * lib/strnlen1.c: New file.
72468
72469 2005-08-16  Bruno Haible  <bruno@clisp.org>
72470
72471         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
72472         (mbi_init): Update.
72473         (mbi_avail, mbi_advance): Let the iteration end before the terminating
72474         NUL byte, not after it.
72475
72476 2005-08-16  Bruno Haible  <bruno@clisp.org>
72477
72478         * lib/strcase.h (strcasecmp): Add note in comments.
72479         * lib/strncasecmp.c: Use code from strcasecmp.c.
72480         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
72481         (strcasecmp): Work correctly in multibyte locales.
72482
72483 2005-08-16  Bruno Haible  <bruno@clisp.org>
72484
72485         * lib/mbiter.h: New file.
72486
72487 2005-08-16  Bruno Haible  <bruno@clisp.org>
72488
72489         * lib/mbfile.h: New file.
72490
72491 2005-08-16  Bruno Haible  <bruno@clisp.org>
72492
72493         * lib/mbchar.h: New file.
72494         * lib/mbchar.c: New file.
72495
72496 2005-08-16  Bruno Haible  <bruno@clisp.org>
72497
72498         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
72499         the valid ones. Makes the comparison operations transitive:
72500         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
72501         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
72502
72503 2005-08-15  Simon Josefsson  <jas@extundo.com>
72504
72505         * modules/ssize_t (License): Change to 'unlimited'.
72506
72507         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
72508
72509 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72510
72511         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
72512         Add comments for each pending glibc patch.
72513
72514 2005-08-15  Bruno Haible  <bruno@clisp.org>
72515
72516         * lib/regex.h (__restrict_arr): Don't define to __restrict if
72517         __cplusplus is defined.
72518
72519 2005-08-14  Jim Meyering  <jim@meyering.net>
72520
72521         Sync from coreutils.
72522
72523         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
72524         Use the hash-table-based cycle-detection code not just when
72525         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
72526         Reported by James Youngman in
72527         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
72528         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
72529         FTS_TIGHT_CYCLE_CHECK.
72530         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
72531         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
72532         once again.
72533         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
72534         * lib/fts.c (fd_safer): Remove decl.
72535         Include fcntl--.h rather than unistd-safer.h
72536         (fts_safe_changedir): Don't call fd_safer; no longer needed
72537         now that we include fcntl--.h.
72538
72539 2005-08-12  Simon Josefsson  <jas@extundo.com>
72540
72541         * modules/getndelim2: Use ssize_t module.
72542         * modules/getnline: Likewise.
72543         * modules/safe-read: Likewise.
72544         * modules/xreadlink: Likewise.
72545
72546         * modules/ssize_t: New file.
72547
72548 2005-08-12  Simon Josefsson  <jas@extundo.com>
72549
72550         * m4/readline.m4: Look for termcap, curses or ncurses if required.
72551
72552 2005-08-12  Simon Josefsson  <jas@extundo.com>
72553
72554         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72555         ssize_t.
72556
72557 2005-08-12  Simon Josefsson  <jas@extundo.com>
72558
72559         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
72560         readline, getdelim and check_version.
72561         (Support for systems lacking ISO C 99: Sizes of integer types):
72562         Add size_max.
72563
72564 2005-08-12  Bruno Haible  <bruno@clisp.org>
72565
72566         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
72567
72568 2005-08-11  Simon Josefsson  <jas@extundo.com>
72569
72570         * modules/readline: New file.
72571
72572         * modules/strnlen (Files): Add strnlen.h.
72573
72574 2005-08-11  Simon Josefsson  <jas@extundo.com>
72575
72576         * m4/readline.m4: New file.
72577
72578 2005-08-11  Simon Josefsson  <jas@extundo.com>
72579
72580         * lib/readline.h, readline.c: New file.
72581
72582 2005-08-11  Simon Josefsson  <jas@extundo.com>
72583
72584         * doc/gnulib.texi (Initial import, Finishing touches): Mention
72585         gl_AVOID.
72586
72587 2005-08-11  Bruno Haible  <bruno@clisp.org>
72588
72589         * lib/strnlen.h (strnlen): Change parameter name to match comment.
72590
72591 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
72592
72593         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
72594
72595 2005-08-10  Simon Josefsson  <jas@extundo.com>
72596
72597         * tests/test-iconvme.c: New file.
72598
72599 2005-08-10  Simon Josefsson  <jas@extundo.com>
72600
72601         * m4/strnlen.m4: New file.
72602
72603         * m4/strndup.m4: Don't check for strnlen declaration, done in
72604         strnlen.m4.
72605
72606 2005-08-10  Simon Josefsson  <jas@extundo.com>
72607
72608         * lib/strndup.c: Use strnlen.h.
72609
72610         * lib/strnlen.h: New file.
72611
72612 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72613
72614         * README: Typos.
72615
72616 2005-08-02  Simon Josefsson  <jas@extundo.com>
72617
72618         * modules/readline: New file.
72619
72620 2005-08-02  Simon Josefsson  <jas@extundo.com>
72621
72622         * modules/getdelim: New file.
72623
72624         * modules/getline: Rewrite, don't use getndelim2.
72625
72626 2005-08-02  Simon Josefsson  <jas@extundo.com>
72627
72628         * m4/getline.m4: Separate out getdelim stuff into separate module.
72629
72630         * m4/getdelim.m4: New file.
72631
72632 2005-08-02  Simon Josefsson  <jas@extundo.com>
72633
72634         * lib/getline.h, getline.c: Rewrite.
72635
72636         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
72637
72638 2005-07-31  Bruno Haible  <bruno@clisp.org>
72639
72640         * lib/lock.h (gl_lock_initializer): New macro.
72641         (gl_lock_define_initialized): Use it.
72642         (gl_rwlock_initializer): New macro.
72643         (gl_rwlock_define_initialized): Use it.
72644         (gl_recursive_lock_initializer): New macro.
72645         (gl_recursive_lock_define_initialized): Use it.
72646
72647 2005-07-30  Karl Berry  <karl@gnu.org>
72648
72649         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
72650         Report from Ben Pfaff, regarding getopt.
72651
72652 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
72653
72654         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
72655         normal way.
72656         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
72657         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
72658         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
72659         (gl_GETOPT): Use the new macros.  Most of the implementation
72660         is moved to the new macros.  This is for programs like Emacs
72661         that don't want all the functionality of gl_GETOPT.
72662
72663 2005-07-26  Bruno Haible  <bruno@clisp.org>
72664
72665         * m4/lock.m4: Update from GNU gettext.
72666
72667 2005-07-26  Bruno Haible  <bruno@clisp.org>
72668
72669         * lib/lock.h: Update from GNU gettext.
72670         * lib/lock.c: Update from GNU gettext.
72671
72672 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
72673
72674         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
72675         obsolescent AC_TRY_RUN.  Include the default includes files, for
72676         'exit'.
72677
72678 2005-07-24  Bruno Haible  <bruno@clisp.org>
72679
72680         * modules/visibility: New file.
72681         * MODULES.html.sh (Misc): Add visibility.
72682
72683 2005-07-24  Bruno Haible  <bruno@clisp.org>
72684
72685         * m4/visibility.m4: New file.
72686
72687 2005-07-24  Bruno Haible  <bruno@clisp.org>
72688
72689         * doc/visibility.texi: New file.
72690
72691 2005-07-22  Bruno Haible  <bruno@clisp.org>
72692
72693         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
72694         $(ALLOCA_H), redundant through BUILT_SOURCES.
72695         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
72696         redundant through BUILT_SOURCES.
72697         * modules/byteswap (Makefile.am): Remove explicit dependency on
72698         $(BYTESWAP_H), redundant through BUILT_SOURCES.
72699         * modules/fnmatch (Makefile.am): Remove explicit dependency on
72700         $(FNMATCH_H), redundant through BUILT_SOURCES.
72701         * modules/getopt (Makefile.am): Remove explicit dependency on
72702         $(GETOPT_H), redundant through BUILT_SOURCES.
72703         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
72704         redundant through BUILT_SOURCES.
72705         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
72706         redundant through BUILT_SOURCES.
72707         * modules/stdbool (Makefile.am): Remove explicit dependency on
72708         $(STDBOOL_H), redundant through BUILT_SOURCES.
72709         * modules/stdint (Makefile.am): Remove explicit dependency on
72710         $(STDINT_H), redundant through BUILT_SOURCES.
72711         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
72712         Remove explicit dependency on $(SYSEXITS_H).
72713         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
72714
72715 2005-07-18  Simon Josefsson  <jas@extundo.com>
72716
72717         * lib/check-version.c (check_version): Accept identical versions too.
72718
72719 2005-07-18  Bruno Haible  <bruno@clisp.org>
72720
72721         * modules/lock: New file.
72722         * MODULES.html.sh (Multithreading): New section.
72723
72724 2005-07-18  Bruno Haible  <bruno@clisp.org>
72725
72726         * m4/lock.m4: New file, from GNU gettext.
72727
72728 2005-07-18  Bruno Haible  <bruno@clisp.org>
72729
72730         * lib/lock.h: New file, from GNU gettext.
72731         * lib/lock.c: New file, from GNU gettext.
72732
72733 2005-07-18  Bruno Haible  <bruno@clisp.org>
72734
72735         * lib/lock.h (gl_once_t): New type.
72736         (gl_once_define, gl_once): New macros.
72737         * lib/lock.c (fresh_once): New variable.
72738         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
72739         functions.
72740
72741 2005-07-16  Simon Josefsson  <jas@extundo.com>
72742
72743         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
72744         workaround, suggested by Bruno.
72745
72746 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
72747
72748         * modules/xalloc (Depends-on): Add xalloc-die.
72749         * modules/xvasprintf (Depends-on): Add xalloc-die.
72750
72751 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
72752
72753         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
72754         with a minor change.
72755
72756 2005-07-15  Bruno Haible  <bruno@clisp.org>
72757
72758         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
72759         When using lib/poll.c, define poll as rpl_poll.
72760
72761 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
72762
72763         * modules/argp (Depends-on): Remove unlocked-io.
72764
72765 2005-07-14  Derek Price  <derek@ximbiot.com>
72766
72767         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
72768         for glob symlink bug.
72769
72770 2005-07-14  Bruno Haible  <bruno@clisp.org>
72771
72772         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
72773         Instead, test for *_unlocked function declarations directly.
72774
72775 2005-07-11  Simon Josefsson  <jas@extundo.com>
72776
72777         * modules/size_max: New file.
72778
72779         * modules/xsize: Depend on size_max module for size_max.m4.
72780
72781 2005-07-11  Simon Josefsson  <jas@extundo.com>
72782
72783         * lib/size_max.h: New file.
72784
72785 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
72786
72787         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
72788         copyright symbol and the year.
72789         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
72790         (version_etc_va): Use parameterized copyright notice.
72791         Reword to conform to the current GNU coding standards.
72792
72793 2005-07-11  Karl Berry  <karl@gnu.org>
72794
72795         * doc/gnulib.texi (Quoting): new node.
72796         (Initial import): more info, from Patrice.
72797
72798 2005-07-11  Bruno Haible  <bruno@clisp.org>
72799
72800         * gnulib-tool (func_usage): Document option --avoid.
72801         (Command line options): Handle --avoid.
72802         (func_acceptable): New function.
72803         (func_modules_transitive_closure): Use it.
72804
72805 2005-07-11  Bruno Haible  <bruno@clisp.org>
72806
72807         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
72808         Reported by Jim Meyering.
72809
72810 2005-07-10  Bruno Haible  <bruno@clisp.org>
72811
72812         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
72813         Needed when size_t is smaller than 'unsigned int'.
72814         Reported by Paul Eggert.
72815
72816 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72817
72818         * modules/argp (Depends-on): Add unlocked-io
72819
72820 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72821
72822         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
72823         block of defines.
72824
72825 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
72826
72827         * config/srclist.txt: Comment out regcomp.c, since we have a porting
72828         fix now.
72829
72830 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
72831         and Paul Eggert  <eggert@cs.ucla.edu>
72832
72833         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
72834         in wint_t, not wchar_t.  Remove now-unnecessary cast.
72835
72836 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72837
72838         * modules/regex (Files): Add lib/regex_internal.c,
72839         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
72840         (Depends-on): Add extensions.
72841         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
72842
72843 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72844
72845         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
72846         pathconf.
72847         * m4/same.m4 (gl_SAME): Likewise.
72848         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
72849
72850         * m4/regex.m4: Adjust to new libc regex implementation.
72851         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
72852         all the .c and .h parts of (the new) regex.
72853         Quote the m4 stuff better.
72854         Check for RE_ICASE bug of old gnulib.
72855         Check for REG_STARTEND of recent libc.
72856         Rename local variables from jm_* to gl_*.
72857         Quote operand of "test -f".
72858         Say "recent enough" version of libc, not "version 2".
72859         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
72860         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
72861         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
72862         Remove check for btowc, isascii.
72863         Require AM_LANGINFO_CODESET.
72864
72865 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72866
72867         * lib/regex.c, regex.h: Sync from libc.
72868         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
72869         * lib/regexec.c:
72870         New files, synced from libc, except that regex_internal.h
72871         currently has a small porting fix.
72872
72873 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72874
72875         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
72876         regex_internal.c, regexec.c.
72877         Add regex_internal.h too, but as a comment, since the libc version
72878         is currently broken in gnulib mode.
72879
72880 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72881
72882         Support programs like Emacs that use gnulib but not gettext.
72883         * MODULES.html.sh (Internationalization functions): Add gettext-h.
72884         * modules/gettext-h: New file.
72885         * modules/gettext (Files): Remove lib/gettext.h.
72886         (Depends-on): Add gettext-h.
72887         (Makefile.am): Remove lib_SOURCES.
72888         * modules/argmatch, modules/c-stack, modules/closeout:
72889         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
72890         * modules/execute, modules/file-type, modules/getaddrinfo:
72891         * modules/getopt, modules/human, modules/javacomp:
72892         * modules/javaexec, modules/mkdir-p, modules/obstack:
72893         * modules/openat, modules/pagealign_alloc, modules/pipe:
72894         * modules/quotearg, modules/regex, modules/rpmatch:
72895         * modules/unicodeio, modules/userspec, modules/version-etc:
72896         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
72897         * modules/xsetenv:
72898         Depend on gettext-h, not gettext.
72899
72900 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72901
72902         * gnulib-tool (func_import): Add support for 'public domain' license.
72903         * modules/alloca, modules/atexit, modules/memmove:
72904         Now public domain, not GPL.
72905         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
72906         * modules/realloc, modules/strerror, modules/strtod:
72907         Now LGPL, not GPL.
72908
72909 2005-07-05  Bruno Haible  <bruno@clisp.org>
72910
72911         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
72912         autoconf CVS. Needed for mingw.
72913
72914 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72915
72916         Remove the dependency of the strftime module on the tzset module.
72917         * modules/strftime (Depends-on): Remove dependency on tzset.
72918
72919 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72920
72921         Remove the dependency of the strftime module on the tzset module.
72922         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
72923         gl_FUNC_TZSET_CLOBBER.
72924
72925 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72926
72927         Remove the dependency of the strftime module on the tzset module.
72928         * lib/strftime.c (my_strftime)
72929         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
72930         Copy the input structure, to work around some of the bug with
72931         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
72932         Solaris releases, you should also use the tzset module, but we won't
72933         require it as a dependency any more since we don't want LGPLed code
72934         to depend on GPLed code.
72935
72936 2005-07-02  Jim Meyering  <jim@meyering.net>
72937
72938         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
72939         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
72940         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
72941         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
72942
72943 2005-07-02  Jim Meyering  <jim@meyering.net>
72944
72945         * lib/backupfile.c (backup_args): Change a `0' to NULL.
72946
72947 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72948
72949         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
72950         declares only 'struct timespec;' (!).
72951
72952 2005-07-01  Jim Meyering  <jim@meyering.net>
72953
72954         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
72955         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
72956         * lib/save-cwd.c, tempname.c:
72957         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
72958         and don't include <sys/file.h>).
72959
72960 2005-06-29  Jim Meyering  <jim@meyering.net>
72961
72962         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
72963         type name.  Use the variable name instead.
72964         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
72965         Likewise.
72966
72967 2005-06-28  Simon Josefsson  <jas@extundo.com>
72968
72969         * modules/check-version (Files): Add check-version.m4.
72970
72971 2005-06-28  Simon Josefsson  <jas@extundo.com>
72972
72973         * m4/check-version.m4: New file, suggested by Jim Meyering
72974         <jim@meyering.net>.
72975
72976 2005-06-28  Simon Josefsson  <jas@extundo.com>
72977
72978         * lib/check-version.h, lib/check-version.c: New files.
72979
72980 2005-06-28  Simon Josefsson  <jas@extundo.com>
72981
72982         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
72983         collision with global variable.  Better indentation.  Don't
72984         increment buffer pointer beyond buffer end.  Based on comments
72985         from Paul Eggert <eggert@cs.ucla.edu>.
72986
72987         * lib/base64.h: Indent.
72988
72989 2005-06-28  Simon Josefsson  <jas@extundo.com>
72990
72991         * doc/gnulib.texi (Library version handling): New section.
72992
72993 2005-06-28  Jim Meyering  <jim@meyering.net>
72994
72995         * check-module (find_included_lib_files): Hard-code another
72996         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
72997         but modules/fts-lgpl (correctly) does not list those files.
72998
72999         * modules/canonicalize (Files): Add lib/pathmax.h.
73000
73001 2005-06-25  Simon Josefsson  <jas@extundo.com>
73002
73003         * modules/check-version: New file.
73004
73005 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
73006
73007         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
73008         initializer of struct addrinfo, as an indication that we don't
73009         care how many members the structure has.
73010
73011 2005-06-24  Derek Price  <derek@ximbiot.com>
73012         and Bruno Haible  <bruno@clisp.org>
73013
73014         Remove stat module & update lstat.
73015         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
73016         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73017         * m4/stat.m4: Remove this file.
73018
73019 2005-06-24  Derek Price  <derek@ximbiot.com>
73020         and Bruno Haible  <bruno@clisp.org>
73021
73022         Remove stat module & update lstat.
73023         * lib/stat.c: Remove this file...
73024         (slash_aware_lstat): ...moving this content and its support...
73025         * lib/lstat.c (rpl_lstat): ...into here.
73026         * lib/lstat.h: New file.
73027
73028 2005-06-24  Derek Price  <derek@ximbiot.com>
73029         and Bruno Haible  <bruno@clisp.org>
73030
73031         Remove stat module & update lstat.
73032         * config/srclist.txt (libc sources): Remove stat.
73033
73034 2005-06-24  Derek Price  <derek@ximbiot.com>
73035         and Bruno Haible  <bruno@clisp.org>
73036
73037         Remove stat module & update lstat.
73038         * MODULES.html.sh (stat): Remove.
73039         * MODULES.html: Regenerated.
73040         * modules/lstat (Description): Correct function name.
73041         (Files): Add "lstat.h".
73042         (Depends-on): Remove stat, add xalloc, stat-macros.
73043         * modules/stat: Remove this file.
73044         (Include): Add "lstat.h", remove <sys/stat.h>.
73045
73046 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
73047
73048         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
73049         (ranged_convert): Don't save conversion in a temporary struct.
73050         This causes a warning with GCC 4.0.0, and anyway in the typical
73051         case it's not worth the extra 100 bytes or so of code.
73052         (ranged_convert, __mktime_internal): When calling a function via a
73053         pointer P, use P () rather than (*P) (), as we now assume C89 or
73054         better.
73055
73056 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73057
73058         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
73059         "who -r" failed to give output.  Problem reported by Tim Waugh.
73060
73061         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
73062         (xcalloc): Use it to avoid needless tests.
73063         Problem reported by Jim Meyering.
73064
73065 2005-06-20  Derek Price  <derek@ximbiot.com>
73066
73067         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
73068         unnecessary for Autoconfs > 2.59c.
73069
73070 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73071
73072         * lib/argp.h (__option_is_short): Check upper limit of
73073         __key. Isprint() requires its argument to have the value
73074         of an unsigned char or EOF.
73075
73076 2005-06-16  Jim Meyering  <jim@meyering.net>
73077
73078         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
73079         when either N or S is zero.
73080
73081 2005-06-16  Derek Price  <derek@ximbiot.com>
73082
73083         * m4/bison.m4: Declare YACC & YFLAGS precious.
73084
73085 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
73086
73087         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
73088         multibyte string or pattern, fall back on unibyte matching.
73089         Problem reported by James Youngman.
73090
73091 2005-06-08  Bruno Haible  <bruno@clisp.org>
73092
73093         * modules/csharpcomp: New file.
73094         * MODULES.html.sh (C#): Add csharpcomp.
73095
73096 2005-06-08  Bruno Haible  <bruno@clisp.org>
73097
73098         * m4/csharpcomp.m4: New file, from GNU gettext.
73099
73100 2005-06-08  Bruno Haible  <bruno@clisp.org>
73101
73102         * lib/csharpcomp.h: New file, from GNU gettext.
73103         * lib/csharpcomp.c: New file, from GNU gettext.
73104         * lib/csharpcomp.sh.in: New file, from GNU gettext.
73105
73106 2005-06-08  Bruno Haible  <bruno@clisp.org>
73107
73108         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
73109         warning on mingw.
73110
73111 2005-06-07  Derek Price  <derek@ximbiot.com>
73112
73113         Sync from CVS.
73114         * lib/glob_.h: Indent nested #ifdef.
73115
73116 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73117
73118         Sync from coreutils.
73119         Use "file name" when talking about file names, instead of "filename"
73120         or "path", as per the GNU coding standards.
73121         * lib/mkdir-p.c: Renamed from makepath.c.
73122         (make_dir_parents): Renamed from make_path.  All callers changed.
73123         * lib/mkdir-p.h: Likewise.  All includers changed.
73124         * lib/filenamecat.c: Renamed from path-concat.c.
73125         (file_name_concat): Renamed from path_concat.  All callers changed.
73126         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
73127         * lib/filenamecat.h: Likewise.  All includers changed.
73128         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
73129         in comments or local variable names.
73130         * lib/basename.c: Likewise.
73131         * lib/canonicalize.c, canonicalize.h: Likewise.
73132         * lib/dirname.c, dirname.h: Likewise.
73133         * lib/euidaccess.c: Likewise.
73134         * lib/exclude.c: Likewise
73135         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
73136         * lib/fsusage.c, fsuage.h: Likewise.
73137         * lib/fts.c, fts_.h: Likewise.
73138         * lib/getcwd.c: Likewise.
73139         * lib/getloadavg.c: Likewise.
73140         * lib/mkstemp.c: Likewise.
73141         * lib/mountlist.c, mountlist.h: Likewise.
73142         * lib/openat.c, openat.h: Likewise.
73143         * lib/readlink-stub.c: Likewise.
73144         * lib/readutmp.c, readutmp.h: Likewise.
73145         * lib/rename.c: Likewise.
73146         * lib/rmdir.c: Likewise.
73147         * lib/same.c: Likewise.
73148         * lib/savedir.c: Likewise.
73149         * lib/stripslash.c: Likewise.
73150         * lib/tempname.c: Likewise.
73151         * lib/xreadlink.c: Likewise.
73152         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
73153         All uses changed.
73154         * lib/exclude.h: Likewise.
73155
73156         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
73157         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73158         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
73159         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73160         * lib/pathmax.h: Include <limits.h> unconditionally, since other
73161         files have been getting away with it for years (MORE/BSD 4.3
73162         is extinct now).
73163         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
73164         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73165
73166         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
73167         Define to 256, not 255, as per modern POSIX.
73168
73169 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73170
73171         Sync from coreutils.
73172         Use "file name" when talking about file names, instead of "filename"
73173         or "path", as per the GNU coding standards.
73174         * MODULES.html.sh: mkdir-p renamed from makepath.
73175         filenamecat renamed from path-concat.
73176         * modules/filenamecat: Renamed from modules/path-concat.
73177         (Files): filenamecat.h and filenamecat.c renamed from
73178         path-concat.h and path-concat.c.
73179         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
73180         (Include): filenamecat.h, not path-concat.h.
73181         * modules/mkdir-p: Renamed from modules/makepath.
73182         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
73183         makepath.c.
73184         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
73185         (Include): mkdir-p.h, not makepath.h.
73186
73187 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73188
73189         Sync from coreutils.
73190         * m4/mkdir-p.m4: Renamed from makepath.m4.
73191         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
73192         Rename files from makepath.c to mkdir-p.c, and from
73193         makepath.h to mkdir-p.h.
73194         * m4/filenamecat.m4: Renamed from path-concat.m4.
73195         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
73196         Rename files from path-concat.c to filenamecat.c,
73197         and from path-concat.h to filenamecat.h.
73198         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
73199         "file name" in local variables or comments.
73200         * m4/rename.m4: Likewise.
73201
73202 2005-06-01  Bruno Haible  <bruno@clisp.org>
73203
73204         * modules/csharpexec: New file.
73205         * MODULES.html.sh (C#): New section.
73206
73207 2005-06-01  Bruno Haible  <bruno@clisp.org>
73208
73209         * m4/csharp.m4: New file, from GNU gettext.
73210         * m4/csharpexec.m4: New file, from GNU gettext.
73211
73212 2005-06-01  Bruno Haible  <bruno@clisp.org>
73213
73214         * lib/csharpexec.h: New file, from GNU gettext.
73215         * lib/csharpexec.c: New file, from GNU gettext.
73216         * lib/csharpexec.sh.in: New file, from GNU gettext.
73217
73218 2005-05-31  Derek Price  <derek@ximbiot.com>
73219             Paul Eggert  <eggert@cs.ucla.edu>
73220
73221         Sync from cvs.
73222         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
73223
73224 2005-05-31  Derek Price  <derek@ximbiot.com>
73225             Paul Eggert  <eggert@cs.ucla.edu>
73226
73227         Sync from cvs.
73228         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
73229
73230 2005-05-29  Derek Price  <derek@ximbiot.com>
73231
73232         * config/srclist.txt (glob_.h, glob.c): Add these files.
73233
73234 2005-05-29  Derek Price  <derek@ximbiot.com>
73235
73236         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
73237         * modules/glob: New file.
73238         * modules/getlogin_r: Add link to POSIX spec in description.
73239
73240 2005-05-29  Derek Price  <derek@ximbiot.com>
73241             Paul Eggert  <eggert@cs.ucla.edu>
73242
73243         * m4/glob.m4: New file.
73244
73245 2005-05-29  Derek Price  <derek@ximbiot.com>
73246             Paul Eggert  <eggert@cs.ucla.edu>
73247
73248         * lib/glob_.h, lib/glob.c: New files.
73249
73250 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73251
73252         * modules/fts (Files): Remove m4/inttypes-pri.m4.
73253         * modules/fts-lgpl (Depends-on): Remove gettext.
73254
73255 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73256
73257         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
73258         and don't require gt_INTTYPES_PRI.
73259
73260 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73261
73262         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
73263
73264         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
73265         the configuration hassle isn't worth it.
73266         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
73267         (LONGEST_MODIFIER, PRIuMAX): Remove.
73268
73269 2005-05-27  Bruno Haible  <bruno@clisp.org>
73270
73271         * lib/getlogin_r.h: Remove second include of <stddef.h>.
73272
73273 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
73274
73275         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
73276         _POSIX_PTHREAD_SEMANTICS for Solaris.
73277
73278 2005-05-25  Derek Price  <derek@ximbiot.com>
73279
73280         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
73281
73282 2005-05-25  Derek Price  <derek@ximbiot.com>
73283             Paul Eggert  <eggert@cs.ucla.edu>
73284
73285         * modules/getlogin_r, m4/getlogin_r.m4: New files.
73286         * lib/getlogin_r.c, getlogin_r.h: New files.
73287
73288 2005-05-25  Bruno Haible  <bruno@clisp.org>
73289             Derek Price  <derek@ximbiot.com>
73290
73291         * lib/getlogin_r.h: Simplify API documentation.
73292
73293 2005-05-23  Derek Price  <derek@ximbiot.com>
73294
73295         * modules/minmax (Files): Add m4/minmax.m4.
73296         (configure.ac): Add gl_MINMAX.
73297
73298 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
73299
73300         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
73301         so that unistd-safer.h (GPL'ed code) need not be included.
73302
73303 2005-05-22  Bruno Haible  <bruno@clisp.org>
73304
73305         * m4/minmax.m4: New file.
73306         Based on a patch by Derek Price <derek@ximbiot.com>.
73307
73308 2005-05-22  Bruno Haible  <bruno@clisp.org>
73309
73310         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
73311         (INT64_MIN): Fix definition.
73312         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
73313
73314         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
73315         NEED_SIGNED_INT_TYPES.
73316
73317         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
73318         HAVE_SYSTEM_INTTYPES.
73319
73320 2005-05-22  Bruno Haible  <bruno@clisp.org>
73321
73322         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
73323         Also include <sys/param.h> if it defines MIN, MAX.
73324         Based on a patch by Derek Price <derek@ximbiot.com>.
73325
73326 2005-05-21  Jim Meyering  <jim@meyering.net>
73327
73328         * modules/fts (Files): Add m4/inttypes-pri.m4.
73329         (Depends-on): Add lstat and remove gettext.  Alphabetize.
73330
73331 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73332
73333         New fts module.
73334         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
73335         (setup_dir, free_dir): New functions.
73336         (enter_dir, leave_dir): Define trivial
73337         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
73338         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
73339         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
73340         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
73341         Move to fts-cycle.c.
73342         (fts_open): Use setup_dir.
73343         (fts_close): Use free_dir.
73344         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
73345         This adds a label and some gotos, but the alternatives were messier.
73346         Check for memory allocation failure when entering a dir.
73347         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
73348         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
73349         (FTS): New member fts_cycle, that is a union that contains the
73350         old active_dir_ht and cycle_state.  All uses changed to mention
73351         fts_cycle.ht and fts_cycle.state.
73352         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
73353         fts.c, with the following changes:
73354         (setup_dir, free_dir): New functions.
73355         (enter_dir): Now returns bool.  Return true if successful, false
73356         if memory exhausted.  All callers changed.
73357         Do not bother partly cleaning up on
73358         memory allocation failure; that is free_dir's job.
73359         However, free ad if hash_insert fails, to avoid memory leak.
73360         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
73361         fts->fts_options to see which union member to use.
73362
73363 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73364
73365         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
73366         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
73367
73368 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73369
73370         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
73371
73372 2005-05-20  Jim Meyering  <jim@meyering.net>
73373
73374         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
73375         Now a macro, to pacify GCC.
73376
73377 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
73378
73379         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
73380         of -1.
73381
73382 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
73383
73384         * lib/chown.c (rpl_chown): Return -1 on failure.
73385
73386 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
73387
73388         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
73389         Don't check for stddef.h.
73390         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
73391         don't use its results.
73392         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
73393         since we include them unconditionally.  Don't require
73394         AM_STDBOOL_H, since stdbool is a prerequisite.
73395         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
73396         since we assume C89 or better.
73397         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
73398         as we don't use their results.
73399         Don't check for fchdir, memmove, memset, strrchr, as we use
73400         them unconditionally.
73401         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
73402         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
73403
73404 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
73405
73406         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
73407         Include <stddef.h> unconditionally, since we assume C89 now.
73408         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
73409         * lib/fts.c: Include fts_.h first, to check interface.
73410         Do not include intprops.h; no longer needed.
73411         Include cycle-check.h and hash.h, since fts_.h no longer does.
73412         Remove unnecessary casts of closedir to void.
73413         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
73414         decide whether to decrement nlinks.
73415         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
73416         (FTS): Use struct hash_table * instead of Hash_table, so that
73417         we no longer need to include hash.h here.
73418
73419 2005-05-18  Jim Meyering  <jim@meyering.net>
73420
73421         * modules/dirfd (License): Change to LGPL.  Most of the code
73422         is already in the public domain.
73423
73424 2005-05-18  Jim Meyering  <jim@meyering.net>
73425
73426         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
73427         Reported by Yoann Vandoorselaere.
73428
73429 2005-05-17  Jim Meyering  <jim@meyering.net>
73430
73431         * m4/fts.m4: New file, from coreutils.
73432
73433 2005-05-17  Jim Meyering  <jim@meyering.net>
73434
73435         * lib/fts.c, lib/fts_.h: New files, from coreutils.
73436
73437 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73438
73439         Sync from coreutils.
73440         * m4/unlinkdir.m4: New file.
73441
73442 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73443
73444         Sync from coreutils.
73445         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
73446         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
73447         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
73448         White space changes only.
73449         * lib/makepath.c (make_path): Port to hosts where leading "//" is
73450         special.
73451         * lib/yesno.c: Include getline.h, not ctype.h.
73452         (yesno): Don't remove leading white space; POSIX doesn't allow it.
73453         Use getline to remove arbitrary restriction on response length.
73454
73455 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73456
73457         * config/srclist-update: Spell out "Street" in FSF postal
73458         mail address; this is the style the FSF seems to prefer.
73459
73460         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
73461         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
73462         this updates FSF postal mail address.
73463
73464         Sync from coreutils.
73465         * modules/unlinkdir: New file.
73466         * modules/yesno (Depends-on): Add getline.
73467         * MODULES.html.sh (File system functions): Add unlinkdir.
73468
73469 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73470
73471         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
73472         lib/strsep.h:
73473         Change the initial comment to refer to GPL, not LGPL.
73474         gnulib-tool will change it to LGPL as needed.
73475
73476         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
73477         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
73478         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
73479         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
73480         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
73481         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
73482         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
73483         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
73484         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
73485         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
73486         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
73487         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
73488         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
73489         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
73490         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
73491         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
73492         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
73493         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
73494         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
73495         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
73496         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
73497         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
73498         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
73499         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
73500         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
73501         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
73502         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
73503         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
73504         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
73505         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
73506         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
73507         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
73508         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
73509         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
73510         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
73511         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
73512         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
73513         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
73514         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
73515         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
73516         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
73517         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
73518         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
73519         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
73520         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
73521         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
73522         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
73523         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
73524         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
73525         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
73526         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
73527         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
73528         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
73529         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
73530         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
73531         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
73532         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
73533         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
73534         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
73535         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
73536         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
73537         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
73538         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
73539         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
73540         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
73541         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
73542         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
73543         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
73544         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
73545         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
73546         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
73547         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
73548         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
73549         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
73550         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
73551         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
73552         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
73553         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
73554         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
73555         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
73556         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
73557         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
73558         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
73559         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
73560         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
73561         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
73562         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
73563         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
73564         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
73565         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
73566         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
73567         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
73568         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
73569         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
73570         lib/yesno.c, lib/yesno.h:
73571         Update FSF postal mail address.
73572
73573 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73574
73575         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
73576         tests/test-memmem.c, tests/test-stpncpy.c:
73577         Update FSF postal mail address.
73578
73579 2005-05-13  Bruno Haible  <bruno@clisp.org>
73580
73581         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
73582         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
73583         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
73584         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
73585         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
73586         Add support for 64-bit integers in the MSVC compiler.
73587
73588 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73589
73590         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
73591
73592 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
73593
73594         * gnulib-tool (func_import): Sort and uniquify recommended includes.
73595
73596 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
73597
73598         * doc/getdate.texi (General date syntax): Don't say that date
73599         date --iso-8601=ns generates acceptable dates; it doesn't yet.
73600         Problem reported by Nic Ferrier.
73601
73602 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73603
73604         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
73605         specified in ai_socktype. Fix invalid ai_protocol
73606         check. ai_protocol is usually set to 0 or depending on
73607         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
73608         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
73609         ai_socktype / ai_protocol in the returned addrinfo structure.
73610
73611 2005-05-10  Simon Josefsson  <jas@extundo.com>
73612
73613         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
73614         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73615
73616 2005-05-10  Karl Berry  <karl@gnu.org>
73617
73618         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
73619         (from http://www.gnu.org/licenses).
73620         * doc/COPYING.LIB: also rename to COPYING.LESSER.
73621         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
73622         fdl.texi suffices.
73623
73624 2005-05-10  Karl Berry  <karl@gnu.org>
73625
73626         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
73627         (COPYING.DOC): remove.
73628
73629         * config/srclist-update: new FSF address.
73630
73631 2005-05-10  Derek Price  <derek@ximbiot.com>
73632
73633         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
73634         possible.
73635
73636 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73637             Bruno Haible  <bruno@clisp.org>
73638
73639         * modules/inet_ntop: New file.
73640         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73641         inet_ntop.
73642
73643 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73644             Bruno Haible  <bruno@clisp.org>
73645
73646         * m4/inet_ntop.m4: New file.
73647
73648 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73649             Bruno Haible  <bruno@clisp.org>
73650
73651         * lib/inet_ntop.h: New file.
73652         * lib/inet_ntop.c: New file, from glibc with modifications.
73653
73654 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
73655
73656         * modules/time_r (License): Change to LGPL.
73657         * modules/extensions (License): Change to LGPL.  Actually,
73658         the license is more permissive than that, but currently gnulib-tool
73659         doesn't know how to handle more-permissive licenses.
73660
73661         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
73662         Problem reported by Dave Love.
73663
73664 2005-05-08  Jim Meyering  <jim@meyering.net>
73665
73666         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
73667         blank.
73668
73669 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
73670
73671         * modules/argmatch (Depends-on): Add stdbool.
73672         * modules/backupfile (Depends-on): Likewise.
73673         * modules/chdir-long (Depends-on): Likewise.
73674         * modules/closeout (Depends-on): Likewise.
73675         * modules/cycle-check (Depends-on): Likewise.
73676         * modules/dirname (Depends-on): Likewise.
73677         * modules/fnmatch (Depends-on): Likewise.
73678         * modules/fsusage (Depends-on): Likewise.
73679         * modules/fwriteerror (Depends-on): Likewise.
73680         * modules/getcwd (Depends-on): Likewise.
73681         * modules/getloadavg (Depends-on): Likewise.
73682         * modules/hard-locale (Depends-on): Likewise.
73683         * modules/makepath (Depends-on): Likewise.
73684         * modules/mountlist (Depends-on): Likewise.
73685         * modules/nanosleep (Depends-on): Likewise.
73686         * modules/posixtm (Depends-on): Likewise.
73687         * modules/quotearg (Depends-on): Likewise.
73688         * modules/readtokens (Depends-on): Likewise.
73689         * modules/readtokens0 (Depends-on): Likewise.
73690         * modules/readutmp (Depends-on): Likewise.
73691         * modules/save-cwd (Depends-on): Likewise.
73692         * modules/strftime (Depends-on): Likewise.
73693         * modules/userspec (Depends-on): Likewise.
73694         * modules/utimecmp (Depends-on): Likewise.
73695         * modules/xgetcwd (Depends-on): Likewise.
73696         * modules/xnanosleep (Depends-on): Likewise.
73697         * modules/xstrtod (Depends-on): Likewise.
73698         * modules/yesno (Depends-on): Likewise.
73699
73700 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
73701
73702         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
73703         needless checks.
73704
73705 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73706
73707         Merge from coreutils.  Among other things,
73708         add bulletproofing for cases where stdin, stdout, or stderr are closed.
73709         * lib/fd-safer.c: New file.
73710         * lib/fcntl-safer.h, open-safer.c: Remove.
73711         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
73712         * lib/dup-safer.c: Include unistd-safer.h first.
73713         Don't include errno.h.
73714         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
73715         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
73716         * lib/file-type.c: Rely on file-type.h change.
73717         * lib/getloadavg.c: Include unistd-safer.h.
73718         (getloadavg): Use safer open.
73719         * lib/getusershell.c: Include "stdio-safer.h".
73720         (getusershell): Use safer fopen.
73721         * lib/long-options.c (long_options): Use NULL rather than 0.
73722         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
73723         'free'.
73724         * lib/modechange.c: Likewise.
73725         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
73726         (MODE_DONE): New constant.
73727         (struct mode_change): Remove 'next' member.
73728         (make_node_op_equals): New function; like the old one of the
73729         same name, except it allocates an array.
73730         (mode_compile, mode_create_from_ref): Use it.
73731         (mode_compile): Allocate result as an array, not a linked list.
73732         Parse octal string ourself, so that we catch mistakes like "+0".
73733         (mode_adjust): Arg is an array, not a linked list.
73734         * lib/modechange.c: Include stat-macros.h, xalloc.h.
73735         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
73736         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
73737         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
73738         Remove.  This is now stat-macros.h's job.
73739         (talloc): Remove.  All callers replaced by xalloc, so that
73740         our invokers don't have to worry about reporting memory failures.
73741         (make_node_op_equals): Remove.
73742         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
73743         New constants.
73744         (struct mode_change): Moved here from modechange.h.
73745         (mode_append_entry): Remove.
73746         (mode_compile): Remove MASKED_OPS arg, since it encouraged
73747         apps to have incorrect behavior.  Use simpler algorithm for head
73748         and tail.  Don't futz with umask; that's now the job of mode_adjust.
73749         Detect more invalid usages rather than having somewhat-random behavior.
73750         Don't insert an "a=" action, as that leads to incorrect behavior.
73751         (mode_compile, mode_create_from_ref): Return NULL on error instead
73752         of an enum, since now there's only one way to have an error.  All
73753         callers changed.
73754         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
73755         at the correct time.  Simplify calculation of "+u" and its ilk.
73756         Don't mishandle "+X".
73757         (mode_free): Remove "register" and localize decls.
73758         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
73759         (struct mode_change): Move to modechange.c; callers don't
73760         need to see this stuff.
73761         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
73762         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
73763         (mode_change, mode_adjust): Reflect the new signatures noted above.
73764         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
73765         that might redefine system include files.
73766         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
73767         (my_usleep): Use NULL rather than (void *) 0.
73768         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
73769         Use siginterrupt to specify that system calls should be interrupted.
73770         (rpl_nanosleep): Move initialization of suspended closer to call of
73771         my_usleep.
73772         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
73773         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
73774         (desirable_utmp_entry): New function.
73775         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
73776         using x2nrealloc, to simplify logic.
73777         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
73778         size calculation.  Do not assume utmp file is a regular file.
73779         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
73780         (READ_UTMP_CHECK_PIDS): New constant.
73781         * lib/save-cwd.c: Include unistd-safer.h.
73782         (save_cwd): Use fd_safer.
73783         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
73784         [!_LIBC] Include "stat-macros.h" instead.
73785         * lib/unistd-safer.h (fd_safer): New decl.
73786
73787 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73788
73789         * modules/getloadavg (Depends-on): Add unistd-safer.
73790         * modules/getusershell (Depends-on): Add stdio-safer.
73791         * modules/lstat (Depends-on): Remove xalloc.
73792         * modules/mkstemp (Depends-on): Add stat-macros.
73793         * modules/modechange (Depends-on): Remove xstrtol.
73794         Add stat-macros, xalloc.
73795         * modules/save-cwd (Depends-on): Add unistd-safer.
73796         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
73797         * modules/unistd-safer (Files): Add lib/fd-safer.c
73798         (Makefile.am): Remove lib_SOURCES.
73799
73800         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
73801         Remove fcntl-safer; unistd-safer supersedes it.
73802
73803 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73804
73805         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
73806         AC_HEADER_STAT.
73807         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
73808         (gl_PREREQ_CHOWN): Remove.
73809         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
73810         it.  Don't require AC_HEADER_STAT.
73811         (gl_PREREQ_LSTAT): Remove.
73812         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
73813         Don't require AC_HEADER_STAT.
73814         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
73815         (gl_PREREQ_RMDIR): Remove.
73816         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
73817         mention stat-macros.h or AC_HEADER_STAT, since we'll make
73818         the stat-macros module a prerequisite.
73819         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
73820         * m4/filemode.m4 (gl_FILEMODE): Likewise.
73821         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
73822         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
73823         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
73824         variable names.
73825         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
73826         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
73827         variable prefixes.
73828         * m4/fcntl-safer.m4: Remove.
73829         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
73830         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
73831         Invoke gl_PREREQ_FD_SAFER.
73832         (gl_PREREQ_FD_SAFER): New macro.
73833         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
73834         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
73835         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
73836         Remove duplicate call to AC_LIBOBJ(readutmp).
73837         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
73838
73839         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
73840         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
73841
73842 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73843
73844         * MODULES.html.sh (Misc): Add byteswap.
73845
73846 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73847
73848         * modules/getcwd (Depends-on): Add extensions.
73849         * modules/openat (Depends-on): Likewise.
73850
73851 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73852
73853         * modules/byteswap: New file.
73854
73855 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73856
73857         * m4/byteswap.m4: New file.
73858
73859 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73860
73861         * lib/byteswap_.h: New file.
73862
73863 2005-04-25  Karl Berry  <karl@gnu.org>
73864
73865         * m4/gettext.m4: Update from GNU gettext 0.14.4.
73866
73867 2005-04-25  Albert Chin  <china@thewrittenword.com>
73868
73869         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
73870         Toolkit C bug.
73871
73872 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
73873
73874         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
73875         (func_ln_if_changed): Remove forcibly for no error message
73876         in case file does not exist.
73877
73878 2005-04-19  Simon Josefsson  <jas@extundo.com>
73879
73880         * gnulib-tool (Options): Make --symlink mean --symbolic.
73881
73882 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
73883
73884         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
73885
73886 2005-04-16  Simon Josefsson  <jas@extundo.com>
73887
73888         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
73889
73890 2005-04-15  Simon Josefsson  <jas@extundo.com>
73891
73892         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
73893
73894 2005-04-15  Simon Josefsson  <jas@extundo.com>
73895
73896         * gnulib-tool: Rename --symlink to --symbolic.
73897
73898 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
73899
73900         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
73901         symbolic links to files instead of copying/moving.  Add --aux-dir,
73902         specifying directory relative --dir where auxiliary build tools
73903         are placed.
73904
73905 2005-04-14  Bruno Haible  <bruno@clisp.org>
73906
73907         * modules/allocsa (License): Change to LGPL.
73908         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
73909
73910 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
73911
73912         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
73913         that "UTC +1 second" continues to work.  Problem reported
73914         by Dmitry V. Levin.
73915         (relunit_snumber): New rule.
73916         (relunit): Use it.
73917
73918 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
73919
73920         * lib/getdate.y (universal_time_zone_table): New constant.
73921         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
73922         universal_time_zone_table.
73923         (lookup_zone): Prefer universal_time_zone_table to
73924         local_time_zone_table, so that "GMT" time stamps are allowed in
73925         London during the summer.  Problem reported by Ian Abbott.
73926
73927 2005-04-12  Jim Meyering  <jim@meyering.net>
73928
73929         * lib/human.c (humblock): Set *options even when returning due to
73930         xstrtoumax conversion failure.  Thanks to a used-uninitialized
73931         warning from gcc-4.
73932
73933 2005-04-09  Jim Meyering  <jim@meyering.net>
73934
73935         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
73936         -Wuninitialized: initialize tm0.tm_year.
73937
73938 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
73939
73940         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
73941         count, since there's no maximum.  All uses changed.
73942         Add member dsts_seen.
73943         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
73944         not being INT_MAX.
73945         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
73946         Use pc_rels_seen to decide whther a date is absolute.
73947
73948         * lib/getdate.y (number): Don't overwrite year.
73949         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
73950         check.
73951
73952 2005-04-02  Simon Josefsson  <jas@extundo.com>
73953
73954         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
73955         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
73956
73957 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
73958
73959         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
73960         where no absolute path name can be longer than PATH_MAX.
73961
73962 2005-03-27  Jim Meyering  <jim@meyering.net>
73963
73964         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
73965
73966 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
73967
73968         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
73969         "one's complement" -> "ones' complement" in comment, as per Knuth.
73970         "value of type" -> "type or expression" in comment.
73971         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
73972
73973 2005-03-26  Jim Meyering  <jim@meyering.net>
73974
73975         Comment nits.
73976         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
73977         Correct typos: s/or/of/.
73978
73979 2005-03-26  Jim Meyering  <jim@meyering.net>
73980
73981         * modules/check-include-files: Move to ../ and rename to...
73982         * check-module: ...this.
73983
73984 2005-03-25  Jim Meyering  <jim@meyering.net>
73985
73986         * modules/xvasprintf (Files): Add xalloc.h.
73987
73988 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
73989
73990         * modules/gettext (Files): config/config.rpath ->
73991         build-aux/config.rpath
73992         * modules/iconv (Files): Likewise.
73993         Problem reported by Oskar Liljeblad.
73994
73995 2005-03-23  Jim Meyering  <jim@meyering.net>
73996
73997         * modules/check-include-files: New script to check for
73998         missing dependencies, multiple includes, etc.
73999
74000         * modules/c-strtold (Depends-on): Add xalloc.
74001         * modules/c-strtod (Depends-on): Add xalloc.
74002         * modules/hash (Depends-on): Add xalloc.
74003         (Files): Remove lib/xalloc.h.
74004
74005         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
74006         * modules/userspec (Files): Add lib/inttostr.h.
74007
74008 2005-03-23  Jim Meyering  <jim@meyering.net>
74009
74010         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
74011
74012 2005-03-22  Jim Meyering  <jim@meyering.net>
74013
74014         * modules/stat-macros: New module.
74015         * modules/canonicalize, modules/euidaccess, modules/file-type,
74016         * modules/filemode, modules/lchown, modules/makepath,
74017         * modules/rmdir, modules/stat: Depend on new stat-macros module
74018         rather than listing lib/stat-macros.h manually.
74019         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
74020
74021 2005-03-22  Jim Meyering  <jim@meyering.net>
74022
74023         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
74024
74025 2005-03-22  Bruno Haible  <bruno@clisp.org>
74026
74027         * config/srclist.txt: Replace target directory 'config' with
74028         'build-aux'.
74029         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
74030         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
74031         ../build-aux/.
74032
74033 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
74034
74035         * modules/chdir-long (Depends-on): Add mempcpy.
74036
74037         * modules/acl, modules/backupfile, modules/c-strtod,
74038         modules/c-strtold, modules/canon-host, modules/canonicalize,
74039         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
74040         modules/exclude, modules/exitfail, modules/file-type,
74041         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
74042         modules/getdate, modules/getline, modules/getpagesize,
74043         modules/getpass, modules/getugroups, modules/group-member,
74044         modules/hard-locale, modules/hash, modules/human, modules/idcache,
74045         modules/inttostr, modules/long-options, modules/makepath,
74046         modules/md5, modules/memcasecmp, modules/memcoll,
74047         modules/modechange, modules/mountlist, modules/path-concat,
74048         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
74049         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
74050         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
74051         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
74052         modules/strftime, modules/strndup, modules/strverscmp,
74053         modules/timespec, modules/unlocked-io, modules/userspec,
74054         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
74055         modules/yesno:
74056         Remove lib_SOURCES line from Makefile.am section, as this is now
74057         done automatically by the corresponding Autoconf macro.
74058
74059 2005-03-21  Jim Meyering  <jim@meyering.net>
74060
74061         Changes imported from coreutils.
74062
74063         * lib/cycle-check.c: Don't include xalloc.h.
74064
74065         * lib/path-concat.c: Don't include assert.h.
74066         (path_concat): Remove assertion that would have triggered
74067         for ABASE starting with more than one slash.
74068         Reported by Andreas Schwab.
74069
74070         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
74071         properly when ABASE is an absolute file name.
74072         Correct the description of this function.
74073         Include <assert.h>.
74074         Add an assertion and a test driver.
74075         This fixes a bug introduced on 2004-07-02.
74076         Andreas Schwab reported the resulting failure of cp --parents:
74077         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
74078
74079 2005-03-21  Jim Meyering  <jim@meyering.net>
74080
74081         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
74082         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
74083
74084 2005-03-21  Jim Meyering  <jim@meyering.net>
74085         and  Paul Eggert  <eggert@cs.ucla.edu>
74086
74087         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
74088         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
74089         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
74090         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
74091         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
74092         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
74093         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
74094         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
74095         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
74096         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
74097         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
74098         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
74099         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
74100         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
74101         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
74102         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
74103         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
74104         for these modules.
74105
74106 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
74107
74108         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
74109         (which shouldn't happen), generate nothing instead of returning 0
74110         immediately, so that nstrftime (NULL, ...) doesn't return 0.
74111
74112 2005-03-16  Bruno Haible  <bruno@clisp.org>
74113
74114         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
74115         HAVE_LONGLONG_64BIT.
74116
74117 2005-03-16  Bruno Haible  <bruno@clisp.org>
74118
74119         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
74120         HAVE_LONGLONG_64BIT.
74121
74122 2005-03-16  Bruno Haible  <bruno@clisp.org>
74123
74124         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
74125         HAVE_LONGLONG_64BIT.
74126
74127 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
74128
74129         * lib/strftime.c (my_strftime): Prepend space to format so that we can
74130         reliably distinguish strftime failure from empty output on POSIX
74131         hosts.
74132
74133 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
74134
74135         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
74136         (iconv_string): Don't guess a size-zero buffer, as that might cause
74137         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
74138         result would be 'too large', where 'too large' is (heuristically)
74139         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
74140         overflow concerns.  This will prevent some unwanted malloc failures
74141         when the inputs are very large.
74142
74143 2005-03-15  Karl Berry  <karl@gnu.org>
74144
74145         * config/srclist.txt (config.rpath): from gettext.
74146         * config/config.rpath: update.
74147
74148 2005-03-15  Bruno Haible  <bruno@clisp.org>
74149
74150         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
74151         to 'negate'.
74152
74153         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
74154         variable.
74155
74156         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
74157         results.
74158
74159 2005-03-14  Simon Josefsson  <jas@extundo.com>
74160
74161         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
74162         <fx@gnu.org>.
74163
74164 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
74165
74166         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
74167         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
74168         intprops.h.
74169         * lib/strtol.c: Likewise.
74170
74171 2005-03-14  Jim Meyering  <jim@meyering.net>
74172
74173         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
74174         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
74175         to be nonzero so that we (and caller) can detect the difference
74176         between a valid zero-length expansion and an error return, even
74177         when the underlying strftime fails before writing anything into
74178         that location.
74179
74180 2005-03-14  Bruno Haible  <bruno@clisp.org>
74181
74182         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
74183         Update from GNU gettext 0.14.3.
74184
74185 2005-03-10  Jim Meyering  <jim@meyering.net>
74186
74187         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
74188
74189 2005-03-10  Jim Meyering  <jim@meyering.net>
74190
74191         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
74192         so that this module works on systems without fchdir.
74193
74194 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
74195
74196         Factor int-properties macros into a single file, except for
74197         glibc-related files.
74198         * lib/intprops.h: New file.
74199         * lib/getloadavg.c: Include it instead of limits.h.
74200         (INT_STRLEN_BOUND): Remove.
74201         * lib/human.c: Include intprops.h.
74202         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
74203         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
74204         302/1000.
74205         * lib/inttostr.h: Include intprops.h instead of limits.h.
74206         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
74207         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
74208         for consistency with intprops.h.
74209         (time_t_is_integer, twos_complement_arithmetic): Use them.
74210         * lib/sig2str.h: Include <signal.h>, intprops.h.
74211         (INT_STRLEN_BOUND): Remove.
74212         * lib/strftime.c (TYPE_SIGNED): Remove.
74213         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
74214         * lib/strtol.c: Adjust comments to match intprops.h.
74215         * lib/userspec.c: Include intprops.h.
74216         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
74217         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
74218         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
74219         instead of rolling our own expressions.
74220         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
74221
74222         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
74223         instead of int.
74224         (my_strftime): Do not mishandle years close to INT_MAX, by doing
74225         the right thing even if adding 1900 would overflow.  Similarly
74226         for tm_mon + 1 and tm_yday + 1.
74227         Make %Y always equivalent to %C%y, and similarly for %G and %g.
74228         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
74229         (DO_SIGNED_NUMBER): New macro.
74230         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
74231
74232 2005-03-07  Bruno Haible  <bruno@clisp.org>
74233
74234         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
74235
74236 2005-03-07  Bruno Haible  <bruno@clisp.org>
74237
74238         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
74239
74240 2005-03-04  Derek R. Price  <derek@ximbiot.com>
74241
74242         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
74243         (func_import): Only replace files via --import when they have actually
74244         changed.
74245
74246 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74247
74248         * m4/mmap-anon.m4: New file.
74249         * m4/pagealign_alloc.m4: New file.
74250
74251 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74252             Bruno Haible  <bruno@clisp.org>
74253
74254         * modules/pagealign_alloc: New file.
74255         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
74256
74257 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74258             Bruno Haible  <bruno@clisp.org>
74259
74260         * lib/pagealign_alloc.h: New file.
74261         * lib/pagealign_alloc.c: New file.
74262
74263 2005-03-03  Bruno Haible  <bruno@clisp.org>
74264
74265         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
74266         Use an all-permissive copyright notice, recommended by RMS.
74267
74268 2005-03-02  Bruno Haible  <bruno@clisp.org>
74269
74270         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
74271         of AIX, the replacement has to be done only after <string.h> is
74272         included, therefore not in config.h. stpncpy.h does the replacement,
74273         and stpncpy.c uses it.
74274
74275 2005-03-02  Bruno Haible  <bruno@clisp.org>
74276
74277         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
74278         stpncpy.c uses it.
74279
74280 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74281
74282         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
74283         The workaround isn't strictly needed for POSIX conformance, and
74284         it's too much of a pain to configure and maintain.  We'll ask
74285         people to fix their kernels instead.
74286         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
74287         (NANOSLEEP_BUG_WORKAROUND): Remove.
74288         (xnanosleep): Remove the workaround.
74289
74290 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74291
74292         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
74293         Reported by Derek Price.
74294         (Include): Add "timespec.h".
74295
74296         * modules/xnanosleep (Depends-on): Remove gethrxtime.
74297
74298 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74299
74300         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
74301         to detect nanosleep bug.
74302
74303 2005-03-01  Bruno Haible  <bruno@clisp.org>
74304
74305         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
74306
74307 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
74308
74309         * modules/gethrxtime: New file.
74310         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
74311         (Depends-on): Add gethrxtime.
74312         (configure.ac): Add gl_XNANOSLEEP.
74313         (Makefile.am): Remove lib_SOURCES line.
74314
74315 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
74316
74317         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
74318         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
74319
74320 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
74321
74322         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
74323         * lib/timespec.h (gettime): Return void, since it always
74324         succeeds now.  All uses changed.
74325         * lib/gettime.c (gettime): Likewise.
74326         [HAVE_NANOTIME]: Prefer nanotime.
74327         Assume gettimeofday succeeds, as POSIX requires.
74328         Assime time () succeeds, since other code already does.
74329         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
74330         (timespec_subtract): Remove.
74331         (NANOSLEEP_BUG_WORKAROUND): New constant.
74332         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
74333         things considerably.  Use it only on GNU/Linux hosts, since the
74334         workaround shouldn't be needed elsewhere.
74335
74336 2005-02-24  Bruno Haible  <bruno@clisp.org>
74337
74338         * modules/gettext (Files): Add m4/glibc2.m4.
74339
74340 2005-02-24  Bruno Haible  <bruno@clisp.org>
74341
74342         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
74343         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
74344         * m4/progtest.m4:
74345         Update from GNU gettext 0.14.2.
74346         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
74347
74348 2005-02-24  Bruno Haible  <bruno@clisp.org>
74349
74350         * lib/localcharset.c: Update from GNU gettext 0.14.2.
74351         * lib/config.charset: Update from GNU gettext 0.14.2.
74352
74353 2005-02-24  Bruno Haible  <bruno@clisp.org>
74354
74355         * lib/gettext.h: Update from GNU gettext 0.14.2.
74356
74357 2005-02-23  Simon Josefsson  <jas@extundo.com>
74358
74359         * m4/iconvme.m4: New file.
74360
74361 2005-02-23  Jim Meyering  <jim@meyering.net>
74362
74363         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
74364         change.
74365         Thanks to Bruno Haible for catching it.
74366
74367 2005-02-22  Simon Josefsson  <jas@extundo.com>
74368
74369         * modules/iconvme: New file.
74370
74371         * MODULES.html.sh: Add iconvme.
74372
74373 2005-02-22  Simon Josefsson  <jas@extundo.com>
74374
74375         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
74376
74377 2005-02-22  Simon Josefsson  <jas@extundo.com>
74378
74379         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
74380
74381 2005-02-22  Jim Meyering  <jim@meyering.net>
74382
74383         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
74384         s/ifndef/ifdef/.
74385
74386 2005-02-20  Neil Conway  <neilc@samurai.com>
74387
74388         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
74389         returned by OSX/Darwin if the specified buffer is not large
74390         enough for the hostname.
74391
74392 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74393
74394         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
74395         pass it to _help, otherwise the latter coredumps trying to
74396         dereference state.root_argp.
74397
74398 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74399
74400         * modules/chdir-long (Depends-on): Add memrchr.
74401         * modules/memrchr (Files): Add lib/memrchr.h.
74402         (Include): "memrchr.h".
74403
74404 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74405
74406         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
74407
74408 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74409
74410         * lib/memrchr.h: New file.
74411         * lib/chdir-long.c: Include it.
74412         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
74413         Don't bother including stddef.h.
74414
74415 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
74416
74417         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
74418         inclusion.
74419         Include <sys/types.h>, for dev_t.
74420         (ME_DUMMY, ME_REMOTE): Move from here....
74421         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
74422         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
74423         Dmitry V. Levin.
74424         Include mountlist.h first, to test the interface.
74425
74426 2005-01-29  Bruno Haible  <bruno@clisp.org>
74427
74428         * lib/progname.c (program_name): Initialize.
74429         Needed when linking statically on MacOS X.
74430
74431 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74432
74433         Sync from coreutils.
74434         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
74435         (Depends-on): Add c-strtod.
74436         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
74437
74438 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74439
74440         Sync from coreutils.
74441         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
74442
74443         Remove files that are specific to coreutils.
74444         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
74445
74446 2005-01-28  Bruno Haible  <bruno@clisp.org>
74447
74448         * modules/javacomp: New file.
74449         * MODULES.html.sh (Java): Add javacomp.
74450
74451 2005-01-28  Bruno Haible  <bruno@clisp.org>
74452
74453         * m4/javacomp.m4: New file, from GNU gettext.
74454
74455 2005-01-28  Bruno Haible  <bruno@clisp.org>
74456
74457         * lib/javacomp.sh.in: New file, from GNU gettext.
74458         * lib/javacomp.h: New file, from GNU gettext.
74459         * lib/javacomp.c: New file, from GNU gettext.
74460
74461 2005-01-26  Simon Josefsson  <jas@extundo.com>
74462
74463         * lib/gai_strerror.c: Use GPL in header.
74464
74465 2005-01-26  Bruno Haible  <bruno@clisp.org>
74466
74467         * modules/javaexec: New file.
74468         * MODULES.html.sh (Java): Add javaexec.
74469
74470 2005-01-26  Bruno Haible  <bruno@clisp.org>
74471
74472         * m4/javaexec.m4: New file, from GNU gettext.
74473
74474 2005-01-26  Bruno Haible  <bruno@clisp.org>
74475
74476         * lib/javaexec.sh.in: New file, from GNU gettext.
74477         * lib/javaexec.h: New file, from GNU gettext.
74478         * lib/javaexec.c: New file, from GNU gettext.
74479
74480 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74481
74482         * modules/lchown (Depends-on): Remove lchown.h
74483
74484 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74485
74486         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
74487         must be defined if the header file was not found, in order
74488         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
74489
74490 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74491
74492         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
74493         initializers for struct pentry_state.
74494         (__argp_error): Check return value of __asprintf
74495         (__argp_failure): Translate error message
74496
74497         * lib/argp-parse.c: Removed braces around the expansion of N_()
74498
74499 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74500
74501         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
74502         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
74503         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
74504         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
74505         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
74506         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
74507         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
74508         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
74509         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
74510         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
74511         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
74512         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
74513         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
74514         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
74515         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
74516         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
74517         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
74518         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
74519         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
74520         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
74521         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
74522         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
74523         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
74524         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
74525         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
74526         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
74527         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
74528         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
74529         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
74530         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
74531         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
74532         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
74533         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
74534         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
74535         xstrtol.m4, xstrtoumax.m4, yesno.m4:
74536         Use an all-permissive copyright notice, recommended by RMS.
74537
74538 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
74539
74540         * modules/chdir-long (Depends-on): Remove mempcpy.
74541
74542 2005-01-21  Jim Meyering  <jim@meyering.net>
74543
74544         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
74545         same value as for Solaris 9.
74546
74547         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
74548         component length.  This included changing the parameter to be
74549         of type `char *' rather than `char const *'.
74550         * lib/chdir-long.h (chdir_long): Update prototype.
74551
74552         * lib/openat.c (fdopendir, fstatat): New functions.
74553         * lib/openat.h: Include headers required for use of DIR and struct
74554         stat.
74555         [AT_SYMLINK_NOFOLLOW]: Define.
74556         (fdopendir, fstatat): Add prototypes.
74557
74558 2005-01-21  Bruno Haible  <bruno@clisp.org>
74559
74560         * modules/classpath: New file.
74561         * MODULES.html.sh (Java): Add classpath.
74562
74563 2005-01-21  Bruno Haible  <bruno@clisp.org>
74564
74565         * lib/classpath.h: New file, from GNU gettext.
74566         * lib/classpath.c: New file, from GNU gettext.
74567
74568 2005-01-20  Simon Josefsson  <jas@extundo.com>
74569
74570         * modules/version-etc-fsf: New file.
74571
74572 2005-01-20  Simon Josefsson  <jas@extundo.com>
74573
74574         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
74575         * lib/version-etc.c: Remove version_etc_copyright.
74576         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
74577         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
74578
74579 2005-01-20  Simon Josefsson  <jas@extundo.com>
74580
74581         * lib/base64.h (isbase64): Add.
74582
74583         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
74584         using a unsigned prototype, don't inline.
74585         (base64_decode): Use it.
74586
74587 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74588
74589         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
74590         it.
74591
74592 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74593
74594         * lib/save-cwd.c (save_cwd): Remove code to support the case
74595         where fchdir is missing or flaky.
74596
74597 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74598
74599         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
74600
74601 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
74602
74603         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
74604         AC_LIBSOURCES now does this.
74605         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
74606         with new ullong_max module.
74607
74608 2005-01-19  Bruno Haible  <bruno@clisp.org>
74609
74610         * modules/sh-quote: New file.
74611         * MODULES.html.sh (Executing programs): Add sh-quote.
74612
74613 2005-01-19  Bruno Haible  <bruno@clisp.org>
74614
74615         * lib/sh-quote.h: New file, from GNU gettext.
74616         * lib/sh-quote.c: New file, from GNU gettext.
74617
74618 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74619
74620         Merge from coreutils.
74621         * m4/ullong_max.m4: New file.
74622         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
74623         (gl_MACROS): Assume localeconv exists.
74624
74625 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74626
74627         Merge changes from coreutils, as described below in several
74628         changelogs dated today.
74629
74630         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
74631         (O_DIRECTORY): Remove; not needed here, since "." must be
74632         a directory.  All uses removed.
74633         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
74634         universal on Suns, and we also need to test for IRIX.
74635         Revamp code to use 'if' rather than '#if'.
74636         Avoid unnecessary comparison of cwd->desc to 0.
74637
74638         * lib/utimens.c (futimens): Robustify the previous patch, by checking
74639         for known valid error numbers rather than observed invalid ones.
74640
74641 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74642
74643         * modules/ullong_max: New file.
74644
74645         * modules/chdir-long, modules/openat: New files.
74646         * modules/save-cwd (Depends-on): Depend on chdir-long.
74647         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
74648
74649 2005-01-18  Jim Meyering  <jim@meyering.net>
74650
74651         Merge from coreutils.
74652         * m4/chdir-long.m4, m4/openat.m4: New files.
74653         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
74654         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
74655         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
74656         is sane and DOES follow symlinks.  Besides, testing 20 different
74657         systems found no broken chown implementations.
74658         Prompted by a change in rsync's copy of this macro.
74659         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
74660
74661         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
74662
74663         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
74664         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
74665         NULL-means-set-to-current-time semantics.
74666         Remove temporary file immediately, rather than waiting
74667         for configure's at-exit trap code to do it.
74668
74669 2005-01-18  Jim Meyering  <jim@meyering.net>
74670
74671         * lib/version-etc.c (version_etc_copyright): Update copyright date.
74672
74673         * lib/utimens.c (futimens): Account for the fact that futimes
74674         can also fail with errno == ENOSYS or errno == ENOENT.
74675         Patch from Dmitry V. Levin.
74676
74677         Change the name of the robust chdir function from chdir to chdir_long.
74678         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
74679         (restore_cwd): Use chdir_long, not chdir.
74680         * lib/chdir-long.c: Renamed from chdir.c.
74681         * lib/chdir-long.h: Renamed from chdir.h.
74682         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
74683         Hurd.
74684
74685 2005-01-18  Bruno Haible  <bruno@clisp.org>
74686
74687         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
74688         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
74689         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
74690         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
74691         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
74692         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
74693         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
74694         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
74695         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
74696         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
74697         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
74698         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
74699         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
74700         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
74701         Use an all-permissive copyright notice, recommended by RMS.
74702
74703 2005-01-18  Bob Proulx  <bob@proulx.com>
74704
74705         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
74706         simplify offsetof() macro construct to avoid compile failure with
74707         native HP-UX 11.0 ANSI C compiler.
74708
74709 2005-01-17  Bruno Haible  <bruno@clisp.org>
74710
74711         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
74712         redundant because stpncpy.m4 takes care of it.
74713
74714 2005-01-17  Bruno Haible  <bruno@clisp.org>
74715
74716         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
74717
74718 2005-01-17  Bruno Haible  <bruno@clisp.org>
74719
74720         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
74721         used.
74722
74723 2005-01-17  Bruno Haible  <bruno@clisp.org>
74724
74725         * lib/fwriteerror.h (fwriteerror): Change specification to include
74726         fclose.
74727         * lib/fwriteerror.c: Include <stdbool.h>.
74728         (fwriteerror): At the end, close the file stream. Record whether
74729         stdout was already closed.
74730
74731 2005-01-17  Bruno Haible  <bruno@clisp.org>
74732
74733         * lib/execute.c (environ): Declare if needed.
74734         * lib/pipe.c (environ): Likewise.
74735         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
74736
74737 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74738
74739         * modules/argp: Depend on vsnprintf
74740
74741 2005-01-10  Jim Meyering  <jim@meyering.net>
74742
74743         * modules/closeout (Depends-on): Add atexit.
74744
74745 2005-01-06  Bruno Haible  <bruno@clisp.org>
74746
74747         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
74748
74749 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74750
74751         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
74752         definitions to be after all include files, to avoid collisions.
74753         Problem reported by Bob Proulx.
74754
74755 2005-01-04  Jim Meyering  <jim@meyering.net>
74756
74757         Changes imported from coreutils.
74758         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
74759         as the mkstemp template, use a temporary directory and an
74760         8.3-friendly template to avoid trouble on systems like DJGPP.
74761         Reported by Juan M. Guerrero via Stepan Kasal.
74762         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
74763         close. Remove the temporary directory right away, rather than waiting
74764         for configure's at-exit trap code to do it.
74765         Suggestion from Stepan Kasal.
74766
74767 2005-01-01  Simon Josefsson  <jas@extundo.com>
74768
74769         * gnulib-tool: Print #include directives when --import'ing.
74770
74771 2004-12-28  Simon Josefsson  <jas@extundo.com>
74772
74773         * tests/test-base64.c: Include required header files.  Remove
74774         unused variables.
74775
74776 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74777
74778         * modules/error (Depends-on): Remove gettext.
74779
74780 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74781
74782         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
74783         not needed.  This removes a dependency on the gettext module.
74784         [defined _LIBC]: Do not include <libintl.h>; not needed.
74785
74786 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
74787
74788         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
74789         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
74790
74791 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
74792
74793         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
74794         HAVE_DECL_STRTOLD.
74795
74796 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74797
74798         * modules/getdate (Depends-on): Remove alloca-opt.
74799
74800 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74801
74802         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
74803
74804 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74805
74806         * lib/argp-parse.c: Include <stddef.h>.
74807         (alignof, alignto): New macros.
74808         (parser_init): Don't assume that void * is aligned sufficiently
74809         for struct option.
74810
74811         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
74812         need to extend the stack.
74813         (YYINITDEPTH): New macro, so that the initial stack isn't overly
74814         large.
74815
74816 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74817
74818         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
74819
74820 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
74821
74822         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
74823         (2004-10-24) change.  Apparently this was a false alarm.
74824
74825         * modules/getdate: Depend on alloca-opt, not alloca.
74826
74827 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
74828
74829         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
74830         Remove now-obsolete comment about AIX.
74831         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
74832         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
74833         (YYMAXDEPTH): New macro.
74834
74835 2004-12-18  Simon Josefsson  <jas@extundo.com>
74836
74837         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
74838
74839 2004-12-18  Bruno Haible  <bruno@clisp.org>
74840
74841         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
74842
74843 2004-12-18  Bruno Haible  <bruno@clisp.org>
74844
74845         * lib/fatal-signal.c (fatal_signals): Make non-const.
74846         (init_fatal_signals): New function.
74847         (uninstall_handlers, install_handlers): Ignore signals that were set to
74848         SIG_IGN.
74849         (at_fatal_signal): Call init_fatal_signals.
74850         (init_fatal_signal_set): Likewise. Ignore signals that were set to
74851         SIG_IGN.
74852         Reported by Paul Eggert.
74853
74854 2004-12-18  Bruno Haible  <bruno@clisp.org>
74855
74856         * doc/alloca.texi: New file.
74857         * doc/alloca-opt.texi: New file.
74858
74859 2004-12-17  Jim Meyering  <jim@meyering.net>
74860
74861         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
74862         Otherwise, install-sh could exit with improper exit status when
74863         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
74864
74865 2004-12-16  Simon Josefsson  <jas@extundo.com>
74866
74867         * tests/test-base64.c: Add license.
74868
74869 2004-12-15  Stepan Kasal  <address@hidden>
74870
74871         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
74872
74873 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
74874
74875         * modules/getcwd (Files): Add m4/d-ino.m4.
74876         Suggested by Mark D. Baushke.
74877
74878 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
74879
74880         * lib/getdate.y (textint): New member "negative".
74881         (time_zone_hhmm): New function.
74882         Expect 14 shift-reduce conflicts, not 13.
74883         (o_colon_minutes): New rule.
74884         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
74885         (yylex): Set the "negative" member of signed numbers.
74886
74887 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
74888
74889         * doc/getdate.texi (Time of day items, Time zone items):
74890         Describe new formats +00:00, UTC+00:00.
74891
74892 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74893
74894         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
74895         spurious "-l"s.  Problem reported by Stepan Kasal.
74896
74897 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
74898
74899         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
74900         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
74901
74902 2004-12-04  Simon Josefsson  <jas@extundo.com>
74903
74904         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
74905         Vandoorselaere <yoann@prelude-ids.org>.
74906
74907 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74908
74909         Changes imported from coreutils.
74910         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
74911         exist.
74912         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
74913
74914 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74915
74916         Changes imported from coreutils.
74917         * lib/hard-locale.c: Assume <locale.h> exists.
74918         Include "strdup.h".
74919         (GLIBC_VERSION): New macro.
74920         (hard_locale): Assume setlocale exists.
74921         Rewrite to avoid #ifdef.
74922         Use strdup rather than malloc + strcpy.
74923         * lib/human.c: Assume <locale.h> exists.
74924         (human_readable): Assume localeconv exists.
74925
74926 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74927
74928         * modules/hard-locale (Depends-on): Add strdup.
74929
74930 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
74931
74932         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
74933         convert T2, not T.  (Imported from libc.)
74934
74935 2004-11-30  Simon Josefsson  <jas@extundo.com>
74936
74937         * modules/restrict (License): Change to LGPL.
74938
74939 2004-11-30  Simon Josefsson  <jas@extundo.com>
74940
74941         * m4/restrict.m4: Add copyright and copying conditions.
74942
74943 2004-11-30  Simon Josefsson  <jas@extundo.com>
74944
74945         * m4/base64.m4: New file.
74946
74947 2004-11-30  Simon Josefsson  <jas@extundo.com>
74948
74949         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
74950         base64.
74951
74952         * tests/test-base64.c: New file.
74953
74954         * modules/base64: New file.
74955
74956 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
74957
74958         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
74959         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
74960
74961         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
74962
74963 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
74964
74965         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
74966         (__getcwd.c): Don't restore errno; glibc doesn't.
74967         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
74968         first, falling back to our code only if its results look suspicious.
74969         Ensure that the resulting buffer is only as large as necessary.
74970
74971         * lib/readutmp.c: Include readutmp.h first.
74972         Include <errno.h>, since readutmp.h no longer does that.
74973         * lib/readutmp.h: Don't include <errno.h>,
74974         <sys/param.h>, <time.h>; not needed to establish interface.
74975         (errno): Remove decl.
74976         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
74977         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
74978         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
74979
74980 2004-11-28  Simon Josefsson  <jas@extundo.com>
74981
74982         * lib/base64.h, base64.c: New file.
74983
74984 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
74985
74986         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
74987
74988 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
74989
74990         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
74991         (Depends-on): Remove pathmax, same.  Add mempcpy.
74992         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
74993         (Makefile.am): Append getcwd.h to lib_SOURCES.
74994         (Include): Add getcwd.h.
74995         (Maintainer): Change from Jim Meyering to "all, glibc",
74996         since getdate now uses intended-for-glibc code.
74997         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
74998         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
74999
75000 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
75001
75002         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
75003         HP's ANSI C compiler.
75004         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
75005         Declaring int functions causes warnings on some modern systems and
75006         shouldn't be needed to compile on ancient ones.
75007         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
75008         defined.
75009
75010         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
75011         with the following changes.
75012         (__set_errno): Parenthesize properly.
75013         Include <stdbool.h>.
75014         (MIN, MAX, MATCHING_INO): New macros.
75015         (__getcwd): Define with prototype, not K&R form.
75016         Use heuristics to allocate default buffer on stack if possible.
75017         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
75018         behavior, and to avoid the PATH_MAX limit when computing
75019         ../../../../...
75020         Use MATCHING_INO to compare inode number to file.
75021         Check for arithmetic overflow in size calculations.
75022         Fix bug in reallocation of dot array that caused getcwd to fail
75023         on directories nested deeper than 75.
75024         Be more careful about saving errno on error.
75025         Do not use realloc; use only free+malloc, as this is a bit
75026         more flexible and avoids a needless copy operation.
75027         Do not inspect st_dev and st_ino for symbolic links; POSIX
75028         doesn't specify the latter.
75029         Check for closedir errors.
75030         Avoid needless casts.
75031         Use "#ifdef weak_alias" around weak_alias, to be like other
75032         glibc code.
75033         The following changes to getcwd.c have effect only when used in
75034         gnulib; they have no effect inside glibc proper.
75035         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
75036         as alloca isn't used.
75037         (alloca, __alloca): Likewise.
75038         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
75039         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
75040         unconditionally, as gnulib assumes C89 or better.
75041         Do not include <sys/param.h>.
75042         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
75043         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
75044         better.
75045         (NULL) [!defined NULL]: Remove; we assume C89 or better.
75046         Include <dirent.h> in a way that is compatible with modern Autoconf.
75047         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
75048         New macros, if not already defined.
75049         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
75050         Use "_LIBC", not "defined _LIBC", for consistency.
75051         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
75052         a mempcpy module.
75053         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
75054         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
75055         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
75056         credit only to Jim Meyering and adjust the copyright dates.
75057         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
75058         <stdlib.h>, <unistd.h>, "pathmax.h".
75059         Instead, include "xgetcwd.h" (first) and "getcwd.h".
75060         (INITIAL_BUFFER_SIZE): Remove.
75061         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
75062
75063 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
75064
75065         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
75066         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
75067         Use the _ONCE methods, for efficiency.
75068         Check for fcntl.h.  In test program, include <errno.h>
75069         and <fcntl.h> if available.  Remove old K&R cruft from
75070         test program.  Check for common errors in GNU/Linux,
75071         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
75072         don't do AC_LIBOBJ, as that's getcwd.m4's job.
75073         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
75074         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
75075         name accordingly.
75076         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
75077         accommodate new getcwd.c.
75078         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
75079         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
75080         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
75081         that's all we need now.
75082
75083 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75084
75085         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
75086         argp-parse.c depends on getopt internals, that means we should
75087         always use our getopt, to be on the safe side.
75088         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
75089         order not to spoil the result of an eventual previous invocation
75090         of gl_GETOPT_SUBSTITUTE.
75091
75092 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75093
75094         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
75095         redefinition warnings. To avoid them, include the defines
75096         in `#if !defined __need_getopt ... #endif'. The only place
75097         where __getopt_argv_const is used is in definitions
75098         of getopt_long and getopt_long_only below, which are as well
75099         protected by `#ifndef __need_getopt'.
75100         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
75101         __need_getopt after including <stdio.h> and <unistd.h> These
75102         headers might have defined it.
75103
75104 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
75105
75106         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
75107
75108 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
75109
75110         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
75111         (futimens): New function, which uses futimes if available.
75112         (futimens, utimens): Support timespec==NULL, with same semantics
75113         as utime and utimens.
75114         * lib/utimens.h (futimens): New decl.
75115
75116 2004-11-23  Jim Meyering  <jim@meyering.net>
75117
75118         * lib/getopt_.h: Remove trailing blanks.
75119
75120 2004-11-23  Jim Meyering  <jim@meyering.net>
75121
75122         * lib/__fpending.c: Add comment.
75123
75124 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
75125
75126         * modules/canonicalize (Depends-on): Add xreadlink.
75127         Problem reported by James Youngman.
75128
75129 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75130
75131         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
75132         New macros.
75133         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
75134         optopt): Use them instead of invoking ## directly; otherwise, the
75135         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
75136
75137 2004-11-19  Bruno Haible  <bruno@clisp.org>
75138
75139         * lib/strtok_r.c: Move comments from here...
75140         * lib/strtok_r.h: ... to here.
75141
75142 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75143
75144         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
75145         implementations that mishandle size_t overflow.
75146
75147 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75148
75149         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
75150         might fail.  Problem reported by Yoann Vandoorselaere.
75151         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
75152         implementations that mishandle size_t overflow.
75153
75154 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75155
75156         * modules/canon-host (Depends-on): Add strdup.
75157
75158 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75159
75160         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
75161
75162 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75163
75164         * lib/canon-host.c: Include "strdup.h".
75165         (canon_host): Use getaddrinfo if available, so that IPv6 works.
75166         Use strdup instead of malloc/strcpy to duplicate strings.
75167
75168         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
75169         (human_space_before_unit): New constant.
75170         * lib/human.c (human_readable): Support it.
75171
75172         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
75173         (xgetcwd): Set errno correctly when failing.
75174         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
75175         the failure is actually due to a PATH_MAX problem.
75176
75177         Further getopt changes to make it more likely that glibc will
75178         buy the changes back.
75179         * lib/getopt.c (POSIXLY_CORRECT): New constant.
75180         (getopt): Use it, so to preserve glibc semantic
75181         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
75182         when compiling for libc.
75183         * lib/getopt_.h (__getopt_argv_const): Bring it back.
75184         (getopt_long, getopt_long_only): Use it.
75185
75186         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
75187         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
75188         (getopt): Argv is now char * const *, as per standard.
75189         (_getopt_internal_r, _getopt_internal): Argv is now char **,
75190         not char *__getopt_argv_const *.
75191         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
75192         _getopt_long_only_r): Likewise.
75193         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
75194         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
75195         _getopt_long_r, _getopt_long_only_r): Likewise.
75196         * lib/getopt_.h (__getopt_argv_const): Remove.
75197         (getopt): Argv is now char * const *, as per standard.
75198
75199         * lib/getdate.y (tORDINAL): New token.
75200         (day, relunit): Allow it for relative times.
75201         (relative_time_table): Use tORDINAL for ordinals.
75202
75203 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75204
75205         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
75206         Document that "second" isn't allowed as an ordinal number.
75207
75208 2004-11-16  Jim Meyering  <jim@meyering.net>
75209
75210         * modules/closeout (Depends-on): Add fpending.
75211
75212 2004-11-15  Jim Meyering  <jim@meyering.net>
75213
75214         * lib/closeout.c: Include "__fpending.h" once again.
75215         Include <stdbool.h>.
75216         (close_stdout): Don't fail just because stdout was closed initially,
75217         since some programs don't write to stdout in the normal course of
75218         operation (other than --version and --help), and we don't want this
75219         function to make e.g. `touch file >&-' fail.
75220         But do fail if it was closed and someone has tried to write to it.
75221         E.g., `printf foo >&-' must fail.
75222
75223 2004-11-13  Jim Meyering  <jim@meyering.net>
75224
75225         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
75226
75227 2004-11-12  Simon Josefsson  <jas@extundo.com>
75228
75229         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
75230         small doc fix is still pending.
75231
75232 2004-11-11  Simon Josefsson  <jas@extundo.com>
75233
75234         * modules/strtok_r: New file.
75235
75236         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75237         strtok_r.
75238
75239 2004-11-11  Simon Josefsson  <jas@extundo.com>
75240
75241         * m4/strtok_r.m4: New file.
75242
75243         * m4/getopt.m4: Replace opterr.
75244
75245 2004-11-11  Simon Josefsson  <jas@extundo.com>
75246
75247         * lib/strtok_r.h, strtok_r.c: New file.
75248
75249 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
75250
75251         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
75252         of replacing opterr, getopt, etc.  This should handle the
75253         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
75254
75255 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
75256
75257         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
75258         we can stop lying to compilers about the constness of argv when we
75259         are compiled outside glibc.
75260         (getopt, getopt_long, getopt_long_only): Use it.
75261         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
75262         _getopt_internal, getopt): Likewise.
75263         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
75264         _getopt_long_only_r): Likewise.
75265         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
75266         _getopt_long_r, _getopt_long_only_r): Likewise.
75267
75268         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
75269         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
75270         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
75271         the other external symbols.
75272         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
75273         declaration, since the above renaming now works around collisions.
75274
75275 2004-11-11  Jim Meyering  <jim@meyering.net>
75276
75277         * lib/linebreak.c: Remove trailing blanks.
75278         * lib/alloca_.h: Likewise.
75279         * lib/acosl.c: Likewise.
75280         * lib/euidaccess.c: Likewise.
75281         * lib/allocsa.h: Likewise.
75282
75283 2004-11-10  Simon Josefsson  <jas@extundo.com>
75284
75285         * m4/getaddrinfo.m4: New file.
75286
75287 2004-11-10  Simon Josefsson  <jas@extundo.com>
75288
75289         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
75290
75291 2004-11-10  Simon Josefsson  <jas@extundo.com>
75292
75293         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75294         getaddrinfo.
75295
75296         * modules/getaddrinfo: New file.
75297
75298 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75299
75300         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
75301
75302 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75303
75304         * lib/mktime.c (SHR): New macro, which is a portable
75305         substitute for >> that should work even on Crays.
75306         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
75307         Problem reported by Mark D. Baushke in
75308         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
75309         * lib/getdate.y (SHR): Likewise.
75310         (tm_diff): Use it.
75311         * lib/strftime.c (SHR): Likewise.
75312         (tm_diff): Use it.
75313         * lib/quotearg.c (struct quoting_options): Use unsigned int for
75314         quote_these_too, so that right shifts are well defined.  All uses
75315         changed.
75316
75317 2004-11-10  Jim Meyering  <jim@meyering.net>
75318
75319         Ensure that no close failure goes unreported.
75320         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
75321         return early when it seems there's nothing to flush.
75322         Don't include __fpending.h.
75323
75324 2004-11-10  Jim Meyering  <jim@meyering.net>
75325
75326         * modules/closeout (Depends-on): Remove fpending.
75327
75328 2004-11-10  Jim Meyering  <jim@meyering.net>
75329
75330         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
75331
75332 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75333
75334         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
75335         gl_FUNC_STRFTIME.
75336         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
75337         and AC_REQUIRE when possible, to avoid duplicate checks.
75338         Check for <wchar.h>.
75339
75340 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75341
75342         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
75343
75344 2004-11-09  Bruno Haible  <bruno@clisp.org>
75345
75346         * m4/sockpfaf.m4: New file.
75347
75348 2004-11-05  Bruno Haible  <bruno@clisp.org>
75349
75350         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
75351         Reported by Mark D. Baushke <mdb@cvshome.org>.
75352
75353 2004-11-04  Bruno Haible  <bruno@clisp.org>
75354
75355         2004-09-11  Bruno Haible  <bruno@clisp.org>
75356                 * allocsa.valgrind: New file.
75357         2004-02-06  Bruno Haible  <bruno@clisp.org>
75358                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
75359                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
75360                 Reported by Christopher Seip <chris.seip@hp.com>.
75361
75362 2004-11-04  Bruno Haible  <bruno@clisp.org>
75363
75364         * modules/allocsa (Files): Add lib/allocsa.valgrind.
75365         (Makefile.am): Distribute it.
75366
75367 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
75368
75369         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
75370         with errno == ERANGE if the buffer is too small.
75371         Problem reported by Mark D. Baushke.
75372
75373 2004-11-03  Albert Chin  <china@thewrittenword.com>
75374             Paul Eggert  <eggert@cs.ucla.edu>
75375
75376         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
75377         equivalent, substitute $ac_type for equivalent type rather than
75378         blindly using uint32_t *always* which won't work if uint32_t is not
75379         available.  Define _UINT32_T to work around typedef of uint32_t if
75380         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
75381         2.5.1.
75382
75383 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75384
75385         * m4/jm-macros.m4: Sync from coreutils.
75386         (gl_MACROS): Check for mbrlen, for pathchk.
75387         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
75388
75389 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75390
75391         * lib/xreadlink.c (MAXSIZE): New macro.
75392         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
75393         size does not exceed MAXSIZE.  Avoid cast.
75394         As suggested by Mark D. Baushke in
75395         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
75396         if readlink fails with buffer size just under MAXSIZE, try again
75397         with MAXSIZE.
75398
75399 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75400
75401         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
75402
75403 2004-11-02  Derek R. Price  <derek@ximbiot.com>
75404         and  Paul Eggert  <eggert@cs.ucla.edu>
75405
75406         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
75407         (get_date): Overparenthesize to avoid GCC warning.
75408
75409 2004-11-02  Bruno Haible  <bruno@clisp.org>
75410
75411         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
75412         returns void.
75413
75414 2004-11-02  Bruno Haible  <bruno@clisp.org>
75415
75416         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
75417         function returns void.
75418
75419 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
75420
75421         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
75422         fflush_unlocked, flockfile, funlockfile, funlockfile,
75423         fputs_unlocked, putc_unlocked.
75424
75425 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
75426
75427         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
75428         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
75429         already declared.
75430
75431 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75432
75433         * modules/getdate (Files): Add doc/getdate.texi.
75434         (Depends-on): Add setenv, xalloc.
75435
75436 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75437
75438         * lib/getdate.y: Add support for TZ="foo" within a date string.
75439         Fix some bugs near time_t boundaries.  Reject dates with
75440         out-of-range components, e.g., "Sept 31".
75441         Include <stdlib.h>, "setenv.h", "xalloc.h".
75442         (ISDIGIT_LOCALE): Remove; unused.
75443         Note that the TZ and time functions used here are not reentrant.
75444         (mktime_ok, get_tz): New functions.
75445         (TZBUFSIZE): New constant.
75446         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
75447         This requires that we sometimes generate our own TZ="XXX..." setting.
75448
75449 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75450
75451         * doc/getdate.texi: New file, from coreutils with modifications for
75452         the new TZ parsing.
75453
75454 2004-10-27  Derek R. Price  <derek@ximbiot.com>
75455
75456         * lib/mktime.c (not_equal_tm): Remove redundant check.
75457
75458 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75459
75460         * modules/regex (lib_SOURCES): Add regex.c.
75461         Reported by James Youngman in
75462         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
75463
75464 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75465
75466         * lib/getdate.y: Use Bison 1.875 features, and some minor
75467         code cleanups.  This change does not affect semantics.
75468         Don't include <stdlib.h>; no longer needed.
75469         Don't include unlocked-io.h; only the "#if TEST" code uses
75470         stdio, and performance isn't crucial there.
75471         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
75472         Bison 1.875 features as described below.
75473         All uses of "PC." replaced by "pc->".
75474         (YYSTYPE): Add a forward declaration.
75475         (yylex, yyerror): Use full prototypes in forward decls.
75476         Use "%pure-parser" rather than obsolescent "%pure_parser".
75477         Use %parse-param and %lex-param instead of obsolescent
75478         YYPARSE_PARAM and YYLEX_PARAM.
75479         (meridian_table, month_and_day_table, time_units_table,
75480         relative_time_table, time_zone_table, military_table,
75481         lookup_zone, lookup_word, get_date):
75482         Use NULL instead of 0 where appropriate.
75483         (to_hour): Avoid abort (), to avoid a dependency on
75484         stdlib.h.
75485         (yyerror, yylex): Now accepts parser_control * arg.
75486         (main) [TEST]: Use '\0' rather than 0 for char.
75487
75488 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75489
75490         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
75491
75492 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75493
75494         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
75495         It's now the caller's responsibility to handle the case where
75496         !HAVE_GETPAGESIZE && !defined getpagesize.
75497
75498         * lib/mktime.c (leapyear): Arg is long int, not int.
75499
75500 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
75501
75502         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
75503
75504 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
75505
75506         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
75507         missing.  Problem reported by James Youngman.
75508
75509 2004-10-16  Simon Josefsson  <jas@extundo.com>
75510
75511         * gnulib-tool: Fix comments.  Fix parse problem.
75512         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
75513
75514 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
75515
75516         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
75517         implementation of getopt_long.  Problem reported by Alexander Taler in:
75518         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
75519
75520 2004-10-15  Bruno Haible  <bruno@clisp.org>
75521
75522         * gnulib-tool: Untabify. Initialize supplied_libname.
75523         (func_usage): More homogenous output.
75524         (func_modules_transitive_closure, func_modules_to_filelist,
75525         func_emit_lib_Makefile_am): New functions.
75526         (func_import): New function, extracted from big case statement. Use
75527         func_get_license, func_modules_transitive_closure,
75528         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
75529         opt_lgpl. Don't use test -a, as it's not portable.
75530         (func_create_testdir): Use func_modules_transitive_closure,
75531         func_modules_to_filelist, func_emit_lib_Makefile_am.
75532
75533 2004-10-15  Bruno Haible  <bruno@clisp.org>
75534
75535         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
75536
75537 2004-10-15  Bruno Haible  <bruno@clisp.org>
75538
75539         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
75540         the portions belonging to each module.
75541         Suggested by Derek Robert Price <derek@ximbiot.com>.
75542
75543 2004-10-12  Simon Josefsson  <jas@extundo.com>
75544
75545         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
75546         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
75547         to real functions.
75548
75549 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75550
75551         * modules/vsnprintf: New file.
75552
75553 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75554
75555         * m4/vsnprintf.m4: New file.
75556
75557 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75558
75559         * lib/vsnprintf.h: New file.
75560         * lib/vsnprintf.c: New file.
75561
75562 2004-10-11  Bruno Haible  <bruno@clisp.org>
75563
75564         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
75565         vsnprintf.
75566
75567 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75568
75569         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
75570
75571 2004-10-07  Bruno Haible  <bruno@clisp.org>
75572
75573         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
75574         fits into the provided buffer.
75575
75576 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75577
75578         * lib/diacrit.c, diacrit.h: Add GPL notice.
75579
75580         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
75581         notice.
75582         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
75583         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
75584         This avoids a potential constant-folding bug.
75585
75586 2004-10-05  Bruno Haible  <bruno@clisp.org>
75587
75588         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
75589         for the declaration of strsep.
75590
75591 2004-10-05  Bruno Haible  <bruno@clisp.org>
75592
75593         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
75594
75595 2004-10-04  Simon Josefsson  <jas@extundo.com>
75596
75597         * modules/memmem: New file.
75598         * tests/test-memmem.c: New file.
75599         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
75600
75601 2004-10-04  Simon Josefsson  <jas@extundo.com>
75602
75603         * m4/memmem.m4: New file.
75604
75605 2004-10-04  Simon Josefsson  <jas@extundo.com>
75606
75607         * lib/memmem.h: New file.
75608         * lib/memmem.c: New file, taken from glibc.
75609
75610 2004-10-04  Simon Josefsson  <jas@extundo.com>
75611
75612         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
75613         '#ifdef USE_UNLOCKED_IO'.
75614
75615 2004-10-04  Simon Josefsson  <jas@extundo.com>
75616
75617         * config/srclist.txt: Add memmem from glibc.
75618
75619 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75620
75621         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
75622
75623         * modules/argmatch, modules/argp, modules/closeout, modules/error,
75624         modules/exclude, modules/getdate, modules/getline,
75625         modules/getndelim2, modules/getpass, modules/getpass-gnu,
75626         modules/getusershell, modules/linebuffer, modules/md5,
75627         modules/mountlist, modules/posixtm, modules/readtokens,
75628         modules/readutmp, modules/regex, modules/sha1,
75629         modules/version-etc, modules/yesno:
75630         Remove dependency on unlocked-io.
75631
75632 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75633
75634         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
75635
75636         * m4/unlocked-io.m4: Add copyright notice.
75637         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
75638
75639 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75640
75641         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
75642         * lib/xmalloc.c (xmemdup): Likewise.
75643         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
75644         XFREE): Remove these long-obsolescent macros.
75645         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
75646         * lib/xstrdup.c: Remove.
75647
75648         * lib/regex.c (re_comp): Cast gettext return value to char *,
75649         Problem reported by Martin Neitzel via Mark D. Baushke.
75650
75651 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75652
75653         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
75654         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
75655         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
75656         regex.c, sha1.c, version-etc.c, yesno.c:
75657         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
75658         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
75659         the includer's responsibility.
75660
75661         Sync from coreutils.
75662
75663         * lib/modechange.c (mode_compile): Don't decrement a pointer that
75664         points to the start of a string, as the C Standard says the
75665         resulting behavior is undefined.
75666
75667         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
75668         simple -> simple_backups, numbered_existing ->
75669         numbered_existing_backups, numbered -> numbered_backups
75670         to avoid shadowing problems.  All uses changed.
75671         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
75672         * lib/backupfile.c (check_extension, numbered_backup):
75673         Rename locals to avoid shadowing 'basename'.
75674         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
75675         once.
75676
75677         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
75678         * lib/.cvsignore: Add getopt.h.
75679
75680 2004-10-04  Bruno Haible  <bruno@clisp.org>
75681
75682         * modules/README: New file.
75683         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
75684         not a module.
75685
75686 2004-10-02  Jim Meyering  <jim@meyering.net>
75687
75688         * lib/dirfd.h, getpagesize.h: Add copyright notice.
75689
75690 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75691
75692         * modules/strsep: New file.
75693
75694 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75695
75696         * m4/strsep.m4: New file.
75697
75698 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75699
75700         * lib/strsep.h: New file.
75701         * lib/strsep.c: New file.
75702
75703 2004-10-01  Simon Josefsson  <jas@extundo.com>
75704
75705         * lib/snprintf.c (snprintf): Handle size==0.
75706
75707 2004-10-01  Simon Josefsson  <jas@extundo.com>
75708             Bruno Haible  <bruno@clisp.org>
75709
75710         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
75711         (snprintf): Declare 'args'.
75712
75713 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
75714
75715         * lib/snprintf.c: Remove comments as to why each header is needed.
75716
75717 2004-10-01  Bruno Haible  <bruno@clisp.org>
75718
75719         * MODULES.html.sh: Add strsep.
75720
75721 2004-09-30  Simon Josefsson  <jas@extundo.com>
75722
75723         * modules/snprintf: New file.
75724
75725 2004-09-30  Simon Josefsson  <jas@extundo.com>
75726
75727         * m4/snprintf.m4: New file.
75728
75729 2004-09-30  Simon Josefsson  <jas@extundo.com>
75730
75731         * lib/snprintf.h, lib/snprintf.c: New files.
75732
75733 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75734
75735         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
75736         (hol_entry_help): Never translate an empty string.
75737         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
75738         * lib/argp.h (OPTION_NO_TRANS): New option.
75739
75740 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75741
75742         * modules/argp (Maintainer): Replace Simon Josefsson
75743         by Sergey Poznyakoff.
75744
75745 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75746
75747         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
75748         changes merged back into glibc.
75749
75750 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75751
75752         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
75753
75754 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75755
75756         * lib/xvasprintf.c: Include xalloc.h.
75757         (xvasprintf): Use xalloc_die, not xmalloc_die.
75758
75759 2004-09-29  Bruno Haible  <bruno@clisp.org>
75760
75761         * modules/alloca-opt: New file, derived from modules/alloca.
75762         * modules/allocsa: Depend on alloca-opt instead of alloca.
75763         * modules/setenv: Likewise.
75764         * modules/vasnprintf: Likewise.
75765         * MODULES.html.sh: Add alloca-opt.
75766
75767 2004-09-28  Simon Josefsson  <jas@extundo.com>
75768
75769         * gnulib-tool: New parameter --lgpl, to asseert that modules are
75770         LGPL, and to replace license template from GPL to LGPL.
75771
75772 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
75773
75774         * modules/dummy: Change license to LGPL.
75775
75776 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
75777
75778         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
75779
75780 2004-09-24  Simon Josefsson  <jas@extundo.com>
75781
75782         * modules/minmax (License): Change from GPL to LGPL.
75783
75784 2004-09-23  Simon Josefsson  <jas@extundo.com>
75785
75786         * gnulib-tool (--import): Typo.
75787
75788 2004-09-23  Simon Josefsson  <jas@extundo.com>
75789
75790         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
75791
75792 2004-09-22  Bruno Haible  <bruno@clisp.org>
75793
75794         * modules/*: Add 'License' field.
75795         * gnulib-tool: Accept --extract-license option.
75796         (func_get_license): New function.
75797
75798 2004-09-21  Bruno Haible  <bruno@clisp.org>
75799
75800         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
75801         Reported by Simon Josefsson.
75802
75803 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75804
75805         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
75806         gl_AC_TYPE_LONG_LONG.
75807
75808 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75809
75810         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
75811
75812 2004-09-18  Simon Josefsson  <jas@extundo.com>
75813         and  Paul Eggert  <eggert@cs.ucla.edu>
75814
75815         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
75816         calls with autoreconf.  Define GL_LIB.
75817
75818 2004-09-14  Karl Berry  <karl@gnu.org>
75819
75820         * config/srclist.txt: unsync setenv.c, sigh.
75821
75822 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75823
75824         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
75825         Problem reported by Bruno Haible in:
75826         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
75827
75828 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75829
75830         * config/srclist.txt: Comment out argp-pvh.c.
75831
75832 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
75833
75834         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
75835         in case some system header has #define'd it.  Problem reported by
75836         Soeren D. Schulze in
75837         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
75838
75839 2004-09-09  Karl Berry  <karl@gnu.org>
75840
75841         * regex.[ch]: delete from the root.  These were supposed to be
75842                 synced with emacs cvs, but this has not happened for about
75843                 a year, and anyway nothing else uses emacs regex.[ch].
75844                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
75845                 lib/regex[.ch] is untouched.
75846
75847 2004-09-09  Bruno Haible  <bruno@clisp.org>
75848
75849         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
75850
75851 2004-09-09  Bruno Haible  <bruno@clisp.org>
75852
75853         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
75854         modifications.
75855         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
75856
75857 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
75858
75859         * modules/xvasprintf: New file.
75860         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
75861
75862 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
75863
75864         * lib/xvasprintf.h: New file.
75865         * lib/xvasprintf.c: New file.
75866         * lib/xasprintf.c: New file.
75867
75868 2004-09-08  Bruno Haible  <bruno@clisp.org>
75869
75870         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
75871
75872 2004-09-08  Bruno Haible  <bruno@clisp.org>
75873
75874         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
75875         length is > INT_MAX.
75876         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
75877         more.
75878
75879 2004-09-08  Bruno Haible  <bruno@clisp.org>
75880
75881         * lib/stdint_.h: New file, taken from GNU clisp.
75882
75883 2004-09-08  Bruno Haible  <bruno@clisp.org>
75884             Oskar Liljeblad  <oskar@osk.mine.nu>
75885
75886         * modules/stdint: New file.
75887         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
75888
75889 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75890
75891         Import from coreutils.
75892         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
75893         strings on unbounded length.  alloca's performance benefits aren't
75894         that important here.
75895         (V_STRDUP): Remove.
75896         (parse_with_separator): New function, with most of the internals
75897         of the old parse_user_spec.  Allow user to omit both user and group,
75898         for compatibility with FreeBSD.
75899         Clone only the user name, not the entire spec.
75900         Do not set *uid, *gid unless entirely successful.
75901         Avoid memory leak in some failing cases.
75902         Fix regression for USER.GROUP reported by Dmitry V. Levin in
75903         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
75904         (parse_user_spec): Rewrite to use parse_with_separator.
75905
75906 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75907
75908         * modules/userspec: Don't depend on alloca.
75909
75910 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75911
75912         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
75913
75914 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75915
75916         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
75917         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
75918         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
75919
75920 2004-08-16  Simon Josefsson  <jas@extundo.com>
75921
75922         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
75923         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
75924         Add --dry-run for --import.
75925         Let user provided command line parameters override configure.ac
75926         settings.
75927
75928 2004-08-12  Simon Josefsson  <jas@extundo.com>
75929
75930         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
75931         as discussed with Paul Eggert in threads rooted at
75932         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
75933         and
75934         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
75935         Before, the test was empty, and relied on ELIDE_CODE in source
75936         code.)
75937         (gl_PREREQ_GETOPT): New macro.
75938         (gl_GETOPT): Use them.
75939
75940 2004-08-12  Simon Josefsson  <jas@extundo.com>
75941
75942         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
75943         * lib/getopt_.h: Renamed from getopt.h.
75944
75945 2004-08-12  Simon Josefsson  <jas@extundo.com>
75946
75947         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
75948         Change default library name from libfoo to libgnu.
75949         Now, if you have a configure.ac that says:
75950                 gl_SOURCE_BASE(gl)
75951                 gl_M4_BASE(gl/m4)
75952                 gl_MODULES(error getopt etcetera)
75953                 gl_INIT
75954         you can import all you need by running:
75955                 ../gnulib/gnulib-tool --import
75956
75957         * modules/getopt (Files): Rename getopt.h to getopt_.h.
75958         (Makefile.am): Rewrite, use logic from argz.
75959         (Include): Use <getopt.h> instead of "getopt.h".
75960
75961 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75962
75963         * modules/argp (Files): Add m4/unlocked-io.m4.
75964         (Depends-on): Add extensions.
75965
75966 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75967
75968         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
75969         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
75970         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
75971         Check for program_invocation_name, program_invocation_short_name,
75972         flockfile, funlockfile, features.h, _getopt_long_only_r.
75973
75974 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75975
75976         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
75977         its complicated substitute.
75978         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
75979         and program_invocation_name.
75980         (__argp_basename) [!_LIBC]: Remove; the only use was
75981         replaced by its body.
75982         (__argp_short_program_name): Change condition from
75983         !defined __argp_short_program_name to
75984         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
75985         to match argp-namefrob.h.
75986         (__argp_failure): Don't assume strerror_r returns char *.
75987         * lib/argp-parse.c (N_): Define unconditionally.
75988         (argp_default_options): Fill out initializers with 0 to avoid
75989         gcc warnings.
75990
75991 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75992
75993         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
75994         getopt1.c.
75995
75996 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75997
75998         Merge from coreutils.
75999
76000         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
76001
76002         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
76003         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
76004
76005 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76006
76007         Merge from coreutils.
76008
76009         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
76010         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
76011         for Reliant Unix 5.43.
76012
76013         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
76014         (union fooround): Use uintmax_t, not long int.
76015         The rest is a merge from libc:
76016         [defined _LIBC]: Include <shlib-compat.h>.
76017         (_obstack) [defined _LIBC]: Remove after 2.3.4.
76018
76019         * lib/settime.c (settime): Recode to avoid warning with
76020         Sun Forte C 6U2.
76021
76022         * lib/strverscmp.c: Convert to UTF-8.
76023
76024 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76025
76026         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
76027         m4/uintmax_t.m4.
76028
76029 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76030
76031         * modules/xalloc-die: New file.
76032         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
76033
76034         * modules/md5 (Files): Add m4/uint32_t.m4.
76035         * modules/sha1: Renamed from modules/sha.
76036         (Files):
76037         Rename lib/sha.h to lib/sha1.h.
76038         Rename lib/sha.c to lib/sha1.c.
76039         Rename m4/sha.m4 to m4/sha1.m4.
76040         (lib_SOURCES): Likewise.
76041         (configure.ac): Rename gl_SHA to gl_SHA1.
76042         (Include): sha.h -> sha1.h.
76043
76044 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76045
76046         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
76047         * m4/sha1.m4: Renamed from sha.m4.
76048         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
76049
76050 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76051
76052         * lib/obstack.h (obstack_empty_p):
76053         Don't assume that chunk->contents is suitably aligned.
76054         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
76055         Likewise. Problem reported by Benno in
76056         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
76057
76058         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
76059         readable.  This could be improved further but it'd take some work.
76060
76061 2004-08-08  Simon Josefsson  <jas@extundo.com>
76062
76063         * modules/xgethostname (Depends-on): Remove exit and error (not
76064         used).
76065
76066         * modules/getpass-gnu: Add getpass.h.
76067         (Depends-on): Add stdbool.
76068         * modules/getpass: Add getpass.h.
76069
76070 2004-08-08  Simon Josefsson  <jas@extundo.com>
76071
76072         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
76073         Check getpass declaration.
76074
76075 2004-08-08  Simon Josefsson  <jas@extundo.com>
76076
76077         * lib/xgethostname.c: Don't include error.h (not used).
76078
76079         * lib/getpass.h: Add.
76080         * lib/getpass.c: Include getpass.h first.
76081
76082 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
76083
76084         * lib/xalloc-die.c: New file.
76085         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
76086         All uses removed.
76087         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
76088         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
76089         xalloc-die.c.
76090         (_, N_, xalloc_die): Move to xalloc-die.c.
76091         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
76092         so that we needn't mess with xalloc_msg_memory_exhausted.
76093
76094         * lib/sha1.h: Renamed from sha.h.
76095         (SHA1_H): Renamed from _SHA_H.
76096         (sha1_ctx): Renamed from sha_ctx.
76097         (sha1_init_ctx): Renamed from sha_init_ctx.
76098         (sha1_process_block): Renamed from sha_process_block.
76099         (sha1_process_bytes): Renamed from sha_process_bytes.
76100         (sha1_finish_ctx): Renamed from sha_finish_ctx.
76101         (sha1_read_ctx): Renamed from sha_read_ctx.
76102         (sha1_stream): Renamed from sha_stream.
76103         (sha1_buffer): Renamed from sha_buffer.
76104         * lib/sha1.c: Likewise; renamed from sha.c.
76105         Do not include <sys/types.h>.
76106         Include <stddef.h> rather than <stdlib.h>.
76107
76108 2004-08-08  Bruno Haible  <bruno@clisp.org>
76109
76110         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
76111         FILESYSTEM_PREFIX_LEN.
76112         * lib/progreloc.c: Likewise.
76113         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
76114
76115 2004-08-06  Simon Josefsson  <jas@extundo.com>
76116
76117         * modules/progname (Depends-on): Don't depend on stdbool.
76118
76119 2004-08-06  Simon Josefsson  <jas@extundo.com>
76120
76121         * modules/getsubopt: New file.
76122         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76123         getsubopt.
76124
76125 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76126
76127         More merge from coreutils.
76128
76129         * m4/utimens.m4, m4/utimecmp.m4: New files.
76130         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
76131         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
76132         prereq.m4, sha.m4: Import changes from coreutils.
76133
76134 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76135
76136         More merge from coreutils.
76137         * modules/raise, modules/readtokens0, modules/utimens:
76138         * modules/utimecmp, module/xnanosleep: New files.
76139         * modules/strftime: Add lib/strftime.h.
76140         Change include from <time.h> to "strftime.h".
76141         * modules/yesno: Add lib/yesno.h.
76142         * modules/backupfile: Remove lib/addext.c.
76143         * modules/euidaccess: Add stat-macros.h.
76144         * modules/canonicalize, modules/euidaccess,
76145         modules/filemode, modules/lchown, modules/makepath,
76146         modules/rmdir, modules/stat: Likewise.
76147
76148 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76149
76150         Merge from tar.
76151         * lib/argp-help.c (make_hol, hol_append): Don't assume that
76152         SIZE_MAX is a valid preprocessor constant.
76153         (__argp_basename): Change from "#ifndef _LIBC"
76154         to "#ifndef __argp_short_program_name", so that
76155         we don't compile these functions for tar.
76156
76157         More merges from coreutils.
76158         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
76159         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
76160         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
76161         * lib/addext.c: Remove; no longer needed.
76162         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
76163         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
76164         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
76165         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
76166         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
76167         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
76168         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
76169         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
76170         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
76171         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
76172         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
76173         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
76174         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
76175         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
76176         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
76177         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
76178         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
76179         Import changes from coreutils.
76180
76181 2004-08-05  Simon Josefsson  <jas@extundo.com>
76182
76183         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
76184
76185 2004-08-05  Simon Josefsson  <jas@extundo.com>
76186
76187         * m4/getsubopt.m4: New file.
76188
76189 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76190
76191         Merge from coreutils.
76192
76193         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
76194         * m4/getcwd-path-max.m4: New files.
76195
76196         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
76197         FILESYSTEM_PREFIX_LEN ->
76198         FILE_SYSTEM_PREFIX_LEN.
76199         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
76200         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
76201         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
76202         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
76203
76204         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
76205         prerequisite modules now handle the DOS stuff.
76206         Don't check for unistd.h.
76207
76208 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76209
76210         Merge from coreutils.
76211
76212         * lib/.gdb-history: Remove; this doesn't belong here.
76213
76214         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
76215         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
76216         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
76217         * lib/getcwd.c: New files.
76218
76219         * lib/dirname.h: Include <stdbool.h>.
76220         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
76221         for consistency with POSIX terminology.  All uses changed.
76222         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
76223         (strip_trailing_slashes): Use bool for booleans.
76224         * lib/stripslash.c (strip_trailing_slashes): Likewise.
76225
76226         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
76227         sometimes returns a positive errno value even when it succeeds.
76228         (print_errno_message) [!LIBC]: Fall back on strerror if
76229         __strerror_r fails.
76230
76231         * lib/path-concat.c (mempcpy): Don't define if a system header defines
76232         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
76233         (longest_relative_suffix): New function.
76234         (path_concat): Use it.  Assume first argument is not NULL.
76235         Port to DOS.  Omit redundant separators.
76236         Report an error instead of returning NULL.
76237         Use mempcpy instead of memcpy.
76238         (xpath_concat): Remove: not declared or used.
76239
76240         * lib/same.h: Include <stdbool.h>
76241         (same_name): Return bool, not int.
76242         * lib/same.c (same_name): Likewise.
76243         (errno): Don't declare; we assume C89 or better now.
76244
76245         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
76246         if not already defined.
76247
76248         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
76249         * lib/dup-safer.c (errno): Likewise.
76250
76251 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76252
76253         Merge from coreutils.
76254         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
76255         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
76256         * modules/path-concat: Don't depend on strdup.
76257
76258 2004-08-03  Simon Josefsson  <jas@extundo.com>
76259
76260         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
76261         * lib/progname.h: Don't include stdbool.h.
76262
76263 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76264
76265         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
76266         * MODULES.html.sh (func_all_modules): Remove fatal.
76267
76268 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76269
76270         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
76271
76272 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76273
76274         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
76275         working.
76276
76277 2004-08-02  Simon Josefsson  <jas@extundo.com>
76278
76279         * lib/getsubopt.h: New file, with comments from Bruno Haible.
76280         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
76281         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
76282
76283 2004-08-01  Simon Josefsson  <jas@extundo.com>
76284
76285         * lib/xgetdomainname.c: Include stdlib.h, for free().
76286
76287 2004-07-19  Bruno Haible  <bruno@clisp.org>
76288
76289         * MODULES.html.sh (func_all_modules): Add dummy.
76290
76291 2004-07-16  Simon Josefsson  <jas@extundo.com>
76292
76293         * modules/dummy: New file.
76294
76295 2004-07-16  Simon Josefsson  <jas@extundo.com>
76296
76297         * lib/dummy.c: New file.
76298
76299 2004-07-16  Bruno Haible  <bruno@clisp.org>
76300
76301         * lib/backupfile.h: Add extern "C" for C++.
76302         * lib/closeout.h: Likewise.
76303         * lib/copy-file.h: Likewise.
76304         * lib/findprog.h: Likewise.
76305         * lib/full-write.h: Likewise.
76306         * lib/pathname.h: Likewise.
76307         * lib/progname.h: Likewise.
76308         * lib/stpcpy.h: Likewise.
76309         * lib/stpncpy.h: Likewise.
76310         * lib/strcase.h: Likewise.
76311         * lib/strstr.h: Likewise.
76312         * lib/xalloc.h: Likewise.
76313
76314         * lib/mbswidth.h: Add extern "C" for C++.
76315         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
76316
76317 2004-07-13  Robert Millan  <robertmh@gnu.org>
76318
76319         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
76320
76321 2004-07-09  Simon Josefsson  <jas@extundo.com>
76322
76323         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
76324         failed without this.)
76325
76326 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76327
76328         * modules/chown (Files): Add lib/fchown-stub.c, since
76329         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
76330
76331 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76332
76333         * lib/fchown-stub.c: New file.
76334
76335 2004-06-24  Jim Meyering  <jim@meyering.net>
76336
76337         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
76338
76339 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76340
76341         * modules/argz: Omit "#include".
76342
76343         * MODULES.html.sh (func_all_modules): Add calloc, to match
76344         2004-06-01 addition of calloc module.
76345
76346 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76347
76348         * m4/argz.m4: New file, which is autoupdated from libtool.
76349
76350 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76351
76352         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
76353         libtool.
76354
76355 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76356
76357         * config/srclist-update: Don't insist on "USA." before the
76358         close-comment, as libtool omits the period and puts the */ on a
76359         separate line.
76360         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
76361         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
76362
76363 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
76364
76365         * modules/argz: New file.
76366         * MODULES.html.sh (func_all_modules): Add argz.
76367
76368 2004-06-12  Jim Meyering  <jim@meyering.net>
76369         and  Paul Eggert  <eggert@cs.ucla.edu>
76370
76371         * modules/hash (Files): Add lib/xalloc.h.
76372         * modules/pipe (Depends-on): Add wait-process.
76373         * modules/stat (Depends-on): Add xalloc.
76374         * modules/userspec (Files): Add lib/userspec.h.
76375         * modules/xstrto
76376
76377         Upgrade from gettext-0.13.
76378         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
76379         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
76380         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
76381
76382 2004-06-10  Jim Meyering  <jim@meyering.net>
76383
76384         * lib/calloc.c: New file.
76385
76386 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
76387
76388         * lib/getdate.y (yylex): Allow space between sign and number.
76389         Problem reported by Dan Jacobson.
76390
76391 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
76392
76393         Merge from coreutils CVS.
76394
76395         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
76396         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
76397         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
76398         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
76399         xstrtol.m4: Fix copyright date and/or serial number.
76400
76401         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
76402         See if we need an fchown replacement.
76403         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
76404         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
76405         and use the replacement function if we detect either defect.
76406
76407         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
76408         gl_UTIMECMP.
76409
76410 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
76411         and  Jim Meyering  <jim@meyering.net>
76412
76413         Merge from coreutils CVS.
76414
76415         * lib/stat-macros.h: New file, with contents from file-type.h
76416         and coreutils' system.h.
76417         * lib/file-type.c: Include "stat-macros.h".
76418         * lib/file-type.h (file_type): Move all macro definitions to new file,
76419         stat-macros.h.
76420
76421         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
76422         Wrap old code with this conditional.
76423         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
76424         function that does not dereference symlinks.
76425         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
76426
76427         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
76428         dependency problems.
76429         (xreadlink): Accept new arg SIZE, for efficiency.
76430         All decls and uses changed.
76431         * lib/xreadlink.h: Include <stddef.h>, for size_t.
76432
76433         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
76434         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
76435
76436         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
76437         sysexits.h.
76438
76439 2004-06-01  Jim Meyering  <jim@meyering.net>
76440
76441         * m4/calloc.m4: New file.
76442
76443 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
76444
76445         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
76446         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
76447         Also, fix a typo in a diagnostic.
76448
76449 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76450
76451         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
76452         or AC_FUNC_REALLOC.
76453
76454 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76455
76456         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
76457         macros to be defined.
76458         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
76459         the allocator returns NULL because the requested size is zero.
76460
76461 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76462
76463         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
76464         var.  Add comment explaining why libc still defines it.  This
76465         merges the following patch from glibc:
76466         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
76467
76468 2004-05-20  Andreas Schwab  <schwab@suse.de>
76469
76470         * m4/free.m4: Replace free if it not known to work, not the other
76471         way round.
76472
76473 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76474
76475         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
76476         present in glibc since revision 1.1 of this file.
76477         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
76478         obstack_alignment_mask, obstack_alloc, obstack_base,
76479         obstack_blank, obstack_blank_fast, obstack_chunk_size,
76480         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
76481         obstack_grow0, obstack_init, obstack_int_grow,
76482         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
76483         obstack_next_free, obstack_object_size, obstack_ptr_grow,
76484         obstack_ptr_grow_fast, obstack_room): Remove declarations of
76485         nonexistent functions.
76486
76487 2004-05-18  Karl Berry  <karl@gnu.org>
76488
76489         * config/srclist.txt: break link for vasnprintf.c.
76490
76491 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76492
76493         Port obstack to the AS/400, where pointers are 16 bytes wide and
76494         you cannot cast an integer to a valid pointer.  This patch is
76495         currently waiting to be integrated into glibc; see
76496         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
76497
76498         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
76499         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
76500         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
76501         (struct obstack): temp member is now a union of a pointer and
76502         an integer, instead of an integer.  All integer uses changed.
76503         This does not affect the physical layout of struct obstack,
76504         except on hosts (like the AS/400) where the size or alignment of
76505         void * is greater than that of ptrdiff_t.
76506         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
76507         __STDC__)]: Store temporary in pointer member of union, not
76508         integer member.
76509         * lib/obstack.c: Include <stddef.h>, for offsetof.
76510         (struct fooalign): Remove; it doesn't need a name.
76511         (union fooround): Change double to long double, and add void *.
76512         (DEFAULT_ALIGNMENT): Use offsetof to compute.
76513         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
76514         not a macro.  Hence the values are always int; so remove all
76515         casts-to-int in uses.
76516
76517 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76518
76519         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
76520         we can get this patch merged into glibc.
76521
76522 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76523             Paul Eggert  <eggert@cs.ucla.edu>
76524
76525         * m4/argp: Depend on alloca.
76526
76527 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76528             Paul Eggert  <eggert@cs.ucla.edu>
76529
76530         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
76531         freecoding.
76532
76533 2004-05-17  Bruno Haible  <bruno@clisp.org>
76534
76535         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
76536         precision that consists of a '.' followed by an empty digit string.
76537         Patch by Tor Lillqvist <tml@iki.fi>.
76538
76539 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76540
76541         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
76542         for backward compatibility with older code.  We need our own
76543         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
76544         it under some other name, and our alloca.h will define it.
76545
76546 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76547             Derek Price  <derek@ximbiot.com>
76548
76549         * lib/alloca.c: Include <alloca.h>, to get our interface.
76550         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
76551         include <alloca.h> first.  Use C89 prototype for alloca; this
76552         requires including <stddef.h> for size_t.  Use extern "C" if C++.
76553         Use #elif for simplicity, since we can assume C89 now.
76554         Don't try to source the system alloca.h since it will not be found
76555         and to prevent recursively including its replacement.
76556         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
76557         * lib/regex.c: Likewise.
76558
76559 2004-05-16  Derek Price  <derek@ximbiot.com>
76560             Paul Eggert  <eggert@cs.ucla.edu>
76561
76562         getline cleanup.  This changes the getndelim2 API: both order of
76563         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
76564         no delimiter).
76565
76566         * lib/getline.c: Don't include stddef.h or stdio.h, since our
76567         interface does that.
76568         (getline): Always use getdelim, so that we don't have two
76569         copies of this code.
76570         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
76571         if available.
76572         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
76573         (GETNDELIM2_MAXIMUM): New macro.
76574         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
76575         instead of the old practice of delim2==0.  All callers changed.
76576         Return -1 on overflow, instead of returning junk.
76577         Do not set *linesize unless allocation succeeds.
76578         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
76579         that we include sys/types.h.
76580         * lib/getnline.h: Likewise.
76581         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
76582         (getndelim2): Reorder arguments.
76583         * lib/getnline.c (getnline, getndelim):
76584         Don't discard the NMAX argument.
76585         (getnline): Invoke getndelim, to avoid code duplication.
76586         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
76587         of (size_t) -1 by callers of the getnline family.
76588
76589 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76590
76591         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
76592         Check for gettimeofday.
76593         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
76594         Check for settimeofday, stime.
76595
76596 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76597
76598         * lib/nanosleep.c (suspended): Change its type from int to
76599         sig_atomic_t volatile.
76600         (first_call): Make it private to rpl_nanosleep, and have it
76601         be zero initially as that's a bit faster.
76602         (my_usleep): Round up fractional times instead of truncating them,
76603         as this is the usual meaning for 'sleep'.
76604
76605         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
76606         doesn't work.
76607         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
76608         (ENOSYS): Define if not defined.
76609         (settime): Fall back on stime if it exists and settimeofday fails.
76610         But don't bother with fallbacks if a method fails with errno == EPERM.
76611
76612 2004-05-11  Jim Meyering  <jim@meyering.net>
76613
76614         Prior to this change, the save_cwd caller required read access to the
76615         current directory on most systems (ones with the fchdir function).
76616
76617         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
76618         fails, try write-only, and finally, resort to using xgetcwd.
76619
76620 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
76621
76622         * lib/obstack.c, obstack.h: Import changes from libc.
76623
76624 2004-04-28  Bruno Haible  <bruno@clisp.org>
76625
76626         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
76627         also implicitly appends .exe to executables.
76628         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
76629         accepts Windows pathnames.
76630         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
76631         Treat Cygwin like Windows, since it now accepts Windows pathnames.
76632         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
76633         Treat Cygwin like Windows, since it now accepts Windows pathnames.
76634         Reported by Derek Robert Price <derek@ximbiot.com>.
76635
76636 2004-04-21  Karl Berry  <karl@gnu.org>
76637
76638         * config/srclist.txt (localcharset.c): break sync.
76639
76640 2004-04-20  Paul Eggert  <eggert@twinsun.com>
76641
76642         * m4/host-os.m4: Add a copyright notice.
76643
76644 2004-04-20  Jim Meyering  <jim@meyering.net>
76645
76646         Change UTILS_ to gl_ in AC_DEFINE'd names.
76647         Change utils_- and jm_-prefixed variables, too.
76648         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
76649         UTILS_FUNC_MKDIR_TRAILING_SLASH.
76650         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
76651
76652         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
76653         Don't emit trailing blanks.
76654         Also rename jm_-prefixed variables to have gl_ prefix.
76655
76656         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
76657         Also rename jm_-prefixed variables to have gl_ prefix.
76658
76659         * m4/jm-macros.m4: Reflect the renamings.
76660         * m4/prereq.m4: Likewise.
76661
76662 2004-04-20  Jim Meyering  <jim@meyering.net>
76663
76664         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
76665         memory.
76666
76667 2004-04-20  Jim Meyering  <jim@meyering.net>
76668             Bruno Haible  <bruno@clisp.org>
76669
76670         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
76671         memory when realloc fails.
76672
76673 2004-04-19  Jim Meyering  <jim@meyering.net>
76674
76675         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
76676         now that readutmp.c may call `free (0)'.
76677
76678 2004-04-19  Bruno Haible  <bruno@clisp.org>
76679
76680         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
76681         * m4/inttypes_h.m4: Likewise.
76682         * m4/stdint_h.m4: Likewise.
76683         * m4/intmax_t.m4: Likewise.
76684         * m4/uintmax_t.m4: Likewise.
76685
76686 2004-04-18  Jim Meyering  <jim@meyering.net>
76687
76688         * m4/prereq.m4: Don't forbid jm_ prefix.
76689
76690         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
76691         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
76692         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
76693         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
76694         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
76695         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
76696         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
76697         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
76698         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
76699         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
76700         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
76701         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
76702         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
76703         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
76704         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
76705         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
76706         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
76707         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
76708         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
76709
76710 2004-04-18  Jim Meyering  <jim@meyering.net>
76711
76712         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
76713         failure, don't leak memory and do call END_UTMP_ENT.
76714
76715 2004-04-16  Jim Meyering  <jim@meyering.net>
76716
76717         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
76718         coreutils' stat program.
76719         (gl_PREREQ): Don't require jm_PREREQ_STAT.
76720
76721 2004-04-11  Paul Eggert  <eggert@twinsun.com>
76722
76723         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
76724         C89.
76725         (CHAR_BIT): Remove, since we assume C89.
76726         Include <stdint.h> if available, as per current Autoconf CVS advice.
76727
76728 2004-03-31  Jim Meyering  <jim@meyering.net>
76729
76730         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
76731         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
76732         * m4/xalloc.m4: Likewise.
76733
76734 2004-03-30  Paul Eggert  <eggert@twinsun.com>
76735
76736         Merge from coreutils.
76737
76738         * m4/inttostr.m4: New file.
76739         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
76740         Require AM_STDBOOL_H and gl_TIMESPEC instead.
76741         Require gl_CLOCK_TIME.
76742         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
76743
76744 2004-03-30  Paul Eggert  <eggert@twinsun.com>
76745
76746         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
76747         not bool, to be more consistent with Unix conventions.
76748         Suggested by Bruno Haible.
76749
76750         Merge from coreutils.
76751
76752         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
76753         * lib/umaxtostr.c: New files.
76754
76755         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
76756         the usual <time.h> dance.
76757         (get_date): Change signature to support fractional time stamps.
76758         All callers changed.
76759         * lib/getdate.y: Include "getdate.h" first, as we can now
76760         assume C89 and don't need to worry about 'const'.
76761         Similarly, include "unlocked-io.h" near start, not in middle.
76762         Include <limits.h>.
76763         (textint.value): Use long int rather than int.
76764         (textint.digits): Use size_t rather than int.
76765         (BILLION, LOG10_BILLION): New constants.
76766         (parser_control): New member rel_ns.  Members day_ordinal,
76767         time_zone, month, day, hour, minutes, rel_year, rel_month,
76768         rel_day, rel_hour, rel_minutes, rel_seconds
76769         are now long int, not int.  Member seconds is now struct timespec,
76770         not int.  New member timespec_seen.  Members dates_seen, days_seen,
76771         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
76772         not int.
76773         (%union.intval): Now long int, not int.
76774         New member timespec.
76775         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
76776         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
76777         (spec): Now is a timespec or an item list.
76778         (timespec, items): New nonterminals.
76779         (time, rel, relunit, number, get_date):
76780         Add support for fractional seconds.
76781         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
76782         (gmtime, localtime, mktime): Remove decls; not needed with C89.
76783         (to_hour): First arg is now long int, not int.
76784         (to_year): Returns long int, not int.
76785         Don't treat year -70 like 70.
76786         (tm_diff): Returns long int, not int.
76787         (lookup_word): Use bool instead of int when appropriate.
76788         (yylex): Use size_t for count, not int.
76789         Detect overflow when parsing large integer constants.
76790         Add support for fractions.
76791         (get_date): Make pointers 'const' if possible.
76792         Use more-portable code to detect integer overflow.
76793         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
76794         Don't use ctime; it's not reliable if the year has >4 digits.
76795
76796         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
76797         This is for compatibility with BSD.
76798
76799         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
76800         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
76801         From coreutils' system.h.
76802
76803         * lib/userspec.c: Don't include "posixver.h".
76804         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
76805         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
76806         compatible extension.  Simplify code by removing a boolean int
76807         that was always nonzero if a string was nonnull.
76808
76809 2004-03-30  Jim Meyering  <jim@meyering.net>
76810
76811         Merge from coreutils.
76812
76813         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
76814         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
76815         on some systems one must include <grp.h> before it.
76816         Reported by Christian Krackowizer.
76817
76818 2004-03-30  Jim Meyering  <jim@meyering.net>
76819
76820         Merge from coreutils.
76821
76822         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
76823
76824         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
76825         an empty input stream.
76826
76827         * lib/readtokens.c: Include <stdbool.h>.
76828         (readtoken): Use `size_t' rather than int/long.
76829         All callers adjusted.
76830         Use `bool' rather than `int' where appropriate.
76831         Use memset rather than an explicit loop.
76832         Use x2nrealloc rather than xrealloc.
76833         Allow the use of `\0' as a delimiter.
76834         (readtokens): Likewise.
76835         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
76836
76837 2004-03-30  Jim Meyering  <jim@meyering.net>
76838
76839         * m4/realloc.m4: Remove file, since now it does no more than
76840         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
76841         the `configure.ac' section of module/realloc.
76842         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
76843
76844 2004-03-30  Bruno Haible  <bruno@clisp.org>
76845
76846         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
76847         nonnull.
76848
76849 2004-03-29  Paul Eggert  <eggert@twinsun.com>
76850
76851         Merge changes to getloadavg.c from coreutils and Emacs.
76852
76853         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
76854         Define to an expression, not to the empty string.
76855         Include cloexec.h and xalloc.h.
76856         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
76857         Use set_cloexec_flag rather than rolling our own.
76858         * lib/cloexec.c, lib/cloexec.h: New files.
76859
76860 2004-03-29  Paul Eggert  <eggert@twinsun.com>
76861
76862         * m4/cloexec.m4: New file.
76863
76864 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76865
76866         * lib/getopt.h: Sync with libc CVS.
76867
76868 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76869             Bruno Haible  <bruno@clisp.org>
76870
76871         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
76872         mbswidth.
76873
76874 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76875             Bruno Haible  <bruno@clisp.org>
76876
76877         * lib/mbswidth.h: Include <wchar.h> only if
76878         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
76879         <wchar.h>.
76880         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
76881
76882 2004-03-09  Paul Eggert  <eggert@twinsun.com>
76883
76884         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
76885         Sync with libc CVS.
76886         * lib/getopt_int.h: New file, also synced from libc.
76887
76888 2004-03-09  Paul Eggert  <eggert@twinsun.com>
76889
76890         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
76891         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
76892         Bring back getopt.c, getopt.h, getopt1.c.
76893
76894 2004-03-07  Paul Eggert  <eggert@twinsun.com>
76895
76896         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
76897         All uses changed.  Check for sa_sigaction member; this fixes
76898         a bug first reported by Jason Andrade in
76899         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
76900
76901 2004-03-07  Paul Eggert  <eggert@twinsun.com>
76902
76903         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
76904         '#if' expressions.  Unlike the code it replaces, it does not
76905         depend on (defined _SC_PAGESIZE).  However, it does depend on
76906         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
76907         first reported by Jason Andrade in
76908         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
76909
76910 2004-02-25  Simon Josefsson  <jas@extundo.com>
76911
76912         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
76913
76914 2004-02-25  Simon Josefsson  <jas@extundo.com>
76915
76916         * lib/strdup.h: New file.
76917         * lib/strdup.c: Include it.
76918         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
76919         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
76920
76921 2004-02-23  Karl Berry  <karl@gnu.org>
76922
76923         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
76924         (from fencepost.gnu.org:/gd/gnuorg).
76925
76926 2004-02-23  Karl Berry  <karl@gnu.org>
76927
76928         * config/srclistvars.sh (GNUORG) [karl]: redefine.
76929         * config/srclist.txt: add maintain/standards documents.
76930
76931 2004-02-18  Bruno Haible  <bruno@clisp.org>
76932
76933         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
76934         Reported by Derek Robert Price <derek@ximbiot.com>.
76935
76936 2004-02-16  Karl Berry  <karl@gnu.org>
76937
76938         * config/mkinstalldirs, install-sh: update from automake.
76939
76940 2004-02-06  Karl Berry  <karl@gnu.org>
76941
76942         * m4/po.m4: update from gettext 0.14.1.
76943
76944 2004-02-06  Karl Berry  <karl@gnu.org>
76945
76946         * lib/config.charset: update from gettext 0.14.1.
76947
76948 2004-02-05  Paul Eggert  <eggert@twinsun.com>
76949
76950         Add comments and code, prompted by suggestions from Bruno Haible
76951         for sh-quote.
76952         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
76953         describing the enum quoting_style values.
76954         * lib/quotearg.c (quotearg_alloc): New function.
76955         (quotearg_buffer_restyled): Treat lone { and } as special.
76956         Treat = as special.  Work around bug with older shells
76957         that "see" a '\' that is really the 2nd byte of a multibyte char.
76958         Quote empty string with shell_quoting_style.
76959
76960 2004-02-03  Bruno Haible  <bruno@clisp.org>
76961
76962         * m4/pipe.m4: New file, from GNU gettext.
76963
76964 2004-02-03  Bruno Haible  <bruno@clisp.org>
76965
76966         * lib/pipe.h: New file, from GNU gettext.
76967         * lib/pipe.c: New file, from GNU gettext.
76968
76969 2004-01-27  Bruno Haible  <bruno@clisp.org>
76970
76971         * m4/execute.m4: New file, from GNU gettext.
76972
76973 2004-01-27  Bruno Haible  <bruno@clisp.org>
76974
76975         * lib/execute.h: New file, from GNU gettext.
76976         * lib/execute.c: New file, from GNU gettext.
76977         * lib/w32spawn.h: New file, from GNU gettext.
76978
76979 2004-01-24  Paul Eggert  <eggert@twinsun.com>
76980
76981         Merge from diffutils.
76982
76983         * lib/file-type.c (file_type): Add typed memory objects.
76984         * lib/file-type.h (S_TYPEISTMO): New macro.
76985
76986         * lib/c-stack.h (c_stack_action): Remove argv argument.
76987         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
76988         (die): Don't calculate message unless segv_action returns.
76989         (get_stack_location, min_address_from_argv, max_address_from_argv,
76990         volatile stack_base, volatile_stack_size): Remove.
76991         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
76992         that every segmentation violation is a stack overflow.  (Ouch!)
76993         See Debian bug 136249 (still outstanding) for more info about why
76994         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
76995
76996 2004-01-24  Paul Eggert  <eggert@twinsun.com>
76997
76998         Exit-status fix from coreutils.
76999
77000         Use exit_failure consistently in place of EXIT_FAILURE,
77001         so that program exit statuses are consistent on failure.
77002
77003         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
77004         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
77005         * lib/argmatch.h: Comment fix to match the above.
77006         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
77007         Now a macro referring to exit_failure, instead of a separate
77008         variable.  Include "exitfail.h" to get it.
77009         * lib/xstrtol.h: Include "exitfail.h".
77010         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
77011
77012         * lib/long-options.c (parse_long_options): Use prototype
77013         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
77014         for clarity.
77015
77016 2004-01-21  Jim Meyering  <jim@meyering.net>
77017
77018         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
77019         so as not to conflict with a different-sized __mktime_internal
77020         function in GNU libc.
77021         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
77022         Problem building statically-linked `ls' reported by Michael Brunnbauer.
77023
77024 2004-01-20  Karl Berry  <karl@gnu.org>
77025
77026         * config/config.guess: update from config.
77027
77028         * config/srclistvars.sh: GNUWWWLICENSES for karl.
77029
77030 2004-01-20  Bruno Haible  <bruno@clisp.org>
77031
77032         Safer stack allocation.
77033         * lib/setenv.c: Include allocsa.h.
77034         (alloca): Remove fallback definition.
77035         (freea): Remove macro.
77036         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
77037         instead of freea.
77038
77039 2004-01-20  Bruno Haible  <bruno@clisp.org>
77040
77041         * m4/eealloc.m4: New file, from GNU gettext.
77042
77043 2004-01-20  Bruno Haible  <bruno@clisp.org>
77044
77045         * m4/allocsa.m4: New file, from GNU gettext.
77046
77047 2004-01-20  Bruno Haible  <bruno@clisp.org>
77048
77049         * lib/xallocsa.h: New file, from GNU gettext.
77050         * lib/xallocsa.c: New file, from GNU gettext.
77051
77052 2004-01-20  Bruno Haible  <bruno@clisp.org>
77053
77054         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
77055
77056 2004-01-20  Bruno Haible  <bruno@clisp.org>
77057
77058         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
77059         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
77060         specially.
77061
77062 2004-01-20  Bruno Haible  <bruno@clisp.org>
77063
77064         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
77065         patch.
77066
77067 2004-01-20  Bruno Haible  <bruno@clisp.org>
77068
77069         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
77070
77071 2004-01-20  Bruno Haible  <bruno@clisp.org>
77072
77073         * lib/eealloc.h: New file.
77074
77075 2004-01-20  Bruno Haible  <bruno@clisp.org>
77076
77077         * lib/binary-io.h: Avoid warnings on Cygwin.
77078
77079 2004-01-20  Bruno Haible  <bruno@clisp.org>
77080
77081         * lib/allocsa.h: New file, from GNU gettext.
77082         * lib/allocsa.c: New file, from GNU gettext.
77083
77084 2004-01-18  Karl Berry  <karl@gnu.org>
77085
77086         * doc/gpl.texi, doc/lgpl.texi: new files.
77087
77088 2004-01-18  Karl Berry  <karl@gnu.org>
77089
77090         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
77091         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
77092
77093 2004-01-15  Paul Eggert  <eggert@twinsun.com>
77094
77095         Merge from coreutils.
77096
77097         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
77098         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
77099         (gl_DEFAULT_POSIX2_VERSION): Move
77100         the documentation from 'configure' into 'config.hin',
77101         so that 'configure --help' isn't burdened by it and
77102         we don't have to worry about its formatting there.
77103         Reword the documentation so that it's more succinct
77104         and can be run together into a single paragraph.
77105         * m4/same.m4 (gl_SAME): Check for pathconf.
77106
77107 2004-01-15  Paul Eggert  <eggert@twinsun.com>
77108
77109         Merge from coreutils.
77110
77111         * lib/posixver.c: Include posixver.h.
77112
77113         * lib/same.c: Include <stdbool.h>, <limits.h>.
77114         (_POSIX_NAME_MAX): Define if not defined.
77115         (MIN): New macro.
77116         (same_name): If file names are silently truncated, report
77117         that the file names are the same if they are the same after
77118         the silent truncation.
77119
77120         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
77121         conversion function.
77122         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
77123         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
77124         longer needed.
77125
77126 2004-01-15  Jim Meyering  <jim@meyering.net>
77127
77128         Merge from coreutils.
77129
77130         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
77131         if no library is required.
77132         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
77133         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
77134         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
77135         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
77136         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
77137         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
77138         value, $ac_cv_search_crypt, if it's "none required".
77139         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
77140         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
77141         not gl_FUNC_GETLOADAVG.
77142         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
77143         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
77144
77145 2004-01-15  Jim Meyering  <jim@meyering.net>
77146
77147         Merge from coreutils.
77148
77149         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
77150         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
77151         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
77152
77153         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
77154         optional configure-time default.
77155
77156         * lib/version-etc.c (version_etc_copyright): Update copyright date.
77157
77158         * lib/xreadlink.c (xreadlink): Correct outdated comment.
77159
77160 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
77161
77162         Merge from coreutils.
77163
77164         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
77165         value, $ac_cv_search_nanosleep, if it's "none required".
77166
77167 2004-01-14  Paul Eggert  <eggert@twinsun.com>
77168
77169         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
77170         with like-named macro in fnmatch.c.
77171         (EXT): Use an internal constant instead.
77172
77173         Merge fnmatch patches from glibc.
77174         * lib/fnmatch.c (mbsinit): Remove define.
77175         Add libc_hidden_ver (__fnmatch, fnmatch).
77176         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
77177         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
77178
77179 2004-01-14  Karl Berry  <karl@gnu.org>
77180
77181         * config/install-sh: update from automake.
77182
77183 2004-01-13  Karl Berry  <karl@gnu.org>
77184
77185         * config/install-sh: update from automake.
77186
77187 2004-01-09  Karl Berry  <karl@gnu.org>
77188
77189         * config/install-sh: update from automake.
77190
77191 2004-01-05  Karl Berry  <karl@gnu.org>
77192
77193         * config/config.{sub,guess}: update from config.
77194
77195 2003-12-31  Karl Berry  <karl@gnu.org>
77196
77197         * config/depcomp: update from automake.
77198
77199 2003-12-14  Karl Berry  <karl@gnu.org>
77200
77201         * lib/config.charset: update from gettext-runtime.
77202
77203 2003-12-03  Paul Eggert  <eggert@twinsun.com>
77204
77205         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
77206         Bug reported by Alfred M. Szmidt.
77207
77208 2003-12-03  Bruno Haible  <bruno@clisp.org>
77209
77210         * m4/gettext.m4: Upgrade from gettext-0.13.
77211         * m4/po.m4: Upgrade from gettext-0.13.
77212         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
77213         * m4/intmax.m4: New file, from gettext-0.13.
77214         * m4/printf-posix.m4: New file, from gettext-0.13.
77215
77216 2003-11-29  Karl Berry  <karl@gnu.org>
77217
77218         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
77219
77220 2003-11-25  Paul Eggert  <eggert@twinsun.com>
77221             Bruno Haible  <bruno@clisp.org>
77222
77223         * lib/printf-parse.h: Don't include sys/types.h.
77224         (ARG_NONE): New macro.
77225         (char_directive): Change type of *arg_index fields to size_t.
77226         * lib/printf-parse.c: Don't include sys/types.h.
77227         (SSIZE_MAX): Remove macro.
77228         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
77229         Remove unnecessary overflow check.
77230         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
77231         fields.
77232
77233 2003-11-25  Bruno Haible  <bruno@clisp.org>
77234
77235         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
77236
77237 2003-11-25  Bruno Haible  <bruno@clisp.org>
77238
77239         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
77240         gt_TYPE_SSIZE_T.
77241
77242 2003-11-24  Paul Eggert  <eggert@twinsun.com>
77243
77244         * modules/alloca: Remove dependency on xalloc.
77245
77246 2003-11-24  Paul Eggert  <eggert@twinsun.com>
77247
77248         * lib/alloca.c: Remove dependency on xalloc module.
77249         (xalloc_die): Remove.
77250         (memory_full) [!defined emacs]: New macro.
77251         [!defined emacs]: Don't include xalloc.h.
77252         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
77253         address arithmetic overflows.  Change datatypes a bit to avoid
77254         unnecessary casts.
77255
77256 2003-11-22  Jim Meyering  <jim@meyering.net>
77257
77258         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
77259         s/size/size_t/.
77260
77261 2003-11-21  Karl Berry  <karl@gnu.org>
77262
77263         * config/config.{sub,guess}: update from config.
77264
77265 2003-11-18  Karl Berry  <karl@gnu.org>
77266
77267         * config/config.{sub,guess}: update from config.
77268
77269         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
77270
77271 2003-11-17  Paul Eggert  <eggert@twinsun.com>
77272
77273         * README: Mention that S+T cannot overflow if S is the size of
77274         an existing object and T is sufficiently small.
77275
77276 2003-11-17  Jim Meyering  <jim@meyering.net>
77277
77278         On systems without utime and without a utimes function capable of
77279         dealing with a NULL struct utimbuf* argument, this utime replacement
77280         could -- in unusual circumstances -- leak a file descriptor.
77281         * lib/utime.c: Include <unistd.h> and <errno.h>.
77282         (utime_null): Be sure to close `fd' and to preserve errno.
77283         Reported by Geoff Collyer via Arnold Robbins.
77284
77285 2003-11-17  Bruno Haible  <bruno@clisp.org>
77286
77287         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
77288         (Depends-on): Add xsize.
77289
77290 2003-11-17  Bruno Haible  <bruno@clisp.org>
77291
77292         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
77293
77294 2003-11-17  Bruno Haible  <bruno@clisp.org>
77295
77296         * lib/vasnprintf.c (alloca): Remove fallback definition.
77297         (freea): Remove definition.
77298         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
77299         Reported by Paul Eggert.
77300
77301 2003-11-16  Paul Eggert  <eggert@twinsun.com>
77302             Bruno Haible  <bruno@clisp.org>
77303
77304         Protect against address arithmetic overflow.
77305         * lib/printf-args.h: Include stddef.h.
77306         (arguments): Change type of field 'count' to size_t.
77307         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
77308         'unsigned int' where appropriate.
77309         * lib/printf-parse.h: Include sys/types.h.
77310         (char_directive): Change type of *arg_index fields to ssize_t.
77311         (char_directives): Change type of fields 'count', max_*_length to
77312         size_t.
77313         * lib/printf-parse.c: Include sys/types.h and xsize.h.
77314         (SSIZE_MAX): Define fallback value.
77315         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
77316         instead of 'int' where appropriate. Check a_allocated, d_allocated
77317         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
77318         * lib/vasnprintf.c: Include xsize.h.
77319         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
77320         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
77321         overflow. Avoid wraparound when converting a width or precision from
77322         decimal to binary.
77323
77324 2003-11-16  Bruno Haible  <bruno@clisp.org>
77325
77326         Update from GNU gettext.
77327         * lib/printf-parse.c: Generalize to it can be compiled for wide
77328         strings.
77329         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
77330         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
77331         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
77332         SNPRINTF): New macros.
77333         Don't include <alloca.h> if the file is used inside libintl.
77334         (local_wcslen): New function, for Solaris 2.5.1.
77335         (VASNPRINTF): Use it instead of wcslen.
77336
77337 2003-11-16  Bruno Haible  <bruno@clisp.org>
77338
77339         * lib/xsize.h (xmax): New function.
77340         (xsum, xsum3, xsum4): Declare as "pure" functions.
77341
77342 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77343
77344         * modules/xalloc (Files): Undo latest change, since xalloc.h
77345         no longer needs SIZE_MAX or PTRDIFF_MAX.
77346
77347 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77348
77349         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
77350         gl_PTRDIFF_MAX.
77351
77352 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77353
77354         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
77355         "return", to pacify some unknown compiler.  Problem reported
77356         by Joerg Schilling.
77357
77358 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77359
77360         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
77361         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
77362         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
77363         heuristic is just as accurate as far as we know, and it removes a
77364         dependency on size_max.m4 and ptrdiff_max.m4.
77365
77366 2003-11-11  Bruno Haible  <bruno@clisp.org>
77367
77368         * modules/xsize (Files): Add m4/size_max.m4.
77369         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
77370
77371 2003-11-11  Bruno Haible  <bruno@clisp.org>
77372
77373         * m4/size_max.m4: New file.
77374         * m4/ptrdiff_max.m4: New file.
77375         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
77376         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
77377         (gl_XALLOC): Invoke it.
77378
77379 2003-11-11  Bruno Haible  <bruno@clisp.org>
77380
77381         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
77382         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
77383         defined.
77384
77385 2003-11-10  Paul Eggert  <eggert@twinsun.com>
77386
77387         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
77388         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
77389         rejected some allocations of exactly SIZE_MAX - 2 bytes.
77390         From Bruno Haible.
77391         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
77392         not (size_t) -1, since it's defined here.
77393
77394 2003-11-09  Karl Berry  <karl@gnu.org>
77395
77396         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
77397
77398 2003-11-06  Paul Eggert  <eggert@twinsun.com>
77399
77400         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
77401         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
77402         Reject sizes of exactly SIZE_MAX bytes.
77403         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
77404         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
77405
77406 2003-11-05  Bruno Haible  <bruno@clisp.org>
77407
77408         * lib/xsize.h: Include limits.h, to avoid a possible collision with
77409         SIZE_MAX defined in <limits.h> on Solaris.
77410
77411 2003-11-04  Jim Meyering  <jim@meyering.net>
77412
77413         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
77414         variable names, rather than @VAR@.
77415         * modules/poll: Likewise.
77416
77417 2003-11-04  Bruno Haible  <bruno@clisp.org>
77418
77419         * modules/xsize: New file.
77420         * modules/linebreak: Depend on xsize.
77421         * MODULES.html.sh (func_all_modules): Add xsize.
77422
77423 2003-11-04  Bruno Haible  <bruno@clisp.org>
77424
77425         * m4/xsize.m4: New file.
77426
77427 2003-11-04  Bruno Haible  <bruno@clisp.org>
77428
77429         * lib/xsize.h: New file.
77430         * lib/linebreak.c: Include xsize.h.
77431         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
77432         argument for overflow.
77433         Suggested by Paul Eggert.
77434
77435 2003-11-03  Karl Berry  <karl@gnu.org>
77436
77437         * config/config.{guess,sub}: update from config.
77438
77439 2003-11-03  Jim Meyering  <jim@meyering.net>
77440
77441         * modules/userspec (lib_SOURCES): Add userspec.h.
77442         (Include): Add "userspec.h".
77443         Improve description.
77444
77445 2003-11-03  Jim Meyering  <jim@meyering.net>
77446
77447         * lib/userspec.c: Include "userspec.h".
77448         * lib/userspec.h: New file.
77449
77450 2003-11-03  Bruno Haible  <bruno@clisp.org>
77451
77452         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
77453
77454 2003-11-03  Bruno Haible  <bruno@clisp.org>
77455
77456         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
77457         available, to avoid (extremely rare) race condition.
77458         Suggested by Paul Eggert.
77459
77460 2003-11-02  Karl Berry  <karl@gnu.org>
77461
77462         * config/srclist.txt (vasprintf.c): sync broken, sigh.
77463
77464 2003-10-31  Paul Eggert  <eggert@twinsun.com>
77465
77466         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
77467         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
77468         (read_filesystem_list): Set and use me_type_malloced.
77469         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
77470         whatever the type happens to be), for brevity and consistency.
77471         Check for size calculation overflow on Alphas running OSF/1.
77472
77473 2003-10-31  Jim Meyering  <jim@meyering.net>
77474
77475         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
77476
77477         * lib/linebuffer.c: Include <string.h> for declaration of memset.
77478
77479 2003-10-30  Paul Eggert  <eggert@twinsun.com>
77480             Bruno Haible  <bruno@clisp.org>
77481
77482         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
77483         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
77484
77485 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
77486
77487         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
77488         netbsd*-gnu*.  Suggested by Robert Millan.
77489
77490 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77491
77492         * modules/group-member: Depend on stdbool.
77493
77494 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77495
77496         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
77497
77498 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77499
77500         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
77501         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
77502         after the 'gnu' in these cases.  This fixes some bugs in the
77503         previous change, and is based on suggestions by Robert Millan.
77504
77505 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77506
77507         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
77508         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
77509         no longer needed.
77510         * lib/quotearg.c (quotearg_n_options): Use it.
77511         * lib/group-member.c: Include <stdbool.h>.
77512         (free_group_info): Arg is now const *; don't free arg.
77513         (get_group_info): Now returns bool and accepts struct group_info *,
77514         rather than returning a malloc'ed struct group_info *.
77515         All uses changed.  Check for overflow in internal size calculation.
77516
77517         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
77518         rather than xmalloc/xrealloc.
77519         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
77520         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
77521         conformance bug: the old code used a pointer after freeing the
77522         storage that it addressed.
77523         * lib/hash.c (hash_initialize): Simplify the code by using
77524         xalloc_oversized rather than doing it by hand.
77525         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
77526         the buffer preserved.  Use free and xmalloc instead.
77527         * lib/quotearg.c (quotearg_n_options): Likewise.
77528         Use a simpler test for size overflow.  Don't use xalloc_oversized
77529         because unsigned int might be wider than size_t (!); this suggests
77530         that we should switch from unsigned int to size_t for slot numbers.
77531
77532 2003-10-28  Paul Eggert  <eggert@twinsun.com>
77533
77534         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
77535         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
77536         NetBSD kernels.  Requested by Richard Stallman.
77537
77538 2003-10-27  Paul Eggert  <eggert@twinsun.com>
77539
77540         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
77541         to allocate the returned structure.  Do not allocate a subarray,
77542         as x2nrealloc will do that.
77543         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
77544         instead of xnrealloc.
77545         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
77546
77547 2003-10-27  Bruno Haible  <bruno@clisp.org>
77548
77549         * lib/stdbool_.h: Better support for BeOS.
77550
77551 2003-10-26  Paul Eggert  <eggert@twinsun.com>
77552
77553         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
77554         now uses inline.
77555
77556 2003-10-26  Paul Eggert  <eggert@twinsun.com>
77557
77558         * lib/xalloc.h (xalloc_oversized): New static inline function, for
77559         callers that want to do their own size-overflow checking.  Include
77560         <stdbool.h>, since xalloc_oversized returns bool.
77561         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
77562         to use xalloc_oversized.
77563
77564         Add two functions x2realloc, x2nrealloc, for programs that grow
77565         arrays dynamically by doubling their sizes.
77566         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
77567         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
77568         New functions.
77569
77570         Port to C99 semantics for 'inline' of external functions.
77571         Bug reported by Bruno Haible.
77572         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
77573         with the old contents of xnmalloc.
77574         (xnmalloc, xmalloc): Use it.
77575         (xnrealloc_inline): New static inline function,
77576         with the old contents of xnrealloc.
77577         (xnrealloc, xrealloc): Use it.
77578
77579         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
77580         that.
77581
77582 2003-10-26  Karl Berry  <karl@gnu.org>
77583
77584         * config/srclist.txt (COPYING.DOC): no longer available from
77585         /gd/gnuorg; don't know where the ultimate source is.
77586
77587 2003-10-25  Paul Eggert  <eggert@twinsun.com>
77588
77589         Fix several address-calculation bugs in the hash modules,
77590         plus some minor code cleanup.
77591
77592         * lib/hash.h: Include <stdbool.h>, for bool.
77593         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
77594         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
77595         hash_get_n_entries, hash_get_max_bucket_length,
77596         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
77597         hash_rehash): Use size_t rather than unsigned.
77598         * lib/hash.c (struct hash_table, hash_get_n_buckets,
77599         hash_get_n_buckets_used, hash_get_n_entries,
77600         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
77601         hash_get_entries, hash_do_for_each, hash_string, is_prime,
77602         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
77603         Likewise.
77604         (SIZE_MAX): Define if not defined.
77605         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
77606         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
77607         hash_print):
77608         Use const * when possible.
77609         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
77610         (check_tuning): Fix bug: if tuning parameters were very close to
77611         0 or 1, rounding errors could have caused subscript violations.
77612         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
77613         (hash_initialize): Add 'fail:' label
77614         to free table and return NULL, and use it to simplify code.
77615         Use calloc rather than clearing the storage ourself.
77616         (hash_initialize, hash_rehash): Check for arithmetic overflow in
77617         buffer size calculations.
77618         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
77619         Include <stddef.h>, for size_t.
77620         * lib/hash-pjw.c (hash_pjw): Likewise.
77621         Switch to method described by Bruno Haible.
77622         Include <limits.h>, for CHAR_BIT.
77623         (SIZE_BITS): New macro.
77624
77625 2003-10-23  Paul Eggert  <eggert@twinsun.com>
77626
77627         * m4/getline.m4 (AM_FUNC_GETLINE):
77628         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
77629         hosts.  Problem reported by Derek Robert Price in
77630         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
77631         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
77632         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
77633
77634 2003-10-21  Paul Eggert  <eggert@twinsun.com>
77635
77636         * lib/getndelim2.c (getndelim2): When size calculation overflows,
77637         ceiling the allocation at NMAX bytes rather than silently
77638         discarding input bytes before NMAX is reached.  This makes
77639         a difference only if NMAX exceeds SIZE_MAX / 2.
77640
77641         * lib/obstack.c: Merge from glibc.
77642         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
77643         Add libc_hidden_def (_obstack_newchunk).
77644         (_obstack_free) [! defined _LIBC]: Remove.
77645         [defined _LIBC]: Make a strong alias from obstack_free, rather than
77646         a clone of the function body.
77647         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
77648         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
77649
77650         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
77651         glibc.
77652         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
77653         arg to memcpy.
77654
77655         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
77656         (obstack_ptr_grow_fast, obstack_int_grow_fast):
77657         Don't use lvalue casts, as GCC plans to remove support for them
77658         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
77659         was also present in the non-GCC version, indicating that this
77660         code had always been buggy and had never been widely used.
77661         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
77662         Use the fast variant of each macro, rather than copying the
77663         definiens of the fast variant; that way, we'll be more likely to
77664         catch future bugs in the fast variants.
77665
77666 2003-10-20  Bruno Haible  <bruno@clisp.org>
77667
77668         * modules/wait-process: New file.
77669         * MODULES.html.sh (func_all_modules): Add wait-process.
77670
77671 2003-10-20  Bruno Haible  <bruno@clisp.org>
77672
77673         * m4/wait-process.m4: New file.
77674
77675 2003-10-20  Bruno Haible  <bruno@clisp.org>
77676
77677         * lib/wait-process.h: New file, from GNU gettext.
77678         * lib/wait-process.c: New file, from GNU gettext.
77679
77680 2003-10-19  Jim Meyering  <jim@meyering.net>
77681
77682         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
77683         HPUX 10.20.
77684
77685 2003-10-18  Karl Berry  <karl@gnu.org>
77686
77687         * config/config.guess: update from config.
77688
77689 2003-10-16  Paul Eggert  <eggert@twinsun.com>
77690
77691         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
77692         (getgroups): First arg is int, not size_t.
77693         Don't let 'free' mangle errno.
77694
77695 2003-10-16  Paul Eggert  <eggert@twinsun.com>
77696
77697         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
77698
77699 2003-10-16  Karl Berry  <karl@gnu.org>
77700
77701         * config/config.{guess,sub}: update from config.
77702
77703 2003-10-16  Jim Meyering  <jim@meyering.net>
77704
77705         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
77706         memcpy.
77707
77708 2003-10-15  Paul Eggert  <eggert@twinsun.com>
77709
77710         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
77711         (SIZE_MAX): Remove.
77712         (new_exclude, add_exclude_file): Initial size no longer needs to
77713         be a power of 2.
77714         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
77715         our own address arithmetic overflow checking.
77716
77717         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
77718         (fnmatch): Do not alloca more than 2000 wide characters;
77719         instead, use malloc for large buffers.
77720         Check for address arithmetic overflow, and return -1
77721         with errno set to ENOMEM in that case.
77722         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
77723         (NEW_PATTERN): Do not alloca more than 8000 bytes;
77724         instead, return -1.  Check for address arithmetic overflow.
77725
77726 2003-10-14  Paul Eggert  <eggert@twinsun.com>
77727
77728         Handle invalid suffixes and overflow independently, so that
77729         callers can treat them independently as needed.  Fix some bugs in
77730         suffix handling, e.g., "100k@" was not diagnosed as an invalid
77731         suffix for a human-readable blocksize.  The major caller-visible
77732         change is the addition of a new
77733         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
77734         that both overflow and suffix chars were found.
77735
77736         * lib/human.c (humblock): Don't check separately for invalid suffix
77737         char; that is xstrtoumax's job (now that its bug is fixed).
77738         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
77739         INTMAX_MAX]: New macros.
77740         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
77741         TYPE_MAXIMUM): New macros.
77742         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
77743         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
77744         if overflow occurs, as it's what __strtol does and it's more useful
77745         in practice.
77746         (__xstrtol): If __strtol reports some error other than ERANGE,
77747         reflect it to the caller as LONGINT_INVALID.  If it reports
77748         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
77749         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
77750         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
77751         value.
77752         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
77753         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
77754         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
77755         [defined UINTMAX_MAX]: New macros.
77756
77757 2003-10-14  Bruno Haible  <bruno@clisp.org>
77758
77759         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
77760
77761 2003-10-14  Bruno Haible  <bruno@clisp.org>
77762
77763         * m4/sig_atomic_t: New file, from GNU gettext.
77764         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
77765
77766 2003-10-14  Bruno Haible  <bruno@clisp.org>
77767
77768         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
77769         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
77770         Also use volatile where needed.
77771
77772 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77773
77774         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
77775         Change maintainer from Bruno Haible to 'all'.
77776
77777 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77778
77779         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
77780
77781 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77782
77783         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
77784         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
77785         and define in terms of the other primitives.
77786         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
77787         (SIZE_MAX): Define if not already defined.
77788         (array_size_overflow): New function.
77789         (xalloc_die): Abort instead of exiting if 'error' returns.
77790         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
77791         (xmalloc, xrealloc): Use them.
77792         (xcalloc): Check for address arithmetic overflow.
77793         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
77794         a bit faster than strcpy.
77795
77796 2003-10-10  Simon Josefsson  <jas@extundo.com>
77797
77798         * modules/argp (Depends-on): Add restrict and strcase.
77799
77800 2003-10-10  Simon Josefsson  <jas@extundo.com>
77801
77802         * m4/argp.m4: Add AC_C_INLINE.
77803
77804 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77805
77806         Merge getpass from libc, plus a few fixes.
77807
77808         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
77809         Include <stdbool.h>.
77810         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
77811         __fsetlocking to empty.
77812         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
77813         do include <bits/libc-lock.h>.
77814         Do not include <fcntl.h>; not needed.
77815         [_LIBC]: Include <wchar.h>.
77816         (NOTCANCEL_MODE): New macro.
77817         (flockfile, funlockfile) [_LIBC]: New macros.
77818         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
77819         [!_LIBC]: New macros.
77820         (call_fclose): New function.
77821         (getpass): Use it.  Save tty stream separately; this simplifies the
77822         code and makes it more reliable if stdin happens to equal stdout.
77823         Invoke __fsetlocking on tty.
77824         Handle thread cancellation if needed.
77825         Namespace cleanup (use __tcgetattr, __getline).
77826         Use bool for Booleans.
77827         [USE_IN_LIBIO]: Handle wide streams.
77828         [!_LIBC]: Unconditionally do the fseek, since we don't know what
77829         stream might go where.
77830
77831         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
77832         doesn't have to include <stdio.h> before us.
77833         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
77834         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
77835         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
77836         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
77837         if not declared, so that we can use getpass.c code from libc without
77838         rewriting it.
77839         (flockfile, ftrylockfile, funlockfile): New macros.
77840
77841 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77842
77843         * modules/getpass: Depend on stdbool.
77844
77845 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77846
77847         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
77848
77849 2003-10-07  Karl Berry  <karl@gnu.org>
77850
77851         * config/config.{guess,sub}: update from config.
77852
77853 2003-10-06  Jim Meyering  <jim@meyering.net>
77854             Bruno Haible  <bruno@clisp.org>
77855
77856         This lets translators provide better translations for the
77857         "Written by ..." part of --version output.
77858         * lib/version-etc.h: Include stdarg.h.
77859         (version_etc_copyright): Declare as readonly.
77860         (version_etc): Make this function variadic with a NULL-terminated list
77861         of author name strings.
77862         (version_etc_va): New declaration.
77863         * lib/version-etc.c: Include stdarg.h, stdlib.h.
77864         (version_etc_copyright): Declare as readonly.
77865         (version_etc_va): New function. Provide a different translatable string
77866         for each possible number of authors < 10. Abbreviate when there are 10
77867         authors or more.
77868         (version_etc): Make this function variadic. Call version_etc_va.
77869         Suggestion from Gary V. Vaughan.
77870
77871         * lib/long-options.h (parse_long_options): Change prototype: the
77872         authors string is moved to the end and becomes variadic.
77873         * lib/long-options.c: Include stdarg.h.
77874         (parse_long_options): Make this function variadic, too.
77875         Call version_etc_va, not version_etc.
77876
77877 2003-10-06  Bruno Haible  <bruno@clisp.org>
77878
77879         * modules/version-etc-2: Remove file.
77880         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
77881
77882 2003-10-06  Bruno Haible  <bruno@clisp.org>
77883
77884         * modules/fatal-signal: New file.
77885         * MODULES.html.sh (func_all_modules): Add fatal-signal.
77886
77887 2003-10-06  Bruno Haible  <bruno@clisp.org>
77888
77889         * m4/fatal-signal.m4: New file.
77890         * m4/signalblocking.m4: New file, from GNU gettext.
77891
77892 2003-10-06  Bruno Haible  <bruno@clisp.org>
77893
77894         * lib/version-etc-2.h: Remove file.
77895         * lib/version-etc-2.c: Remove file.
77896
77897 2003-10-06  Bruno Haible  <bruno@clisp.org>
77898
77899         * lib/fatal-signal.h: New file, from GNU gettext.
77900         * lib/fatal-signal.c: New file, from GNU gettext.
77901
77902 2003-10-05  Paul Eggert  <eggert@twinsun.com>
77903
77904         * README: Rework advice for preventing empty .o files.
77905         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
77906         not <sys/types.h>.
77907
77908 2003-10-04  Karl Berry  <karl@gnu.org>
77909
77910         * lib/argp*: update from libc.
77911
77912 2003-10-04  Karl Berry  <karl@gnu.org>
77913
77914         * config/config.{guess,sub}: update from config.
77915
77916 2003-10-02  Bruno Haible  <bruno@clisp.org>
77917
77918         * modules/lchown (Include): Add lchown.h.
77919         * modules/time_r (Include): Use "..." syntax.
77920         * modules/xgetdomainname (Include): Add xgetdomainname.h.
77921
77922 2003-10-01  Simon Josefsson  <jas@extundo.com>
77923
77924         * MODULES.html.sh (func_all_modules): Move gethostname from section
77925         'based on' to section 'lacking' POSIX:2001.
77926
77927 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
77928
77929         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
77930         to output mode on the same stream.
77931
77932 2003-09-29  Paul Eggert  <eggert@twinsun.com>
77933
77934         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
77935         Fix arg typo in previous patch.
77936
77937 2003-09-28  Jim Meyering  <jim@meyering.net>
77938
77939         * lib/error.c: Correct cpp indentation.
77940
77941 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77942
77943         * modules/free: New file.
77944
77945 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77946
77947         * m4/free.m4: New file.
77948
77949 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77950
77951         * lib/minmax.h (MIN, MAX)
77952         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
77953         Omit the special code that used __typeof__, since we worry that
77954         it could be more trouble than it's worth.  See:
77955         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
77956         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
77957
77958         * lib/free.c: New file.
77959
77960 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
77961
77962         Trivial fixes to Makefile.am parts of module listings.
77963         * modules/strstr: Append strstr.h to lib_SOURCES.
77964         * modules/strcase: Likewise, for strcase.h.
77965
77966 2003-09-27  Karl Berry  <karl@gnu.org>
77967
77968         * config/mkinstalldirs: update from automake.
77969
77970 2003-09-26  Paul Eggert  <eggert@twinsun.com>
77971
77972         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
77973         (error_tail): Do not loop, reallocating temporary buffer, since
77974         the output cannot contain more wide characters than the input
77975         contains bytes, the size must be big enough already.  This avoids
77976         one potential size overflow calculation.  Check for size overflow
77977         when calculating temporary buffer size.  Free temporary buffer
77978         when done, if it was allocated with malloc; this plugs a memory
77979         leak.  Remove casts from void * to pointers, that are no longer
77980         needed now that we're assuming C89 or better.
77981
77982         Merge error changes from glibc.
77983
77984         * lib/error.c, error.h: Update copyright notice header to match glibc.
77985         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
77986         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
77987         Disable cancellation while printing error.
77988         * lib/error.h: Prepend __ to parameter names.
77989
77990 2003-09-26  Jim Meyering  <jim@meyering.net>
77991
77992         * lib/error.c (error_tail): Move some declarations
77993         into inner scope where the local variables are used.
77994
77995 2003-09-26  Bruno Haible  <bruno@clisp.org>
77996
77997         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
77998         stpncpy().
77999         Don't define stpncpy through config.h; it's now done through stpncpy.h.
78000
78001 2003-09-26  Bruno Haible  <bruno@clisp.org>
78002
78003         * lib/stpncpy.h (gnu_stpncpy): New declaration.
78004         (stpncpy): Define as alias for gnu_stpncpy.
78005         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
78006
78007 2003-09-25  Simon Josefsson  <jas@extundo.com>
78008
78009         * lib/xgetdomainname.h: New file.
78010         * lib/xgetdomainname.c: New file.
78011
78012 2003-09-25  Simon Josefsson  <jas@extundo.com>
78013             Bruno Haible  <bruno@clisp.org>
78014
78015         * modules/getdomainname: New file.
78016         * modules/xgetdomainname: New file.
78017         * MODULES.html.sh (func_all_modules): Add getdomainname,
78018         xgetdomainname.
78019
78020 2003-09-25  Simon Josefsson  <jas@extundo.com>
78021             Bruno Haible  <bruno@clisp.org>
78022
78023         * m4/getdomainname.m4: New file.
78024
78025 2003-09-25  Simon Josefsson  <jas@extundo.com>
78026             Bruno Haible  <bruno@clisp.org>
78027
78028         * lib/getdomainname.h: New file.
78029         * lib/getdomainname.c: New file.
78030
78031 2003-09-25  Karl Berry  <karl@gnu.org>
78032
78033         * lib/argp-fmtstream.c, argp-help.c: update from libc.
78034
78035 2003-09-25  Karl Berry  <karl@gnu.org>
78036
78037         * config/install-sh: update from automake.
78038
78039 2003-09-25  Bruno Haible  <bruno@clisp.org>
78040
78041         * modules/version-etc-2: New file, from modules/version-etc with
78042         modifications.
78043         * MODULES.html.sh (func_all_modules): Add version-etc-2.
78044
78045 2003-09-25  Bruno Haible  <bruno@clisp.org>
78046
78047         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
78048         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
78049
78050 2003-09-24  Simon Josefsson  <jas@extundo.com>
78051
78052         * modules/xgethostname: Add xgethostname.h.
78053
78054 2003-09-24  Paul Eggert  <eggert@twinsun.com>
78055
78056         * lib/linebuffer.c (freebuffer): Don't free the argument, just
78057         the buffer associated with the argument.  Bug reported by
78058         Simon Josefsson.
78059
78060 2003-09-24  Paul Eggert  <eggert@twinsun.com>
78061
78062         * README: Document assumptions that 'int' is at least 32 bits
78063         wide, that integer arithmetic is 2's complement without overflow,
78064         that there are no holes in integer values, that adding sizes of
78065         two nonoverlapping objects can't overflow, and that all-bits-zero
78066         yields scalar zero.  Fix spelling and capitalization typos.
78067
78068 2003-09-19  Karl Berry  <karl@gnu.org>
78069
78070         * lib/argp.h: update from libc.
78071
78072 2003-09-17  Paul Eggert  <eggert@twinsun.com>
78073
78074         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
78075         to avoid spurious warnings like "AC_RUN_IFELSE was called before
78076         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
78077
78078 2003-09-17  Paul Eggert  <eggert@twinsun.com>
78079
78080         * gnulib-tool: Use "test -h", not "test -L", for portability
78081         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
78082         (tags_regexp): Remove, since \| doesn't conform to POSIX.
78083         (sed_extract_prog): Issue s commands one-by-one, rather than
78084         using \| in one s command.
78085
78086 2003-09-16  Paul Eggert  <eggert@twinsun.com>
78087
78088         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
78089         input error, instead of returning NULL the next time we are called
78090         (and therefore losing track of errno).
78091
78092 2003-09-16  Bruno Haible  <bruno@clisp.org>
78093
78094         * gnulib-tool (func_create_testdir): Warn about duplicated
78095         dependencies.
78096
78097 2003-09-15  Paul Eggert  <eggert@twinsun.com>
78098
78099         * modules/argmatch, modules/fatal, modules/obstack,
78100         modules/xalloc, modules/xgethostname: Sort dependencies by
78101         importance, not alphabetically.
78102
78103 2003-09-15  Paul Eggert  <eggert@twinsun.com>
78104
78105         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
78106         fails, so that the caller gets the proper errno.
78107
78108         * lib/readutmp.c (read_utmp): Likewise.
78109         Check for fstat error.  Close stream and free storage
78110         when failing.
78111
78112 2003-09-14  Karl Berry  <karl@gnu.org>
78113
78114         * config/srclist.txt (strdup.c): disable for c89 changes.
78115
78116 2003-09-14  Jim Meyering  <jim@meyering.net>
78117
78118         * lib/getloadavg.c: Correct cpp indentation.
78119         * lib/strdup.c: Likewise.
78120         * lib/vasnprintf.c: Likewise.
78121
78122 2003-09-14  Bruno Haible  <bruno@clisp.org>
78123
78124         * modules/fwriteerror: New file.
78125         * MODULES.html.sh (func_all_modules): Add fwriteerror.
78126
78127 2003-09-14  Bruno Haible  <bruno@clisp.org>
78128
78129         * lib/fwriteerror.h: New file.
78130         * lib/fwriteerror.c: New file.
78131
78132 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78133
78134         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
78135         modules/xgethostname, modules/xalloc: Depend on exit.
78136
78137 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78138
78139         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
78140
78141         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
78142         and AC_MINIX, too, so that their extensions are available.
78143
78144         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
78145         This macro has been superseded by gl_BACKUPFILE.
78146
78147         More patches to assume C89 or better.
78148
78149         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
78150
78151         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
78152         unconditionally.
78153         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
78154         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
78155         Include <string.h>, <stdlib.h> unconditionally.
78156         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
78157         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
78158         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
78159         headers or for string.h.
78160         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
78161         or strtoul.
78162
78163         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
78164         headers.
78165         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
78166         * m4/userspec.m4 (gl_USERSPEC): Likewise.
78167         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
78168         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
78169         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78170         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
78171         memcpy, memset.
78172         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
78173         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
78174         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
78175         strtol.
78176         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
78177         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
78178         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
78179         strtoul.
78180
78181 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78182
78183         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
78184         * lib/obstack.c [!defined _LIBC]: Likewise.
78185         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
78186         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
78187         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
78188
78189         More changes to assume C89 or better.
78190
78191         * lib/error.c (error_tail): Assume vprintf.
78192
78193         * lib/argmatch.c (getenv): Remove decl.
78194         * lib/progreloc.c (get_full_program_name): Define via prototype.
78195         * lib/setenv.c (clearenv): Likewise.
78196         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
78197         needed.
78198         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
78199         (malloc, memcpy): Remove decls.
78200         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
78201         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
78202         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
78203         (memcpy): Remove macro.
78204         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
78205         (__P): Remove.  All uses removed.
78206         (PTR): Remove.  All uses changed to void *.
78207         (CHAR_BIT, NULL): Remove.
78208         (spaces, zeros, memset_space, memset_zero)
78209         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
78210         Remove.
78211         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
78212         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
78213         Define with prototype.
78214         Remove now-unnecessary prototype decl.
78215         (extra_args_spec): Assume ANSI C.  All uses changed.
78216         (extra_args_spec_iso): Remove.
78217         (my_strftime, emacs_strftimeu): Define via prototype.
78218         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
78219         unconditionally.
78220         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
78221         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
78222         (strtoul, strtol): Remove decls.
78223         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
78224         LONG_MAX): Remove.
78225         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
78226         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
78227         (LOCALE_PARAM_PROTO): New macro.
78228         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
78229         (INTERNAL (strtol), strtol): Define with a prototype.
78230         (PARAMS): Remove.  All uses removed.
78231         * lib/tempname.c: Include <string.h> unconditionally.
78232         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
78233         * lib/xgethostname.c (main): Define with a prototype.
78234         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
78235         Include <stdlib.h> unconditionally.
78236         (calloc, malloc, realloc, free): Remove decls.
78237         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
78238         Include <stdlib.h> unconditionally.  Sort include file names.
78239         (strtod): Remove.
78240         (xstrtod): Define with a prototype.
78241         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
78242         (strtol, strtoul): Remove decls.
78243
78244 2003-09-11  Paul Eggert  <eggert@twinsun.com>
78245
78246         More patches to assume C89 or better.
78247         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
78248         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
78249         string.h, memchr, STDC_HEADERS.
78250
78251 2003-09-11  Paul Eggert  <eggert@twinsun.com>
78252
78253         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
78254         Include <stdlib.h>, <string.h> unconditionally.
78255         Remove now-unnecessary cast to char *.
78256         * lib/strnlen.c: Include <string.h> unconditionally.
78257         * lib/yesno.c (yesno): Define with a prototype.
78258
78259 2003-09-11  Bruno Haible  <bruno@clisp.org>
78260
78261         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
78262
78263 2003-09-10  Jim Meyering  <jim@meyering.net>
78264
78265         * lib/error.c: Correct indentation of cpp directives.
78266
78267 2003-09-10  Bruno Haible  <bruno@clisp.org>
78268
78269         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
78270         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
78271         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
78272         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
78273         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
78274         <stdlib.h> and <string.h> checks.
78275         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
78276         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
78277
78278 2003-09-10  Bruno Haible  <bruno@clisp.org>
78279
78280         * lib/strcspn.c: Include <string.h> unconditionally.
78281         * lib/strpbrk.c: Include <string.h> unconditionally.
78282         * lib/strstr.c: Include <string.h> unconditionally.
78283         * lib/unicodeio.c: Include <string.h> unconditionally.
78284         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
78285         * lib/unsetenv.c: Likewise.
78286         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
78287         * lib/yesno.c: Include <stdlib.h> unconditionally.
78288         (rpmatch): Add prototype.
78289
78290 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78291
78292         More patches to assume C89 or better.
78293         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
78294         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
78295         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
78296         or for string.h.
78297         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
78298         stdlib.h.
78299         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
78300         C headers.
78301         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
78302         string.h.
78303         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
78304         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
78305         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
78306         or for string.h.
78307         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
78308         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
78309         C headers.
78310         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
78311         memcpy.
78312         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
78313         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
78314         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
78315         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
78316         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
78317         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
78318         string.h, free.
78319         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
78320         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
78321         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
78322         C headers, or for string.h.
78323         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
78324         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
78325         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
78326         headers, memory.h, stdlib.h, string.h, strings.h.
78327         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
78328         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
78329         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
78330         strchr.
78331         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
78332         headers, memory.h, string.h.
78333         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
78334         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
78335         free.
78336         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
78337         headers.
78338         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
78339         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
78340         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
78341         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
78342         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
78343
78344 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78345
78346         More K&R removal.
78347
78348         * lib/acosl.c (main): Use a prototype.
78349         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
78350         tanl.c: Likewise.
78351
78352         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
78353
78354         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
78355         (getopt, etopt_long, getopt_long_only, _getopt_internal)
78356         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
78357         with a prototype.
78358         * lib/getopt.c (const): Remove macro.
78359         Include <string.h> unconditionally.
78360         (my_index): Remove; all uses changed to strchr.
78361         (strlen): Remove decl.
78362         (exchange): Remove forward decl; no longer needed.
78363         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
78364         Define with prototype.
78365         * lib/getopt1.c (const): Remove macro.
78366         (getopt_long, getopt_long_only, main): Define with prototype.
78367
78368         * lib/getugroups.c: Include <string.h> unconditionally.
78369
78370         * lib/getusershell.c: Include <stdlib.h> unconditionally.
78371         (getusershell, setusershell, endusershell, readname, main):
78372         Define with prototypes.
78373
78374         * lib/group-member.c: Include group-member.h first.
78375         Include <stdlib.h> unconditionally.
78376
78377         * lib/hard-locale.c: Include hard-locale.h first.
78378         Include <stdlib.h>, <string.h> unconditionally.
78379
78380         * lib/hash.c (free, malloc): Remove decls.
78381         Include <stdlib.h> unconditionally.
78382
78383         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
78384         (getenv): Do not declare.
78385
78386         * lib/idcache.c: Include <string.h> unconditionally.
78387
78388         * lib/long-options.c: Include long-options.h first, to test interface.
78389         Include <stdlib.h> unconditionally.
78390
78391         * lib/makepath.c: Include makepath.h first, to test interface.
78392         Include <stdlib.h> and <string.h> unconditionally.
78393
78394         * lib/linebuffer.c: Include <stdlib.h>.
78395         (free): Remove decl.
78396
78397         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
78398         stddef.h. rpl_malloc returns void *, not char *.
78399         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
78400         prototype.
78401
78402         * lib/md5.h: Include <limits.h> unconditionally.
78403         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
78404         (__P): Remove; all uses removed.
78405         * lib/md5.c: Include "md5.h" first.
78406         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
78407         md5_buffer, md5_process_bytes, md5_process_block):
78408         Define with prototypes.
78409         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
78410         * lib/sha.c: Include "sha.h" first.
78411         Include <stdlib.h>, <string.h> unconditionally.
78412
78413         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
78414         * lib/memcmp.c (__ptr_t): Likewise.
78415         * lib/memrchr.c (__ptr_t): Likewise.
78416         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
78417         Include <string.h> unconditionally.
78418         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
78419         * lib/memchr.c: Include <stdlib.h> unconditionally.
78420         * lib/memchr.c (LONG_MAX): Remove.
78421         * lib/memrchr.c (LONG_MAX): Likewise.
78422         * lib/memchr.c (__memchr): Define via a prototype.
78423         * lib/memrchr.c (__memrchr): Likewise.
78424         * lib/memcmp.c (__P): Remove, and remove all uses.
78425         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
78426         Remove forward decls; no longer needed.
78427         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
78428         Use types required by C89 in prototype.
78429
78430         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
78431         * lib/savedir.c: Likewise.
78432         * lib/mkdir.c (free): Remove decl.
78433         * lib/rmdir.c (rmdir): Define with a prototype.
78434         * lib/savedir.c: Include savedir.h first, to test interface.
78435
78436         * lib/mktime.c (STDC_HEADERS): Remove.
78437         Include <stdlib.h>, <string.h> unconditionally.
78438
78439         * lib/modechange.c: Include <stdlib.h> unconditionally.
78440         (malloc): Remove decl.
78441
78442         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
78443         (free): Remove decl.
78444
78445         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
78446         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
78447         (This type really should be intptr_t, but that's a C99ism.)
78448         (_obstack_memcpy): Remove: all uses changed to memcpy.
78449         Include <string.h> unconditionally.
78450         (struct obstack): Assume __STDC__ for types of members
78451         chunkfun, freefun, extra_arg.
78452         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
78453         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
78454         obstack_begin, obstack_specify_allocation,
78455         obstack_specify_allocation_with_arg, obstack_chunkfun,
78456         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
78457         Remove unprototyped decls and the macros that use them.
78458         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
78459         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
78460         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
78461         (defined __STDC__ && __STDC__)]:
78462         Remove nonprototyped code.
78463         Include <stdlib.h> unconditionally.
78464         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
78465         _obstack_allocated_p, _obstack_free, obstack_free,
78466         _obstack_memory_used, print_and_abort):
78467         Define using prototypes.
78468         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
78469         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
78470         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
78471         obstack_next_free, obstack_object_size, obstack_room) [0]:
78472         Remove unused, unprototyped code.
78473
78474         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
78475
78476         * lib/physmem.c (physmem_total, physmem_available, main): Define
78477         with prototypes.
78478
78479         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
78480         (main): Define with a prototype.
78481
78482         * lib/posixver.c (getenv): Remove decl.
78483
78484         * lib/putenv.c (malloc): Returns void *, not char *.
78485         Include <string.h> unconditionally.
78486         (strchr, memcpy, NULL): Do not define.
78487
78488         * lib/readtokens.c: Include readtokens.h first, to test interface.
78489         Include <stdlib.h>, <string.h> unconditionally.
78490         (init_tokenbuffer): Define with a prototype.
78491
78492         * lib/regex.c (PARAMS): Remove.  All uses removed.
78493         All uses of _RE_ARGS removed, too.
78494         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78495         unconditionally.
78496         (bzero): Assume memset exists.
78497         (memcmp, memcpy, NULL): Remove.
78498         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
78499         char, or assignments to local vars of type signed char.
78500         (init_syntax_once, PREFIX(extract_number_and_incr),
78501         PREFIX(print_partial_compiled_pattern),
78502         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
78503         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
78504         PREFIX(regex_grow_registers), PREFIX(regex_compile),
78505         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
78506         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
78507         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
78508         wcs_compile_range, byte_compile_range, truncate_wchar,
78509         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
78510         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
78511         count_mbs_length, wcs_re_match_2_internal,
78512         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
78513         PREFIX(alt_match_null_string_p),
78514         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
78515         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
78516         regfree, PREFIX(extract_number)): Define with prototype.  Remove
78517         now-unnecessary declaration, if any.
78518         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
78519         regcomp, regexec):
78520         Remove now-unnecessary casts among pointer types.
78521         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
78522
78523         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
78524         (free): Remove decl.
78525
78526         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
78527
78528         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
78529         (free): Remove decl.
78530
78531         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
78532         * lib/xgetcwd.c: Likewise.
78533
78534         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
78535         (free): Remove decl.
78536
78537         * lib/strchrnul.c (strchrnul): Define with a prototype.
78538         Fix bug: c_in was not converted to char before searching.
78539
78540         The following changes are not K&R related:
78541
78542         * lib/group-member.h: Include <sys/types.h>, so that this file is
78543         self-contained.
78544         * lib/makepath.h: Likewise.
78545
78546         * lib/getusershell.c (readname, default_index, line_size, readname):
78547         Use size_t, not int, for sizes.
78548         (readname): If the size overflows, report an error instead of
78549         looping forever.
78550
78551 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78552
78553         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
78554         libc.
78555
78556 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78557
78558         * README: New section: portability guidelines.
78559
78560 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
78561
78562         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
78563         C89 spec.
78564
78565 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
78566
78567         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
78568
78569 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78570
78571         Assume C89 or better; remove K&R cruft.
78572         A few of these changes were first proposed by Derek Robert Price
78573         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
78574
78575         * lib/addext.c: Include <string.h> unconditionally.
78576         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
78577         Don't declare getenv or malloc.
78578
78579         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
78580         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
78581         (NULL): Remove.
78582         (find_stack_direction, alloca): Use prototypes.
78583
78584         * lib/atexit.c (atexit): Define using a prototype.
78585
78586         * lib/basename.c, dirname.c, stripslash.c:
78587         Include <string.h> unconditionally.
78588
78589         * lib/bcopy.c: Include <stddef.h>.
78590         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
78591
78592         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
78593
78594         * lib/error.h (error, error_at_line, error_print_progname)
78595         [! (defined (__STDC__) && __STDC__)]: Remove decls.
78596         * lib/error.c: Include error.h first, to check interface.
78597         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
78598         (VA_START): Remove; all uses changeed to va_start.
78599         (exit, strerror): Remove decls.
78600         (error_print_progname): Prototype uncondionally.
78601         Don't include <errno.h>; no longer needed.
78602         (private_strerror): Remove.
78603         (error_tail): Always define.
78604         (error, error_at_line): Assume C89 or better; always use prototypes.
78605         * lib/fatal.c: Include "fatal.h" first, to test interface.
78606         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
78607         (VA_START): Remove; all uses changed to va_start.
78608         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
78609         this case.
78610         (exit): Remove decl.
78611         (fatal): Prototype unconditionally.  Assume va_start works.
78612         Abort at end, to pacify gcc.
78613
78614         * lib/euidaccess.c (main): Define with a prototype.
78615
78616         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
78617
78618         * lib/exitfail.c: Include <stdlib.h> unconditionally.
78619
78620         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
78621         prototypes.
78622         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
78623         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
78624         (getenv): Remove decl.
78625         (fnmatch): Define using a prototype.
78626         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
78627         (FCT): Define using a prototype.
78628
78629         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
78630
78631         * lib/gethostname.c: Include <stddef.h>.
78632         (gethostname): Define with prototype.  Length is size_t, not int.
78633
78634 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78635
78636         Assume C89 or better; remove K&R cruft.
78637         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
78638         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
78639         string.h, getenv, malloc.
78640         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
78641         headers.
78642         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
78643         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
78644         do not check for strerror.
78645         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
78646         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
78647         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
78648         do not check for doprnt or vprintf.
78649         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
78650         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
78651
78652 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78653
78654         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
78655         getversion.c should have been removed then, but was accidentally
78656         preserved.
78657
78658         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
78659         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
78660
78661 2003-09-08  Karl Berry  <karl@gnu.org>
78662
78663         * config/config.sub, config.guess, srclistvars.sh: update from savannah
78664                 config, forget about prep.
78665
78666         * config/depcomp, missing: update from automake.
78667
78668 2003-09-07  Paul Eggert  <eggert@twinsun.com>
78669
78670         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
78671         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
78672
78673 2003-09-07  Paul Eggert  <eggert@twinsun.com>
78674
78675         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
78676         copy_tm_result.  Bug reported by Simon Josefsson in
78677         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
78678
78679 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78680
78681         * m4/time_r.m4: New file.
78682         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
78683         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
78684         is. Check for timegm declaration.
78685         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
78686         Do not check for gmtime_r.
78687         Replace mktime if __mktime_internal does not exist and if mktime
78688         hasn't been replaced already.
78689
78690 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78691
78692         * lib/time_r.c, lib/time_r.h: New files.
78693
78694         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
78695         __localtime_r.
78696         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
78697         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
78698
78699         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
78700         __gmtime_r.
78701         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
78702         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
78703         Include <time_r.h>.
78704
78705         * lib/timegm.c: Switch to glibc implementation, with the following
78706         changes:
78707         [defined HAVE_CONFIG_H]: Include <config.h>.
78708         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
78709         (__mktime_internal) [!defined _LIBC]: New decl.
78710         (__gmtime_r) [!defined _LIBC]: New macro and function.
78711         (timegm): Use a prototype, since gnulib assumes C89.
78712         Do not bother declaring tmp to be const, as it's not really usefu.
78713         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
78714         (timegm): Declare only if HAVE_DECL_TIMEGM.
78715
78716 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78717
78718         * MODULES.html.sh (func_all_modules): Add time_r.
78719         * modules/time_r: New file.
78720         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
78721         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
78722
78723 2003-09-03  Paul Eggert  <eggert@twinsun.com>
78724
78725         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
78726         Bug reported by Lute Kamstra in
78727         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
78728
78729         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
78730         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
78731         course with correspondingly smaller numbers for tomorrow and
78732         yesterday.  From Tadayoshi Funaba.  Originally installed into
78733         sh-utils on 1999-08-07, but the patch got lost (I guess during the
78734         coreutils merge?).
78735
78736 2003-08-31  Simon Josefsson  <jas@extundo.com>
78737
78738         * modules/timegm: New file.
78739         * MODULES.html.sh (func_all_modules): Add timegm.
78740
78741 2003-08-31  Simon Josefsson  <jas@extundo.com>
78742
78743         * m4/timegm.m4: New file.
78744
78745 2003-08-31  Simon Josefsson  <jas@extundo.com>
78746
78747         * lib/timegm.h: New file.
78748         * lib/timegm.c: New file.  Based on
78749         wget-1.8.2/src/http.c:mktime_from_utc.
78750
78751 2003-08-31  Karl Berry  <karl@gnu.org>
78752
78753         * lib/argp.h: update from libc.
78754
78755 2003-08-28  Bruno Haible  <bruno@clisp.org>
78756
78757         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
78758         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
78759         followed by '#define fnmatch fnmatch_posix' gives an error.
78760
78761 2003-08-28  Bruno Haible  <bruno@clisp.org>
78762
78763         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
78764         warning on QNX, which defines O_BINARY to 000000.
78765
78766 2003-08-27  Jim Meyering  <jim@meyering.net>
78767
78768         * m4/mkstemp.m4: Require that the system mkstemp be able to create
78769         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
78770         would fail after 32.  Reported by Danny Levinson.  Details here:
78771         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
78772
78773 2003-08-24  Bruno Haible  <bruno@clisp.org>
78774
78775         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
78776         MSVC7 <stdio.h> is included later.
78777
78778 2003-08-22  Simon Josefsson  <jas@extundo.com>
78779
78780         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
78781
78782 2003-08-20  Karl Berry  <karl@gnu.org>
78783
78784         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
78785
78786 2003-08-20  Bruno Haible  <bruno@clisp.org>
78787
78788         * modules/progname: New file.
78789         * MODULES.html.sh (func_all_modules): Add progname.
78790
78791 2003-08-20  Bruno Haible  <bruno@clisp.org>
78792
78793         * lib/progname.h: New file, from GNU gettext.
78794         * lib/progname.c: New file, from GNU gettext.
78795         * lib/progreloc.c: New file, from GNU gettext.
78796
78797 2003-08-19  Jim Meyering  <jim@meyering.net>
78798
78799         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
78800         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
78801
78802 2003-08-19  Bruno Haible  <bruno@clisp.org>
78803
78804         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
78805         more.
78806
78807 2003-08-19  Bruno Haible  <bruno@clisp.org>
78808
78809         * lib/xstrdup.c: Assume <string.h> exists.
78810
78811 2003-08-18  Paul Eggert  <eggert@twinsun.com>
78812
78813         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
78814         in makefile rules.
78815
78816 2003-08-18  Jim Meyering  <jim@meyering.net>
78817
78818         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
78819         * m4/lib-ld.m4: Likewise.
78820
78821 2003-08-18  Jim Meyering  <jim@meyering.net>
78822
78823         * lib/setenv.h: Indent nested cpp directive.
78824         * lib/vasnprintf.c: Remove trailing blanks.
78825
78826 2003-08-17  Simon Josefsson  <jas@extundo.com>
78827
78828         * modules/xstrndup: New file.
78829         * MODULES.html.sh (func_all_modules): Add xstrndup.
78830
78831 2003-08-17  Simon Josefsson  <jas@extundo.com>
78832
78833         * modules/argp: Fix autoconf macro name. Add more dependencies.
78834
78835 2003-08-17  Simon Josefsson  <jas@extundo.com>
78836
78837         * m4/xstrndup.m4: New file.
78838
78839 2003-08-17  Simon Josefsson  <jas@extundo.com>
78840
78841         * m4/argp.m4: New file.
78842
78843 2003-08-17  Simon Josefsson  <jas@extundo.com>
78844             Bruno Haible  <bruno@clisp.org>
78845
78846         * lib/xstrndup.h: New file.
78847         * lib/xstrndup.c: New file.
78848
78849 2003-08-17  Bruno Haible  <bruno@clisp.org>
78850
78851         * modules/strndup (Files, Include): Add lib/strndup.h.
78852
78853 2003-08-17  Bruno Haible  <bruno@clisp.org>
78854
78855         * modules/euidaccess (Files): Add lib/euidaccess.h.
78856
78857 2003-08-17  Bruno Haible  <bruno@clisp.org>
78858
78859         * lib/strndup.h: New file.
78860
78861 2003-08-17  Bruno Haible  <bruno@clisp.org>
78862
78863         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
78864         like AC_GNU_SOURCE.
78865         * modules/extensions (configure.ac): Comment out the invocation of
78866         gl_USE_SYSTEM_EXTENSIONS.
78867
78868 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78869
78870         Merges from coreutils, etc.
78871         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
78872         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
78873         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
78874         fixing a typo.
78875         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
78876         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
78877
78878 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78879
78880         Document merge from coreutils.
78881         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
78882         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
78883         * modules/utime: Add m4/utimes-null.m4.
78884
78885 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78886
78887         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
78888         space, undoing this 2003-08-12 change:
78889         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
78890
78891 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78892
78893         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
78894         strtoul.c from libc, undoing this 2003-08-12 change:
78895         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
78896
78897 2003-08-16  Jim Meyering  <jim@meyering.net>
78898
78899         Merges from coreutils.
78900         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
78901         prefix.  Adjust cache variables similarly.  Create 500 rather than
78902         just 300 files, to exercise bug on Darwin6.5, too.
78903         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
78904         $missing_dir.
78905         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
78906         AM_SYS_POSIX_TERMIOS.
78907         Reported by mkc@mathdogs.com.
78908         Also change use of $am_cv_sys_posix_termios
78909         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
78910         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
78911         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
78912         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
78913         in /proc/mounts until it finds one with matching device number.  This
78914         is unnecessary when the FILE argument *is* a mount point.  No stat call
78915         is necessary in that case.  So, disable the statvfs-testing code on
78916         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
78917         as RedHat bug# 84846.
78918         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
78919         to 1MB, so as not to render systems with no stack size limit (e.g.,
78920         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
78921         Include <unistd.h>.  On some systems,
78922         it is required for the definition of _SC_PAGESIZE.
78923
78924 2003-08-16  Jim Meyering  <jim@meyering.net>
78925
78926         Merge from coreutils.
78927         * lib/xstrtoimax.c: #else #if -> #elif.
78928         * lib/xstrtoumax.c: Likewise.
78929
78930 2003-08-16  Jim Meyering  <jim@meyering.net>
78931
78932         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
78933         * m4/utimes.m4: Removed.
78934         * m4/utimes-null.m4: Renamed from utimes.m4.
78935
78936         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
78937         to 1MB, so as not to render systems with no stack size limit (e.g.,
78938         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
78939         Include <unistd.h>.  On some systems,
78940         it is required for the definition of _SC_PAGESIZE.
78941
78942 2003-08-16  Jim Meyering  <jim@meyering.net>
78943         and Paul Eggert  <eggert@cs.ucla.edu>
78944
78945         Merges from coreutils, etc.
78946
78947         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
78948         using the latest version from cvs.  This avoids problems with #line
78949         directives using a vendor (Sun) compiler.
78950         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
78951         Don't set GETGROUPS_LIB here; now it's
78952         done via getgroups.m4's wrapper function.
78953         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
78954         rather than just in sh-util/configure.in, so that the
78955         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
78956         same.
78957         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
78958         AC_FUNC_GETLOADAVG where to find getloadavg.c.
78959         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
78960         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
78961         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
78962         Remove code that is now done by the newly-required macros.
78963         Append $(EXEEXT) to DF_PROG.
78964         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
78965         Do not invoke or require the following here,
78966         since prereq.m4 or some gnulib .m4 now does this for us:
78967         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
78968         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
78969         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
78970         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
78971         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
78972         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
78973         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
78974         AC_FUNC_OBSTACK.
78975         Do not replace the following functions, as this is now the job
78976         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
78977         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
78978         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
78979         atexit getpass, strdup, getpagesize.
78980         Replace 'raise'.
78981         Do not check for the following functions, as this is now the job
78982         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
78983         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
78984         setregid.
78985         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
78986         Check for sys/sysctl.h.
78987         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
78988         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
78989         of checking for ssize_t ourselves.
78990
78991         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
78992         Require every macro that gnulib/modules/* suggests for us.
78993         (jm_PREREQ_ADDEXT): New macro.
78994         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
78995         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
78996
78997         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
78998         (gl_PHYSMEM): Use it.
78999         Also check for `table' function.
79000         Check for new headers and functions.
79001         Add check for sys/sysmp.h.
79002         With suggestions from Kaveh Ghazi.
79003         Ignore headers that are present but cannot be compiled.  This
79004         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
79005         C 5.4.
79006
79007 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79008
79009         Document merge from coreutils.
79010         * modules/userspec: Depend on posixver.
79011         * modules/strftime: Depend on tzset.
79012
79013 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79014
79015         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
79016         rather than tab, after '#' in shell-script copyright notices.
79017         Suggested by Bruno Haible.
79018
79019 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79020
79021         * config/srclist-update: Use three spaces, rather than tab, after '#'
79022         in shell-script copyright notices.  Suggested by Bruno Haible.
79023         Remove unnecessary parenthesization in regular expression.
79024
79025 2003-08-15  Jim Meyering  <jim@meyering.net>
79026
79027         Merge from coreutils.
79028         * lib/xgethostname.c: Include <stdlib.h>.
79029         (xghostname): Don't exit for anything other than memory-related
79030         failure; just return NULL.
79031         * lib/userspec.c: Include "posixver.h".
79032         (parse_user_spec): Accept `.' as a separator only
79033         in pre-POSIX-200112 mode.
79034         * lib/strtoimax.c: Use #elif rather than #else #if.
79035         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
79036         Remove function, now that we can rely on a working tzset function.
79037         [!_LIBC]: Ensure that the required autoconf test has been run.
79038         [!defined _NL_CURRENT && HAVE_STRFTIME]:
79039         Use underlying_strftime for %r.
79040         * lib/sha.c: Merge in some clean-up and optimization changes from
79041         glibc.
79042         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
79043         Ensure that it is a multiple of 64.
79044         Rearrange loop exit tests so as to avoid performing an
79045         additional fread after encountering an error or EOF.
79046         * lib/realloc.c: Update copyright date.
79047
79048 2003-08-15  Jim Meyering  <jim@meyering.net>
79049         and Paul Eggert  <eggert@twinsun.com>
79050
79051         Merge from coreutils.
79052         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
79053         member but strut utmpx does not.  Needed for AIX 4.3.3.
79054         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
79055
79056 2003-08-15  Jim Meyering  <jim@meyering.net>
79057         and Paul Eggert  <eggert@cs.ucla.edu>
79058
79059         Merges from coreutils, etc.
79060         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
79061         Require gl_FUNC_TZSET_CLOBBER.
79062         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
79063         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
79064         members.
79065
79066 2003-08-14  Paul Eggert  <eggert@twinsun.com>
79067
79068         Help the merge from coreutils.
79069         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
79070         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
79071         * m4/tzset.m4: Use it too.
79072
79073 2003-08-14  Paul Eggert  <eggert@twinsun.com>
79074
79075         * modules/tzset: New file.
79076
79077 2003-08-14  Jim Meyering  <jim@meyering.net>
79078
79079         Merges from coreutils.
79080         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
79081         variable names, rather than @FNMATCH_H@.
79082         * modules/alloca: Likewise for $(ALLOCA_H).
79083
79084         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
79085         the three copies of the literal target, `fnmatch.h'.
79086         * modules/alloca (alloca.h): Likewise.
79087
79088 2003-08-14  Jim Meyering  <jim@meyering.net>
79089
79090         Merge from coreutils.
79091         * m4/tzset.m4: New file.
79092         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
79093         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
79094         otherwise, AIX 5.1 systems would end up using the latter.
79095         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
79096         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
79097         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
79098         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
79099
79100 2003-08-14  Jim Meyering  <jim@meyering.net>
79101
79102         Merge from coreutils.
79103         * lib/obstack.h: Whitespace changes.
79104         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
79105         and xcalloc return values.
79106         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
79107         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
79108         hang on OSF/1 5.1 for DIR on both local and remote file systems.
79109         Reported by (and fix confirmed by) Nelson H. F. Beebe.
79110         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
79111         error from mntctl.
79112         Use mntctl's return value to drive the entry-processing loop, since
79113         we can't rely on the value of the vmt_length member in the last
79114         entry.  On some systems doing so could result in exhausting
79115         virtual memory.  Based in part on a patch from Mike Jetzer.
79116
79117 2003-08-14  Jim Meyering  <jim@meyering.net>
79118         and Paul Eggert  <eggert@twinsun.com>
79119
79120         Merges from coreutils, plus other fixes.
79121         * lib/physmem.c: Merge in portability changes from gcc/libiberty
79122         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
79123         for credits and details.  Thanks to Kaveh Ghazi for helping
79124         to keep these files in sync.
79125         (ARRAY_SIZE): Define it.
79126         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
79127         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
79128         (memcasecmp): Don't assume size_t fits in unsigned int.
79129         Remove casts and duplicate code.
79130         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
79131         (memcpy): Remove definition.
79132         Merge in some clean-up and optimization changes from glibc.
79133         [BLOCKSIZE]: Move definition to top of file.
79134         Ensure that it is a multiple of 64.
79135         Rearrange loop exit tests so as to avoid performing an
79136         additional fread after encountering an error or EOF.
79137         * lib/md5.h (md5_uintptr): Define.
79138         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
79139         return to the initial working directory.  Preserve errno
79140         for caller.
79141         * lib/idcache.c: Include "xalloc.h".
79142         (xmalloc, xrealloc): Remove decls.
79143         (getuser): Remove casts no longer required in C89.
79144         * lib/human.c: Include stdio.h, for sprintf.
79145         * lib/group-member.c: Include "xalloc.h".
79146         (xmalloc, xrealloc): Remove decls.
79147         (get_group_info): Remove casts no longer required in C89.
79148         * lib/getusershell.c (readname): Remove casts no longer required in
79149         C89.
79150         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
79151         * lib/getline.c: Whitespace fix, from coreutils.
79152
79153 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79154
79155         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
79156         Check for isascii.
79157
79158         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
79159         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
79160         Undo previous (whitespace-only) change.
79161
79162 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79163
79164         * lib/exclude.c: Include <ctype.h>
79165         (IN_CTYPE_DOMAIN): New macro.
79166         (is_space): New fn.
79167         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
79168         and empty lines.
79169
79170         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
79171         Undo previous (whitespace-only) change.
79172
79173 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79174
79175         * config/srclist-update: Change update back to the old behavior,
79176         leaving whitespace alone.  Use one 'sed' command rather than a
79177         pipeline.
79178         (fixlicense): Now a variable, not a function.
79179         (remove_trailing_blanks): Remove.
79180         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
79181         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
79182         Undo previous (whitespace-only) change.
79183
79184 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79185
79186         Merge from coreutils.
79187         * modules/euidaccess: Add lib_SOURCES, include for new
79188         file euidaccess.h
79189
79190 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79191
79192         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
79193         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
79194         Normalize leading white space and remove trailing white space.
79195
79196         Merge from coreutils
79197         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
79198
79199         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
79200         0.12.1.  These files are now being upgraded automatically by
79201         ../config/srclist-update.
79202
79203 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79204
79205         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
79206         Normalize leading white space and remove trailing white space.
79207         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
79208         notice, as per ../config/srclist-update.
79209
79210         Merge from coreutils.
79211         * lib/euidaccess.h: New file.
79212         * lib/euidaccess.c: Include it.
79213         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
79214         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
79215         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
79216
79217 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79218
79219         * config/srclist-update: Add copyright notice.
79220         (remove_id_lines, remove_trailing_blanks): New constants.
79221         (fixfile): Use them to normalize spacing a bit in copied files.
79222         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
79223         Normalize leading white space and remove trailing white space.
79224
79225         * config/texinfo.tex: Sync with texinfo.
79226
79227         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
79228         strtoul.c from libc, to merge coreutils whitespace changes.
79229
79230         * config/srclist.txt: Get the following m4 files from gettext:
79231         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
79232         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
79233         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
79234         wint_t.m4.
79235
79236 2003-08-12  Karl Berry  <karl@gnu.org>
79237
79238         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
79239         been made.
79240
79241 2003-08-11  Paul Eggert  <eggert@twinsun.com>
79242
79243         * modules/gnu-source, m4/gnu-source.m4:
79244         Remove; we're assuming Autoconf 2.54 or later now.
79245         Suggested by Bruno Haible.
79246         * MODULES.html.sh (func_all_modules): Remove gnu-source.
79247
79248 2003-08-11  Bruno Haible  <bruno@clisp.org>
79249
79250         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
79251
79252 2003-08-11  Bruno Haible  <bruno@clisp.org>
79253
79254         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
79255         (vasnprintf): Use it instead of wcslen.
79256
79257 2003-08-11  Bruno Haible  <bruno@clisp.org>
79258
79259         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
79260         value to ensure that _Bool promotes to int. Use #define for _Bool when
79261         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
79262
79263 2003-08-10  Karl Berry  <karl@gnu.org>
79264
79265         * lib/regex.h: update from libc (whitespace fix).
79266
79267 2003-08-09  Paul Eggert  <eggert@twinsun.com>
79268
79269         Merge some files from coreutils.  These changes were
79270         originally made by Jim Meyering.
79271         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
79272         many older Unixes require this.
79273         * lib/alloca.c (alloca): Remove cast to argument of free;
79274         no longer needed in C89.
79275         * lib/alloca_.h, regex.h: Fix white space to match
79276         what GNU indent does.
79277
79278 2003-08-09  Paul Eggert  <eggert@twinsun.com>
79279
79280         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
79281         apparently Emacs's Unicode mode got confused before my 2003-08-05
79282         checkin.
79283
79284 2003-08-08  Paul Eggert  <eggert@twinsun.com>
79285
79286         * m4/extensions.m4: New file.
79287         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
79288         Require gl_USE_SYSTEM_EXTENSIONS.
79289         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
79290         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
79291
79292 2003-08-08  Paul Eggert  <eggert@twinsun.com>
79293
79294         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
79295         * modules/extensions, modules/gnu-source: New files.
79296         * modules/timespec, modules/unlocked-io: Depend on extensions.
79297
79298 2003-08-07  Paul Eggert  <eggert@twinsun.com>
79299
79300         * modules/restrict: New file.
79301         * MODULES.html.sh (func_all_modules): Add restrict.
79302         * modules/regex: Depend on restrict.
79303
79304 2003-08-07  Paul Eggert  <eggert@twinsun.com>
79305
79306         * m4/restrict.m4: New file.
79307         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
79308
79309 2003-08-07  Bruno Haible  <bruno@clisp.org>
79310
79311         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
79312         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
79313
79314 2003-08-07  Bruno Haible  <bruno@clisp.org>
79315
79316         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
79317         makes the module 'getndelim2' compatible with the module 'getline'.
79318
79319 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79320
79321         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
79322         byte with "\201" to avoid glitches when editing that source file
79323         with multi-gnome-terminal.
79324
79325 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79326
79327         * lib/bumpalloc.h: Remove.
79328
79329 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79330
79331         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
79332         * modules/bumpalloc: Remove.
79333
79334 2003-08-04  Paul Eggert  <eggert@twinsun.com>
79335
79336         * lib/getloadavg.c: Change copyright notice and spacing to conform to
79337         GNU coding style.
79338
79339         Merge from coreutils.
79340         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
79341         1. From glibc.
79342         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
79343         from Karl Berry, implemented by Jim Meyering.
79344         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
79345         from Dmitry V. Levin.
79346         Remove anachronistic cast of xrealloc.
79347         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
79348         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
79349         type. Otherwise, it wouldn't compile with at least /bin/cc on
79350         ymp-cray-unicos9.0.2.X.
79351         Combine two mostly-identical uses of alloca into one.
79352         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
79353
79354 2003-08-04  Dave Love  <d.love@dl.ac.uk>
79355
79356         [From Emacs.]
79357
79358         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
79359         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
79360         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
79361         obsolete NLIST_NAME_UNION.
79362         [__GNU__]: Undef BSD and FSCALE.
79363         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
79364
79365 2003-08-03  Paul Eggert  <eggert@twinsun.com>
79366
79367         * lib/stdbool_.h (_Bool): Make it signed char, instead of
79368         an enum type, so that it's guaranteed to promote to int.  See:
79369         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
79370
79371 2003-08-03  Karl Berry  <karl@gnu.org>
79372
79373         * config/depcomp: update from automake.
79374
79375 2003-07-31  Paul Eggert  <eggert@twinsun.com>
79376
79377         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
79378         (strerror): Don't assume that a printable int fits in 14 bytes.
79379
79380 2003-07-31  Bruno Haible  <bruno@clisp.org>
79381
79382         * modules/getpass-gnu: New file.
79383         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
79384
79385 2003-07-31  Bruno Haible  <bruno@clisp.org>
79386
79387         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
79388
79389 2003-07-24  Karl Berry  <karl@gnu.org>
79390
79391         * config/missing: update from automake.
79392
79393 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
79394             Bruno Haible  <bruno@clisp.org>
79395
79396         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
79397         * lib/getline.c (getline, getdelim): Likewise.
79398         Remove _GNU_SOURCE define; now it's defined in config.h through
79399         m4/getline.m4.
79400
79401 2003-07-23  Karl Berry  <karl@gnu.org>
79402
79403         * config/config.sub: update from prep.
79404
79405 2003-07-22  Paul Eggert  <eggert@twinsun.com>
79406
79407         * modules/xalloc (Depends-on): Add exitfail.
79408         * modules/xmemcoll: Likewise.
79409
79410 2003-07-22  Paul Eggert  <eggert@twinsun.com>
79411
79412         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
79413         over-parenthesization in macros.
79414
79415         Sync with coreutils.
79416
79417         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
79418         required by C99.
79419
79420         Use `exit_failure' for xalloc and xmemcoll instead of their own
79421         private exit-failure variables.
79422         * lib/xalloc.h (xalloc_exit_failure): Remove.
79423         * lib/xmalloc.c: Likewise.  Include exitfail.h.
79424         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
79425         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
79426         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
79427         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
79428
79429 2003-07-20  Jim Meyering  <jim@meyering.net>
79430
79431         * modules/closeout (Depends-on): Add exitfail.
79432         Suggestion from Bruno Haible.
79433
79434 2003-07-19  Karl Berry  <karl@gnu.org>
79435
79436         * config/config.sub: update from prep.
79437
79438 2003-07-18  Paul Eggert  <eggert@twinsun.com>
79439
79440         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
79441         Remove.
79442         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
79443         to test that it can stand by itself.  Include "exitfail.h".
79444         Clients should set exit_failure instead.
79445         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
79446
79447 2003-07-18  Bruno Haible  <bruno@clisp.org>
79448
79449         * modules/getndelim2: New file.
79450         * modules/getline: Share files with module getndelim2.
79451         * modules/getnline: Depend on getndelim2 instead of sharing files with
79452         it. Add getnline.c to lib_SOURCES.
79453         * MODULES.html.sh (func_all_modules): Add getndelim2.
79454
79455 2003-07-18  Bruno Haible  <bruno@clisp.org>
79456
79457         * m4/getndelim2.m4: New file.
79458         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
79459         invoke gl_PREREQ_GETNDELIM2.
79460         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
79461         gl_PREREQ_GETNDELIM2.
79462         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
79463         gl_GETNDELIM2.
79464
79465 2003-07-18  Bruno Haible  <bruno@clisp.org>
79466
79467         * lib/getndelim2.h: New file.
79468         * lib/getndelim2.c: Make into a module of its own. Include config.h,
79469         getndelim2.h.
79470         (getndelim2): Make non-static. Change return type to ssize_t.
79471         * lib/getline.h: Change argument names.
79472         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
79473         * lib/getnline.c: Include getndelim2.h.
79474
79475 2003-07-18  Andreas Schwab  <schwab@suse.de>
79476
79477         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
79478
79479 2003-07-17  Karl Berry  <karl@gnu.org>
79480
79481         * config/config.sub: update from prep.
79482
79483 2003-07-17  Bruno Haible  <bruno@clisp.org>
79484
79485         * modules/getnline: New file.
79486         * modules/getline: Add lib/getndelim2.c to source file list.
79487         * MODULES.html.sh (func_all_modules): Add getnline.
79488
79489 2003-07-17  Bruno Haible  <bruno@clisp.org>
79490
79491         * m4/getnline.m4: New file.
79492
79493 2003-07-17  Bruno Haible  <bruno@clisp.org>
79494
79495         * m4/Makefile.am.in: Remove file.
79496         * m4/Makefile.am: Remove file.
79497         * m4/Makefile.in: Remove file.
79498
79499 2003-07-17  Bruno Haible  <bruno@clisp.org>
79500
79501         * lib/getnline.h: New file.
79502         * lib/getnline.c: New file.
79503         * lib/getndelim2.c: New file, extracted from getline.c.
79504         (getndelim2): Renamed from getdelim2, with added nmax argument.
79505         * lib/getline.c: Include getndelim2.c.
79506         (getdelim2): Moved out to getndelim2.c.
79507         (getline, getdelim): Update.
79508
79509 2003-07-17  Bruno Haible  <bruno@clisp.org>
79510
79511         * lib/Makefile.am: Remove file.
79512         * lib/Makefile.in: Remove file.
79513
79514 2003-07-17  Bruno Haible  <bruno@clisp.org>
79515
79516         * configure.in: Remove file.
79517         * Makefile.in: Remove file.
79518
79519 2003-07-17  Bruno Haible  <bruno@clisp.org>
79520
79521         * MODULES.html.sh: Put the </BODY> right before </HTML>.
79522
79523 2003-07-16  Karl Berry  <karl@gnu.org>
79524
79525         * config/srclist-update: was running fixlicense twice, which caused
79526                 texinfo.tex to be nullified for some reason.  Simplify,
79527                 $gplsrc is no longer needed as far as I can see?
79528
79529 2003-07-16  Jim Meyering  <jim@meyering.net>
79530
79531         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
79532
79533 2003-07-15  Paul Eggert  <eggert@twinsun.com>
79534
79535         * config/srclist.txt: Get the following files from gettext-runtime/intl
79536         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
79537         ref-del.sin.  From Bruno Haible.
79538         * config/srclist-update (fixfile): Change grep pattern again, since the
79539         previous fix didn't work (there was another trailing $).  Use
79540         '[$]' to escape the $s.
79541
79542 2003-07-15  Karl Berry  <karl@gnu.org>
79543
79544         * lib/vasnprintf.c: update from gettext.
79545
79546 2003-07-15  Karl Berry  <karl@gnu.org>
79547
79548         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
79549         gets expanded when surrounded by '$'.
79550
79551 2003-07-15  Jim Meyering  <jim@meyering.net>
79552
79553         * modules/save-cwd: Don't depend on error.  From Derek Price.
79554
79555 2003-07-15  Jim Meyering  <jim@meyering.net>
79556
79557         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
79558
79559 2003-07-14  Simon Josefsson  <jas@extundo.com>
79560
79561         * modules/mempcpy: New file.
79562         * MODULES.html.sh (func_all_modules): Add mempcpy.
79563
79564 2003-07-14  Simon Josefsson  <jas@extundo.com>
79565
79566         * m4/mempcpy.m4: New file.
79567
79568 2003-07-14  Simon Josefsson  <jas@extundo.com>
79569
79570         * lib/mempcpy.h: New file.
79571         * lib/mempcpy.c: New file.
79572
79573 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79574
79575         * modules/getdate, modules/posixtm: Depend on mktime.
79576
79577 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79578
79579         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
79580         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
79581         unicodeio.c, unicodeio.h, unlocked-io.h:
79582         Switch from LGPL to GPL.
79583
79584 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79585
79586         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
79587         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
79588         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
79589         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
79590         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
79591         updated automatically by ../config/srclist-update.  This changes
79592         their license from LPGL to GPL.
79593
79594 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79595
79596         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
79597         assumed to refer to the root of the most recent stable gettext version.
79598         * config/srclistvars.sh: Add defaults for eggert.
79599         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
79600         Match "This program" as well as "The program".  This is needed
79601         for gettext.
79602
79603 2003-07-14  Jim Meyering  <jim@meyering.net>
79604
79605         Don't emit diagnostics.  Let callers do that.
79606         * lib/save-cwd.c: Don't include "error.h".
79607         (save_cwd): Don't call error.  Ensure that errno is valid
79608         when returning nonzero.
79609
79610         * lib/save-cwd.h (restore_cwd): Update prototype.
79611         * lib/save-cwd.c (restore_cwd): Remove two parameters.
79612         Simplify.  Don't call error upon failure.  Let callers do that.
79613         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
79614         when auditing is enabled.  But don't bother updating the #if.
79615
79616 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
79617
79618         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
79619         it breaks C++ compilation.
79620         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
79621
79622 2003-07-10  Simon Josefsson  <jas@extundo.com>
79623
79624         * modules/strchrnul (Makefile.am): Add strchrnul.h.
79625
79626 2003-07-10  Jim Meyering  <jim@meyering.net>
79627
79628         * m4/clock_time.m4: Remove trailing blank.
79629         * m4/intmax_t.m4: Likewise.
79630
79631 2003-07-10  Jim Meyering  <jim@meyering.net>
79632
79633         * lib/vasnprintf.c: Remove trailing blanks.
79634         Make cpp indentation consistent.
79635
79636 2003-07-09  Paul Eggert  <eggert@twinsun.com>
79637
79638         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
79639         posixver.c, strftime.c, strnlen.c, strverscmp.c:
79640         Switch from LGPL to GPL.
79641
79642 2003-07-09  Paul Eggert  <eggert@twinsun.com>
79643
79644         * config/srclist.txt: Sort sublists.  Add
79645         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
79646         that differ from gnulib for one reason or another; we'd like this list
79647         to be smaller but for now let's document what we have.
79648
79649 2003-07-08  Paul Eggert  <eggert@twinsun.com>
79650
79651         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
79652         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
79653         and sweeter "eval x=$x".
79654         * config/srclist.txt: Get lib/argp* from glibc.
79655
79656 2003-07-07  Paul Eggert  <eggert@twinsun.com>
79657
79658         * lib/mktime.c: Fix some boundary cases and remove need for floating
79659         point.
79660
79661         Issue a compile-time diagnostic if time_t is floating point, or if
79662         two's complement arithmetic is not in effect, or if arithmetic
79663         right shift does not propagate the sign.  These assumptions were
79664         all in the original code but they weren't checked.
79665
79666         (TIME_T_MIDPOINT, verify): New macros.
79667         (__isleap): Remove; it has integer overflow problems.
79668         (leapyear): New function, without those problems.
79669         (ydhms_tm_diff): Remove; splitting into two parts.
79670         (ydhms_diff): New function, containing the arithmetic part of
79671         the old ydhms_tm_diff function.  Issue a compile-time
79672         diagnostic if we are not using C99 integer division.
79673         Avoid casts when possible.
79674         (guess_time_tm): New function, containing the checking part of
79675         the old ydhms_tm_diff function.  Return the new value, rather than
79676         the difference between it and the old.  Accept a new argument T
79677         so that *T specifies the old value.  Check for overflow in the result.
79678
79679         (__mktime_internal): Use a time_t offset, not a long int offset.
79680         This undoes the 2003-06-04 change, which is no longer needed now
79681         that we have better overflow checking.
79682         (localtime_offset): Likewise.
79683
79684         (__mktime_internal): Avoid harmful overflow on hosts where time_t
79685         and long are 64-bit but int is only 32-bit.
79686         (ydhms_diff): Use long int to store year1 and yday1.
79687         Issue a compile-time diagnostic if long int is not wide enough.
79688
79689         (__mktime_internal): Use long int to store adjusted year and yday.
79690         Use plain C rather than preprocessor commands, if that doesn't
79691         affect efficiency.
79692         Check for overflow (and try to repair) after each probe
79693         rather than checking only at the very end.  This avoids some bugs
79694         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
79695         does not equal GMT offset at maximum time).
79696         Use integer to check for overflow rather than floating point; this
79697         is more portable to non-IEEE hosts, and is a tad faster.
79698         When we detect that we are oscillating between two values,
79699         don't check whether tm_isdst has the requested value, since
79700         we already know the answer.  When tm_isdst has the wrong value,
79701         use a different heuristic to find the right one, based on the
79702         extreme values actually observed in practice in tz2003a,
79703         rather than the (overly optimistic) "previous 3 calendar quarters".
79704
79705         (not_equal_tm, print_tm, check_result): Use "const T" rather than
79706         "T const" to accommodate glibc style.
79707         (check_result): Use less-confusing report format.  "long" -> "long int.
79708         (main): Likewise.
79709         Don't loop if the iteration overflows time_t.
79710         Allow a negative step in the iteration.
79711
79712 2003-07-06  Karl Berry  <karl@gnu.org>
79713
79714         * config/depcomp: update from automake.
79715         * config/config.sub: update from prep.
79716
79717 2003-07-03  Karl Berry  <karl@gnu.org>
79718
79719         * config/config.guess: update from prep.
79720
79721 2003-07-01  Paul Eggert  <eggert@twinsun.com>
79722
79723         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
79724         xreadlink.c now includes it unconditionally.
79725
79726 2003-07-01  Paul Eggert  <eggert@twinsun.com>
79727
79728         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
79729         having it depend on HAVE_SYS_TYPES_H.
79730
79731 2003-07-01  Bruno Haible  <bruno@clisp.org>
79732
79733         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
79734         <sys/types.h> should be sufficient.
79735         Reported by Paul Eggert.
79736
79737 2003-06-26  Karl Berry  <karl@gnu.org>
79738
79739         * config/depcomp: update from automake.
79740
79741 2003-06-26  Bruno Haible  <bruno@clisp.org>
79742
79743         * modules/human: Depend on module stdbool.
79744
79745 2003-06-25  Bruno Haible  <bruno@clisp.org>
79746
79747         * modules/readlink: New file.
79748         * modules/xreadlink: Depend on it.
79749         * MODULES.html.sh (func_all_modules): Add readlink.
79750
79751 2003-06-25  Bruno Haible  <bruno@clisp.org>
79752
79753         * m4/readlink.m4: New file.
79754
79755 2003-06-25  Bruno Haible  <bruno@clisp.org>
79756
79757         * lib/readlink.c: New file.
79758
79759 2003-06-22  Karl Berry  <karl@gnu.org>
79760
79761         * config/srclist.txt: update mkinstalldirs from automake.
79762         * config/mkinstalldirs: update.
79763
79764 2003-06-22  Bruno Haible  <bruno@clisp.org>
79765
79766         Portability to mingw32.
79767         * m4/ssize_t.m4: New file, from GNU gettext.
79768         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
79769         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
79770
79771 2003-06-22  Bruno Haible  <bruno@clisp.org>
79772
79773         * modules/safe-read: Add m4/ssize_t.m4.
79774         * modules/xreadlink: Add m4/ssize_t.m4.
79775
79776 2003-06-20  Bruno Haible  <bruno@clisp.org>
79777
79778         Assume C89, so PARAMS isn't needed.
79779         * lib/unicodeio.h (PARAMS): Remove.
79780         * lib/unicodeio.c: Don't use PARAMS.
79781
79782 2003-06-18  Karl Berry  <karl@gnu.org>
79783
79784         * config/config.{guess,sub}: update from prep.
79785
79786 2003-06-18  Jim Meyering  <jim@meyering.net>
79787
79788         Merge changes from coreutils.
79789         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
79790         Remove explicit declarations of xmalloc and realloc.
79791         Include xalloc.h.
79792         (read_utmp): Remove anachronistic cast of xmalloc.
79793
79794 2003-06-17  Paul Eggert  <eggert@twinsun.com>
79795
79796         Assume C89, so PARAMS isn't needed.
79797         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
79798         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
79799         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
79800         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
79801         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
79802         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
79803         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
79804         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
79805         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
79806         lib/xstrtod.h, lib/xstrtol.h: Likewise.
79807         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
79808         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
79809         no longer needed. Anyway, config.h should always be included before any
79810         other file.
79811
79812 2003-06-11  Simon Josefsson  <jas@extundo.com>
79813
79814         * modules/sysexits: New file.
79815         * MODULES.html.sh (func_all_modules): Add sysexits.
79816
79817 2003-06-11  Simon Josefsson  <jas@extundo.com>
79818
79819         * lib/sysexit_.h: New file.
79820
79821 2003-06-11  Derek Price  <derek@ximbiot.com>
79822
79823         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
79824         necessary.
79825
79826 2003-06-11  Bruno Haible  <bruno@clisp.org>
79827
79828         * m4/sysexits.m4: New file.
79829
79830 2003-06-10  Simon Josefsson  <jas@extundo.com>
79831
79832         * lib/argp.h: New file, from glibc.
79833         * lib/argp-ba.c: New file, from glibc.
79834         * lib/argp-eexst.c: New file, from glibc.
79835         * lib/argp-fmtstream.c: New file, from glibc.
79836         * lib/argp-fmtstream.h: New file, from glibc.
79837         * lib/argp-fs-xinl.c: New file, from glibc.
79838         * lib/argp-help.c: New file, from glibc.
79839         * lib/argp-namefrob.h: New file, from glibc.
79840         * lib/argp-parse.c: New file, from glibc.
79841         * lib/argp-pv.c: New file, from glibc.
79842         * lib/argp-pvh.c: New file, from glibc.
79843         * lib/argp-xinl.c: New file, from glibc.
79844
79845 2003-06-10  Simon Josefsson  <jas@extundo.com>
79846
79847         * modules/strchrnul: New file.
79848
79849 2003-06-10  Simon Josefsson  <jas@extundo.com>
79850
79851         * modules/argp: New file.
79852
79853 2003-06-10  Simon Josefsson  <jas@extundo.com>
79854
79855         * m4/strchrnul.m4: New file.
79856
79857 2003-06-10  Simon Josefsson  <jas@extundo.com>
79858
79859         * lib/strchrnul.h: New file.
79860         * lib/strchrnul.c: New file.
79861
79862 2003-06-10  Bruno Haible  <bruno@clisp.org>
79863
79864         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
79865
79866 2003-06-07  Karl Berry  <karl@gnu.org>
79867
79868         * config/config.{guess,sub}: update from prep.
79869
79870 2003-06-07  Jim Meyering  <jim@meyering.net>
79871
79872         * modules/strtod: Use $(...) notation, not @...@ for
79873         AC_REPLACE'd variables.
79874         * modules/localcharset: Likewise.
79875
79876 2003-06-07  Jim Meyering  <jim@meyering.net>
79877
79878         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
79879         in place of my name in the copyright comment.
79880         Remove definition and uses of __P.
79881
79882         From coreutils.
79883         * lib/stat.c: Don't declare xmalloc explicitly.
79884         Instead, include "xalloc.h".
79885         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
79886         xrealloc, and xcalloc return values.
79887         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
79888         Improve comment.
79889         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
79890
79891 2003-06-07  Bruno Haible  <bruno@clisp.org>
79892
79893         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
79894         avoid AC_CONFIG_LINKS.
79895         * modules/fnmatch (Makefile.am): Use explicit creation rule for
79896         fnmatch.h, to avoid AC_CONFIG_LINKS.
79897         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
79898
79899 2003-06-07  Bruno Haible  <bruno@clisp.org>
79900
79901         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
79902         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
79903         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
79904         directory.
79905         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
79906         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
79907         directory.
79908
79909 2003-06-06  Jim Meyering  <jim@meyering.net>
79910
79911         Merge from coreutils.
79912         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
79913         Consolidate declarations and initializations of *_base* locals.
79914
79915         Merge from coreutils.
79916         This avoids a core dump on systems without GNU putenv,
79917         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
79918         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
79919         (unsetenv): New static function, from GNU libc.
79920         (rpl_putenv): Use it.
79921
79922         * lib/modechange.c: Remove trailing blanks.
79923
79924         Merge from coreutils.
79925         * lib/fsusage.c: Remove declaration of statfs.
79926         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
79927
79928         * lib/posixtm.c: Include <stdbool.h> unconditionally.
79929
79930 2003-06-06  Jim Meyering  <jim@meyering.net>
79931
79932         * lib/stdbool_.h: Renamed from stdbool.h.in.
79933
79934 2003-06-06  Jim Meyering  <jim@meyering.net>
79935             Bruno Haible  <bruno@clisp.org>
79936
79937         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
79938         Adjust Makefile.am snippet not to redirect directly to target.
79939         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
79940
79941 2003-06-05  Paul Eggert  <eggert@twinsun.com>
79942
79943         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
79944         mismatch, look in future quarters as well as past.  This fixes a
79945         bug when processing fall-backwards gaps immediately after a long
79946         period of daylight-saving time.
79947
79948         * lib/mktime.c: Assume freestanding C89 or better.
79949         (HAVE_LIMITS_H): Remove.  Assume it's 1.
79950         (__P): Remove; not used.
79951         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
79952         (mktime, not_equal_tm, print_tm, check_result,
79953         main): Use prototypes.  Use const * where appropriate.
79954         (main): Fix typo in testing code that uncovered by above changes.
79955         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
79956
79957 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79958
79959         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
79960         locale.h, localeconv.  This merges changes from coreutils.
79961
79962         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
79963         It can be removed after the next Autoconf is released.
79964         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
79965         needed.
79966
79967 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79968
79969         * lib/mktime.c: Fix Debian bug 177940
79970         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
79971         (localtime_offset): Now long int, not time_t, because we want it
79972         to be guaranteed to be signed.  All uses changed.
79973         (__mktime_internal): If overflow would occur when adding offset,
79974         don't add it.
79975
79976         Merge 'human' changes from coreutils.  Rewrite to support
79977         locale-specific notations like thousands separators.
79978         * lib/human.c: Simplify authorship notice.
79979         Include human.h immediately after config.h.
79980         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
79981         <limits.h>: Do not include, since human.h does.
79982         (SIZE_MAX, UINTMAX_MAX): New macros.
79983         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
79984         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
79985         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
79986         (power_letter): Renamed from suffixes.
79987         (generate_suffix_backwards): Remove.
79988         (adjust_value): Now takes int style (because of human.h changes)
79989         and long double value (for greater precision on some platforms).
79990         (group_number): New function.
79991         (human_readable): Use it.  Use integer options, not enum.
79992         Put the options before the sizes in the arg list.
79993         Support all the new options.
79994         The old human_readable function has been removed;
79995         use inttostr.h instead.
79996         (human_readable, default_block_size, humblock):
79997         Use uintmax_t, not int, for block sizes.
79998         (human_readable_inexact, block_size_types): Remove.
79999         (block_size_opts): New constant.
80000         (human_options): Renamed from human_block_size, with new signature
80001         that allows block sizes up to UINTMAX_MAX.  All callers changed.
80002         * lib/human.h: Add copyright and authorship notice.
80003         Include <limits.h> and <stdbool.h> unconditionally.
80004         (PARAMS): Remove.  All uses removed.
80005         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
80006         (enum human_inexact_style): Remove tag; now a nameless enum.
80007         (human_floor, human_ceiling, human_round_to_even): Now have
80008         values 2, 0, 1 rather than -1, 1, 0.
80009         (human_group_digits, human_suppress_point_zero, human_autoscale,
80010         human_base_1024, human_SI, human_B): New constants.
80011         (human_readable_inexact, human_block_size): Remove.
80012         (human_readable): Size args are now uintmax_t, not int.
80013         (human_options): New decl.
80014
80015         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
80016         unnecessary now that we assume C89 or better.  This change
80017         imported from coreutils.
80018
80019         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
80020         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
80021         in the 2003-05-30 sync from glibc.
80022
80023         .h files should stand alone, but we shouldn't include <sys/types.h>
80024         if we can get away with just <stddef.h>.
80025
80026         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
80027         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
80028         rather than <sys/types.h>, as we merely need size_t.
80029         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
80030         to get size_t.
80031         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
80032         Include <stdio.h>, to get FILE.
80033         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
80034         memcasecmp.h has included <stddef.h> and all we need is size_t.
80035         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
80036         our interface, instead of including <sys/types.h>
80037
80038 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80039
80040         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
80041         now, as glibc mktime is buggy on non-glibc systems.
80042
80043 2003-06-03  Karl Berry  <karl@gnu.org>
80044
80045         * config/config.sub: update from prep.
80046
80047 2003-06-02  Paul Eggert  <eggert@twinsun.com>
80048
80049         [from coreutils]
80050         Fix some minor time-related bugs with POSIX time arguments.
80051         Some valid time stamps were being rejected (notably -1, and
80052         time stamps before 1900 on 64-bit hosts).  And some invalid
80053         time stamps were being accepted, e.g. September 31.
80054
80055         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
80056         that we can return (time_t) -1 successfully.
80057         * lib/posixtm.c: Likewise.
80058         [HAVE_STDBOOL_H]: Include <stdbool.h>.
80059         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
80060         (t): Remove static var.
80061         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
80062         of static var.  All uses changed.
80063         (year): Do not reject years before 1900; they can occur with
80064         64-bit time_t.
80065         (posix_time_parse): Do not check for out-of-range components;
80066         that is now the caller's responsibility, since our checks were
80067         only approximations.
80068         (posixtime): Use mktime to check for out-of-range components,
80069         since it knows them exactly.
80070         If mktime returns (time_t) -1, check whether an error actually occurred
80071         by invoking localtime on -1.
80072         (main) [TEST_POSIXTIME]: Check for input data errors, and report
80073         posixtime failures better.
80074         Improve the test data (in comments only).
80075
80076 2003-06-02  Karl Berry  <karl@gnu.org>
80077
80078         * config/mkinstalldirs (version): new variable.
80079         (--version): new option.
80080         (usage): improve message.
80081
80082 2003-05-30  Karl Berry  <karl@gnu.org>
80083
80084         * lib/mktime.c: update from libc.
80085
80086 2003-05-30  Bruno Haible  <bruno@clisp.org>
80087
80088         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
80089         * config/config.rpath: Upgrade to gettext-0.12.1.
80090
80091 2003-05-30  Bruno Haible  <bruno@clisp.org>
80092
80093         * m4/gettext.m4: Upgrade to gettext-0.12.1.
80094         * m4/nls.m4: New file, from gettext-0.12.1.
80095         * m4/po.m4: New file, from gettext-0.12.1.
80096         * m4/progtest.m4: Upgrade to gettext-0.12.1.
80097
80098 2003-05-30  Bruno Haible  <bruno@clisp.org>
80099
80100         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
80101         * lib/localcharset.h: Likewise.
80102         * lib/localcharset.c: Likewise.
80103
80104 2003-05-29  Karl Berry  <karl@gnu.org>
80105
80106         * config/config.rpath: update from gettext.
80107
80108 2003-05-28  Paul Eggert  <eggert@twinsun.com>
80109
80110         Assume the headers required for C89 freestanding compilers.
80111         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
80112         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
80113         * m4/human.m4 (gl_HUMAN): Likewise.
80114         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
80115         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
80116         * m4/userspec.m4 (gl_USERSPEC): Likewise.
80117         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
80118         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80119         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
80120
80121 2003-05-28  Paul Eggert  <eggert@twinsun.com>
80122
80123         Assume the headers required for C89 freestanding compilers.
80124         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
80125         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
80126         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
80127         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
80128         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
80129         define, since <limits.h> is guaranteed to do that.
80130         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
80131         * lib/exclude.c: Include <stdbool.h> unconditionally.
80132         * lib/tempname.c: Include <stddef.h> unconditionally.
80133         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
80134         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
80135         <stddef.h> does that.
80136         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
80137         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
80138         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
80139         needed.
80140         * lib/xstrtol.c: Likewise.
80141         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
80142         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
80143
80144         * lib/addext.c (addext): Use assignment rather than cast, to avoid
80145         warnings on some platforms.
80146
80147         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
80148         arbitrarily.
80149
80150 2003-05-26  Jim Meyering  <jim@meyering.net>
80151
80152         Merge in a change from coreutils:
80153         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
80154         that is guaranteed to be `no'.  Use `no_such_member' to indicate
80155         that condition, rather than `-1' which is slightly misleading.
80156         Change the name of the cache variable to have the gl_ prefix.
80157         Prompted by a patch from Richard Dawe for DJGPP.
80158
80159 2003-05-24  Karl Berry  <karl@gnu.org>
80160
80161         * config/config.guess: update from prep.
80162
80163 2003-05-22  Karl Berry  <karl@gnu.org>
80164
80165         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
80166
80167 2003-05-20  Karl Berry  <karl@gnu.org>
80168
80169         * config/config.guess: update from prep.
80170
80171 2003-05-18  Karl Berry  <karl@gnu.org>
80172
80173         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
80174         might actually be set by the user.
80175
80176         * config/depcomp, install-sh, mdate-sh: update from automake.
80177
80178 2003-05-17  Bruno Haible  <bruno@clisp.org>
80179
80180         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
80181         invalid expansion for AC_EGREP_CPP.
80182         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
80183         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
80184         Suggested by Akim Demaille <akim@epita.fr> in
80185         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
80186
80187 2003-05-12  Jim Meyering  <jim@meyering.net>
80188
80189         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
80190         the space-padded-by-default conversion specifiers, %e, %k, %l.
80191
80192 2003-05-12  Bruno Haible  <bruno@clisp.org>
80193
80194         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
80195         the string is longer than 4 KB.
80196
80197 2003-05-11  Karl Berry  <karl@gnu.org>
80198
80199         * config/config.{guess,sub}: update from prep.
80200
80201 2003-05-09  Bruno Haible  <bruno@clisp.org>
80202
80203         * modules/error: Add m4/strerror_r.m4 to file list.
80204
80205 2003-05-03  Bruno Haible  <bruno@clisp.org>
80206
80207         Upgrade to Unicode-4.0.
80208         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
80209         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
80210         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
80211         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
80212         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
80213         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
80214         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
80215         Change width of U+E0100..U+E01EF from 1 to 0.
80216
80217 2003-04-25  Jim Meyering  <jim@meyering.net>
80218
80219         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
80220         of type size_t, not int.
80221
80222 2003-04-25  Bruno Haible  <bruno@clisp.org>
80223
80224         * lib/copy-file.c: Include <stddef.h>, for size_t.
80225
80226 2003-04-21  Paul Eggert  <eggert@twinsun.com>
80227
80228         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
80229         code which expansion is under static control.  Patch imported from
80230         Akim Demaille's patch to Bison; see
80231         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
80232
80233 2003-04-14  Bruno Haible  <bruno@clisp.org>
80234
80235         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
80236
80237 2003-04-11  Jim Meyering  <jim@meyering.net>
80238
80239         Merge changes from Coreutils.
80240
80241         2003-03-22  Jim Meyering  <jim@meyering.net>
80242
80243         * lib/strftime.c (widen): Cast alloca return value to proper type.
80244
80245         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
80246
80247         From GNU libc.
80248         * lib/strftime.c (my_strftime): Handle very large width
80249         specifications for numeric values correctly.  Improve checks for
80250         overflow.
80251
80252         2003-01-19  Jim Meyering  <jim@meyering.net>
80253
80254         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
80255         definitions.
80256         (nl_get_alt_digit) [! defined my_strftime]: Define.
80257         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
80258         _nl_get_alt_digit and _nl_get_walt_digit.
80259
80260         * lib/strftime.c (my_strftime): Merge in locale-related changes from
80261         libc. These changes have no effect outside of _LIBC.
80262
80263 2003-04-10  Bruno Haible  <bruno@clisp.org>
80264
80265         * modules/findprog: New file.
80266         * MODULES.html.sh (func_all_modules): Add it.
80267
80268 2003-04-10  Bruno Haible  <bruno@clisp.org>
80269
80270         * m4/findprog.m4: New file.
80271         * m4/eaccess.m4: New file.
80272
80273 2003-04-10  Bruno Haible  <bruno@clisp.org>
80274
80275         * lib/findprog.h: New file, from GNU gettext.
80276         * lib/findprog.c: New file, from GNU gettext.
80277
80278 2003-04-05  Jim Meyering  <jim@meyering.net>
80279
80280         Merge changes from Coreutils.
80281
80282         * lib/exclude.h (PARAMS): Remove definition and uses.
80283         * lib/exclude.c: Remove uses of `PARAMS'.
80284
80285         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
80286         Add test-cases for DOS filenames. Declare program_name.
80287         (main): Set up program_name.  Patch by Rich Dawe.
80288
80289         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
80290         error from mntctl.
80291         Use mntctl's return value to drive the entry-processing loop, since
80292         we can't rely on the value of the vmt_length member in the last
80293         entry.  On some systems doing so could result in exhausting
80294         virtual memory.  Based in part on a patch from Mike Jetzer.
80295
80296 2003-04-04  Bruno Haible  <bruno@clisp.org>
80297
80298         * modules/linebreak: New file.
80299         * MODULES.html.sh (func_all_modules): Add it.
80300
80301 2003-04-04  Bruno Haible  <bruno@clisp.org>
80302
80303         * m4/linebreak.m4: New file.
80304
80305 2003-04-04  Bruno Haible  <bruno@clisp.org>
80306
80307         * lib/linebreak.h: New file, from GNU gettext.
80308         * lib/linebreak.c: New file, from GNU gettext with slight
80309         modifications.
80310         * lib/lbrkprop.h: New file, from GNU gettext.
80311
80312 2003-04-03  Bruno Haible  <bruno@clisp.org>
80313
80314         * modules/utf8-ucs4: New file.
80315         * modules/utf16-ucs4: New file.
80316         * modules/ucs4-utf8: New file.
80317         * modules/ucs4-utf16: New file.
80318         * MODULES.html.sh (func_all_modules): Add them.
80319
80320 2003-04-03  Bruno Haible  <bruno@clisp.org>
80321
80322         * m4/utf-ucs4.m4: New file.
80323         * m4/ucs4-utf.m4: New file.
80324
80325 2003-04-03  Bruno Haible  <bruno@clisp.org>
80326
80327         * lib/utf8-ucs4.h: New file, from GNU gettext.
80328         * lib/utf16-ucs4.h: New file, from GNU gettext.
80329         * lib/ucs4-utf8.h: New file, from GNU gettext.
80330         * lib/ucs4-utf16.h: New file, from GNU gettext.
80331
80332 2003-04-02  Bruno Haible  <bruno@clisp.org>
80333
80334         * modules/binary-io: New file.
80335         * MODULES.html.sh (func_all_modules): Add it.
80336
80337 2003-04-02  Bruno Haible  <bruno@clisp.org>
80338
80339         * lib/binary-io.h: New file, from GNU gettext.
80340
80341 2003-04-01  Bruno Haible  <bruno@clisp.org>
80342
80343         * modules/pathname: New file.
80344         * MODULES.html.sh (func_all_modules): Add it.
80345
80346 2003-04-01  Bruno Haible  <bruno@clisp.org>
80347
80348         * lib/pathname.h: New file, from GNU gettext.
80349         * lib/concatpath.c: New file, from GNU gettext.
80350
80351 2003-03-30  Bruno Haible  <bruno@clisp.org>
80352
80353         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
80354
80355 2003-03-30  Bruno Haible  <bruno@clisp.org>
80356
80357         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
80358         function chown() doesn't exist.
80359
80360 2003-03-28  Bruno Haible  <bruno@clisp.org>
80361
80362         * modules/copy-file: New file.
80363         * MODULES.html.sh (func_all_modules): Add it.
80364
80365 2003-03-28  Bruno Haible  <bruno@clisp.org>
80366
80367         * m4/copy-file.m4: New file.
80368
80369 2003-03-28  Bruno Haible  <bruno@clisp.org>
80370
80371         * lib/copy-file.h: New file, from GNU gettext.
80372         * lib/copy-file.c: New file, from GNU gettext.
80373
80374 2003-03-18  Jim Meyering  <jim@meyering.net>
80375
80376         * lib/quote.c (quote_n): Fix typo in comment.
80377
80378 2003-03-18  Bruno Haible  <bruno@clisp.org>
80379
80380         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
80381         checking.
80382         * m4/onceonly_2_57.m4: Likewise.
80383
80384 2003-03-17  Bruno Haible  <bruno@clisp.org>
80385
80386         * m4/onceonly.m4: Require autoconf 2.54 or newer.
80387         (m4_quote): Remove macro.
80388         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
80389
80390 2003-03-14  Jim Meyering  <jim@meyering.net>
80391
80392         Merge changes from Coreutils.
80393         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
80394         to be const, in order to avoid warnings.
80395         (obstack_room): Likewise.
80396         (obstack_empty_p): Likewise.
80397
80398 2003-03-14  Bruno Haible  <bruno@clisp.org>
80399
80400         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
80401         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
80402
80403 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80404
80405         Merge changes from Bison.
80406         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
80407         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
80408         when compiling Bison 1.875's `bitset bset = obstack_alloc
80409         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
80410         * lib/hash.c: Include <stdbool.h> unconditionally.
80411
80412 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80413
80414         * m4/onceonly.m4 (m4_quote): New macro.
80415         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
80416         Quote AC_FOREACH variable-expansions properly.
80417
80418 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80419
80420         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
80421
80422 2003-03-09  Paul Eggert  <eggert@twinsun.com>
80423
80424         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
80425         Reported by Bruce Becker; see:
80426         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
80427
80428 2003-03-03  Paul Eggert  <eggert@twinsun.com>
80429             Bruno Haible  <bruno@clisp.org>
80430
80431         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
80432         Reported by John Hughes, see
80433         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
80434
80435 2003-02-20  Bruno Haible  <bruno@clisp.org>
80436
80437         * MODULES.html.sh (func_all_modules): Add poll.
80438
80439 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80440
80441         * modules/poll: New file.
80442
80443 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80444
80445         * lib/poll_.h: New file.
80446         * lib/poll.c: New file.
80447
80448 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80449
80450         * m4/poll.m4: New file.
80451
80452 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80453
80454         * modules/mathl: New file.
80455
80456 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80457
80458         * lib/mathl.h: New file.
80459         * lib/acosl.c: New file.
80460         * lib/asinl.c: New file.
80461         * lib/atanl.c: New file.
80462         * lib/ceill.c: New file.
80463         * lib/cosl.c: New file.
80464         * lib/expl.c: New file.
80465         * lib/floorl.c: New file.
80466         * lib/frexpl.c: New file.
80467         * lib/ldexpl.c: New file.
80468         * lib/logl.c: New file.
80469         * lib/sincosl.c: New file.
80470         * lib/sinl.c: New file.
80471         * lib/sqrtl.c: New file.
80472         * lib/tanl.c: New file.
80473         * lib/trigl.c: New file.
80474         * lib/trigl.h: New file.
80475
80476 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80477
80478         * m4/mathl.m4: New file.
80479
80480 2003-02-18  Bruno Haible  <bruno@clisp.org>
80481
80482         * MODULES.html.sh (func_all_modules): Add mathl.
80483
80484 2003-02-17  Bruno Haible  <bruno@clisp.org>
80485
80486         * modules/mkdtemp: New module.
80487         * MODULES.html.sh (func_all_modules): Add it.
80488
80489 2003-02-17  Bruno Haible  <bruno@clisp.org>
80490
80491         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
80492
80493 2003-02-17  Bruno Haible  <bruno@clisp.org>
80494
80495         * lib/mkdtemp.h: New file, from GNU gettext.
80496         * lib/mkdtemp.c: New file, from GNU gettext.
80497
80498 2003-02-02  Jim Meyering  <jim@meyering.net>
80499
80500         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
80501         e.g. glibc-2.2.93.
80502
80503 2003-01-31  Bruno Haible  <bruno@clisp.org>
80504
80505         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
80506         'rpl_rename'.
80507         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
80508         'rpl_strnlen'.
80509         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
80510         'rpl_strtod'.
80511         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
80512         'rpl_utime'.
80513
80514 2003-01-31  Bruno Haible  <bruno@clisp.org>
80515
80516         * lib/rename.c: #undef rename before defining rpl_rename.
80517         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
80518
80519 2003-01-30  Bruno Haible  <bruno@clisp.org>
80520
80521         * modules/vasnprintf, modules/vasprintf: New modules.
80522         * MODULES.html.sh (func_all_modules): Add them.
80523
80524 2003-01-30  Bruno Haible  <bruno@clisp.org>
80525
80526         * m4/signed.m4: New file, from GNU gettext.
80527         * m4/longdouble.m4: New file, from GNU gettext.
80528         * m4/wchar_t.m4: New file, from GNU gettext.
80529         * m4/wint_t.m4: New file, from GNU gettext.
80530         * m4/vasnprintf.m4: New file.
80531         * m4/vasprintf.m4: New file.
80532
80533 2003-01-30  Bruno Haible  <bruno@clisp.org>
80534
80535         * lib/printf-args.h: New file, from GNU gettext.
80536         * lib/printf-args.c: New file, from GNU gettext.
80537         * lib/printf-parse.h: New file, from GNU gettext.
80538         * lib/printf-parse.c: New file, from GNU gettext.
80539         * lib/vasnprintf.h: New file, from GNU gettext.
80540         * lib/vasnprintf.c: New file, from GNU gettext.
80541         * lib/asnprintf.c: New file, from GNU gettext.
80542         * lib/vasprintf.h: New file, from GNU gettext with modifications.
80543         * lib/vasprintf.c: New file, from GNU gettext.
80544         * lib/asprintf.c: New file, from GNU gettext.
80545
80546 2003-01-29  Bruno Haible  <bruno@clisp.org>
80547
80548         * modules/stpncpy: New module.
80549         * MODULES.html.sh (func_all_modules): Add it.
80550
80551 2003-01-29  Bruno Haible  <bruno@clisp.org>
80552
80553         * m4/stpncpy.m4: New file.
80554
80555 2003-01-29  Bruno Haible  <bruno@clisp.org>
80556
80557         * lib/stpncpy.h: New file, from GNU gettext with modifications.
80558         * lib/stpncpy.c: New file, from GNU gettext with modifications.
80559
80560 2003-01-28  Bruno Haible  <bruno@clisp.org>
80561
80562         * modules/c-ctype: New module.
80563         * MODULES.html.sh (func_all_modules): Add it.
80564
80565 2003-01-28  Bruno Haible  <bruno@clisp.org>
80566
80567         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
80568         Paul Eggert.
80569         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
80570         Paul Eggert.
80571
80572 2003-01-27  Bruno Haible  <bruno@clisp.org>
80573
80574         * modules/xsetenv: New module.
80575         * MODULES.html.sh (func_all_modules): Add it.
80576
80577 2003-01-27  Bruno Haible  <bruno@clisp.org>
80578
80579         * lib/xsetenv.h: New file, from GNU gettext.
80580         * lib/xsetenv.c: New file, from GNU gettext.
80581
80582 2003-01-23  Jim Meyering  <jim@meyering.net>
80583
80584         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
80585         from working on systems without dirfd (at least Irix and OSF1/Tru64).
80586
80587 2003-01-23  Bruno Haible  <bruno@clisp.org>
80588
80589         * modules/minmax: New module.
80590         * MODULES.html.sh (func_all_modules): Add it.
80591
80592 2003-01-23  Bruno Haible  <bruno@clisp.org>
80593
80594         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
80595         Eggert.
80596
80597 2003-01-22  Bruno Haible  <bruno@clisp.org>
80598
80599         * modules/exit: New module.
80600         * MODULES.html.sh (func_all_modules): Add it.
80601
80602 2003-01-22  Bruno Haible  <bruno@clisp.org>
80603
80604         * lib/exit.h: New file, from GNU gettext.
80605
80606 2003-01-19  Bruno Haible  <bruno@clisp.org>
80607
80608         * gnulib-tool: Recognize option --extract-maintainer.
80609         (func_get_maintainer): New function.
80610         * modules/*: Add Maintainer entry.
80611
80612 2003-01-16  Jim Meyering  <jim@meyering.net>
80613
80614         * m4/regex.m4: The `regex' struct is both input and output.
80615         Initialize it before each use.  Patch by Tim Waugh.
80616
80617 2003-01-16  Bruno Haible  <bruno@clisp.org>
80618
80619         * MODULES.html.sh: Add a table of contents. Add the module name as
80620         leftmost column. Add hyperlinks.
80621
80622 2003-01-15  Bruno Haible  <bruno@clisp.org>
80623
80624         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
80625
80626 2003-01-15  Bruno Haible  <bruno@clisp.org>
80627
80628         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
80629         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
80630         suffix.
80631
80632 2003-01-15  Bruno Haible  <bruno@clisp.org>
80633
80634         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
80635
80636 2003-01-15  Bruno Haible  <bruno@clisp.org>
80637
80638         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
80639         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
80640
80641 2003-01-14  Jim Meyering  <jim@meyering.net>
80642
80643         * lib/same.c (same_name): Tweak a comment.
80644
80645 2003-01-14  Bruno Haible  <bruno@clisp.org>
80646
80647         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
80648         when a string comparison is sufficient.
80649
80650 2003-01-14  Bruno Haible  <bruno@clisp.org>
80651
80652         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
80653         'unsigned int'.
80654
80655 2003-01-14  Bruno Haible  <bruno@clisp.org>
80656
80657         * lib/hash-pjw.c: Add comment about low quality of this function.
80658
80659 2003-01-13  Bruno Haible  <bruno@clisp.org>
80660
80661         * modules/stpcpy: Distribute lib/stpcpy.h.
80662         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
80663
80664 2003-01-13  Bruno Haible  <bruno@clisp.org>
80665
80666         * modules/*: Add a description.
80667         * modules/strpbrk: Fix Makefile.am snippet.
80668         * modules/strtoimax: Fix dependencies.
80669         * modules/strtoumax: Likewise.
80670
80671 2003-01-13  Bruno Haible  <bruno@clisp.org>
80672
80673         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
80674         * modules/alloca (Makefile.am): All object files depend on alloca.h.
80675         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
80676
80677 2003-01-13  Bruno Haible  <bruno@clisp.org>
80678
80679         * gnulib-tool (func_create_testdir): Store config/* files in the main
80680         directory.
80681         * config.rpath: Move to ...
80682         * config/config.rpath: ... here.
80683         * modules/gettext: Contains config/config.rpath, not config.rpath.
80684         * modules/iconv: Likewise.
80685
80686 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80687
80688         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80689         to avoid collisions with libcurses and libreadline.
80690
80691         * m4/getstr.m4: Remove.
80692         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
80693
80694 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80695
80696         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80697         to avoid collisions with libcurses and libreadline.
80698
80699         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
80700         * lib/getstr.h, getstr.c: Remove.
80701         * lib/getline.c: Include "getline.h", to check interface.
80702         Move body of old getstr.c here: this defines MIN_CHUNK and
80703         declares getdelim2, which is renamed from getstr.
80704         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
80705
80706         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
80707         All uses changed.
80708         * lib/linebuffer.h: Likewise.
80709         (readline): Remove backward-compatibility macro.
80710
80711 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80712
80713         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80714         to avoid collisions with libcurses and libreadline.
80715         * getstr: Remove.
80716         * MODULES.html.sh: Remove getstr.
80717         * modules/getline: Depend on unlocked-io, not getstr.
80718
80719 2003-01-12  Jim Meyering  <jim@meyering.net>
80720
80721         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
80722
80723 2003-01-10  Bruno Haible  <bruno@clisp.org>
80724
80725         * modules/alloca: Change Makefile.am requirements. Simplify Include
80726         requirements. Add lib/alloca_.h to file list.
80727
80728 2003-01-10  Bruno Haible  <bruno@clisp.org>
80729
80730         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
80731
80732 2003-01-10  Bruno Haible  <bruno@clisp.org>
80733
80734         * lib/alloca_.h: New file.
80735         * lib/getdate.y: Unconditionally include alloca.h.
80736         * lib/makepath.c: Likewise.
80737         * lib/setenv.c: Likewise.
80738         * lib/userspec.c: Likewise.
80739
80740 2003-01-09  Karl Berry  <karl@gnu.org>
80741
80742         * MODULES.html.sh: include `dirname $0` in PATH, to find
80743         gnulib-tool.
80744
80745 2003-01-09  Bruno Haible  <bruno@clisp.org>
80746
80747         * modules/stdbool: Change configure.ac, Makefile.am requirements.
80748         Simplify Include requirements. Add lib/stdbool.h.in to file list.
80749
80750 2003-01-09  Bruno Haible  <bruno@clisp.org>
80751
80752         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
80753
80754 2003-01-09  Bruno Haible  <bruno@clisp.org>
80755
80756         * lib/stdbool.h.in: New file.
80757
80758 2003-01-09  Bruno Haible  <bruno@clisp.org>
80759
80760         * gnulib-tool (func_all_modules): Ignore files ending in ~.
80761         * MODULES.html.sh: Likewise.
80762
80763 2003-01-08  Jim Meyering  <jim@meyering.net>
80764
80765         * lib/full-write.c: Undefine and define-away `const' after inclusion
80766         of errno.h, not before.  Suggestion from Bruno Haible.
80767
80768 2003-01-08  Bruno Haible  <bruno@clisp.org>
80769
80770         * modules/full-read: Depend on full-write.
80771
80772 2003-01-08  Bruno Haible  <bruno@clisp.org>
80773
80774         * lib/safe-read.c: Include specification header first, to ensure its
80775         selfcontainedness.
80776         * lib/full-write.c: Likewise.
80777
80778 2003-01-07  Jim Meyering  <jim@meyering.net>
80779
80780         * lib/full-write.c: Rework so that it may serve to define full_read,
80781         too.
80782         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
80783
80784 2003-01-07  Bruno Haible  <bruno@clisp.org>
80785
80786         * lib/strtoimax.c: Include <stdint.h> as an alternative to
80787         <inttypes.h>.
80788         * lib/xstrtol.h: Likewise.
80789         * lib/xstrtoimax.c: Likewise.
80790         * lib/xstrtoumax.c: Likewise.
80791         * lib/human.h: Likewise.
80792
80793         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
80794         on systems that have <inttypes.h> but not <stdint.h>.
80795
80796 2003-01-07  Bruno Haible  <bruno@clisp.org>
80797
80798         * MODULES.html.sh: Add copyright notice.
80799         (missed_files): Omit CVS directory entries.
80800         (func_module): Make it work with sed-3.02.
80801         * MODULES.txt: Remove file.
80802
80803 2003-01-06  Jim Meyering  <jim@meyering.net>
80804
80805         * lib/version-etc.c: Update year in translatable copyright string.
80806
80807 2003-01-03  Karl Berry  <karl@gnu.org>
80808
80809         * config/config.{guess,sub}: update from prep.
80810
80811 2003-01-02  Karl Berry  <karl@gnu.org>
80812
80813         * doc/COPYING.DOC: belatedly updated to 1.2.
80814
80815 2003-01-01  Karl Berry  <karl@gnu.org>
80816
80817         * gnulib-tool (func_verify_module): report module name $module in
80818         error message, not $1.
80819         * gnulib-tool (create-testdir): don't complain if destdir couldn't
80820         be created, only if it doesn't exist.
80821         * gnulib-tool (last_checkin_date): don't expand the $Date here.
80822
80823 2002-12-31  Paul Eggert  <eggert@twinsun.com>
80824
80825         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
80826
80827 2002-12-31  Paul Eggert  <eggert@twinsun.com>
80828
80829         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
80830         memcmp if strcoll doesn't work.
80831
80832 2002-12-31  Bruno Haible  <bruno@clisp.org>
80833
80834         * lib/utime.c (utime_null): No need to call ftruncate if the file was
80835         nonempty.
80836
80837 2002-12-31  Bruno Haible  <bruno@clisp.org>
80838
80839         * lib/memcoll.c (STRCOLL): New macro.
80840         (memcoll): Use it.
80841
80842 2002-12-31  Bruno Haible  <bruno@clisp.org>
80843
80844         * lib/localcharset.h: New file.
80845         * lib/localcharset.c: Include it.
80846         * lib/unicodeio.c: Likewise.
80847
80848 2002-12-31  Bruno Haible  <bruno@clisp.org>
80849
80850         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
80851         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
80852
80853 2002-12-31  Bruno Haible  <bruno@clisp.org>
80854
80855         * lib/getline.h: Include <stddef.h>, for size_t.
80856
80857         * lib/unicodeio.h: Include <stddef.h>, for size_t.
80858         * lib/unicodeio.c: Don't include <stddef.h>.
80859
80860 2002-12-31  Bruno Haible  <bruno@clisp.org>
80861
80862         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
80863         HAVE_TM_ZONE.
80864
80865 2002-12-24  Karl Berry  <karl@gnu.org>
80866
80867         * config/config.guess: update from prep.
80868
80869 2002-12-24  Bruno Haible  <bruno@clisp.org>
80870
80871         General infrasructure.
80872         * m4/README: Rewritten.
80873         * m4/onceonly.m4: New file.
80874         * m4/onceonly_2_57.m4: New file.
80875
80876         Module atexit.
80877         * m4/atexit.m4: New file.
80878
80879         Module strtod.
80880         * m4/strtod.m4: New file.
80881
80882         Module strtol.
80883         * m4/strtol.m4: New file.
80884
80885         Module strtoul.
80886         * m4/strtoul.m4: New file.
80887
80888         Module memchr.
80889         * m4/memchr.m4: New file.
80890
80891         Module memcmp.
80892         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
80893         (jm_FUNC_MEMCMP): Invoke it.
80894
80895         Module memcpy.
80896         * m4/memcpy.m4: New file.
80897
80898         Module memmove.
80899         * m4/memmove.m4: New file.
80900
80901         Module memset.
80902         * m4/memset.m4: New file.
80903
80904         Module strcspn.
80905         * m4/strcspn.m4: New file.
80906
80907         Module strpbrk.
80908         * m4/strpbrk.m4: New file.
80909
80910         Module strstr.
80911         * m4/strstr.m4: New file.
80912
80913         Module strerror.
80914         * m4/strerror.m4: New file.
80915
80916         Module mktime.
80917         * m4/mktime.m4: Renamed from jm-mktime.m4.
80918         (gl_PREREQ_MKTIME): New macro.
80919         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
80920
80921         Module malloc.
80922         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
80923         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
80924         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
80925
80926         Module realloc.
80927         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
80928         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
80929         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
80930
80931         Module strftime.
80932         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
80933         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
80934         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
80935         gl_TM_GMTOFF.
80936         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
80937
80938         Module xalloc.
80939         * m4/xalloc.m4: New file.
80940
80941         Module alloca.
80942         * m4/alloca.m4: New file.
80943
80944         Module putenv.
80945         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
80946         (jm_FUNC_PUTENV): Invoke it.
80947
80948         Module setenv.
80949         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
80950         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
80951         when invoked twice.
80952         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
80953         gt_FUNC_SETENV.
80954
80955         Module memrchr.
80956         * m4/memrchr.m4: New file.
80957
80958         Module stpcpy.
80959         * m4/stpcpy.m4: New file.
80960
80961         Module strcase.
80962         * m4/strcase.m4: New file.
80963
80964         Module strdup.
80965         * m4/strdup.m4: New file.
80966
80967         Module strnlen.
80968         * m4/strnlen.m4: New file.
80969
80970         Module strndup.
80971         * m4/strndup.m4: New file.
80972
80973         Module xstrtod.
80974         * m4/xstrtod.m4: New file.
80975
80976         Module xstrtol.
80977         * m4/xstrtol.m4: New file.
80978
80979         Module getdate.
80980         * m4/getdate.m4: New file.
80981
80982         Module unlocked-io.
80983         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
80984         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
80985         * m4/jm-glibc-io.m4n: Remove file.
80986
80987         Module long-options.
80988         * m4/long-options.m4: New file.
80989
80990         Module md5.
80991         * m4/md5.m4: New file.
80992
80993         Module sha.
80994         * m4/sha.m4: New file.
80995
80996         Module getstr.
80997         * m4/getstr.m4: New file.
80998
80999         Module getline.
81000         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
81001         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
81002         <sys/types.h>, for size_t. Use the function name gnu_getline, not
81003         simply getline. Infoke gl_PREREQ_GETLINE.
81004
81005         Module obstack.
81006         * m4/obstack.m4: New file.
81007
81008         Module hash.
81009         * m4/hash.m4: New file.
81010
81011         Module readtokens.
81012         * m4/readtokens.m4: New file.
81013
81014         Module strverscmp.
81015         * m4/strverscmp.m4: New file.
81016
81017         Module stdbool.
81018         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
81019         OSF/1.
81020
81021         Module strtoll.
81022         * m4/strtoll.m4: New file.
81023
81024         Module strtoull.
81025         * m4/strtoull.m4: New file.
81026
81027         Module strtoimax.
81028         * m4/strtoimax.m4: New file.
81029
81030         Module strtoumax.
81031         * m4/strtoumax.m4: New file.
81032
81033         Module xstrtoimax.
81034         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
81035         jm_AC_PREREQ_XSTRTOIMAX.
81036         Moved the strtol prerequisites to strtol.m4.
81037         Moved the strtoll prerequisites to strtoll.m4.
81038         Moved the strtoimax prerequisites to strtoimax.m4.
81039
81040         Module xstrtoumax.
81041         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
81042         jm_AC_PREREQ_XSTRTOUMAX.
81043         Moved the strtoul prerequisites to strtoul.m4.
81044         Moved the strtoull prerequisites to strtoull.m4.
81045         Moved the strtoumax prerequisites to strtoumax.m4.
81046
81047         Module chown.
81048         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
81049         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
81050
81051         Module dup2.
81052         * m4/dup2.m4: New file.
81053
81054         Module ftruncate.
81055         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
81056         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
81057
81058         Module getgroups.
81059         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
81060         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
81061
81062         Module gettimeofday.
81063         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
81064         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
81065         gl_PREREQ_GETTIMEOFDAY.
81066
81067         Module mkdir.
81068         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
81069         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
81070
81071         Module mkstemp.
81072         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
81073         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
81074         jm_AC_TYPE_UINTMAX_T.
81075         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
81076
81077         Module stat.
81078         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
81079         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
81080
81081         Module lstat.
81082         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
81083         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
81084
81085         Module timespec.
81086         * m4/timespec.m4 (gl_TIMESPEC): New macro.
81087         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
81088         * m4/st_mtim.m4: Indentation.
81089
81090         Module nanosleep.
81091         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
81092         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
81093         gl_PREREQ_NANOSLEEP.
81094
81095         Module regex.
81096         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
81097         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
81098         (gl_REGEX): New macro.
81099
81100         Module rename.
81101         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
81102         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
81103
81104         Module rmdir.
81105         * m4/rmdir.m4: New file.
81106
81107         Module utime.
81108         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
81109         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
81110         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
81111
81112         Module dirname.
81113         * m4/dirname.m4: New file.
81114
81115         Module getopt.
81116         * m4/getopt.m4: New file.
81117
81118         Module unistd-safer.
81119         * m4/unistd-safer.m4: New file.
81120
81121         Module fnmatch.
81122         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
81123         declaration.
81124         (gl_PREREQ_FNMATCH_EXTRA): New macro.
81125         (gl_FUNC_FNMATCH_POSIX): New macro.
81126         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
81127         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
81128         simply fnmatch.
81129
81130         Module exclude.
81131         * m4/exclude.m4: New file.
81132
81133         Module human.
81134         * m4/human.m4: New file.
81135
81136         Module acl.
81137         * m4/acl.m4: Nop.
81138
81139         Module backupfile.
81140         * m4/backupfile.m4: New file.
81141         * m4/d-ino.m4: Indentation.
81142
81143         Module fsusage.
81144         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
81145         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
81146         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
81147
81148         Module dirfd.
81149         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
81150         requirements.
81151
81152         Module euidaccess.
81153         * m4/euidaccess.m4: New file.
81154
81155         Module file-type.
81156         * m4/file-type.m4: New file.
81157
81158         Module fileblocks.
81159         * m4/fileblocks.m4: New file.
81160
81161         Module filemode.
81162         * m4/filemode.m4: New file.
81163
81164         Module isdir.
81165         * m4/isdir.m4: New file.
81166
81167         Module lchown.
81168         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
81169         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
81170
81171         Module makepath.
81172         * m4/makepath.m4: New file.
81173
81174         Module modechange.
81175         * m4/modechange.m4: New file.
81176
81177         Module mountlist.
81178         * m4/mountlist.m4: New file.
81179         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
81180         Indentation.
81181
81182         Module path-concat.
81183         * m4/path-concat.m4: New file.
81184
81185         Module pathmax.
81186         * m4/pathmax.m4: New file.
81187
81188         Module same.
81189         * m4/same.m4: New file.
81190
81191         Module save-cwd.
81192         * m4/save-cwd.m4: New file.
81193
81194         Module savedir.
81195         * m4/savedir.m4: New file.
81196
81197         Module xgetcwd.
81198         * m4/xgetcwd.m4: New file.
81199         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
81200
81201         Module xreadlink.
81202         * m4/xreadlink.m4: New file.
81203
81204         Module safe-read.
81205         * m4/safe-read.m4: New file.
81206
81207         Module safe-write.
81208         * m4/safe-write.m4: New file.
81209
81210         Module closeout.
81211         * m4/closeout.m4: New file.
81212
81213         Module stdio-safer.
81214         * m4/stdio-safer.m4: New file.
81215
81216         Module getpass.
81217         * m4/getpass.m4: New file.
81218
81219         Module getugroups.
81220         * m4/getugroups.m4: New file.
81221
81222         Module group-member.
81223         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
81224         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
81225
81226         Module idcache.
81227         * m4/idcache.m4: New file.
81228
81229         Module userspec.
81230         * m4/userspec.m4: New file.
81231
81232         Module gettime.
81233         * m4/clock_time.m4: New file.
81234         * m4/gettime.m4: New file.
81235
81236         Module settime.
81237         * m4/settime.m4: New file.
81238
81239         Module posixtm.
81240         * m4/posixtm.m4: New file.
81241
81242         Module gethostname.
81243         * m4/gethostname.m4: New file.
81244
81245         Module canon-host.
81246         * m4/canon-host.m4: New file.
81247
81248         Module gettext.
81249         * m4/codeset.m4: New file, from gettext-0.11.5.
81250         * m4/gettext.m4: New file, from gettext-0.11.5.
81251         * m4/glibc21.m4: New file, from gettext-0.11.5.
81252         * m4/iconv.m4: New file, from gettext-0.11.5.
81253         * m4/intdiv0.m4: New file, from gettext-0.11.5.
81254         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
81255         * m4/inttypes.m4: New file, from gettext-0.11.5.
81256         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
81257         * m4/isc-posix.m4: New file, from gettext-0.11.5.
81258         * m4/lcmessage.m4: New file, from gettext-0.11.5.
81259         * m4/lib-ld.m4: New file, from gettext-0.11.5.
81260         * m4/lib-link.m4: New file, from gettext-0.11.5.
81261         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
81262         * m4/progtest.m4: New file, from gettext-0.11.5.
81263         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
81264         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
81265         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
81266
81267         Module localcharset.
81268         * m4/localcharset.m4: New file.
81269
81270         Module hard-locale.
81271         * m4/hard-locale.m4: New file.
81272
81273         Module mbswidth.
81274         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
81275         onceonly macros.
81276         * m4/mbrtowc.m4: Add comment.
81277
81278         Module memcasecmp.
81279         * m4/memcasecmp.m4: New file.
81280
81281         Module memcoll.
81282         * m4/memcoll.m4: New file.
81283
81284         Module unicodeio.
81285         * m4/unicodeio.m4: New file.
81286
81287         Module rpmatch.
81288         * m4/rpmatch.m4: New file.
81289
81290         Module yesno.
81291         * m4/yesno.m4: New file.
81292
81293         Module exitfail.
81294         * m4/exitfail.m4: New file.
81295
81296         Module c-stack.
81297         * m4/c-stack.m4 (gl_C_STACK): New macro.
81298         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
81299
81300         Module error.
81301         * m4/error.m4 (gl_ERROR): New macro.
81302         (jm_PREREQ_ERROR): Use onceonly macros.
81303
81304         Module fatal.
81305         * m4/fatal.m4: New file.
81306
81307         Module getloadavg.
81308         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
81309         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
81310
81311         Module getpagesize.
81312         * m4/getpagesize.m4: New file.
81313
81314         Module getusershell.
81315         * m4/getusershell.m4: New file.
81316
81317         Module physmem.
81318         * m4/physmem.m4: New file.
81319
81320         Module posixver.
81321         * m4/posixver.m4: New file.
81322
81323         Module quotearg.
81324         * m4/quotearg.m4: New file.
81325
81326         Module quote.
81327         * m4/quote.m4: New file.
81328
81329         Module readutmp.
81330         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
81331
81332         Module sig2str.
81333         * m4/sig2str.m4: New file.
81334
81335         Other.
81336         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
81337         ulonglong.m4.
81338         * m4/intmax_t.m4: New file.
81339         * m4/d-type.m4: Indentation.
81340         * m4/jm-macros.m4: Update.
81341         * m4/prereq.m4 (jm_PREREQ): Update.
81342         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
81343         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
81344         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
81345         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
81346         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
81347         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
81348         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
81349         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
81350         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
81351         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
81352         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
81353         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
81354         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
81355         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
81356         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
81357         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
81358         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
81359         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
81360         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
81361
81362 2002-12-24  Bruno Haible  <bruno@clisp.org>
81363
81364         * MODULES.txt: Update according to m4/ changes.
81365
81366         Module gettext.
81367         * config.rpath: New file, from gettext-0.11.5.
81368
81369         * modules/*: New module descriptions.
81370         * gnulib-tool: New file.
81371         * MODULES.html.sh: New file.
81372
81373 2002-12-21  Karl Berry  <karl@gnu.org>
81374
81375         * doc/fdl.texi: update to version 1.2.
81376
81377 2002-12-19  Karl Berry  <karl@gnu.org>
81378
81379         * config/config.guess: update from prep.
81380
81381 2002-12-18  Bruno Haible  <bruno@clisp.org>
81382
81383         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
81384         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
81385
81386 2002-12-17  Bruno Haible  <bruno@clisp.org>
81387
81388         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
81389         stdlib.h, string.h.
81390
81391 2002-12-17  Bruno Haible  <bruno@clisp.org>
81392
81393         * lib/canon-host.c (strdup): Remove unused declaration.
81394
81395         * lib/fsusage.c: Include full_read.h.
81396         (get_fs_usage): Use full_read instead of safe_read.
81397
81398         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
81399
81400 2002-12-12  Karl Berry  <karl@gnu.org>
81401
81402         * config/config.guess: update from prep.
81403
81404 2002-12-11  Bruno Haible  <bruno@clisp.org>
81405
81406         * m4/setenv.m4: New file, from gettext-0.11.5.
81407
81408 2002-12-11  Bruno Haible  <bruno@clisp.org>
81409
81410         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
81411         not unsetenv().
81412         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
81413         modifications:
81414
81415         2002-12-11  Bruno Haible  <bruno@clisp.org>
81416
81417                 * setenv.c (alloca): Fall back to malloc.
81418                 (freea): New macro.
81419                 (setenv): Use freea() to free memory allocated with alloca().
81420
81421         2002-11-13  Bruno Haible  <bruno@clisp.org>
81422
81423                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
81424                 function declarations.
81425                 * unsetenv.c (unsetenv): Likewise.
81426
81427         2002-03-04  Bruno Haible  <bruno@clisp.org>
81428
81429                 Portability to AIX 4.3.3.
81430                 * unsetenv.c: New file, extracted from setenv.c.
81431                 * setenv.c: Move the unsetenv() function to unsetenv.c.
81432
81433         2001-12-20  Bruno Haible  <bruno@clisp.org>
81434
81435                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
81436                 use malloc instead. For SunOS 4.
81437
81438         2001-12-11  Bruno Haible  <bruno@clisp.org>
81439
81440                 * setenv.c: Declare alloca.
81441                 (compar_fn_t): New typedef.
81442                 (KNOWN_VALUE, STORE_VALUE): Use it.
81443
81444         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
81445         setenv.h.
81446
81447 2002-12-10  Paul Eggert  <eggert@twinsun.com>
81448
81449         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
81450         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
81451         Choose values that are less likely to collide with system fnmatch
81452         options.
81453         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
81454         defined (e.g., a pure POSIX system).
81455         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
81456         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
81457
81458 2002-12-06  Paul Eggert  <eggert@twinsun.com>
81459
81460         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
81461         a pain in practice to deal with generated m4 files.  This change
81462         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
81463
81464         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
81465         and jm-glibc-io.m4, as they are no longer a special case.
81466         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
81467         kludge and the auto-generation stuff.  Check only whether the
81468         functions are declared, not whether they exist, since older hosts
81469         that don't declare the functions can't use the optimization anyway.
81470
81471 2002-12-06  Jim Meyering  <jim@meyering.net>
81472
81473         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
81474
81475         Merge in changes from libc's misc/error.c, in preparation
81476         for the merge of gnulib's changes back into libc.
81477
81478         * lib/error.c (_): Define only if not already defined.
81479         Move definition to follow all #include directives.
81480         Include unlocked-io.h only if !_LIBC.
81481         [_LIBC]: Include <libio/libioP.h>.
81482         [USE_IN_LIBIO]: Include <libio/iolibio.h>
81483         (fflush): Tweak definition to use INTUSE.
81484         (putc): Define.
81485
81486 2002-12-05  Paul Eggert  <eggert@twinsun.com>
81487
81488         * lib/alloca.c [defined emacs]: Include "lisp.h".
81489         (xalloc_die) [defined emacs]: New macro.
81490         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
81491         [! defined emacs]: Include <xalloc.h>.
81492         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
81493         (pointer): Typedef to POINTER_TYPE *.
81494         (malloc): Remove decl; we now always use xmalloc.
81495         (alloca): Use old-style definition, since Emacs needs this.
81496         Check for arithmetic overflow when computing combined size.
81497
81498 2002-12-04  Paul Eggert  <eggert@twinsun.com>
81499
81500         Do not generate unlocked-io.h automatically, since it's easier to
81501         maintain it by hand.
81502
81503         * lib/unlocked-io.h: New file, from GNU diffutils,
81504         but with proper copyright notice and attribution.
81505         * lib/gen-uio: Remove.
81506         * lib/Makefile.am: Add copyright notice.
81507         (libfetish_a_SOURCES): Add unlocked-io.h.
81508         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
81509         (DISTCLEANFILES, io_functions): Remove macros.
81510         (EXTRA_DIST): Remove gen_uio.
81511         (unlocked-io.h): Remove rule.
81512
81513 2002-12-04  Jim Meyering  <jim@meyering.net>
81514
81515         Reflect the fact that stat.c and lstat.c are no longer generated.
81516         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
81517         (DISTCLEANFILES): Likewise.
81518         (EXTRA_DIST): Likewise.
81519         (all_local): Don't depend on stat.c or lstat.c.
81520         (stat.c, lstat.c): Remove rules.
81521         (EXTRA_DIST): Remove xstat.in.
81522
81523         * lib/xstat.in: Remove file.  Contents moved into stat.c.
81524         * lib/stat.c: New file.  Contents mostly from xstat.in.
81525         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
81526         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
81527
81528         * lib/safe-read.c: Rework so that it may serve to define safe_write,
81529         too.
81530         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
81531
81532 2002-12-03  Jim Meyering  <jim@meyering.net>
81533
81534         * lib/safe-read.c, safe-write.c: Change variable names and comments,
81535         but not semantics, to minimize the differences between these two files.
81536         (safe_read): Change comment to mention SAFE_READ_ERROR.
81537
81538         * lib/safe-read.c (IS_EINTR): Define.
81539         (safe_read): Use IS_EINTR in place of in-function cpp directives.
81540
81541 2002-12-02  Jim Meyering  <jim@meyering.net>
81542
81543         * lib/safe-read.c (EINTR): Define.
81544         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
81545         (INT_MAX): Provide fallback.
81546         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
81547
81548         * lib/safe-read.h (SAFE_READ_ERROR): Define.
81549
81550 2002-12-02  Bruno Haible  <bruno@clisp.org>
81551
81552         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
81553         Define, taken from safe-read.c.
81554         (INT_MAX): Provide fallback.
81555         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
81556         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
81557
81558         * lib/safe-read.c (EINTR): Remove definition.
81559         (safe_read): Don't use EINTR if it is absent.
81560
81561 2002-12-01  Jim Meyering  <jim@meyering.net>
81562
81563         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
81564         zero.
81565         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
81566
81567 2002-11-27  Paul Eggert  <eggert@twinsun.com>
81568
81569         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
81570         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
81571         with `if (! (value < limit)) abort ();', for readability.
81572
81573 2002-11-26  Karl Berry  <karl@gnu.org>
81574
81575         * lib/strdup.c: copy from libc again, with jim's ok.
81576         * lib/.cppi-disable: re-add strdup.c
81577
81578 2002-11-25  Karl Berry  <karl@gnu.org>
81579
81580         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
81581         instead of "strtol.c".
81582
81583 2002-11-25  Karl Berry  <karl@gnu.org>
81584
81585         * config/install-sh: update from automake for variable quoting, $0 in
81586         error msgs, etc.
81587
81588         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
81589         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
81590         entry.
81591
81592 2002-11-25  Jim Meyering  <jim@meyering.net>
81593
81594         * lib/mktime.c: Sync from libc, now that it has the latest fix.
81595
81596 2002-11-24  Karl Berry  <karl@gnu.org>
81597
81598         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
81599         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
81600
81601 2002-11-24  Jim Meyering  <jim@meyering.net>
81602
81603         Update from coreutils:
81604
81605         * lib/mktime.c: Merge in changes from libc.
81606
81607         Avoid a link-time failure on some Linux systems.
81608         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
81609         (otherwise).
81610         (__mon_yday): Declare with the STATIC attribute.
81611         (__mktime_internal): Likewise.
81612         Based on a report from Greg Schafer.
81613
81614 2002-11-23  Jim Meyering  <jim@meyering.net>
81615
81616         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
81617         Use `unsigned', not `int', as type of index.
81618
81619         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
81620
81621         * lib/fsusage.c: Remove unneeded parentheses around operands of
81622         `defined'.
81623
81624 2002-11-22  Paul Eggert  <eggert@twinsun.com>
81625
81626         * lib/quotearg.h: Allow multiple inclusion by surrounding with
81627         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
81628         so that we can be included first.
81629         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
81630         * lib/quotearg.c: Include quotearg.h immediately after config.h.
81631         No need to include stddef.h or sys/types.h any more.
81632         Surround local include files with "", not "<>".
81633         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
81634         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
81635         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
81636         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
81637         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
81638         (ISPRINT): Remove; no longer needed now that we assume C89.
81639
81640         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
81641         Preserve errno.
81642
81643         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
81644         quotearg_char): Use SIZE_MAX rather than
81645         (size_t) -1 when we are talking about "infinity".
81646
81647         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
81648
81649 2002-11-22  Paul Eggert  <eggert@twinsun.com>
81650
81651         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
81652         hint that one should use `if (! x) abort ();' rather than `assert
81653         (x);', and anyway it's one less thing to worry about configuring.
81654         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
81655         hash_rehash, hash_insert): Use abort rather than assert.
81656
81657 2002-11-22  Bruno Haible  <bruno@clisp.org>
81658
81659         * lib/safe-read.h: Assume C89. Add comments.
81660         (safe_read): Change return type to size_t.
81661         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
81662         byte counts > SSIZE_MAX correctly.
81663         * lib/safe-write.h: New file.
81664         * lib/safe-write.c: New file.
81665         * lib/full-read.h: New file.
81666         * lib/full-read.c: New file.
81667         * lib/full-write.h: Assume C89. Add comments.
81668         * lib/full-write.c: Include safe-write.h.
81669         (full_write): Rewritten to use safe_write.
81670         Suggested by Jim Meyering and Paul Eggert.
81671
81672 2002-11-21  Jim Meyering  <jim@meyering.net>
81673
81674         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
81675
81676         Merge in changes from the coreutils.
81677
81678         2002-09-25  Paul Eggert  <eggert@twinsun.com>
81679         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
81680         <stdint.h>.
81681         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
81682         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
81683         int.  Work more efficiently if X is the same width as uintmax_t.
81684         Do not compare X to -1, to avoid bogus compiler warning.
81685         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
81686         Don't assume that f_frsize and f_bsize are the same type.
81687
81688         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
81689         warning on FreeBSD.
81690
81691         * lib/makepath.c (make_path): Restore umask *before* creating the final
81692         component.
81693         (make_path): Minor reformatting.
81694
81695         * lib/xmalloc.c: Adjust to work with new autoconf macros,
81696         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
81697         HAVE_MALLOC/HAVE_REALLOC.
81698
81699         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
81700         dummy ones.  At least on GNU/Linux systems, `auto' means something
81701         else.
81702         From Michael Stone.
81703
81704 2002-11-21  Bruno Haible  <bruno@clisp.org>
81705
81706         Remove case insensitive option matching.
81707         * lib/argmatch.h (argcasematch): Remove declaration.
81708         (ARGCASEMATCH): Remove macro.
81709         (__xargmatch_internal): Remove case_sensitive argument.
81710         (XARGMATCH): Update.
81711         (XARGCASEMATCH): Remove macro.
81712         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
81713         case_sensitive argument.
81714         (argcasematch): Remove function.
81715         (__xargmatch_internal): Remove case_sensitive argument.
81716         (main): Use XARGMATCH instead of XARGCASEMATCH.
81717
81718         * lib/xmalloc.c: Change compile-time error message. Add comment about
81719         required autoconf version.
81720
81721 2002-11-20  Paul Eggert  <eggert@twinsun.com>
81722
81723         Merge argmatch cleanups from Bison.  Assume C89.
81724
81725         * lib/argmatch.c: Include config.h here, not in argmatch.h.
81726         Include stdlib.h, for EXIT_FAILURE.
81727         Always include <string.h>, since we assume C89.
81728         (EXIT_FAILURE): Remove pre-C89 bug workaround.
81729         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
81730         Include <stddef.h> instead, since it's all we need for size_t.
81731         (PARAMS): Remove.  All uses removed.
81732         (ARRAY_CARDINALITY): Do not bother to #undef.
81733         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
81734         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
81735         Remove unnecessary parentheses.
81736         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
81737         Insert necessary parentheses.
81738         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
81739         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
81740
81741 2002-11-19  Bruno Haible  <bruno@clisp.org>
81742
81743         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
81744         * lib/mbswidth.h: Include <stddef.h>, for size_t.
81745
81746         * lib/mbswidth.h (PARAMS): Remove macro.
81747         (mbswidth, mbsnwidth): Use ANSI C function declarations.
81748         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
81749
81750         * lib/gcd.h (PARAMS): Remove macro.
81751         (gcd): Use ANSI C function declarations.
81752         * lib/gcd.c (gcd): Likewise.
81753
81754 2002-11-15  Bruno Haible  <bruno@clisp.org>
81755
81756         * lib/strcspn.c: Include <stddef.h>.
81757         (strcspn): Use ANSI C function declaration. Change return type to
81758         size_t. Use NULL.
81759         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
81760         (strpbrk): Use NULL.
81761         * lib/strpbrk.h (PARAMS): Remove macro.
81762         (strpbrk): Use ANSI C function declaration.
81763         * lib/strstr.c: Don't include <sys/types.h>.
81764         * lib/strstr.h (PARAMS): Remove macro.
81765         (strstr): Use ANSI C function declarations.
81766
81767 2002-11-14  Karl Berry  <karl@gnu.org>
81768
81769         * config/mkinstalldirs: `do' on separate line, instead of
81770         `for var; do'.
81771
81772 2002-11-06  Bruno Haible  <bruno@clisp.org>
81773
81774         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
81775         * lib/gcd.c (gcd): Likewise.
81776
81777 2002-11-05  Bruno Haible  <bruno@clisp.org>
81778
81779         * lib/gcd.h: New file, from gettext-0.11.5.
81780         * lib/gcd.c: New file, from gettext-0.11.5.
81781
81782 2002-11-05  Bruno Haible  <bruno@clisp.org>
81783
81784         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81785         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81786         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81787         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81788
81789         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
81790         <libintl.h>.
81791         * lib/makepath.c: Include gettext.h instead of <locale.h> and
81792         <libintl.h>.
81793
81794         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
81795         * lib/human.c: Include gettext.h instead of <libintl.h>.
81796         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
81797         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
81798         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
81799         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
81800         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
81801         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
81802         (textdomain): Remove definition.
81803         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
81804
81805         * lib/long-options.c: Remove include of <libintl.h> and definition of
81806         _.
81807         * lib/same.c: Remove include of <libintl.h> and definition of _.
81808
81809 2002-11-04  Owen Taylor  <otaylor@redhat.com>
81810
81811         * lib/config.charset: A few additions for Solaris.
81812
81813 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
81814
81815         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
81816         * lib/localcharset.c (locale_charset): Declare as extern "C".
81817
81818 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
81819
81820         * lib/config.charset: msdos in uk_UA uses CP1125.
81821
81822 2002-11-04  Bruno Haible  <bruno@clisp.org>
81823
81824         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
81825         * lib/strcase.h: New file, from GNU gettext-0.11.5.
81826         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
81827         * lib/strstr.h: New file, from GNU gettext-0.11.5.
81828         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
81829
81830 2002-11-04  Bruno Haible  <bruno@clisp.org>
81831
81832         * lib/localcharset.c (locale_charset): Don't return an empty string.
81833
81834 2002-11-04  Bruno Haible  <bruno@clisp.org>
81835
81836         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
81837         aliases.
81838
81839 2002-11-04  Bruno Haible  <bruno@clisp.org>
81840
81841         * lib/config.charset: Update for newest glibc. Add canonical names
81842         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
81843
81844 2002-11-04  Bruno Haible  <bruno@clisp.org>
81845
81846         * lib/config.charset: Add support for NetBSD.
81847
81848 2002-11-04  Bruno Haible  <bruno@clisp.org>
81849
81850         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
81851
81852 2002-11-01  Bruno Haible  <bruno@clisp.org>
81853
81854         * configure.in: Add AC_CONFIG_AUX_DIR call.
81855         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
81856         test/Makefile.
81857         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
81858
81859 2002-09-28  Karl Berry  <karl@gnu.org>
81860
81861         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
81862         installed automake until the next release, since changes have been
81863         made.
81864
81865 2002-09-25  Karl Berry  <karl@gnu.org>
81866
81867         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
81868         * lib/getopt*: copy from libc/posix.
81869         * lib/gettext.h: copy from gettext.
81870         * lib/.cppi-disable: add strdup.c, gettext.h.
81871
81872 2002-09-25  Karl Berry  <karl@gnu.org>
81873
81874         * config/srclist.txt: enable gettext.h check.
81875         * config/config.{guess,sub}: update from prep.
81876         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
81877                 from automake 1.6.3.
81878         See srclist*.
81879
81880 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
81881
81882         * regex.c (PATFETCH): Remove the translating fetch.
81883         (PATFETCH_RAW): Rename to PATFETCH.
81884         (set_image_of_range): New fun.
81885         (SET_RANGE_TABLE_WORK_AREA): Use it.
81886         (regex_compile): Don't translate the pattern chars so eagerly.
81887         Only do it when inserting an `exactn' bytecode or when handling
81888         a char-range.
81889         (mutually_exclusive_p): Avoid empty statement.
81890
81891 2002-07-06  Jim Meyering  <meyering@lucent.com>
81892
81893         * m4/README: Don't mention Makefile.am.in.
81894         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
81895
81896 2002-07-01  Jim Meyering  <meyering@lucent.com>
81897
81898         * lib/c-stack.c: Include sys/time.h.
81899         From Volker Borchert.
81900
81901 2002-06-26  Paul Eggert  <eggert@twinsun.com>
81902
81903         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
81904
81905 2002-06-26  Paul Eggert  <eggert@twinsun.com>
81906
81907         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
81908         New macro.  Use it uniformly instead of
81909         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
81910         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
81911         reported by Vin Shelton.
81912
81913 2002-06-22  Paul Eggert  <eggert@twinsun.com>
81914
81915         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
81916         Do not assume SA_SIGINFO behavior.
81917         Bug reported by Jim Meyering on NetBSD 1.5.2.
81918
81919 2002-06-22  Jim Meyering  <meyering@lucent.com>
81920
81921         * m4/c-stack.m4: New file, from diffutils-2.8.2.
81922         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
81923
81924         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
81925         now that configure.ac uses AC_GNU_SOURCE.
81926         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
81927         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
81928
81929         Update to latest tools.  Suggestions from Paul Eggert.
81930         * m4/stdbool.m4: New file, from diffutils-2.8.2.
81931         * m4/gnu-source.m4: Update from diffutils-2.8.2.
81932         * m4/fnmatch.m4: Likewise.
81933         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
81934         to AC_HEADER_STDBOOL
81935
81936 2002-06-22  Jim Meyering  <meyering@lucent.com>
81937
81938         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
81939         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
81940
81941 2002-06-22  Jim Meyering  <meyering@lucent.com>
81942
81943         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
81944
81945         * lib/exitfail.c, exitfail.h: Likewise.
81946         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
81947
81948         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
81949         of fnmatch.h.
81950         (EXTRA_DIST): Add fnmatch_loop.c.
81951         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
81952
81953         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
81954         * lib/fnmatch.c: Update from diffutils-2.8.2.
81955         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
81956         * lib/fnmatch.h: Remove file.
81957
81958 2002-06-21  Jim Meyering  <meyering@lucent.com>
81959
81960         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
81961         * m4/mbrtowc.m4: Likewise.
81962
81963         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
81964         * m4/mbswidth.m4: Reflect name change:
81965         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
81966         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
81967
81968         * m4/lib-link.m4: Update from gettext-0.11.2.
81969         * m4/gettext.m4: Likewise.
81970
81971         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
81972         From Alfred M. Szmidt.
81973
81974 2002-06-18  Paul Eggert  <eggert@twinsun.com>
81975
81976         * lib/file-type.h: Report an error if neither S_ISREG nor
81977         S_IFREG is defined, instead of using a test specific to glibc
81978         2.2.  This should be safe, since POSIX requires S_ISREG and
81979         Unix Version 7 had S_IFREG.  We don't need to check for
81980         <sys/types.h> since we don't use any symbols that it defines.
81981
81982 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
81983
81984         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
81985         $@-t, so that each temporary file name is unique and valid in the first
81986         8 characters, for operation under DOS.
81987
81988 2002-06-15  Paul Eggert  <eggert@twinsun.com>
81989
81990         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
81991
81992 2002-06-15  Jim Meyering  <meyering@lucent.com>
81993
81994         Work even with DJGPP 2.03, which lacks support for symlinks.
81995         From Richard Dawe.
81996         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
81997         is defined.
81998         * lib/lchown.c (S_ISLNK): Likewise.
81999
82000 2002-06-15  Jim Meyering  <meyering@lucent.com>
82001
82002         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
82003         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
82004         have been included before this file.
82005
82006 2002-06-14  Jim Meyering  <meyering@lucent.com>
82007
82008         * lib/file-type.h: Use the version from diffutils-2.8.2.
82009         * lib/file-type.c: Likewise.
82010
82011 2002-06-07  Jim Meyering  <meyering@lucent.com>
82012
82013         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
82014         They're needed at least for NetBSD 1.5.2.
82015         ($statxfs_includes): Include those same headers.
82016         ($statxfs_includes): Include sys/vfs.h if available.
82017         ($statxfs_includes): Likewise for sys/statvfs.h.
82018         Check for the following members in both structs statfs and statvfs:
82019         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
82020
82021 2002-06-01  Jim Meyering  <meyering@lucent.com>
82022
82023         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
82024         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
82025
82026 2002-05-28  Jim Meyering  <meyering@lucent.com>
82027
82028         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
82029         Reported by Volker Borchert.
82030
82031 2002-05-27  Jim Meyering  <meyering@lucent.com>
82032
82033         Fix a problem seen only on nonconforming systems whereby ls.c's
82034         use of localtime, and then of gettimeofday would cause trouble:
82035         the localtime call used to initialize rpl_gettimeofday's save
82036         mechanism would clobber ls's current local time information so
82037         that in any long listing the first file would always be listed
82038         with date 1970-01-01.  Analysis by Volker Borchert.
82039
82040         * lib/gettimeofday.c (localtime): Undefine.
82041         (rpl_localtime): New function.
82042
82043 2002-05-27  Jim Meyering  <meyering@lucent.com>
82044
82045         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
82046         localtime.
82047
82048         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
82049         use the replacement function; it wouldn't resolve at link time.
82050         Reported by Volker Borchert.
82051
82052 2002-05-22  Jim Meyering  <meyering@lucent.com>
82053
82054         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
82055         file-type.h.
82056         * lib/file-type.h: New file.
82057         * lib/file-type.c (file_type): New file/function.  Extracted from
82058         diffutils.
82059
82060 2002-04-30  Jim Meyering  <meyering@lucent.com>
82061
82062         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
82063
82064 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82065
82066         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
82067
82068 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82069
82070         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
82071         Do not check for alloca.h (no longer used) or stdbool.h (was never
82072         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
82073
82074 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82075
82076         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
82077
82078 2002-04-29  Jim Meyering  <meyering@lucent.com>
82079
82080         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
82081         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
82082         Use AC_FUNC_STRNLEN here instead.
82083
82084         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
82085         With autoconf-2.53a, it's part of AC_PROG_CC.
82086
82087 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82088
82089         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
82090         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
82091
82092 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82093
82094         * lib/sig2str.h, lib/sig2str.c: New files.
82095         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
82096
82097 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82098
82099         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
82100         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
82101         of 127, since 64 is the largest conceivable number for ancient
82102         nonstandard hosts.
82103         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
82104
82105 2002-04-28  Jim Meyering  <meyering@lucent.com>
82106
82107         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
82108
82109 2002-04-24  Jim Meyering  <meyering@lucent.com>
82110
82111         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
82112         (jm_PREREQ): Use it.
82113
82114         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
82115         mach/mach.h fcntl.h.
82116         Check for this function: setlocale.
82117
82118 2002-04-24  Jim Meyering  <meyering@lucent.com>
82119
82120         * lib/gettext.h: New file, from Gettext.
82121         * lib/Makefile.am (INCLUDES): Remove -I../intl.
82122         (libfetish_a_SOURCES): Add gettext.h.
82123
82124 2002-04-16  Jim Meyering  <meyering@lucent.com>
82125
82126         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
82127         ut_pid, ut_id, ut_exit.
82128
82129 2002-04-16  Jim Meyering  <meyering@lucent.com>
82130
82131         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
82132         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
82133         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
82134
82135 2002-04-12  Jim Meyering  <meyering@lucent.com>
82136
82137         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
82138         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
82139         existence of the getmntinfo function.  Needed for Darwin 5.3.
82140
82141         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
82142         This is necessary at least on Darwin 5.3.
82143
82144         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
82145         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
82146         strnlen.o in the library, and that makes some versions of ranlib
82147         object.
82148
82149 2002-04-12  Jim Meyering  <meyering@lucent.com>
82150
82151         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
82152
82153 2002-04-09  Jim Meyering  <meyering@lucent.com>
82154
82155         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
82156         to be more precise.  Rather than saying we're checking whether the
82157         function `works', say what we're testing.
82158         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
82159         Reported by Bruno Haible.
82160
82161 2002-03-10  Jim Meyering  <meyering@lucent.com>
82162
82163         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
82164         Suggestion from Santiago Vila.
82165
82166 2002-03-08  Jim Meyering  <meyering@lucent.com>
82167
82168         * lib/rename.c: Mention that this wrapper is needed also on
82169         mips-dec-ultrix4.4 systems.
82170
82171 2002-03-02  Jim Meyering  <meyering@lucent.com>
82172
82173         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
82174         not HAVE_CLOCK_SETTIME.
82175
82176 2002-02-27  Paul Eggert  <eggert@twinsun.com>
82177
82178         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
82179         Check for clock_settime.
82180
82181 2002-02-27  Paul Eggert  <eggert@twinsun.com>
82182
82183         * lib/nanosleep.h: Rename to....
82184         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
82185
82186         * lib/gettime.c: New file.
82187         * lib/settime.c: New file.
82188         * lib/stime.c: Remove.
82189
82190         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
82191         timespec.h.  Remove nanosleep.h.
82192
82193 2002-02-25  Paul Eggert  <eggert@twinsun.com>
82194
82195         * m4/acl.m4: New file.
82196         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
82197         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
82198
82199 2002-02-25  Paul Eggert  <eggert@twinsun.com>
82200
82201         * lib/acl.c, lib/acl.h: New files.
82202         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
82203
82204 2002-02-24  Jim Meyering  <meyering@lucent.com>
82205
82206         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
82207         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
82208         cause trouble.  Reported by Nelson Beebe.
82209
82210 2002-02-23  Paul Eggert  <eggert@twinsun.com>
82211
82212         * lib/path-concat.c (xpath_concat): Reorder code to pacify
82213         compilers that don't know that xalloc_die never returns.
82214
82215 2002-02-20  Jim Meyering  <meyering@lucent.com>
82216
82217         * lib/getdate.c: Regenerate using bison-1.33.
82218
82219 2002-02-17  Jim Meyering  <meyering@lucent.com>
82220
82221         * config/config.guess (main): Don't use `head -1'; it's no longer
82222         portable. Use `sed 1q' instead.
82223
82224 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
82225
82226         * m4/codeset.m4: Upgrade to gettext-0.11.
82227         * m4/gettext.m4: Upgrade to gettext-0.11.
82228         * m4/glibc21.m4: Upgrade to gettext-0.11.
82229         * m4/iconv.m4: Upgrade to gettext-0.11.
82230         * m4/isc-posix.m4: Upgrade to gettext-0.11.
82231         * m4/lcmessage.m4: Upgrade to gettext-0.11.
82232         * m4/lib-ld.m4: New file, from gettext-0.11.
82233         * m4/lib-link.m4: New file, from gettext-0.11.
82234         * m4/lib-prefix.m4: New file, from gettext-0.11.
82235         * m4/progtest.m4: Upgrade to gettext-0.11.
82236
82237 2002-02-15  Paul Eggert  <eggert@twinsun.com>
82238
82239         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
82240         (jm_PREREQ): Use it.
82241
82242 2002-02-15  Paul Eggert  <eggert@twinsun.com>
82243
82244         * lib/posixver.c, lib/posixver.h: New files.
82245         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
82246
82247 2002-02-02  Paul Eggert  <eggert@twinsun.com>
82248             Bruno Haible  <bruno@clisp.org>
82249
82250         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
82251         (fwrite_success_callback): New declaration.
82252         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
82253         print_unicode_char. Call failure callback instead of error.
82254         (fwrite_success_callback): New function.
82255         (exit_failure_callback): New function.
82256         (fallback_failure_callback): New function.
82257         (print_unicode_char): Call unicode_to_mb.
82258
82259 2002-01-26  Jim Meyering  <meyering@lucent.com>
82260
82261         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
82262         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
82263
82264 2002-01-26  Jim Meyering  <meyering@lucent.com>
82265
82266         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
82267
82268 2002-01-22  Paul Eggert  <eggert@twinsun.com>
82269
82270         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
82271
82272 2002-01-22  Jim Meyering  <meyering@lucent.com>
82273
82274         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
82275         Otherwise, some versions of automake would omit the rule that makes
82276         Makefile from Makefile.in.
82277
82278 2002-01-21  Paul Eggert  <eggert@twinsun.com>
82279
82280         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
82281         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
82282         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
82283         (memcoll): Set errno to zero if there is no error.
82284
82285         * lib/quotearg.c (quotearg_buffer_restyled):
82286         Fix bug with quoting buffers containing NUL when backslashing escapes.
82287         This bug was exposed by the other changes in this patch.
82288         (quotearg_n_options): New arg ARGSIZE.
82289         All callers changed.
82290         (quoting_options_from_style): New function.
82291         (quotearg_n_style): Use it.
82292         (quotearg_n_style_mem): New function.
82293
82294         * lib/quotearg.h (quotearg_n_style_mem): New function.
82295
82296 2002-01-19  Jim Meyering  <meyering@lucent.com>
82297
82298         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
82299         Remove useless quotes: DF_PROG="df".
82300         * m4/strnlen.m4: New file.
82301
82302 2002-01-16  Paul Eggert  <eggert@twinsun.com>
82303
82304         * lib/backupfile.c (ISDIGIT): Comment fix.
82305         * lib/getdate.y (ISDIGIT): Likewise.
82306         * lib/posixtm.c (ISDIGIT, year): Likewise.
82307         * lib/strverscmp.c (ISDIGIT): Likewise.
82308         * lib/userspec.c (ISDIGIT): Likewise.
82309
82310 2002-01-16  Jim Meyering  <meyering@lucent.com>
82311
82312         * lib/getdate.y: Add three semicolons, each just before a closing
82313         brace. Bison (as of version 1.31) no longer papers over that mistake.
82314
82315 2002-01-05  Jim Meyering  <meyering@lucent.com>
82316
82317         * lib/version-etc.c (version_etc_copyright): Update copyright year.
82318
82319 2001-12-19  Paul Eggert  <eggert@twinsun.com>
82320
82321         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
82322         not silently exit merely because the output buffer happens to
82323         have nothing pending.
82324
82325 2001-12-18  Paul Eggert  <eggert@twinsun.com>
82326
82327         See the big note in ../ChangeLog.
82328         * lib/human.c (suffixes): Prefer K to k for 1024.
82329         (generate_suffix_backwards): New function.
82330         (human_readable_inexact): Use it.
82331         * lib/xstrtol.c (__xstrtol): If there is no number but there
82332         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
82333         Accept 'K' as well as 'k'.
82334
82335 2001-12-15  Jim Meyering  <meyering@lucent.com>
82336
82337         * lib/regex.h (__restrict_arr): Update from libc.
82338
82339         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
82340         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
82341         (STREQ): Define.
82342
82343 2001-12-14  Jim Meyering  <meyering@lucent.com>
82344
82345         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
82346         Suggestion from Bruno Haible.
82347
82348 2001-12-10  Jim Meyering  <meyering@lucent.com>
82349
82350         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
82351         xrealloc, Instead, include "xalloc.h".
82352         (initbuffer): Don't cast xmalloc return value to char*.
82353         (readline): Reword comment.
82354         Don't cast xrealloc return value to char*
82355         Return NULL, not 0.
82356
82357 2001-12-09  Jim Meyering  <meyering@lucent.com>
82358
82359         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
82360         about `signed and unsigned type in conditional expression'.
82361         * lib/posixtm.c (posix_time_parse): Likewise.
82362
82363         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
82364
82365         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
82366         to avoid a pedantic warning.
82367
82368         * lib/getstr.c: Don't include assert.h.
82369         (getstr): Remove warning-evoking assertions.
82370         Return -1 if offset parameter is out of bounds.
82371         Change the type of a local from int to size_t.
82372
82373         * lib/strftime.c (my_strftime_localtime_r): Include this function
82374         definition in the `#if ! HAVE_TM_GMTOFF' block.
82375
82376         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
82377         Include xalloc.h instead.
82378
82379 2001-12-02  Jim Meyering  <meyering@lucent.com>
82380
82381         * lib/tempname.c: Don't declare getenv, thus reverting the change of
82382         2001-11-18.  It's no longer necessary, now that stdlib.h is always
82383         included.
82384
82385         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
82386         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
82387
82388 2001-11-30  Akim Demaille  <akim@epita.fr>
82389
82390         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
82391         before being defined.
82392
82393 2001-11-27  Paul Eggert  <eggert@twinsun.com>
82394
82395         * lib/quotearg.h (quotearg_n, quotearg_n_style):
82396         First arg is int, not unsigned.
82397         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
82398         (SIZE_MAX, UINT_MAX): New macros.
82399         (quotearg_n_options): Abort if N is negative.
82400         Avoid overflow check on hosts where size_t is 64 bits and int
82401         is 32 bits, as overflow is impossible there.
82402         Fix off-by-one typo that caused unnecessary reallocation.
82403
82404 2001-11-27  Jim Meyering  <meyering@lucent.com>
82405
82406         * lib/tempname.c: Merge with version from libc.
82407         * lib/regex.c: Likewise.
82408
82409         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
82410         systems for which STDC_HEADERS is 0, it was not included, resulting in
82411         a warning about an integer-to-pointer conversion problem with getenv.
82412         Reported by Volker Borchert.
82413
82414 2001-11-26  Jim Meyering  <meyering@lucent.com>
82415
82416         * lib/gtod.h: Remove file.
82417         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
82418         * lib/gettimeofday.c: Don't include gtod.h.
82419         (GTOD_init): Remove function.
82420         (rpl_gettimeofday): Do its job here instead, rather than aborting.
82421         Suggestion from Volker Borchert.
82422
82423 2001-11-23  Jim Meyering  <meyering@lucent.com>
82424
82425         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
82426         it.
82427         * lib/hash.c (struct hash_table): Define it here instead.
82428
82429 2001-11-22  Jim Meyering  <meyering@lucent.com>
82430
82431         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
82432
82433 2001-11-20  Jim Meyering  <meyering@lucent.com>
82434
82435         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
82436         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
82437
82438 2001-11-19  Jim Meyering  <meyering@lucent.com>
82439
82440         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
82441         directory.  Use "conftestXXXXXX" as the template.
82442         Suggestion from Paul Eggert.
82443
82444         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
82445         immediately, so the test doesn't mistakenly hit the max-open-files
82446         limit.
82447
82448 2001-11-18  Paul Eggert  <eggert@twinsun.com>
82449
82450         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
82451         (TEMPORARIES): New macro.
82452         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
82453         removes an artificial limitation (e.g. HP-UX 10.20, where
82454         TMP_MAX is 17576).
82455
82456 2001-11-18  Jim Meyering  <meyering@lucent.com>
82457
82458         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
82459
82460 2001-11-18  Jim Meyering  <meyering@lucent.com>
82461
82462         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
82463         on SunOS 4.
82464
82465         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
82466         files will be created before anything else.
82467
82468 2001-11-17  Paul Eggert  <eggert@twinsun.com>
82469
82470         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
82471         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
82472
82473 2001-11-17  Jim Meyering  <meyering@lucent.com>
82474
82475         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
82476         Prompted by a report from Bob Proulx.
82477
82478         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
82479         Instead, require UTILS_FUNC_MKSTEMP.
82480
82481 2001-11-17  Jim Meyering  <meyering@lucent.com>
82482
82483         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
82484         Now, that's done as part of AC_FUNC_STRTOD.
82485
82486 2001-11-17  Jim Meyering  <meyering@lucent.com>
82487
82488         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
82489         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
82490         rather than group writable.  Patch by Juan F. Codagnone.
82491
82492         * lib/readtokens.c: Remove explicit declarations of xmalloc and
82493         xrealloc, Instead, include "xalloc.h".
82494
82495         * lib/mountlist.c: Include unlocked-io.h after all system headers.
82496         Remove explicit declarations of xmalloc, xrealloc,
82497         and xstrdup.  Instead, include "xalloc.h".
82498
82499         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
82500         unlocked-io.h.
82501         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
82502         Likewise.
82503         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
82504
82505         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
82506         Reported by Padraig Brady.
82507
82508         * lib/mkstemp.c: #undef mkstemp.
82509         Include config.h.
82510         (rpl_mkstemp): Rename from mkstemp.
82511         Protoize.
82512
82513 2001-11-16  Jim Meyering  <meyering@lucent.com>
82514
82515         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
82516         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
82517         determine the amount of total physical memory, use pstat_getstatic.
82518         HPUX-11 doesn't define _SC_PHYS_PAGES.
82519         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
82520         If sysconf couldn't be used to determine the amount of available
82521         physical memory, use both pstat_getstatic and pstat_getdynamic.
82522         Based on a patch from Bob Proulx.
82523
82524 2001-11-10  Jim Meyering  <meyering@lucent.com>
82525
82526         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
82527         (jm_PREREQ): Use it.
82528
82529 2001-11-09  Jim Meyering  <meyering@lucent.com>
82530
82531         * m4/jm-macros.m4: Require autoconf-2.52f.
82532         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
82533         Use these AC_-prefixed names, not the AM_-prefixed ones.
82534
82535         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
82536
82537 2001-11-05  Jim Meyering  <meyering@lucent.com>
82538
82539         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
82540
82541 2001-11-04  Jim Meyering  <meyering@lucent.com>
82542
82543         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
82544         $DEFS.
82545
82546 2001-11-03  Jim Meyering  <meyering@lucent.com>
82547
82548         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
82549         of AC_DEFUN.
82550
82551         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
82552         know the name of the variable in the macro definition.
82553
82554 2001-11-03  Jim Meyering  <meyering@lucent.com>
82555
82556         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
82557         in argmatch_to_argument call.
82558
82559         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
82560         argument.
82561
82562         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
82563         e.g., a fault due to an attempt to free a NULL pointer.
82564
82565 2001-11-01  Jim Meyering  <meyering@lucent.com>
82566
82567         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
82568         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
82569
82570 2001-11-01  Jim Meyering  <meyering@lucent.com>
82571
82572         * lib/dirfd.c, lib/dirfd.h: New files.
82573         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
82574
82575         * lib/hash.c (hash_print) [TESTING]: Clean up.
82576
82577 2001-10-22  Paul Eggert  <eggert@twinsun.com>
82578
82579         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
82580         to avoid a warning if -Wall.
82581
82582 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
82583
82584         * README: New file
82585         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
82586         (per RMS's instructions, this is now the canonical source)
82587         * lgpl/, gpl/: New directories.
82588
82589 2001-10-21  Paul Eggert  <eggert@twinsun.com>
82590
82591         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
82592
82593 2001-10-21  Jim Meyering  <meyering@lucent.com>
82594
82595         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
82596         this code would end up calling gettext even in packages built
82597         with --disable-nls.
82598         * lib/getopt.c (_): Likewise.
82599         * lib/regex.c (_): Likewise.
82600
82601 2001-10-20  Paul Eggert  <eggert@twinsun.com>
82602
82603         * m4/error.m4 (jm_PREREQ_ERROR):
82604         Do not invoke AC_CHECK_FUNCS with strerror_r, as
82605         AC_FUNC_STRERROR_R does that.
82606         Check for strerror declaration.
82607
82608         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
82609         are supposed to have them these days.
82610         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
82611         Merge changes from latest Autoconf CVS.
82612         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
82613         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
82614         POSIX decided to standardize on the int flavor of strerror_r.
82615
82616 2001-10-20  Paul Eggert  <eggert@twinsun.com>
82617
82618         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
82619         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
82620         Use strerror_r that is only a macro, even if it is not a function.
82621         (strerror): Check for HAVE_DECL_STRERROR before declaring.
82622         (private_strerror): Use prototypes, not old-style function definition.
82623         (print_errno_message): New function.
82624         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
82625         char*-flavored one.
82626         (error_tail, error, error_at_line): Use it.
82627
82628 2001-10-11  Jim Meyering  <meyering@lucent.com>
82629
82630         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
82631         and quote_n (1, ... to avoid clobbering a buffer.
82632
82633 2001-10-05  Jim Meyering  <meyering@lucent.com>
82634
82635         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
82636         hash-pjw.h.
82637         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
82638         * lib/hash-pjw.h: New file.
82639
82640 2001-09-30  Jim Meyering  <meyering@lucent.com>
82641
82642         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
82643         `struct fsstat' has the `f_fstypename' member.
82644         Use that to define FS_TYPE, which is now used to make
82645         the getfsstat link test tighter.
82646
82647 2001-09-30  Jim Meyering  <meyering@lucent.com>
82648
82649         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
82650         Include <sys/ucred.h>, for Apple Darwin.
82651         Include sys/mount.h and sys/fs_types.h only if available.
82652         (FS_TYPE): Define.
82653         (read_filesystem_list): Use FS_TYPE.
82654
82655 2001-09-29  Paul Eggert  <eggert@twinsun.com>
82656
82657         * lib/exclude.c (excluded_filename): 0 -> false, since it's
82658         a boolean context.
82659
82660 2001-09-29  Jim Meyering  <meyering@lucent.com>
82661
82662         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
82663         [one-argument getmntent function]): Include stdio.h before mntent.h.
82664         SunOS 4.1.x needs it for the declaration of `FILE'.
82665         Patch by Volker Borchert.
82666
82667         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
82668         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
82669         sys/fs_types.h, and make the link-test for getfsstat guard #include
82670         directives with appropriate #if HAVE_*_H tests so that we can
82671         detect getfsstat on Apple Darwin1.3.7 systems.
82672         Reported by Nelson Beebe.
82673         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
82674
82675 2001-09-28  Paul Eggert  <eggert@twinsun.com>
82676
82677         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
82678         #defines strtoimax.  Also treat the other strto* functions
82679         like strtoimax.
82680
82681         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
82682         Check for strtoul and strtoumax,
82683         as those declarations are made even in the signed case.
82684         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
82685         Likewise, for strtol and strtoimax.
82686
82687 2001-09-28  Paul Eggert  <eggert@twinsun.com>
82688
82689         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
82690         #defines strtoimax.  Also treat the other strto* functions
82691         like strtoimax.
82692
82693         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
82694         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
82695         (strtoimax, strtoumax): Do not declare if already defined as a macro.
82696
82697 2001-09-26  Jim Meyering  <meyering@lucent.com>
82698
82699         Most macros in unlocked-io.h had the wrong number of arguments.
82700         * lib/gen-uio: New script.
82701         (USE_UNLOCKED_IO): Define to 1 if not already defined.
82702         * lib/unlocked-io.hin: Remove file.
82703         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
82704         rather than trying to embed it here.
82705         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
82706         Reported by Padraig Brady.
82707
82708 2001-09-25  Volker Borchert  <bt@teknon.de>
82709
82710         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
82711         `result'.
82712
82713 2001-09-24  Jim Meyering  <meyering@lucent.com>
82714
82715         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
82716
82717 2001-09-23  Jim Meyering  <meyering@lucent.com>
82718
82719         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
82720         instead of the mere test for existence of mntent.h.  The latter
82721         would get a false-positive on AIX 3.4 systems.
82722         In the outer getmntent if-block, don't die if neither of the getmntent
82723         tests succeeds.  Instead, just fall through and continue with the
82724         remaining tests.
82725
82726 2001-09-23  Jim Meyering  <meyering@lucent.com>
82727
82728         * lib/mountlist.c: Remove useless parentheses in #if directives.
82729         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
82730         the deprecated MOUNTED symbol is no longer defined in mntent.h.
82731
82732 2001-09-22  Jim Meyering  <meyering@lucent.com>
82733
82734         * m4/gettext.m4: New file.  From gettext.
82735         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
82736         * m4/progtest.m4: Likewise
82737         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
82738         * m4/glibc21.m4: Likewise.
82739
82740         * m4/libintl.m4: Remove.  No longer used.
82741
82742 2001-09-22  Jim Meyering  <meyering@lucent.com>
82743
82744         * lib/localcharset.c: Update from latest gettext.
82745         * lib/config.charset: Likewise.
82746
82747 2001-09-20  Jim Meyering  <meyering@lucent.com>
82748
82749         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
82750         strtoimax.
82751         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
82752         strtoumax.
82753
82754 2001-09-20  Jim Meyering  <meyering@lucent.com>
82755
82756         * lib/xstrtol.c (strtoimax): Guard declaration with
82757         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
82758         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
82759         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
82760         (strtoumax): Likewise, for completeness (it wasn't necessary).
82761
82762 2001-09-17  Paul Eggert  <eggert@twinsun.com>
82763
82764         * lib/strtoimax.c (HAVE_LONG_LONG):
82765         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
82766         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
82767         to work around bug in IBM C compiler.
82768
82769 2001-09-17  Jim Meyering  <meyering@lucent.com>
82770
82771         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
82772         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
82773         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
82774         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
82775         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
82776         whenever the right hand side need not be expanded by the shell.
82777
82778 2001-09-16  Paul Eggert  <eggert@twinsun.com>
82779
82780         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
82781         library.  It's not correct, as some older glibcs are buggy.
82782         fnmatch wasn't fixed until glibc 2.2.
82783
82784         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
82785         special shell magic here.
82786
82787 2001-09-16  Jim Meyering  <meyering@lucent.com>
82788
82789         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
82790         * m4/jm-macros.m4: Require it.
82791
82792 2001-09-16  Jim Meyering  <meyering@lucent.com>
82793
82794         * lib/mkdir.c: New file.
82795
82796 2001-09-15  Jim Meyering  <meyering@lucent.com>
82797
82798         * m4/jm-macros.m4: Check for help2man.
82799
82800 2001-09-11  Jim Meyering  <meyering@lucent.com>
82801
82802         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
82803         The body, by Paul Eggert, was moved here from configure.in.
82804         * m4/jm-macros.m4: Require UTILS_HOST_OS.
82805
82806 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82807
82808         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
82809         (jm_PREREQ): Use it.
82810
82811 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82812
82813         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
82814         Use ssize_t, not int, to store result of readlink.
82815         Check for ssize_t overflow as well as size_t overflow,
82816         as POSIX says the result of readlink is implementation-defined
82817         when ssize_t overflows.
82818         Remove unnecessary cast to char*.
82819         Use free+malloc instead of realloc, as the storage doesn't need
82820         to be preserved and it's clearer and can be more efficient that way.
82821         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
82822         * lib/xreadlink.h (xreadlink): Update prototype.
82823
82824 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82825
82826         * lib/xgetcwd.c: Revert some of the previous change; intead,
82827         fix the HAVE_GETCWD_NULL code to behave more like the
82828         !HAVE_GETCWD_NULL code used to.
82829
82830         Include "xalloc.h".
82831         (xgetcwd): Do not return NULL when memory is exhausted; instead,
82832         invoke xalloc_die.
82833
82834 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82835
82836         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
82837         sys/param.h, as pathmax.h includes them.
82838
82839 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82840
82841         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
82842         (jm_PREREQ_XGETCWD): New macro.
82843
82844         * m4/getcwd.m4: New file.
82845
82846 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82847
82848         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
82849         like the HAVE_GETCWD_NULL code.
82850         Include pathmax.h if not HAVE_GETCWD.
82851         Do not include xalloc.h.
82852         (INITIAL_BUFFER_SIZE): New symbol.
82853         Do not use xmalloc / xrealloc, since the caller is responsible for
82854         handling errors.  Preserve errno around `free' during failure.
82855         Do not overrun buffer when using getwd.
82856
82857 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82858
82859         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
82860         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
82861         getcwd (NULL, 0).
82862
82863 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82864
82865         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
82866         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
82867         spotted by Jim Meyering.
82868
82869 2001-09-03  Jim Meyering  <meyering@lucent.com>
82870
82871         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
82872         failure.
82873
82874 2001-09-02  Jim Meyering  <meyering@lucent.com>
82875
82876         * lib/error.c: Update from GNU libc.
82877
82878 2001-09-01  Jim Meyering  <meyering@lucent.com>
82879
82880         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
82881         Used by df.
82882
82883 2001-09-01  Jim Meyering  <meyering@lucent.com>
82884
82885         * lib/xreadlink.c: New file.
82886         * lib/xreadlink.h: New file.
82887         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
82888         xreadlink.h.
82889
82890         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
82891         doesn't conflict with sparc Solaris 7's definition in
82892         /usr/include/sys/int_types.h.
82893
82894         * lib/exclude.c: Use `""', not `<>' to #include non-system header
82895         files.
82896         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
82897         and strncasecmp as r-values.  Unixware didn't have declarations.
82898
82899 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82900
82901         * lib/xstrtol.h: Add copyright notice.
82902         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
82903         LONGINT_INVALID_SUFFIX_CHAR.
82904
82905 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82906
82907         * lib/xstrtol.c (strtoimax): New decl.
82908
82909 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82910
82911         * lib/xgetcwd.c: Don't include pathmax.h.
82912         Include stdlib.h and unistd.h if available.
82913         Include xalloc.h.
82914         (xmalloc, xstrdup, free): Remove decls.
82915         (xgetcwd): Don't assume sizes fit in unsigned.
82916         Check for overflow when computing sizes.
82917         Simplify reallocation code.
82918
82919 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82920
82921         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
82922         a directory's st_size can have an arbitrary value, so the old
82923         usage could waste an arbitrary amount of memory.  All uses
82924         changed.
82925         * lib/savedir.h: Update prototype.
82926
82927 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82928
82929         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
82930
82931         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
82932         old strtoimax.c.
82933
82934         Also, make the following further changes to make this file's
82935         configuration more similar to that of strtol.c:
82936         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
82937         (strtoumax, uintmax_t, strtoull, strtol): Remove.
82938         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
82939         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
82940         changed to signed values.
82941
82942         And make the following changes as well:
82943         Fix copyright notice, as 1999 was missing.
82944         (verify): New macro.
82945         (strtoimax): Check sizes at compile-time, not run-time.
82946         Prefer strtol to strtoll if both work.
82947         (main): Remove; it was not that useful and was a pain to maintain.
82948
82949         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
82950
82951 2001-08-31  Jim Meyering  <meyering@lucent.com>
82952
82953         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
82954         Use an initial, malloc'd, buffer of length 128 rather than
82955         a statically allocated one of length 1024.
82956
82957 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82958
82959         Simplify code, partly by assuming autoconf 2.52 semantics.
82960
82961         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
82962
82963         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
82964         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
82965         All uses removed.
82966         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
82967         Move AC_REQUIRE to next-to-top level, to avoid confusion.
82968         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
82969         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
82970         jm_AC_HEADER_INTTYPES_H.
82971         * m4/jm-macros.m4 (jm_MACROS): Likewise.
82972
82973         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
82974
82975         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
82976         Quote first arg of AC_DEFUN.
82977         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
82978         since they are needed to parse the include file even if we need
82979         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
82980         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
82981         but with opposite signedness.
82982
82983 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82984
82985         Merge 'exclude' changes from tar 1.13.22.
82986         This fixes one or two unlikely storage allocation overflow bugs,
82987         but doesn't change user-visible behavior otherwise.
82988
82989 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82990
82991         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
82992         (jm_PREREQ_EXCLUDE): New macro.
82993
82994 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82995
82996         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
82997         tm to be declared.
82998
82999 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83000
83001         * lib/hash.c: Remove '2001' from copyright notice.
83002
83003 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83004
83005         * lib/full-write.h: New file.
83006         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
83007         * lib/full-write.c: Correct credits, as cccp.c no longer
83008         exists and anyway it was so heavily changed from the old cccp
83009         code as to be unrecognizable.  Include full-write.h.
83010         (full_write): Return size_t, with short writes meaning failure.
83011         All callers changed.  This fixes a bug with large buffers
83012         on 64-bit hosts.
83013         * lib/utime.c: Include full-write.h.
83014
83015 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83016
83017         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
83018         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
83019         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
83020         Include if available.
83021         (<xalloc.h>): Include
83022         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
83023         (verify): New macro.  Use it to verify that EXCLUDE macros do not
83024         collide with FNM macros.
83025         (struct patopts): New struct.
83026         (struct exclude): Use it, as exclude patterns now come with options.
83027         (new_exclude): Support above changes.
83028         (new_exclude, add_exclude_file):
83029         Initial size must now be a power of two to simplify overflow checking.
83030         (free_exclude, fnmatch_no_wildcards): New function.
83031         (excluded_filename): No longer requires options arg, as the options
83032         are determined by add_exclude.  Now returns bool, not int.
83033         (excluded_filename, add_exclude):
83034         Add support for the fancy new exclusion options.
83035         (add_exclude, add_exclude_file): Now takes int options arg.
83036         Check for arithmetic overflow when computing sizes.
83037         (add_exclude_file): xrealloc might modify errno, so don't
83038         realloc until after errno might be used.
83039
83040         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
83041         New macros.
83042         (free_exclude): New decl.
83043         (add_exclude, add_exclude_file): Now takes int options arg.
83044         (excluded_filename): No longer requires options arg, as the options
83045         are determined by add_exclude.  Now returns bool, not int.
83046
83047 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83048
83049         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
83050
83051 2001-08-27  Jim Meyering  <meyering@lucent.com>
83052
83053         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
83054
83055         * lib/version-etc.c (N_): Remove definition.
83056         Revert most of last change.
83057         Instead, simply don't mark the `Copyright...' string for translation.
83058         Based on advice from Paul Eggert.
83059
83060         * lib/strtoxmax.c: Tweak comment.
83061
83062 2001-08-26  Jim Meyering  <meyering@lucent.com>
83063
83064         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
83065
83066         * m4/xstrtoimax.m4: New file.
83067         * m4/xstrtoumax.m4: Add comments explaining why we
83068         AC_REPLACE_FUNCS(strtol).
83069
83070 2001-08-26  Jim Meyering  <meyering@lucent.com>
83071
83072         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
83073         of copyright with `%s' so translators don't get an untranslated
83074         message in 2002.
83075         (COPYRIGHT_YEAR): Define.
83076         (version_etc): Use fprintf rather than fputs.
83077         Suggestion from Ulrich Drepper.
83078
83079         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
83080
83081         * lib/strtoll.c: New file, from GNU libc.
83082         * lib/xstrtoimax.c: New file.
83083
83084         * lib/xstrtol.h: Add xstrtoimax.
83085         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
83086         * lib/strtoimax.c: New file.  Likewise, but first define
83087         STRTOUXMAX_SIGNED.
83088
83089         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
83090         ...
83091         * lib/strtoxmax.c: ... then renamed to this.
83092
83093 2001-08-18  Paul Eggert  <eggert@twinsun.com>
83094
83095         * m4/inttypes.m4: Add AC_PREREQ(2.13).
83096         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
83097         (jm_AC_TYPE_INTMAX_T): New macro.
83098         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
83099
83100         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
83101
83102         * m4/longlong.m4: Renamed from ulonglong.m4.
83103         * m4/inttypes.m4: Renamed from inttypes_h.m4.
83104         * m4/uintmax_t.m4: Removed.
83105
83106 2001-08-13  Paul Eggert  <eggert@twinsun.com>
83107
83108         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
83109         Port to Solaris 8, where 'sed' requires a space after the 'r'
83110         command, and where sh dislikes "$/".  Clean up the spacing a bit.
83111         Redirect output to $tmp just once.
83112
83113 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
83114
83115         * lib/addext.c (<errno.h>): Include.
83116         (errno): Declare if not defined.
83117         (addext): Work correctly when pathconf returns -1 and leaves
83118         errno alone because there is no limit.  Also, work even if
83119         pathconf returns a value greater than SIZE_MAX.
83120
83121 2001-08-12  Jim Meyering  <meyering@lucent.com>
83122
83123         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
83124         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
83125         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
83126         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
83127         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
83128         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
83129         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
83130         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
83131         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
83132         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
83133         utime.m4, utimes.m4, xstrtoumax.m4:
83134         Quote the first argument in each use of AC_DEFUN.
83135
83136 2001-08-12  Jim Meyering  <meyering@lucent.com>
83137
83138         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
83139         Simply `return getcwd (NULL, 0);'.
83140         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
83141         Use 1300 as initial value for length, not PATH_MAX.
83142
83143         * lib/pathmax.h: Clean up cpp syntax.
83144
83145 2001-08-12  Jim Meyering  <meyering@lucent.com>
83146
83147         * lib/gettimeofday.c: New file.
83148         * lib/gtod.h: New file.
83149         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
83150
83151 2001-08-05  Jim Meyering  <meyering@lucent.com>
83152
83153         * m4/jm-macros.m4: Require autoconf-2.52.
83154
83155 2001-08-04  Jim Meyering  <meyering@lucent.com>
83156
83157         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
83158         stmt, to get in sync with glibc.
83159
83160 2001-08-03  Paul Eggert  <eggert@twinsun.com>
83161
83162         The following changes are from gettext 0.10.39 as maintained by
83163         Bruno Haible.
83164
83165         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
83166         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
83167         with inverted sense.  All uses changed.
83168
83169         * lib/mbswidth.c: Don't include <limits.h>.
83170         Include <stdlib.h> and <string.h> unconditionally.
83171         (iswcntrl, mbsinit, ISCNTRL): New macros.
83172         (mbsnwidth): Use K&R style function declarations.
83173         Don't bother checking for MB_LEN_MAX == 1, since the compiler
83174         can optimize it when MB_CUR_MAX == 1.
83175         The width of control characters is zero, not 1.
83176
83177 2001-08-03  Paul Eggert  <eggert@twinsun.com>
83178
83179         The following changes are from gettext 0.10.39 as maintained by
83180         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
83181
83182         * m4/codeset.m4: Upgrade to serial AM1.
83183         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
83184         all uses changed.  Quote first arg of AC_DEFUN.
83185         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
83186
83187         * m4/iconv.m4: Upgrade to serial AM2.
83188         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
83189         Add --with-libconv-prefix.
83190         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
83191         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
83192         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
83193         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
83194         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
83195
83196         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
83197         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
83198         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
83199         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
83200         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
83201         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
83202         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
83203         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
83204         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
83205
83206         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
83207         string.h any more.
83208
83209         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
83210         not the default value.
83211
83212         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
83213         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
83214         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
83215         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
83216         Also check for iswcntrl, used for wcwidth fallback.
83217         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
83218         to Autoconf 2.13.
83219
83220 2001-08-03  Jim Meyering  <meyering@lucent.com>
83221
83222         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
83223         as it was in the original.  Reported by Paul Eggert.
83224
83225 2001-07-16  Jim Meyering  <meyering@lucent.com>
83226
83227         * m4/gettimeofday.m4: New file.
83228         Prompted by a report from Bernhard Baehr.
83229
83230 2001-07-15  Jim Meyering  <meyering@lucent.com>
83231
83232         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
83233         stuff. Now it's in ../Makefile.cfg.
83234
83235 2001-07-15  Jim Meyering  <meyering@lucent.com>
83236
83237         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
83238         (BUILT_SOURCES): Add unlocked-io.h.
83239         (io_functions): Define.
83240         (unlocked-io.h): New rule.
83241         (DISTCLEANFILES): Add unlocked-io.h.
83242         (all-local): Depend on unlocked-io.h, to ensure it is created.
83243
83244         * lib/unlocked-io.hin: New file
83245
83246         * lib/regex.c: Update from glibc.
83247
83248 2001-07-05  Jim Meyering  <meyering@lucent.com>
83249
83250         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
83251         recommendation.
83252         (libfetish_a_SOURCES): Put all .h files here instead.
83253         Remove a thus-exposed (better checks in automake) duplicate and
83254         two unnecessary .h files.
83255
83256 2001-07-04  Jim Meyering  <meyering@lucent.com>
83257
83258         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
83259         that generates jm-glibc-io.m4 so that it doesn't trigger any make
83260         distcheck failure.
83261
83262 2001-07-02  Jim Meyering  <meyering@lucent.com>
83263
83264         The following changes were prompted by suggestions from Bruno Haible.
83265
83266         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
83267         is now generated.
83268         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
83269         definition of EXTRA_DIST.
83270         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
83271         ensure that the generated file is created/updated whenever the list
83272         of $(unlocked_functions) is changed.
83273         (jm-glibc-io.m4): New rule.
83274         (unlocked-io.h): New rule -- currently unused.
83275
83276 2001-06-24  Jim Meyering  <meyering@lucent.com>
83277
83278         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
83279         unmatched right bracket, rather than kludging it with an extra,
83280         falsely-matching quote in a comment.  Patch by Akim Demaille.
83281
83282 2001-06-11  Jim Meyering  <meyering@lucent.com>
83283
83284         * lib/regex.c: Update from GNU libc.
83285
83286 2001-05-27  Jim Meyering  <meyering@lucent.com>
83287
83288         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
83289         Check for ut_type in struct utmp.
83290
83291 2001-05-27  Jim Meyering  <meyering@lucent.com>
83292
83293         * lib/readutmp.h (UT_TYPE): Define.
83294
83295 2001-05-24  Jim Meyering  <meyering@lucent.com>
83296
83297         * lib/argmatch.c: Include "quote.h".
83298         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
83299         quote function.  Reported by Göran Uddeborg.
83300
83301 2001-05-22  Jim Meyering  <meyering@lucent.com>
83302
83303         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
83304         now that we use the package-supplied version unconditionally.
83305         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
83306
83307 2001-05-21  Jim Meyering  <meyering@lucent.com>
83308
83309         * m4/regex.m4: Change a couple backticks to single quotes to avoid
83310         shell syntax errors.
83311
83312 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
83313
83314         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
83315
83316 2001-05-20  Paul Eggert  <eggert@twinsun.com>
83317
83318         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
83319         Don't bother to check library strftime, since
83320         we'll be using our own my_strftime function anyway.
83321         Define my_strftime instead of strftime.
83322
83323 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
83324
83325         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
83326         which is not yet declared.
83327
83328 2001-05-15  Jim Meyering  <meyering@lucent.com>
83329
83330         * m4/regex.m4: Use proper quoting so brackets appear in the test
83331         program.
83332         Reported by, and with help from, Bruno Haible.
83333
83334 2001-05-13  Jim Meyering  <meyering@lucent.com>
83335
83336         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
83337         undefined.
83338
83339 2001-05-11  Paul Eggert  <eggert@twinsun.com>
83340
83341         dirname code cleanup.  base_name now behaves more compatibly
83342         with POSIX basename when given file names that have trailing
83343         slashes, and similarly for dir_name.  Add new primitives
83344         base_len and dir_len.  Put the directory-name-related decls
83345         into dirname.h.
83346
83347         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
83348         * lib/backupfile.c (base_name): Likewise.
83349         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
83350         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
83351         * lib/makepath.c (strip_trailing_slashes): Likewise.
83352         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
83353         ISSLASH): Likewise.
83354         * lib/rename.c (strip_trailing_slashes): Likewise.
83355         * lib/same.c (base_name): Likewise.
83356         * lib/stripslash.c (ISSLASH): Likewise.
83357
83358         * lib/addext.c: Include <dirname.h> after size_t is defined.
83359         * lib/backupfile.c: Likewise.
83360
83361         * lib/addext.c (addext): Use base_len to trim redundant
83362         trailing slashes instead of doing it ourselves.
83363         But do not trim the last slash if it is not redundant.
83364
83365         * lib/backupfile.c (find_backup_file_name,
83366         max_backup_version): Use base_len instead of rolling it ourselves.
83367         Handle the case of "" and (on DOS) "C:" correctly.
83368
83369         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
83370         needed. Include <string.h>, <dirname.h>.
83371         (base_name): Allow file names ending in slashes, other than names
83372         that are all slashes.  In this case, return the basename followed
83373         by the slashes.  This is more general, and can be used in places
83374         where the original base_name purposely had an assertion failure.
83375         (base_len): New function.
83376
83377         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
83378         Do not include <assert.h>; no longer needed.
83379         Include xalloc.h.
83380         (memrchr): Remove decl.
83381         (dir_name_r): Remove.
83382         (dir_len): Renamed from dirlen.  All callers changed.
83383         Rewrite in terms of base_name, for simplicity and consistency.
83384         (dir_name): Never return NULL.  All callers changed.
83385         Do not include <stdlib.h> in test program; no longer needed.
83386         return 0; is fine for test program.
83387
83388         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
83389         New macros.
83390         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
83391
83392         * lib/path-concat.c (path_concat): Use base_len to compute
83393         base length, not strlen; this means we cannot rely on memcpy
83394         to null-terminate.
83395
83396         * lib/same.c (STREQ): Remove.
83397         (same_name): Handle the case where the basename ends in trailing '/'.
83398
83399         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
83400         a slash was stripped.  Do not strip the last slash after a
83401         file system prefix.
83402
83403 2001-05-11  Paul Eggert  <eggert@twinsun.com>
83404
83405         * lib/Makefile.am (libfetish_a_SOURCES):
83406         Add strftime.c, since we now compile it on all hosts.
83407
83408         * lib/strftime.c (my_strftime):
83409         Define to nstrftime if emacs, but only if my_strftime is not defined.
83410         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
83411         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
83412         Add one more extra argument: a nanoseconds value.
83413         All uses changed.
83414         (ns): New macro.
83415         (my_strftime function): Add %N format.
83416         (emacs_strftimeu): Renamed from emacs_strftime,
83417         with extra ut argument.
83418
83419 2001-05-09  Paul Eggert  <eggert@twinsun.com>
83420
83421         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
83422
83423 2001-04-21  Jim Meyering  <meyering@lucent.com>
83424
83425         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
83426         doesn't interfere.
83427
83428 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
83429
83430         * m4/ftruncate.m4: Check for chsize.
83431         Link with ftruncate.o unconditionally if ftruncate is missing.
83432         This was required when cross-compiling to i586-mingw32msvc.
83433
83434 2001-04-08  Jim Meyering  <meyering@lucent.com>
83435
83436         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
83437         recomputed; that's necessary when the offset spans a DST transition.
83438         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
83439
83440 2001-04-02  Jim Meyering  <meyering@lucent.com>
83441
83442         * lib/regex.h, regex.c: Update from GNU libc.
83443
83444 2001-03-24  Jim Meyering  <meyering@lucent.com>
83445
83446         * m4/jm-macros.m4: Require autoconf-2.49d.
83447
83448 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
83449
83450         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
83451
83452 2001-03-19  Paul Eggert  <eggert@twinsun.com>
83453
83454         * lib/version-etc.c (version_etc_copyright): Update to 2001.
83455
83456 2001-03-17  Jim Meyering  <meyering@lucent.com>
83457
83458         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
83459         now that the version in autoconf is equivalent.
83460         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
83461
83462         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
83463         Suggestion from Akim Demaille.
83464
83465         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
83466         (jm_PREREQ_TEMPNAME): New function.
83467
83468 2001-03-16  Paul Eggert  <eggert@twinsun.com>
83469
83470         * lib/tempname.c (uint64_t): Define to uintmax_t if
83471         not defined, and if UINT64_MAX is not defined.
83472         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
83473         Reported by John David Anglin.
83474
83475 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
83476
83477         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
83478         resolve alias if codeset is empty.
83479         * lib/config.charset (BeOS): Use wildcard syntax.
83480
83481 2001-03-13  Jim Meyering  <meyering@lucent.com>
83482
83483         * lib/path-concat.c (path_concat)
83484         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
83485         concatenating e.g., `C:' and `foo'.
83486         From Bruno Haible.
83487
83488 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83489
83490         * lib/localcharset.c (locale_charset): Don't use
83491         setlocale(LC_CTYPE,NULL). Don't return NULL.
83492         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
83493
83494 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83495
83496         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
83497         support for DOS/DJGPP.
83498
83499 2001-03-01  Paul Eggert  <eggert@twinsun.com>
83500
83501         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
83502         lacks mkstemp.  Compile our own tempname.c if we compile our own
83503         mkstemp.c, as mkstemp relies on tempname.
83504
83505 2001-03-01  Jim Meyering  <meyering@lucent.com>
83506
83507         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
83508         AH_VERBATIM really does output its argument verbatim.
83509
83510 2001-02-28  Paul Eggert  <eggert@twinsun.com>
83511
83512         * lib/Makefile.am (libfetish_a_SOURCES):
83513         Add dup-safer.c, fopen-safer.c.
83514         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
83515
83516         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
83517         * lib/unistd-safer.h: New files.
83518
83519 2001-02-25  Paul Eggert  <eggert@twinsun.com>
83520
83521         The mkstemp replacement is taken from glibc 2.2.2, with some
83522         portability fixes for use outside glibc, as follows:
83523
83524         * lib/tempname.c (struct_stat64): New macro.
83525         (direxists, __gen_tempname): Use it.
83526         This avoids a portability problem with Solaris 8.
83527
83528         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
83529         (<stddef.h>, <stdint.h>, <string.h>):
83530         Include only if STDC_HEADERS || _LIBC.
83531         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
83532         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
83533         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
83534         (__set_errno): Define this macro if <errno.h> doesn't.
83535         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
83536         Define these macros if <stdio.h> doesn't.
83537         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
83538         Define these macros if <sys/stat.h>
83539         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
83540         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
83541         __xstat64): Define if not _LIBC.
83542         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
83543         (__gen_tempname): Invoke gettimeofday only if
83544         HAVE_GETTIMEOFDAY || _LIBC;
83545         otherwise, fall back on plain "time".
83546         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
83547
83548         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
83549
83550         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
83551
83552 2001-02-18  Paul Eggert  <eggert@twinsun.com>
83553
83554         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
83555
83556 2001-02-17  Paul Eggert  <eggert@twinsun.com>
83557
83558         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
83559         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
83560         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
83561         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
83562
83563 2001-02-17  Paul Eggert  <eggert@twinsun.com>
83564
83565         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
83566         Remove workaround macros for hosts that have mbrtowc but not
83567         mbstate_t, as we now insist on proper declarations for both
83568         before using mbrtowc.
83569
83570 2001-02-17  Jim Meyering  <meyering@lucent.com>
83571
83572         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
83573         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
83574         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
83575         UnixWare 7.1.1.
83576
83577         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
83578         rather than AC_CACHE_VAL.
83579
83580 2001-02-17  Jim Meyering  <meyering@lucent.com>
83581
83582         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
83583         around included file name.
83584
83585         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
83586
83587         * lib/strftime.c: Update from GNU libc (the only changes were to
83588         comments).
83589
83590 2001-02-17  Jim Meyering  <meyering@lucent.com>
83591
83592         * lib/regex.c: Update from libc.
83593
83594 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
83595
83596         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
83597         clash.
83598
83599 2001-02-16  Paul Eggert  <eggert@twinsun.com>
83600
83601         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
83602         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
83603         Reported by Mark Hounschell via Paul Eggert.
83604
83605 2001-02-07  Jim Meyering  <meyering@lucent.com>
83606
83607         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
83608
83609 2001-02-05  Jim Meyering  <meyering@lucent.com>
83610
83611         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
83612         it includes the patch required for `large file' support with at least
83613         HP-UX's 10.20 /bin/cc.
83614
83615 2001-02-03  Jim Meyering  <meyering@lucent.com>
83616
83617         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
83618         AS_IF, now that it works once again (mysteriously).
83619         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
83620
83621 2001-01-30  Jim Meyering  <meyering@lucent.com>
83622
83623         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
83624         * m4/chown.m4: Rename conftestchown to conftest.chown.
83625         * m4/rename.m4: s/conftestdir/conftest.d1/ and
83626         s/conftestdir2/conftest.d2/.
83627         * m4/utimes.m4: s/conftestdata/conftest.data/
83628         Inspired by Pavel Roskin's change in autoconf.
83629
83630 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
83631
83632         * lib/config.charset: Update for FreeBSD 4.2.
83633
83634 2001-01-27  Jim Meyering  <meyering@lucent.com>
83635
83636         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
83637         a use of AS_IF.
83638         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
83639
83640 2001-01-26  Jim Meyering  <meyering@lucent.com>
83641
83642         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
83643         quotearg.c includes it.
83644
83645 2001-01-26  Jim Meyering  <meyering@lucent.com>
83646
83647         * lib/quotearg.c: Include stddef.h.
83648         * lib/quote.c: Include stddef.h.
83649         Reported by Axel Kittenberger.
83650
83651         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
83652         line in double quotes so that it evokes a better diagnostic.
83653         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
83654         Reported by Axel Kittenberger.
83655
83656 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
83657
83658         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
83659         as if it was a `charset'.
83660
83661 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
83662
83663         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
83664         has const.
83665
83666 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
83667
83668         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
83669         to avoid a warning.  Add back 'const' to inptr.
83670
83671 2001-01-20  Jim Meyering  <meyering@lucent.com>
83672
83673         Be sure that headers are checked before used in code compiled
83674         for the type checks.
83675         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
83676         In place of that, invoke jm_CHECK_ALL_TYPES.
83677         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
83678         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
83679         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
83680         The check for ssize_t was mistakenly run before the test for unistd.h.
83681
83682         The configure-time check for stdbool.h was missing.
83683         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
83684         (jm_PREREQ_HASH): New function.
83685
83686 2001-01-17  Jim Meyering  <meyering@lucent.com>
83687
83688         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
83689         for autoconf-2.49c.
83690         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
83691
83692 2001-01-16  Jim Meyering  <meyering@lucent.com>
83693
83694         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
83695         From Bruno Haible.
83696
83697 2001-01-14  Jim Meyering  <meyering@lucent.com>
83698
83699         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
83700         foo and bar.  Create conftestdir/ in the script, not in the C code.
83701         Remove directories in the script, not in the C code.
83702         Remove conftestdir{,2} before trying to create the directory.
83703         Make the entire configure script fail if the mkdir fails.
83704
83705 2001-01-14  Jim Meyering  <meyering@lucent.com>
83706
83707         * lib/rename.c: New file.  From Volker Borchert.
83708         Include stdlib.h, string.h or strings.h, and xalloc.h.
83709         Use strip_trailing_slashes rather than open-coding it.
83710
83711 2001-01-03  Paul Eggert  <eggert@twinsun.com>
83712
83713         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
83714
83715 2001-01-03  Jim Meyering  <meyering@lucent.com>
83716
83717         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
83718         of local `inptr' to avoid warning with some system declarations of
83719         iconv.
83720
83721 2001-01-02  Volker Borchert  <bt@teknon.de>
83722
83723         * m4/rename.m4: New file.
83724         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
83725
83726 2001-01-01  Jim Meyering  <meyering@lucent.com>
83727
83728         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
83729         even on systems with utmpx.h.  It's necessary for the declaration of
83730         utmp's ut_user member.  Reported by Andreas Jaeger.
83731
83732         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
83733         available. They are required for the declarations of getgrgid and
83734         getpwuid resp.
83735         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
83736         Reported by Andreas Jaeger.
83737
83738 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
83739
83740         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
83741         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
83742         so `make install' also works in VPATH builds.
83743
83744 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
83745
83746         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
83747         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
83748         can be used in subdirectories.
83749
83750 2000-12-29  Paul Eggert  <eggert@twinsun.com>
83751
83752         * lib/modechange.c: Do not assume that mode_t uses the
83753         traditional octal encoding.  E.g. "chmod 1 FOO" should set
83754         the other-execute bit of FOO even if S_IXOTH != 1.
83755
83756         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
83757         WOTH, XOTH, ALLM): New macros.
83758         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
83759          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
83760         Use them.
83761         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
83762         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
83763         (mode_compile):
83764         No need to use uintmax_t; unsigned long is long enough.
83765         Don't bother to get suffix since we don't use it.
83766
83767 2000-12-26  Jim Meyering  <meyering@lucent.com>
83768
83769         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
83770         better with autoheader.
83771
83772 2000-12-24  Jim Meyering  <meyering@lucent.com>
83773
83774         * lib/hash.c (is_prime): Return explicit boolean values.
83775         (hash_get_first): Return NULL to appease Irix5.6's 89.
83776         Reported by Nelson Beebe.
83777
83778 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
83779
83780         * lib/localcharset.c (locale_charset): Add support for Win32.
83781
83782 2000-12-18  Paul Eggert  <eggert@twinsun.com>
83783
83784         * lib/physmem.h, lib/physmem.c: New files.
83785
83786         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
83787         (noinst_HEADERS): Add physmem.h.
83788
83789         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
83790         't' for compatibility with Solaris 8 sort.
83791
83792 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
83793
83794         * lib/config.charset: Add support for BeOS.
83795
83796 2000-12-17  Jim Meyering  <meyering@lucent.com>
83797
83798         * m4/dos.m4 (jm_AC_DOS): New file and macro.
83799         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
83800
83801 2000-12-16  Jim Meyering  <meyering@lucent.com>
83802
83803         This bug had a serious impact on chown: `chown N:M FILE' (for integer
83804         N and M) would have treated it like `chown N:N FILE'.
83805
83806         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
83807
83808 2000-12-16  Jim Meyering  <meyering@lucent.com>
83809
83810         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
83811         SHELLS_FILE to a file name that's useful on djgpp systems.
83812         Include stdlib.h.
83813         (ADDITIONAL_DEFAULT_SHELLS): Define.
83814         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
83815         Based mostly on a patch from Prashant TR.
83816
83817 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
83818
83819         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
83820         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
83821         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
83822
83823 2000-12-08  Andreas Schwab  <schwab@suse.de>
83824
83825         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
83826         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
83827
83828 2000-12-07  Jim Meyering  <meyering@lucent.com>
83829
83830         * lib/stripslash.c (ISSLASH): Define.
83831         (strip_trailing_slashes): Use ISSLASH rather than comparing against
83832         `/'.
83833         From Prashant TR.
83834
83835         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
83836         (dir_name_r): Declare this function as static.
83837         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
83838         manifest itself on a name containing a mix of slashes and
83839         backslashes.
83840         Make this function work with names starting with a DOS-style
83841         drive letter and colon prefix.
83842         (dir_name): Append `.' if necessary.
83843         Based mostly on patches from Prashant TR and Eli Zaretskii.
83844
83845         * lib/dirname.h (dir_name_r): Remove prototype.
83846
83847 2000-12-06  Paul Eggert  <eggert@twinsun.com>
83848
83849         * m4/off_t-format.m4: Remove this file.
83850         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
83851
83852 2000-12-06  Jim Meyering  <meyering@lucent.com>
83853
83854         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
83855         replacement strtoull, we may well need the replacement strtoul, too.
83856         Check for declarations of strtoul and strtoull.
83857         Check for strtol.  Mainly as a cue to cause automake to include
83858         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
83859         Check for limits.h -- strtol.c needs it.
83860
83861 2000-12-05  Jim Meyering  <meyering@lucent.com>
83862
83863         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
83864
83865 2000-12-04  Jim Meyering  <meyering@lucent.com>
83866
83867         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
83868         Also include memory.h, stdlib.h, unistd.h if appropriate.
83869         Reported by Andreas Jaeger (conflicting declaration of malloc).
83870
83871 2000-12-02  Jim Meyering  <meyering@lucent.com>
83872
83873         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
83874         * m4/jm-macros.m4 (jm_MACROS): require it.
83875
83876 2000-12-02  Jim Meyering  <meyering@lucent.com>
83877
83878         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
83879
83880 2000-12-01  Paul Eggert  <eggert@twinsun.com>
83881
83882         * lib/memrchr.c: Include <config.h> before any system include file.
83883
83884 2000-11-30  Jim Meyering  <meyering@lucent.com>
83885
83886         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
83887
83888 2000-11-30  Jim Meyering  <meyering@lucent.com>
83889
83890         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
83891
83892 2000-11-29  Paul Eggert  <eggert@twinsun.com>
83893
83894         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
83895
83896 2000-11-26  Jim Meyering  <meyering@lucent.com>
83897
83898         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
83899
83900 2000-11-22  Paul Eggert  <eggert@twinsun.com>
83901
83902         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
83903         size of (size_t) -1; it's not portable.
83904
83905 2000-11-17  Jim Meyering  <meyering@lucent.com>
83906
83907         * lib/strstr.c: Update from GNU libc.
83908
83909 2000-11-17  Akim Demaille  <akim@epita.fr>
83910
83911         * lib/obstack.h: Formatting changes.
83912         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
83913         prevent type checking.
83914         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
83915         cast the value to (void *): assigning a `foo *' to a `void *'
83916         variable is valid.
83917         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
83918
83919 2000-11-16  Jim Meyering  <meyering@lucent.com>
83920
83921         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
83922
83923 2000-11-11  Jim Meyering  <meyering@lucent.com>
83924
83925         * lib/error.c: Add a couple #includes, merging from GNU libc version.
83926
83927 2000-11-10  Jim Meyering  <meyering@lucent.com>
83928
83929         * lib/obstack.h: Update from GNU libc.
83930         * lib/obstack.c: Likewise.
83931
83932 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
83933
83934         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
83935
83936 2000-11-06  Paul Eggert  <eggert@twinsun.com>
83937
83938         * lib/getusershell.c (setusershell): Use rewind rather than
83939         fseek/fseeko, to avoid configuration hassles with fseeko.
83940         Don't bother opening SHELLS_FILE if shellstream is NULL;
83941         it's not necessary.
83942
83943 2000-11-05  Jim Meyering  <meyering@lucent.com>
83944
83945         * lib/makepath.h (make_dir): Declare.
83946         * lib/makepath.c (make_dir): Remove `static' attribute.
83947         Tweak a comment.
83948
83949 2000-11-04  Jim Meyering  <meyering@lucent.com>
83950
83951         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
83952
83953 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
83954
83955         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
83956         last one in a bucket, advance to the next bucket.
83957
83958 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
83959
83960         * lib/fnmatch.c: Do not comment out all the code if we are using
83961         the GNU C library, because in some cases we are replacing buggy
83962         code in the GNU C library itself.
83963
83964 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
83965
83966         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
83967         (regex_compile): Catch bogus \(\1\).
83968
83969 2000-10-30  Paul Eggert  <eggert@twinsun.com>
83970
83971         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
83972         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
83973         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
83974
83975 2000-10-30  Paul Eggert  <eggert@twinsun.com>
83976
83977         * lib/error.h, getline.h, modechange.h:
83978         Remove "2000" from Copyright line, as the file hasn't been
83979         changed this year other than in the copyright notice.
83980
83981         * lib/xalloc.h: Add "2000" to Copyright line, as this file
83982         was changed this year.
83983
83984 2000-10-29  Jim Meyering  <meyering@lucent.com>
83985
83986         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
83987         renaming.
83988         * m4/ls-mntd-fs.m4: Likewise
83989
83990 2000-10-29  Jim Meyering  <meyering@lucent.com>
83991
83992         * lib/xstat.in: Fix grammar in comment.
83993
83994 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
83995
83996         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
83997         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
83998         doesn't define __restrict_arr.
83999
84000 2000-10-28  Jim Meyering  <meyering@lucent.com>
84001
84002         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
84003         (jm_PREREQ_MEMCHR): New function.
84004
84005 2000-10-28  Jim Meyering  <meyering@lucent.com>
84006
84007         * lib/memchr.c: Update from libc.
84008         Adjust for portability:
84009         [HAVE_STDLIB_H]: Include stdlib.h.
84010         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
84011         Undef __memchr, too.
84012         [!weak_alias]: Define __memchr to memchr.
84013
84014         * lib/regex.c: Update from libc.
84015         * lib/regex.h: Likewise.
84016         * lib/getopt1.c: Likewise.
84017         * lib/memcmp.c: Likewise.
84018
84019         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
84020         Avoid using fseek, when possible -- it's broken by design.
84021         Patch by Ulrich Drepper.
84022
84023 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
84024
84025         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
84026         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
84027         Giving in to popular pressure to shut up the compiler with casts.
84028
84029 2000-10-26  Jim Meyering  <meyering@lucent.com>
84030
84031         * lib/strftime.c: Update from libc.
84032
84033 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
84034
84035         * regex.c: More `unsigned char' -> `re_char' changes.
84036         Also change several `int' into `re_wchar_t'.
84037         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
84038         (PUSH_FAILURE_POINTER): Don't cast any more.
84039         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
84040         We want GCC to complain, since this piece of code makes
84041         re_match non-reentrant, which *should* be fixed.
84042         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
84043         (EXTEND_BUFFER): Use RETALLOC.
84044         (SET_LIST_BIT): Don't cast.
84045         (re_wchar_t): New type.
84046         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
84047         that those two functions will always properly return.
84048         (IMMEDIATE_QUIT_CHECK): Cast to void.
84049         (analyse_first): Use recursion rather than an explicit stack.
84050         (re_compile_fastmap): Can't fail anymore.
84051         (re_search_2): Don't check re_compile_fastmap for failure.
84052         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
84053         Now also sets the new value (passed in a new argument).
84054         (re_match_2_internal): Use it.
84055         Also, use a new var `reg' of type size_t when looping through regs
84056         rather than reuse the inappropriate `mcnt'.
84057
84058 2000-10-25  Jim Meyering  <meyering@lucent.com>
84059
84060         * lib/obstack.c: Update from libc.
84061
84062 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
84063
84064         * regex.c (regex_compile): Change the way of handling a range from
84065         a char less than 256 to a char not less than 256.
84066
84067 2000-10-24  Andrew Innes  <andrewi@gnu.org>
84068
84069         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
84070         NT-Emacs only.
84071         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
84072         so that re_search functions only quit when callers expect them to.
84073
84074 2000-10-23  Jim Meyering  <meyering@lucent.com>
84075
84076         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
84077         wrong.  That set_locale call must not have any side effects.
84078         From Paul Eggert.
84079
84080 2000-10-22  Jim Meyering  <meyering@lucent.com>
84081
84082         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
84083         [CYCLIC]: Remove now-unused definition.
84084
84085         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
84086         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
84087         Suggestion from Ulrich Drepper.
84088
84089 2000-10-21  Jim Meyering  <meyering@lucent.com>
84090
84091         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
84092         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
84093         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
84094
84095 2000-10-21  Jim Meyering  <meyering@lucent.com>
84096
84097         * lib/dirname.c (memrchr): Declare if necessary.
84098         (dir_name): Remove the restriction that there be no
84099         trailing slashes.  Now, this code skips past them, effectively
84100         ignoring them.
84101         [TEST_DIRNAME] (main): New unit tests.
84102
84103         * lib/memrchr.c: New file from GNU libc.
84104         Undef __memrchr, too.
84105         [!weak_alias]: Define __memrchr to memrchr.
84106         Guard weak_alias use with `#ifdef weak_alias'.
84107
84108 2000-10-21  Jim Meyering  <meyering@lucent.com>
84109
84110         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
84111         (dir_name): Use dir_name_r.
84112         * lib/dirname.h (dir_name_r): Declare it.
84113
84114 2000-10-17  Jim Meyering  <meyering@lucent.com>
84115
84116         * lib/quote.h (PARAMS): Define and use.
84117         Reported by Akim Demaille.
84118
84119         * lib/getopt.c: Update from libc.
84120
84121 2000-10-16  Jim Meyering  <meyering@lucent.com>
84122
84123         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
84124         setlocale.
84125         From Jan Fedak.
84126
84127 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
84128
84129         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
84130
84131 2000-09-25  Jim Meyering  <meyering@lucent.com>
84132
84133         * lib/md5.h (rol): Define (from GnuPG).
84134
84135         * lib/sha.c: Give credit (GnuPG) where due.
84136         (M): Use rol rather than open-coding it.
84137         Add a FIXME comment.
84138
84139 2000-09-21  Jim Meyering  <meyering@lucent.com>
84140
84141         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
84142         Reported by Michael Stone.
84143
84144 2000-09-20  Jim Meyering  <meyering@lucent.com>
84145
84146         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
84147         (noinst_HEADERS): Add sha.h.
84148         Based on code from Scott G. Miller and from GnuPG.
84149
84150 2000-09-18  Jim Meyering  <meyering@lucent.com>
84151
84152         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
84153         LIBS. Otherwise, everyone ends up linking with -lelf for some
84154         configurations.
84155         Reported by Mike Stone.
84156
84157 2000-09-15  Jim Meyering  <meyering@lucent.com>
84158
84159         * lib/regex.c: Update from libc.
84160
84161 2000-09-10  Jim Meyering  <meyering@lucent.com>
84162
84163         * lib/getopt.c (_getopt_internal): Update from glibc.
84164
84165 2000-09-09  Jim Meyering  <meyering@lucent.com>
84166
84167         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
84168         think it should be used as a general replacement for isascii.
84169         * lib/fnmatch.c: Likewise.
84170         * lib/mbswidth.c: Likewise
84171         * lib/regex.c: Likewise.
84172
84173         Don't use atoi.
84174         * lib/userspec.c: Include sys/param.h and limits.h.
84175         Include xstrtol.h.
84176         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
84177         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
84178         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
84179         UID, GID.  Check range.
84180
84181 2000-09-06  Jim Meyering  <meyering@lucent.com>
84182
84183         * lib/getopt.c (_getopt_internal): Update from glibc.
84184
84185 2000-08-30  Jim Meyering  <meyering@lucent.com>
84186
84187         * lib/strftime.c: Merge in changes from GNU libc.
84188
84189 2000-08-26  Jim Meyering  <meyering@lucent.com>
84190
84191         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
84192         * m4/fpending.m4: New file.
84193
84194 2000-08-26  Jim Meyering  <meyering@lucent.com>
84195
84196         * lib/closeout.c: Include "__fpending.h".
84197         (close_stdout_status): Return right away if there's nothing to flush.
84198
84199         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
84200         * lib/__fpending.c: New file.
84201         * lib/__fpending.h: New file.
84202
84203 2000-08-20  Jim Meyering  <meyering@lucent.com>
84204
84205         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
84206         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
84207         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
84208
84209 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
84210
84211         Improve fileutils installation on systems where running
84212         programs (like install) can't be unlinked.
84213         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
84214         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
84215
84216 2000-08-07  Paul Eggert  <eggert@twinsun.com>
84217
84218         Standardize on "memory exhausted" instead of "Memory exhausted"
84219         or "virtual memory exhausted".
84220         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
84221         "virtual memory exhausted".
84222         * lib/same.c (same_name): Invoke xalloc_die instead of printing
84223         our own message.
84224         * lib/userspec.c (parse_user_spec): Likewise.
84225         * lib/bumpalloc.h: comment fix
84226         * lib/same.c, userspec.c: Include xalloc.h.
84227
84228         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
84229         not char *const and pointing to a constant array.
84230         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
84231         (xrealloc): Comment fix.
84232
84233         * lib/userspec.c (parse_user_spec):
84234         Don't translate a message until just before returning,
84235         to avoid unnecessary translation.
84236
84237 2000-08-07  Jim Meyering  <meyering@lucent.com>
84238
84239         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
84240         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
84241         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
84242         getgroups.c, gethostname.c, getopt.h, group-member.c,
84243         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
84244         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
84245         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
84246         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
84247         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
84248         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
84249         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
84250         yesno.c: Back out Copyright date changes for each file with no change
84251         this year.  This eases coordination with other programs using the same
84252         source code modules.  From Paul Eggert.
84253
84254 2000-08-06  Paul Eggert  <eggert@twinsun.com>
84255
84256         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
84257         not char, for compatibility with glibc 2.1.3 strftime.c.
84258
84259 2000-08-03  Greg McGary  <greg@mcgary.org>
84260
84261         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
84262         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
84263         (EXTEND_BUFFER): Use them.
84264
84265 2000-08-01  Jim Meyering  <meyering@lucent.com>
84266
84267         * lib/dirname.c (ISSLASH): Define.
84268         (BACKSLASH_IS_PATH_SEPARATOR): Define.
84269         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
84270         both `\' and `/' may be use as path separators.
84271         Based on a patch from Prashant TR.
84272
84273 2000-07-31  Paul Eggert  <eggert@twinsun.com>
84274
84275         * lib/quotearg.c (quotearg_n_options): Don't make the initial
84276         slot vector a constant, since it might get modified.
84277
84278 2000-07-31  Jim Meyering  <meyering@lucent.com>
84279
84280         * lib/xmalloc.c: Use `virtual memory exhausted', not
84281         `Memory exhausted'.
84282         * lib/obstack.c (print_and_abort): Likewise.
84283
84284 2000-07-30  Paul Eggert  <eggert@twinsun.com>
84285
84286         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
84287         buffer, so that the caller can always quote one small
84288         component of a "memory exhausted" message in slot 0.
84289         From a suggestion by Jim Meyering.
84290
84291 2000-07-30  Jim Meyering  <meyering@lucent.com>
84292
84293         * lib/makepath.c (make_path): Quote the other instance, too.
84294
84295         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
84296         (STATIC_BUF_SIZE): Define.
84297         (quotearg_n_options): Use only statically allocated storage when
84298         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
84299         than STATIC_BUF_SIZE.
84300
84301 2000-07-29  Jim Meyering  <meyering@lucent.com>
84302
84303         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
84304         * lib/dirname.c (dir_name): Likewise.
84305
84306         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
84307         `/'.
84308
84309         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
84310         (dir_name): Assert that there are no trailing slashes.
84311
84312 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
84313
84314         * lib/mbswidth.h (mbswidth): Add a flags argument.
84315         (mbswidth): New declaration.
84316         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
84317         * lib/mbswidth.c (mbswidth): Add a flags argument.
84318         (mbsnwidth): New function.
84319
84320 2000-07-24  Jim Meyering  <meyering@lucent.com>
84321
84322         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
84323
84324 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84325
84326         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
84327
84328 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84329
84330         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
84331         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
84332         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
84333         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
84334         invoke multibyte primitives.
84335
84336 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84337
84338         * lib/quotearg.c:
84339         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
84340         so that mbstate_t is always defined.
84341
84342         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
84343         be 1 in at least one GCC installation, and this configuration
84344         error is likely to be common.  Ignoring MB_LEN_MAX hurts
84345         performance on hosts that have mbrtowc but have only unibyte
84346         locales, but I assume these hosts are rare.
84347
84348 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84349
84350         * lib/mbswidth.c (_XOPEN_SOURCE):
84351         Don't define; this causes problems on Solaris 7.
84352         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
84353
84354 2000-07-23  Jim Meyering  <meyering@lucent.com>
84355
84356         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
84357         too: getgrgid, getpwuid, getuid.
84358
84359 2000-07-23  Jim Meyering  <meyering@lucent.com>
84360
84361         * lib/basename.c (base_name): Add an assertion.
84362
84363 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
84364
84365         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
84366         shadow its mbsinit function.
84367
84368 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
84369
84370         * lib/mbswidth.h: New file.
84371         * lib/mbswidth.c: New file.
84372         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
84373         (noinst_HEADERS): Add mbswidth.h.
84374
84375 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
84376
84377         * lib/config.charset: Add support for FreeBSD. Improve support for
84378         HP-UX and IRIX 6.
84379
84380 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
84381
84382         * m4/mbswidth.m4: New file.
84383         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
84384
84385 2000-07-15  Jim Meyering  <meyering@lucent.com>
84386
84387         * lib/makepath.c: Include quote.h.
84388         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
84389         corresponding argument in a `quote (...)' call.
84390         Give better diagnostics.
84391
84392         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
84393         (noinst_HEADERS): Add quote.h.
84394
84395         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
84396         from tar's src/misc.c.
84397         * lib/quote.h: New file.  Prototypes for same.
84398
84399 2000-07-14  Paul Eggert  <eggert@twinsun.com>
84400
84401         From a suggestion by Bruno Haible.
84402         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
84403         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
84404         to decide whether to define the BeOS workaround macro;
84405         this adjusts to the change to AC_MBSTATE_T.
84406
84407 2000-07-14  Jim Meyering  <meyering@lucent.com>
84408
84409         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
84410         jm_AC_TYPE_UINTMAX_T.
84411
84412 2000-07-13  Paul Eggert  <eggert@twinsun.com>
84413
84414         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
84415
84416         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
84417         quotearg_buffer_restyled): Add support for
84418         clocale_quoting_style.  Undo previous change to
84419         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
84420         and "{RIGHT QUOTATION MARK}" msgids.
84421
84422 2000-07-10  Paul Eggert  <eggert@twinsun.com>
84423
84424         From a suggestion by Bruno Haible.
84425         * m4/mbstate_t.m4 (AC_MBSTATE_T):
84426         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
84427         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
84428         and mbstate_t, to a single-part test that simply defines mbstate_t.
84429         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
84430         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
84431
84432 2000-07-10  Jim Meyering  <meyering@lucent.com>
84433
84434         * m4/strerror_r.m4: Mirror the correction made in autoconf.
84435
84436         * m4/gnu-source.m4: Output to confdefs.h directly.
84437         Suggestion from Akim Demaille.
84438
84439 2000-07-09  Paul Eggert  <eggert@twinsun.com>
84440
84441         The old behavior of quoting `like this' doesn't look good with
84442         newer, ISO-style fonts.  See:
84443         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
84444
84445         Instead, quote "like this" by default.  Let the translator
84446         tailor the locale-specific quoting behavior by providing
84447         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
84448
84449         * lib/quotearg.c (N_): New macro.
84450         (gettext_default): New function.
84451         (quotearg_buffer_restyled): Use
84452         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
84453         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
84454
84455 2000-07-09  Jim Meyering  <meyering@lucent.com>
84456
84457         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
84458         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
84459
84460         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
84461         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
84462
84463 2000-07-09  Jim Meyering  <meyering@lucent.com>
84464
84465         * lib/Most files: Update copyright dates to include 2000.
84466
84467 2000-07-08  Jim Meyering  <meyering@lucent.com>
84468
84469         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
84470         if not defined.
84471         (xgethostname): Remove now-unnecessary #ifdef.
84472         Move declaration of `err' into loop where it's used.
84473
84474 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84475         and Bruno Haible  <haible@clisp.cons.org>
84476
84477         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
84478         only if the test for an object-type mbstate_t fails.  This
84479         prevents us from mistakenly reporting that mbstate_t is a
84480         system object type after we "#define mbstate_t int" to work
84481         around its lack.
84482
84483 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84484         and Bruno Haible  <haible@clisp.cons.org>
84485
84486         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
84487
84488 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84489
84490         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
84491         to strerror_r.
84492         Include <ctype.h> for use of isalpha.
84493
84494 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84495
84496         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
84497         by allocating a larger buffer. Test the gethostname return value for
84498         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
84499         returns an error and ENAMETOOLONG isn't defined.
84500
84501 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84502
84503         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
84504         dimension.
84505
84506 2000-07-04  Jim Meyering  <meyering@lucent.com>
84507
84508         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
84509         of the deprecated AC_CHECKING.
84510
84511 2000-07-04  Jim Meyering  <meyering@lucent.com>
84512
84513         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
84514         Reported by Bruno Haible.
84515
84516 2000-07-04  Jim Meyering  <meyering@lucent.com>
84517
84518         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
84519         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
84520         lacks mbrtowc.
84521
84522 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84523
84524         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
84525         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
84526
84527 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84528         and Bruno Haible  <haible@clisp.cons.org>
84529
84530         * lib/quotearg.c (mbrtowc):
84531         Assign to *pwc, and return 1 only if result is nonzero.
84532         (iswprint): Use ISPRINT when substituting our own mbrtowc.
84533
84534 2000-07-03  Jim Meyering  <meyering@lucent.com>
84535
84536         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
84537
84538 2000-07-03  Jim Meyering  <meyering@lucent.com>
84539
84540         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
84541         This is necessary to get a definition of e.g., UTMP_FILE on
84542         HP-UX 10.20.
84543         From Bob Proulx.
84544
84545 2000-07-02  Jim Meyering  <meyering@lucent.com>
84546
84547         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
84548
84549         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
84550         AC_LIBOBJ(function_name).
84551         * m4/chown.m4: Likewise.
84552         * m4/fnmatch.m4: Likewise.
84553         * m4/ftruncate.m4: Likewise.
84554         * m4/getgroups.m4: Likewise.
84555         * m4/getline.m4: Likewise.
84556         * m4/group-member.m4: Likewise.
84557         * m4/jm-macros.m4: Likewise.
84558         * m4/lstat.m4: Likewise.
84559         * m4/malloc.m4: Likewise.
84560         * m4/memcmp.m4: Likewise.
84561         * m4/nanosleep.m4: Likewise.
84562         * m4/putenv.m4: Likewise.
84563         * m4/realloc.m4: Likewise.
84564         * m4/regex.m4: Likewise.
84565         * m4/stat.m4: Likewise.
84566         * m4/strftime.m4: Likewise.
84567
84568 2000-07-02  Jim Meyering  <meyering@lucent.com>
84569
84570         * lib/quotearg.c (mbstate_t): Don't define here.
84571
84572 2000-07-02  Jim Meyering  <meyering@lucent.com>
84573
84574         * lib/nanosleep.c (SIGCONT): Define if not already defined.
84575
84576 2000-07-01  Jim Meyering  <meyering@lucent.com>
84577
84578         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
84579
84580 2000-07-01  Jim Meyering  <meyering@lucent.com>
84581
84582         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
84583         problem.
84584
84585 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
84586
84587         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
84588         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
84589
84590 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
84591
84592         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
84593         per change in ../m4/ls-mntd-fs.m4.
84594         (read_filesystem_list): Ignore symbolic links.
84595
84596 2000-06-29  Jim Meyering  <meyering@lucent.com>
84597
84598         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
84599         for declaration of strcmp.
84600
84601         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
84602
84603         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
84604         Avoid warning by casting result to `char *' to remove `const'.
84605
84606 2000-06-28  Jim Meyering  <meyering@lucent.com>
84607
84608         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
84609         included by quotearg.c, for which we perform this test.  From
84610         Bruno Haible.
84611
84612 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
84613
84614         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
84615         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
84616         <utmpx.h> exists, put readutmp.o into LIBOBJS.
84617
84618 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
84619
84620         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
84621
84622 2000-06-26  Paul Eggert  <eggert@twinsun.com>
84623
84624         savedir now sets errno on failure and invokes xmalloc to get memory.
84625         Fix a couple of other minor bugs while we're at it.
84626
84627         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
84628         (NAMLEN): Remove macro.
84629         (malloc, realloc): Remove decls.
84630         (stpcpy): Likewise.
84631         ("xalloc.h"): Include.
84632         (NAME_SIZE_DEFAULT): New macro.
84633         (savedir): Use xmalloc / xrealloc to allocate memory.
84634         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
84635         Skip "" directory entries.
84636         Use strlen to calculate directory entry length, since the old method
84637         is rarely used these days and isn't worth supporting.
84638         Don't use a pointer after freeing it.
84639         Check for integer overflow when calculating allocation size.
84640         Use memcpy to copy entries, instead of stpcpy.
84641         Set errno properly when returning NULL.
84642         Check for readdir error.
84643
84644 2000-06-26  Jim Meyering  <meyering@lucent.com>
84645
84646         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
84647
84648 2000-06-25  Jim Meyering  <meyering@lucent.com>
84649
84650         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
84651         Linux header bug when _XOPEN_SOURCE is defined to 500.
84652
84653 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
84654
84655         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
84656         deficiency.
84657
84658 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
84659
84660         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
84661         Include xalloc.h.
84662         Don't include <stdlib.h>.  Don't declare malloc, realloc.
84663
84664 2000-06-24  Jim Meyering  <meyering@lucent.com>
84665
84666         * m4/strerror_r.m4: Revive this file -- to try out an experimental
84667         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
84668         for which strerror does return char*, but which lacks a conveniently
84669         accessible declaration of the function.  If the compile-test says
84670         strerror_r doesn't work, then resort to a `run'-test that works on
84671         BeOS and segfaults on DEC Unix.
84672
84673 2000-06-24  Jim Meyering  <meyering@lucent.com>
84674
84675         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
84676
84677 2000-06-23  Paul Eggert  <eggert@twinsun.com>
84678
84679         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
84680         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
84681
84682 2000-06-23  Paul Eggert  <eggert@twinsun.com>
84683
84684         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
84685         (mbrtowc, mbstate_t): Define substitutes if
84686         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
84687         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
84688         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
84689
84690 2000-06-23  Jim Meyering  <meyering@lucent.com>
84691
84692         * m4/afs.m4: Add missing AC_MSG_RESULT.
84693         Reported by Bruno Haible.
84694
84695         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
84696         Suggestion from Bruno Haible.
84697
84698 2000-06-23  Jim Meyering  <meyering@lucent.com>
84699
84700         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
84701
84702 2000-06-21  Jim Meyering  <meyering@lucent.com>
84703
84704         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
84705
84706 2000-06-21  Jim Meyering  <meyering@lucent.com>
84707
84708         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
84709         (noinst_HEADERS): Add getstr.h.
84710
84711         * lib/getline.c (getstr): Move into a separate file.
84712         * lib/getstr.c (getstr): New file, extracted from getline.c, with
84713         the following changes: new parameter, delim2; both delim[12]
84714         parameters have type `int', not `char'.  The latter would lose
84715         with 8-bit delimiters.
84716         * lib/getstr.h: New file.
84717
84718 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84719
84720         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
84721         than 1024, return a memory chunk of least possible size, instead
84722         of size PATH_MAX + 2. In the loop, increment the size proportionally.
84723         Use free/xmalloc instead of xrealloc to avoid copying for very long
84724         paths.
84725
84726 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84727
84728         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
84729         the empty string.
84730
84731 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84732
84733         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
84734         address, not strdup.  Include <stdlib.h> and don't declare free().
84735
84736 2000-06-19  Jim Meyering  <meyering@lucent.com>
84737
84738         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
84739
84740 2000-06-18  Jim Meyering  <meyering@lucent.com>
84741
84742         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
84743
84744         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
84745         `checking whether...' message to be consistent with that of the
84746         lstat test.
84747
84748 2000-06-18  Jim Meyering  <meyering@lucent.com>
84749
84750         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
84751         Besides, these days every porting target provides a mkdir function.
84752
84753         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
84754         needed. (this snippet comes from src/system.h).
84755
84756 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
84757
84758         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
84759
84760 2000-06-15  Paul Eggert  <eggert@twinsun.com>
84761
84762         * lib/human.c (adjust_value): New function.
84763         (human_readable_inexact): Apply rounding style even when
84764         printing approximate values.
84765
84766 2000-06-14  Paul Eggert  <eggert@twinsun.com>
84767
84768         * lib/human.c (human_readable_inexact): Allow an input block
84769         size that is not a multiple of the output block size, and vice versa.
84770         Reported by Piergiorgio Sartor.
84771
84772 2000-06-14  Paul Eggert  <eggert@twinsun.com>
84773
84774         * lib/getdate.y (get_date): Apply relative times after time
84775         zone indicator, not before.  Reported by Todd A. Jacobs.
84776
84777 2000-06-13  Jim Meyering  <meyering@lucent.com>
84778
84779         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
84780
84781         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
84782
84783 2000-06-12  Paul Eggert  <eggert@twinsun.com>
84784
84785         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
84786
84787 2000-06-12  Jim Meyering  <meyering@lucent.com>
84788
84789         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
84790         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
84791         optional argument.
84792         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
84793         the optional argument, `lib'.
84794
84795 2000-06-08  Jim Meyering  <meyering@lucent.com>
84796
84797         * m4/largefile.m4: Remove file (now that it's part of autoconf).
84798
84799 2000-06-04  Paul Eggert  <eggert@twinsun.com>
84800
84801         Rewrite largefile configuration so that we don't need to run
84802         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
84803         AC_CANONICAL_HOST in configure.in -- jmm]
84804
84805         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
84806         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
84807         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
84808         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
84809         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
84810         All uses changed.
84811         Instead of inspecting the output of getconf, try to compile the
84812         test program without and with the macro definition.
84813         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
84814         for getconf.  Instead, check for the needed flags by compiling
84815         test programs.
84816
84817 2000-06-04  Paul Eggert  <eggert@twinsun.com>
84818
84819         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
84820
84821 2000-06-04  Jim Meyering  <meyering@lucent.com>
84822
84823         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
84824         SunOS 4.1.4 for which gid_t is an unsigned type.
84825
84826 2000-06-03  Jim Meyering  <meyering@lucent.com>
84827
84828         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
84829         now that autoconf requires that.
84830
84831         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
84832         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
84833         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
84834
84835 2000-06-03  Jim Meyering  <meyering@lucent.com>
84836
84837         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
84838
84839 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
84840
84841         * m4/glibc21.m4: New file.
84842         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
84843
84844 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
84845
84846         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
84847         newer, don't install charset.alias.
84848         * lib/config.charset: Change the Linux/glibc rules so they become empty
84849         on glibc-2.1 or newer.
84850
84851 2000-06-02  Jim Meyering  <meyering@lucent.com>
84852
84853         * lib/mountlist.c: Back out last change.  Instead, do this...
84854         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
84855         me_dummy member using the same `ignore'-testing code.
84856         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
84857         fs_type strings.
84858         From Mark D. Roth.
84859
84860 2000-05-29  Jim Meyering  <meyering@lucent.com>
84861
84862         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
84863         mounts with the `ignore' attribute.  Based on a patch from
84864         Mark D. Roth.
84865
84866 2000-05-28  Jim Meyering  <meyering@lucent.com>
84867
84868         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
84869         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84870         * m4/stat.m4: Likewise.
84871         * m4/lstat.m4: Likewise.
84872         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
84873
84874         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
84875         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
84876
84877 2000-05-26  Jim Meyering  <meyering@lucent.com>
84878
84879         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
84880
84881 2000-05-24  Jim Meyering  <meyering@lucent.com>
84882
84883         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
84884         autoconf requires that.
84885         * m4/lib-check.m4: Likewise.
84886         * m4/jm-macros.m4: Likewise.
84887         * m4/strftime.m4: Likewise.
84888
84889         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
84890         AC_CHECK_DECLS, now that autoconf requires that.
84891
84892 2000-05-22  Jim Meyering  <meyering@lucent.com>
84893
84894         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84895         * m4/lstat.m4: Likewise.
84896
84897 2000-05-22  Jim Meyering  <meyering@lucent.com>
84898
84899         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
84900
84901 2000-05-20  Jim Meyering  <meyering@lucent.com>
84902
84903         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
84904         (jm_PREREQ): Use it.
84905
84906 2000-05-18  Jim Meyering  <meyering@lucent.com>
84907
84908         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
84909         back, too, since it may have been modified by allocate_entry.
84910         (hash_delete): Rewrite to use neither the assignment operator
84911         nor the comma operator in an if-expression.
84912
84913 2000-05-15  Paul Eggert  <eggert@twinsun.com>
84914
84915         * lib/closeout.c:
84916         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
84917         Remove; no longer needed.
84918         "quotearg.h": Add include.
84919         (file_name): Do not bother to explicitly initialize to NULL; it's less
84920         efficient on some hosts.
84921         (close_stdout_status): Remove test as to whether stdout was already
84922         closed; it breaks for the case "echo x | sort >&-".
84923         Quote file name colons.
84924         Do not assume that _("write error") lacks format strings.
84925
84926 2000-05-15  Jim Meyering  <meyering@lucent.com>
84927
84928         * lib/version-etc.c (version_etc_copyright): Update the copyright
84929         string used in all --version output.
84930
84931 2000-05-14  Jim Meyering  <meyering@lucent.com>
84932
84933         * lib/closeout.c (close_stdout_set_file_name): New function.
84934         (close_stdout_status): Use new file-scoped global.
84935         Return right away if fstat says the stdout file descriptor is invalid.
84936         * lib/closeout.h (close_stdout_set_file_name): Declare.
84937
84938 2000-05-10  Jim Meyering  <meyering@lucent.com>
84939
84940         * lib/closeout.c [default_exit_status]: New file-scoped variable.
84941         (close_stdout_set_status): New function.
84942         * lib/closeout.h (close_stdout_set_status): Declare.
84943
84944 2000-05-09  Jim Meyering  <meyering@lucent.com>
84945
84946         * m4/gettext.m4: Rename this...
84947         * m4/libintl.m4: ...to this.
84948
84949 2000-05-08  Jim Meyering  <meyering@lucent.com>
84950
84951         * lib/long-options.c: Don't include closeout.h.
84952         (parse_long_options): Don't call close_stdout for --version.
84953
84954 2000-05-06  Paul Eggert  <eggert@twinsun.com>
84955
84956         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
84957         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
84958         2.1.3 bug.  This avoids a clash when files like regex.c define
84959         _GNU_SOURCE.
84960
84961 2000-05-06  Jim Meyering  <meyering@lucent.com>
84962
84963         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
84964         (AC_REPLACE_FUNCS): Add strnlen.
84965
84966         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
84967         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
84968
84969         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
84970         AC_SEARCH_LIBS call for nanosleep.
84971         (LIB_NANOSLEEP): Set and AC_SUBST.
84972
84973 2000-05-06  Jim Meyering  <meyering@lucent.com>
84974
84975         * lib/strnlen.c: Undefine __strnlen and strnlen.
84976         [!weak_alias]: Define __strnlen to strnlen.
84977
84978         * lib/atexit.c: New file, from libiberty.
84979
84980 2000-05-06  Jim Meyering  <meyering@lucent.com>
84981
84982         * lib/closeout.c (close_stdout_status): Also check for errors on the
84983         stderr stream.
84984
84985 2000-05-05  Jim Meyering  <meyering@lucent.com>
84986
84987         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
84988         AC_SEARCH_LIBS call for clock_gettime.
84989         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
84990
84991         * m4/search-libs.m4: Update from autoconf.
84992
84993         su doesn't work on Solaris 2.6.
84994         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
84995         <shadow.h>.  Reported by Dragos Harabor.
84996
84997 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
84998
84999         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
85000         memcpy instead of xmalloc, xrealloc, path_concat.
85001         (locale_charset): Treat empty environment variables as absent.
85002         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
85003
85004 2000-05-04  Jim Meyering  <meyering@lucent.com>
85005
85006         * lib/getopt.c: Update from glibc.
85007         * lib/obstack.c: Likewise.
85008         * lib/obstack.h: Likewise.
85009         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
85010         file
85011
85012         * lib/regex.h: Likewise.
85013         * lib/strndup.c: Likewise.
85014         * lib/strnlen.c: New file, from glibc.
85015
85016 2000-05-03  Jim Meyering  <meyering@lucent.com>
85017
85018         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
85019
85020 2000-05-02  Paul Eggert  <eggert@twinsun.com>
85021
85022         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
85023         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
85024         compile-time test, rather than inspecting host and OS, to
85025         decide whether to define _LARGEFILE_SOURCE.
85026
85027 2000-05-01  Jim Meyering  <meyering@lucent.com>
85028
85029         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
85030
85031         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
85032         Based on a patch from Bruno Haible.
85033
85034 2000-05-01  Jim Meyering  <meyering@lucent.com>
85035
85036         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
85037
85038 2000-04-29  Jim Meyering  <meyering@lucent.com>
85039
85040         * lib/path-concat.c: Declare strdup only if it's not defined.
85041         * lib/canon-host.c: Likewise.
85042
85043 2000-04-28  Jim Meyering  <meyering@lucent.com>
85044
85045         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
85046         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
85047         is included first, then limits.h is included by locale.h by libintl.h.
85048         From John David Anglin.
85049
85050 2000-04-25  Jim Meyering  <meyering@lucent.com>
85051
85052         * lib/makepath.c (S_IRWXUGO): Define.
85053         (make_path): Always perform explicit chmod if MODE specifies any
85054         of the `special' permission bits.  Prompted by a bug report against
85055         install from Mate Wierdl and Joost van Baal.
85056
85057 2000-04-18  Jim Meyering  <meyering@lucent.com>
85058
85059         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
85060         (jm_PREREQ): Use it.
85061
85062 2000-04-18  Jim Meyering  <meyering@lucent.com>
85063
85064         * lib/README: New file.
85065
85066         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
85067         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
85068
85069 2000-04-17  Jim Meyering  <meyering@lucent.com>
85070
85071         Get it right :-)
85072         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
85073         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
85074         Suggestion from Akim Demaille.
85075
85076 2000-04-17  Jim Meyering  <meyering@lucent.com>
85077
85078         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
85079         the definition of it to rpl_strftime also defined-away the system's
85080         declaration.
85081
85082 2000-04-15  Jim Meyering  <meyering@lucent.com>
85083
85084         Use `C' to denote so-called `contiguous' files, the same way
85085         that tar does.
85086         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
85087         (ftypelet): Use S_ISCTG.
85088         From Michael Deutschmann.
85089
85090 2000-04-14  Jim Meyering  <meyering@lucent.com>
85091
85092         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
85093         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
85094         clobbered.
85095
85096 2000-04-14  Jim Meyering  <meyering@lucent.com>
85097
85098         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
85099
85100 2000-04-13  Jim Meyering  <meyering@lucent.com>
85101
85102         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
85103         AH_VERBATIM to insert required #ifndef into config.h.in.
85104         Suggestion from Akim Demaille.
85105
85106 2000-04-12  Jim Meyering  <meyering@lucent.com>
85107
85108         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
85109         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
85110         Christian Krackowizer.
85111
85112         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
85113         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
85114         (AC_SYS_LARGEFILE): Require.
85115         (AM_C_PROTOTYPES): Require.
85116
85117 2000-04-08  Jim Meyering  <meyering@lucent.com>
85118
85119         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
85120         names don't conflict.  Reported by Eli Zaretskii.
85121
85122 2000-04-07  Jim Meyering  <meyering@lucent.com>
85123
85124         * lib/putenv.c: Move inclusion of errno.h so it follows that of
85125         sys/types.h, to work around system header problems on AIX 3.2.5.
85126         From Bruno Haible.
85127
85128 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
85129
85130         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
85131         bug.  Deal with the different error behavior of Irix iconv.
85132
85133 2000-04-05  Paul Eggert  <eggert@twinsun.com>
85134
85135         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
85136         IRIX if the installer said otherwise.
85137
85138 2000-04-05  Jim Meyering  <meyering@lucent.com>
85139
85140         Portability tweaks required for ultrix4.3.
85141         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
85142         (jm_CHECK_DECLS): Add getutent to the list of functions.
85143         (_jm_DECL_HEADERS): Add utmpx.h.
85144         From John David Anglin.
85145
85146         * m4/strftime.m4: Back out the 2000-04-02 change.
85147         Instead of that change, simply undefine putenv in the test program.
85148
85149 2000-04-05  Jim Meyering  <meyering@lucent.com>
85150
85151         Portability tweaks required for ultrix4.3.
85152         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
85153         getutent.
85154         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
85155         * lib/canon-host.c: Declare strdup.
85156         * lib/path-concat.c: Likewise.
85157         From John David Anglin.
85158
85159 2000-04-04  Jim Meyering  <meyering@lucent.com>
85160
85161         Be more DOS 8.3-friendly.
85162         * lib/ref-add.sin: Renamed from ref-add.sed.in.
85163         * lib/ref-del.sin: Renamed from ref-del.sed.in.
85164         * lib/Makefile.am: Reflect renaming.
85165         Reported by Eli Zaretskii.
85166
85167         Use a temporary file name that won't clash with `charset.alias'
85168         in the DOS 8.3 name space.
85169         * lib/Makefile.am (charset_tmp): Define.
85170         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
85171         (uninstall-local): Likewise.
85172         Reported by Eli Zaretskii.
85173
85174 2000-04-03  Jim Meyering  <meyering@lucent.com>
85175
85176         * m4/gettext.m4: Fix typo in comment.
85177
85178         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
85179         textutils/configure.in).  Suggestion from Paul Eggert.
85180         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
85181
85182 2000-04-02  Paul Eggert  <eggert@twinsun.com>
85183
85184         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
85185         variable in the shell rather than using putenv, which isn't
85186         portable.  This avoids the configure-time inter-test dependency
85187         on the potentially-renamed putenv function.
85188
85189 2000-03-30  Paul Eggert  <eggert@twinsun.com>
85190
85191         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
85192         before checking struct stat.st_blksize, so that
85193         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
85194
85195 2000-03-29  Paul Eggert  <eggert@twinsun.com>
85196
85197         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
85198         since strftime.c uses HAVE_STRFTIME to decide whether to use
85199         the underlying strftime.
85200
85201 2000-03-29  Paul Eggert  <eggert@twinsun.com>
85202
85203         * lib/time/strftime.c (my_strftime): Make sure we call the system
85204         strftime, not ourselves, when invoking the underlying strftime.
85205
85206 2000-03-24  Jim Meyering  <meyering@lucent.com>
85207
85208         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
85209         (charset_alias): Define.
85210         (install-exec-local): Factor out common code.
85211         (uninstall-local): Split lines longer than 80.
85212         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
85213         (SUFFIXES): Define.
85214         (.sed.in.sed): New rule.  Don't redirect directly to $@.
85215         (CLEANFILES): Add ref-add.sed and ref-del.sed.
85216
85217 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
85218
85219         * lib/config.charset: Output a line containing "Packages using this
85220         file".
85221         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
85222         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
85223         ref-del.sed): New rules.
85224
85225 2000-03-17  Jim Meyering  <meyering@lucent.com>
85226
85227         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
85228         Otherwise, include <strings.h>
85229
85230 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
85231
85232         * lib/unicodeio.c (utf8_wctomb): New function.
85233         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
85234         format instead of in UCS-4 with platform dependent endianness.
85235
85236 2000-03-10  Jim Meyering  <meyering@lucent.com>
85237
85238         * m4/lib-check.m4: Look for getspnam in -lgen, too.
85239         From Marco Franzen.
85240
85241 2000-03-07  Paul Eggert  <eggert@twinsun.com>
85242
85243         * lib/savedir.c (savedir): Work even if directory size is
85244         negative; this can happen with some screwy NFS configurations.
85245
85246 2000-03-06  Jim Meyering  <meyering@lucent.com>
85247
85248         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
85249         if it's NULL (because we ran out of memory).  From Bruno Haible.
85250
85251 2000-03-05  Jim Meyering  <meyering@lucent.com>
85252
85253         * lib/localcharset.c ("path-concat.h"): Include.
85254         (get_charset_aliases): Use path_concat instead of ANSI string
85255         concatenation.
85256
85257         * lib/unicodeio.h (PARAMS): Define.
85258         Use it to guard prototype.
85259
85260 2000-03-04  Jim Meyering  <meyering@lucent.com>
85261
85262         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
85263         for lib/localcharset.c.
85264
85265 2000-03-04  Jim Meyering  <meyering@lucent.com>
85266
85267         * lib/Makefile.am (install-exec-local): Create $(libdir) before
85268         installing into it.
85269         (uninstall-local): Uncomment this rule so `make distcheck' works
85270         once again.
85271
85272         * lib/unicodeio.c (<errno.h>): Include it.
85273         (errno): Declare if not defined.
85274
85275         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
85276
85277         * lib/config.charset: New version, incorporating remarks from a linux
85278         i18n mailing list.  From Bruno Haible.
85279
85280 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
85281
85282         * m4/codeset.m4: New file.
85283         * m4/iconv.m4: New file.
85284         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
85285
85286 2000-03-03  Jim Meyering  <meyering@lucent.com>
85287
85288         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
85289
85290 2000-03-02  Jim Meyering  <meyering@lucent.com>
85291
85292         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
85293         the messages come out on separate lines.
85294
85295         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
85296         rather than jm_CHECK_DECLARATIONS.
85297         * m4/decl.m4: Remove now-unused file.
85298
85299         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
85300         geteuid.
85301
85302 2000-03-02  Jim Meyering  <meyering@lucent.com>
85303
85304         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
85305
85306 2000-03-01  Jim Meyering  <meyering@lucent.com>
85307
85308         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
85309         * lib/unicodeio.c: Likewise.
85310
85311 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
85312
85313         * lib/config.charset: New file.
85314         * lib/localcharset.c: New file.
85315         * lib/unicodeio.h, lib/unicodeio.c: New files.
85316         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
85317         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
85318         (noinst_HEADERS): Add unicodeio.h.
85319         (all-local, install-exec-local, charset.alias): New targets.
85320
85321 2000-02-28  Paul Eggert  <eggert@twinsun.com>
85322
85323         * lib/quotearg.c (ALERT_CHAR): New macro.
85324         (quotearg_buffer_restyled): Use it.
85325
85326 2000-02-27  Jim Meyering  <meyering@lucent.com>
85327
85328         * m4/check-decl.m4: Add getenv to the list.
85329
85330 2000-02-27  Jim Meyering  <meyering@lucent.com>
85331
85332         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
85333         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
85334
85335         * lib/backupfile.c: Guard inclusion of stdlib.h with
85336         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
85337         Declare malloc if needed.
85338
85339         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
85340         `#ifndef HAVE_DECL..'
85341         now that autoconf always defines the HAVE_DECL_ symbols.
85342         * lib/human.c: Likewise.
85343         * lib/same.c: Likewise.
85344         * lib/strtoumax.c: Likewise.
85345
85346         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
85347         declaration check was not run.
85348         * lib/hash.c: Likewise.
85349         * lib/human.c: Likewise.
85350         * lib/same.c: Likewise.
85351         * lib/strtoumax.c: Likewise.
85352
85353         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
85354         `.', then first look up the entire `.'-containing string as a login
85355         name.
85356
85357 2000-02-23  Jim Meyering  <meyering@lucent.com>
85358
85359         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
85360         in place of my hack.
85361
85362 2000-02-18  Paul Eggert  <eggert@twinsun.com>
85363
85364         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
85365         (textint): New typedef.
85366         (parser_control): Member year changed from int to textint.
85367         All uses changed.
85368         (YYSTYPE): Removed; replaced by %union with int and textint members.
85369         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
85370         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
85371         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
85372         (tSNUMBER, tUNUMBER): Now of type <textintval>.
85373         (date, number, to_year): Use width of number in digits, not its value,
85374         to determine whether it's a 2-digit year, or a 2-digit time.
85375         (yylex): Store number of digits of numeric tokens.
85376         Reported by John Kendall.
85377
85378         (parser_control): Changed from struct parser_control to typedef (for
85379         consistency).  All uses changed.
85380
85381         (tID): Removed; not used.
85382         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
85383
85384 2000-02-14  Paul Eggert  <eggert@twinsun.com>
85385
85386         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
85387         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
85388
85389 2000-02-12  Jim Meyering  <meyering@lucent.com>
85390
85391         * lib/userspec.c (ISDIGIT): Define it.
85392         (isdigit): Remove definition.
85393         (is_number): Use ISDIGIT, not isdigit.
85394         <libintl.h>: Include.
85395         (_ and N_): Define.
85396         (parse_user_spec): Mark translatable strings.
85397
85398 2000-02-10  Jim Meyering  <meyering@lucent.com>
85399
85400         With these changes, nanosleep.[ch] are finally enough like the other
85401         lib/* replacement files to compile on a few more losing systems.
85402
85403         * lib/nanosleep.h: Don't include config.h.
85404         Remove prototype from declaration of nanosleep.
85405         (PARAMS): Remove now-unneeded definition.
85406         * lib/nanosleep.c: #undef nanosleep.
85407         (rpl_nanosleep): Rename from nanosleep.
85408
85409 2000-02-10  Jim Meyering  <meyering@lucent.com>
85410
85411         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
85412         gnu_nanosleep to rpl_nanosleep.
85413
85414 2000-02-09  Jim Meyering  <meyering@lucent.com>
85415
85416         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
85417         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
85418
85419 2000-02-08  Akim Demaille  <akim@epita.fr>
85420
85421         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
85422         `[' and `]' and remove uses of `changequote'.
85423         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
85424         (AC_SYS_LARGEFILE): Likewise.
85425         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
85426         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
85427         of changequote.
85428         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
85429         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
85430         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
85431         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
85432
85433 2000-02-05  Jim Meyering  <meyering@lucent.com>
85434
85435         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
85436         Remove explicit use of AC_HEADER_TIME.  It is required by
85437         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
85438         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
85439         in autoconf whereby the expansion of the latter ended up preceding
85440         the expansion of its prerequisite, AC_HEADER_TIME.
85441         Reported by Volker Borchert.
85442
85443 2000-02-03  Jim Meyering  <meyering@lucent.com>
85444
85445         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
85446
85447 2000-02-03  Jim Meyering  <meyering@lucent.com>
85448
85449         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
85450         rather than with `#if HAVE_UTMPNAME'.
85451
85452 2000-02-02  Jim Meyering  <meyering@lucent.com>
85453
85454         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
85455         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
85456         Reported by Eli Zaretskii.
85457
85458 2000-02-01  Jim Meyering  <meyering@lucent.com>
85459
85460         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
85461
85462 2000-01-31  Jim Meyering  <meyering@lucent.com>
85463
85464         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
85465         functions.  Add the time.h and sys/time.h headers along with the
85466         AC_REQUIRE'ment of AC_HEADER_TIME.
85467
85468 2000-01-31  Jim Meyering  <meyering@lucent.com>
85469
85470         * lib/nanosleep.h (nanosleep): Guard declaration with
85471         `#if ! HAVE_DECL_NANOSLEEP'.
85472         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
85473         the declaration in that vendor's sys/timers.h.
85474         Reported by Christian Krackowizer.
85475
85476         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
85477         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
85478         (ISPRINT): Likewise.
85479         Reported by Tom Tromey.
85480
85481 2000-01-30  Jim Meyering  <meyering@lucent.com>
85482
85483         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
85484
85485         * m4/prereq.m4 (utmp_includes): Define.
85486         Check for ut_user and ut_name members in both struct utmpx
85487         and struct utmp.
85488
85489 2000-01-30  Jim Meyering  <meyering@lucent.com>
85490
85491         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
85492         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
85493         header files where only utmpx.ut_user is declared.
85494
85495         * lib/readutmp.h (UT_USER): Define.
85496
85497 2000-01-29  Jim Meyering  <meyering@lucent.com>
85498
85499         * m4/lib-check.m4: New file containing library-related checks from
85500         fileutils and sh-utils (textutils had none).
85501
85502 2000-01-28  Jim Meyering  <meyering@lucent.com>
85503
85504         * m4/perl.m4: Change format of warning message to look more like that
85505         from the missing script.  Suggestion from François Pinard.
85506
85507 2000-01-25  Jim Meyering  <meyering@lucent.com>
85508
85509         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
85510         well as time.h in the compile check.
85511         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
85512         Fix typo in cross-compiling case: s/yes/no/.
85513
85514 2000-01-23  Jim Meyering  <meyering@lucent.com>
85515
85516         * m4/jm-macros.m4: Move df-related tests here from
85517         fileutils/configure.in
85518
85519         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
85520         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
85521
85522         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
85523         s/space/ac_fsusage_space/.
85524         (jm_FILE_SYSTEM_USAGE): Take two parameters.
85525
85526         * m4/ftruncate.m4: New file (derived from part of
85527         fileutils/configure.in).
85528         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
85529         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
85530
85531         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
85532         AC_SUBST these here, rather than just in sh-util/configure.in, so
85533         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
85534         all the same.
85535         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
85536         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
85537         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
85538         (AC_SUBST(POW_LIBM)): Likewise.
85539         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
85540
85541 2000-01-23  Jim Meyering  <meyering@lucent.com>
85542
85543         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
85544         obstack.c.
85545
85546 2000-01-22  Jim Meyering  <meyering@lucent.com>
85547
85548         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
85549
85550         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
85551
85552         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
85553         configure.in
85554         (AC_CHECK_HEADERS): Likewise for sh-utils.
85555         (AC_CHECK_HEADERS): Likewise for textutils.
85556         Merge the three lists of headers.
85557
85558         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
85559         from fileutils' configure.in.
85560
85561         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
85562         code. Moved tests into their own function (_jm_DECL_HEADERS) in
85563         check-decl.m4.
85564
85565         * m4/check-decl.m4: Use #if rather than #ifdef.
85566         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
85567         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
85568         (_jm_DECL_HEADERS): Define new function.
85569         (jm_CHECK_DECLARATIONS): Require it.
85570
85571 2000-01-22  Jim Meyering  <meyering@lucent.com>
85572
85573         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
85574         [! HAVE_DECL_STRTOULL]: Declare strtoull.
85575         Required for some AIX systems.  Reported by Christian Krackowizer.
85576         [TESTING] (main): New function.
85577
85578         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
85579         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
85580         letters.
85581
85582         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
85583         iswprint.
85584
85585         * lib/strverscmp.c (ISDIGIT): Define.
85586         (strverscmp): Use ISDIGIT, not isdigit.
85587
85588 2000-01-19  Jim Meyering  <meyering@lucent.com>
85589
85590         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
85591         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
85592         defines `struct timespec' in <sys/time.h>
85593
85594         * m4/c-bs-a.m4: Remove uses of changequote altogether.
85595         Thanks to Akim for explaining.
85596
85597 2000-01-17  Paul Eggert  <eggert@twinsun.com>
85598
85599         * lib/nanosleep.c (nanosleep):
85600         Don't use SA_INTERRUPT to decide whether to call sigaction, as
85601         POSIX.1 doesn't require SA_INTERRUPT and some systems
85602         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
85603         it's been part of POSIX.1 since day 1 (in 1988).
85604
85605 2000-01-17  Jim Meyering  <meyering@lucent.com>
85606
85607         * lib/interlock: Remove unused file.  Reported by François Pinard.
85608
85609 2000-01-16  Paul Eggert  <eggert@twinsun.com>
85610
85611         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
85612         alert, backslash, formfeed, and vertical tab unnecessarily in
85613         shell quoting style.
85614
85615 2000-01-16  Jim Meyering  <meyering@lucent.com>
85616
85617         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
85618         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
85619         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
85620         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
85621
85622 2000-01-16  Jim Meyering  <meyering@lucent.com>
85623
85624         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
85625         because the latter didn't work.
85626
85627 2000-01-15  Jim Meyering  <meyering@lucent.com>
85628
85629         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
85630         (AC_REPLACE_FUNCS): Add memcpy and memset.
85631         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
85632         Add strpbrk.
85633         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
85634
85635 2000-01-12  Jim Meyering  <meyering@lucent.com>
85636
85637         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
85638         (jm_PREREQ): Use it.
85639         (jm_PREREQ_READUTMP): New macro.
85640         (jm_PREREQ): Use it.
85641
85642 2000-01-11  Paul Eggert  <eggert@twinsun.com>
85643
85644         Quote multibyte characters correctly.
85645         * m4/c-bs-a.m4: New file.
85646         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
85647         (jm_PREREQ): Use it.
85648
85649 2000-01-11  Paul Eggert  <eggert@twinsun.com>
85650
85651         * m4/uintmax_t.m4: Port to autoconf 2.13.
85652
85653 2000-01-08  Jim Meyering  <meyering@ascend.com>
85654
85655         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
85656         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
85657
85658 2000-01-04  Jim Meyering  <meyering@ascend.com>
85659
85660         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
85661         jm_STRUCT_DIRENT_D_TYPE.
85662         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
85663         jm_STRUCT_DIRENT_D_INO.
85664         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
85665         jm_STRUCT_UTIMBUF.
85666         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
85667         renamings.
85668         * m4/utime.m4: Likewise.
85669
85670         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
85671         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
85672
85673 2000-01-03  Paul Eggert  <eggert@twinsun.com>
85674
85675         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
85676         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
85677
85678 2000-01-02  Jim Meyering  <meyering@ascend.com>
85679
85680         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
85681         remember if this is necessary.
85682
85683 1999-12-26  Jim Meyering  <meyering@ascend.com>
85684
85685         * m4/jm-macros.m4: Use it here.
85686         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
85687
85688 1999-12-23  Jim Meyering  <meyering@ascend.com>
85689
85690         * m4/jm-macros.m4: Check for clock_gettime (moved from
85691         fileutils/configure.in)
85692         Check for gettimeofday.
85693
85694 1999-12-20  Jim Meyering  <meyering@ascend.com>
85695
85696         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
85697         autoconf-2.14a-1999-12-20.
85698
85699 1999-12-19  Jim Meyering  <meyering@ascend.com>
85700
85701         * m4/lstat-slash.m4: New file.
85702         * m4/jm-macros.m4: Use the new macro:
85703         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85704
85705 1999-12-07  Jim Meyering  <meyering@ascend.com>
85706
85707         * m4/perl.m4: Require that File::Compare be available, too.
85708         Too many systems seem to lack it.
85709
85710         * m4/strftime.m4: Add checks for most of the cpp macros tested in
85711         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
85712
85713 1999-11-18  Paul Eggert  <eggert@twinsun.com>
85714
85715         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
85716         problem with the QNX 4.25 shell, which doesn't propagate exit
85717         status of failed commands inside shell assignments.
85718
85719 1999-11-17  Jim Meyering  <meyering@ascend.com>
85720
85721         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
85722
85723 1999-11-07  Jim Meyering  <meyering@ascend.com>
85724
85725         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
85726
85727 1999-11-06  Jim Meyering  <meyering@ascend.com>
85728
85729         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
85730         * m4/jm-macros.m4 (jm_MACROS): Use it here.
85731
85732 1999-11-05  Jim Meyering  <meyering@ascend.com>
85733
85734         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
85735         configure.in of textutils, fileutils, and sh-utils into this one
85736         (shared between those packages) file.
85737         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
85738         AC_STRUCT_ST_BLKSIZE.
85739
85740 1999-11-03  Jim Meyering  <meyering@ascend.com>
85741
85742         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
85743         of AC_CHECK_TYPE checks includes unistd.h.
85744         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
85745         Suggestion from Akim Demaille.
85746
85747 1999-10-30  Jim Meyering  <meyering@ascend.com>
85748
85749         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
85750         m4-quoted string.
85751         * m4/ls-mntd-fs.m4: Likewise.
85752         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
85753         * m4/jm-winsz1.m4: Likewise.
85754
85755         * m4/const.m4: Remove file, since the fix made it into the experimental
85756         version of autoconf.
85757         * m4/mktime.m4: Likewise.
85758
85759         * m4/check-type.m4: Remove file, now that the latest version of
85760         AC_CHECK_TYPE takes a third arg to specify additional #includes.
85761
85762         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
85763         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
85764         AC_CHECK_TYPE.
85765
85766 1999-10-04  Jim Meyering  <meyering@ascend.com>
85767
85768         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
85769
85770 1999-09-22  Paul Eggert  <eggert@twinsun.com>
85771
85772         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
85773         2.95.1 bug with HP-UX 10.20.
85774
85775 1999-09-17  Jim Meyering  <meyering@ascend.com>
85776
85777         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
85778         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
85779         due to missing strdup (against sh-utils-2.0).
85780
85781 1999-08-29  Jim Meyering  <meyering@ascend.com>
85782
85783         * m4/jm-macros.m4: Require jm_BISON.
85784         * m4/bison.m4: New file.
85785
85786 1999-08-17  Paul Eggert  <eggert@twinsun.com>
85787
85788         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
85789         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
85790
85791 1999-08-05  Jim Meyering  <meyering@ascend.com>
85792
85793         * m4/getline.m4: Rename test file from conftestdata to conftest.data
85794         to avoid conflicts with `conftest' on 8+3 filesystems.
85795         Suggestion from Eli Zaretskii.
85796
85797 1999-08-04  Jim Meyering  <meyering@ascend.com>
85798
85799         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
85800         fileutils and sh-utils (textutils's getline test was inadequate).
85801         (AM_FUNC_GETLINE): Run this test.
85802         (AC_CHECK_FUNCS): Check for getdelim.
85803         Reported by Bob Proulx.
85804
85805 1999-08-02  Jim Meyering  <meyering@ascend.com>
85806
85807         * m4/jm-macros.m4: Add a comment.
85808
85809 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85810
85811         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
85812         <inttypes.h> defines strtoumax as a macro (and not as a
85813         function).
85814
85815 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85816
85817         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
85818         that we can shift, multiply and divide unsigned long long
85819         values; Ultrix cc can't do it.
85820
85821 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85822
85823         * m4/mktime.m4: New file, which is a preview of what should appear
85824         in the next public autoconf release.
85825
85826 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85827
85828         * m4/lfs.m4: Remove this file.
85829         * m4/largefile.m4: New file.  It contains the old contents of
85830         lfs.m4, except that all names with prefix AC_LFS have been
85831         changed to use the prefix AC_SYS_LARGEFILE instead, to be
85832         compatible with future autoconf versions.  Also, some minor m4
85833         quoting problems have been fixed.
85834
85835 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85836
85837         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
85838         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
85839         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
85840         and simplify the shell code.
85841
85842 1999-08-01  Jim Meyering  <meyering@ascend.com>
85843
85844         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
85845         m4.
85846
85847 1999-07-20  Jim Meyering  <meyering@ascend.com>
85848
85849         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
85850
85851 1999-07-15  Jim Meyering  <meyering@ascend.com>
85852
85853         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
85854
85855 1999-05-22  Jim Meyering  <meyering@ascend.com>
85856
85857         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
85858
85859 1999-05-20  Jim Meyering  <meyering@ascend.com>
85860
85861         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
85862         Add a colon after each `then' in case $4 is empty.
85863
85864 1999-05-16  Jim Meyering  <meyering@ascend.com>
85865
85866         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
85867
85868 1999-05-10  Jim Meyering  <meyering@ascend.com>
85869
85870         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
85871
85872         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
85873         AC_FUNC_MKTIME.
85874
85875 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
85876
85877         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
85878
85879 1999-05-04  Paul Eggert  <eggert@twinsun.com>
85880
85881         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
85882         not CPPFLAGS, so that linking works correctly in IRIX.
85883
85884 1999-04-30  Paul Eggert  <eggert@twinsun.com>
85885
85886         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
85887
85888 1999-04-20  Paul Eggert  <eggert@twinsun.com>
85889
85890         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
85891         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
85892         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
85893         jm_AC_TYPE_UNSIGNED_LONG_LONG.
85894         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
85895
85896         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
85897
85898 1999-04-20  Jim Meyering  <meyering@ascend.com>
85899
85900         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
85901         AC_REPLACE xstroull if necessary.  From Paul Eggert.
85902         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
85903
85904 1999-04-18  Jim Meyering  <meyering@ascend.com>
85905
85906         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
85907         * m4/jm-macros.m4: Use it.
85908
85909 1999-04-06  Jim Meyering  <meyering@ascend.com>
85910
85911         * m4/strftime.m4: Remove test for %f.
85912
85913 1999-03-29  Jim Meyering  <meyering@ascend.com>
85914
85915         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
85916         superset of the AC_TYPE_* checks in the textutils, fileutils,
85917         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
85918         AC_TYPE_PID_T.
85919
85920 1999-03-28  Jim Meyering  <meyering@ascend.com>
85921
85922         * m4/jm-macros.m4: Define GNU_PACKAGE here.
85923         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
85924         replaced e.g., in the *.sh files of the sh-utils.
85925
85926 1999-03-20  Jim Meyering  <meyering@ascend.com>
85927
85928         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
85929         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
85930         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
85931
85932 1999-03-19  Jim Meyering  <meyering@ascend.com>
85933
85934         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
85935
85936 1999-03-12  Jim Meyering  <meyering@ascend.com>
85937
85938         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
85939
85940 1999-03-07  Jim Meyering  <meyering@ascend.com>
85941
85942         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
85943         declared.
85944
85945 1999-02-17  Jim Meyering  <meyering@ascend.com>
85946
85947         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
85948         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
85949
85950 1999-02-07  Jim Meyering  <meyering@ascend.com>
85951
85952         * m4/group-member.m4: New file -- extracted from sh-utils'
85953         configure.in.
85954
85955         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
85956         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
85957
85958 1999-02-06  Jim Meyering  <meyering@ascend.com>
85959
85960         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
85961         * m4/fnmatch.m4: Likewise.
85962         * m4/getgroups.m4: Likewise.
85963         * m4/lstat.m4: Likewise.
85964         * m4/malloc.m4: Likewise.
85965         * m4/putenv.m4: Likewise.
85966         * m4/realloc.m4: Likewise.
85967         * m4/regex.m4: Likewise.
85968         * m4/stat.m4: Likewise.
85969         * m4/strftime.m4: Likewise.
85970         Suggestion from Alain Magloire.
85971
85972         * m4/chown.m4: Use `.$ac_objext', not `.o'.
85973         * m4/fnmatch.m4: Likewise.
85974         * m4/getgroups.m4: Likewise.
85975         * m4/getline.m4: Likewise.
85976         * m4/lstat.m4: Likewise.
85977         * m4/malloc.m4: Likewise.
85978         * m4/memcmp.m4: Likewise.
85979         * m4/putenv.m4: Likewise.
85980         * m4/realloc.m4: Likewise.
85981         * m4/regex.m4: Likewise.
85982         * m4/stat.m4: Likewise.
85983         * m4/strftime.m4: Likewise.
85984         Suggestion from Alain Magloire.
85985
85986         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
85987         an argument.
85988
85989         * m4/regex.m4: Add a run-time Test for proper operation of
85990         re_compile_pattern.
85991
85992 1999-01-31  Jim Meyering  <meyering@ascend.com>
85993
85994         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
85995
85996 1999-01-30  Jim Meyering  <meyering@ascend.com>
85997
85998         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
85999
86000         * m4/jm-mktime.m4: Make this a wrapper around the official
86001         AM_FUNC_MKTIME rather than my private copy, now that the official one
86002         is up to date.
86003         * m4/mktime.m4: Remove file.
86004
86005         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
86006         * m4/uptime.m4: Likewise.
86007         * m4/uintmax_t.m4: Likewise.
86008
86009 1999-01-28  Jim Meyering  <meyering@ascend.com>
86010
86011         * m4/jm-macros.m4: Use jm_AFS.
86012         * m4/afs.m4: New file (from fileutils' configure.in).
86013
86014         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
86015         * m4/chown.m4: Likewise.
86016         * m4/d-ino.m4: Likewise.
86017         * m4/d-type.m4: Likewise.
86018         * m4/fnmatch.m4: Likewise.
86019         * m4/getgroups.m4: Likewise.
86020         * m4/gettext.m4: Likewise.
86021         * m4/jm-mktime.m4: Likewise.
86022         * m4/jm-winsz2.m4: Likewise.
86023         * m4/lcmessage.m4: Likewise.
86024         * m4/ls-mntd-fs.m4: Likewise.
86025         * m4/malloc.m4: Likewise.
86026         * m4/memcmp.m4: Likewise.
86027         * m4/putenv.m4: Likewise.
86028         * m4/realloc.m4: Likewise.
86029         * m4/st_mtim.m4: Likewise.
86030         * m4/strftime.m4: Likewise.
86031
86032 1999-01-16  Jim Meyering  <meyering@ascend.com>
86033
86034         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
86035         (ARGMATCH_DIE_DECL): Define.
86036
86037 1999-01-12  Jim Meyering  <meyering@ascend.com>
86038
86039         * m4/Makefile.am.in: Rewrite to avoid using fmt.
86040         Reported by Lars Hecking.
86041
86042 1999-01-10  Jim Meyering  <meyering@ascend.com>
86043
86044         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
86045         gross kludge.
86046         * m4/inttypes_h.m4: Likewise.
86047         * m4/lstat.m4: Likewise.
86048         * m4/malloc.m4: Likewise.
86049         * m4/readdir.m4: Likewise.
86050         * m4/realloc.m4: Likewise.
86051         * m4/st_dm_mode.m4: Likewise.
86052         * m4/stat.m4: Likewise.
86053         * m4/utimbuf.m4: Likewise.
86054         * m4/utimes.m4: Likewise.
86055
86056         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
86057         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
86058         comments in config.h.in are meaningful.
86059
86060         * m4/jm-macros.m4: Require autoconf-2.13 here.
86061
86062         * m4/regex.m4: By default, don't use the included regex.c on systems
86063         with glibc 2.  Suggestion from Uli Drepper.
86064
86065 1999-01-02  Jim Meyering  <meyering@ascend.com>
86066
86067         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
86068
86069 1998-12-18  Jim Meyering  <meyering@ascend.com>
86070
86071         * m4/Makefile.am.in (Makefile.am): Simplify rule.
86072         Based on a suggestion from Lars Hecking.
86073
86074 1998-11-16  Paul Eggert  <eggert@twinsun.com>
86075
86076         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
86077
86078 1998-11-16  Jim Meyering  <meyering@ascend.com>
86079
86080         * m4/lfs.m4: Double-quote the `uname...` expression.
86081
86082 1998-11-14  Jim Meyering  <meyering@ascend.com>
86083
86084         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
86085         * m4/stat.m4: Likewise.
86086
86087 1998-11-03  Jim Meyering  <meyering@ascend.com>
86088
86089         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
86090         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
86091
86092 1998-10-18  Jim Meyering  <meyering@ascend.com>
86093
86094         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
86095
86096 1998-10-17  Jim Meyering  <meyering@ascend.com>
86097
86098         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
86099         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
86100         calls for those previously hard-coded headers.  Instead, take a new
86101         parameter.
86102         (jm_CHECK_DECLARATIONS): Reflect interface change.
86103         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
86104         (jm_CHECK_DECL_LOCALTIME_R): New macro.
86105
86106         * m4/mktime.m4: Test for spring-forward gap before long-running test.
86107
86108 1998-10-14  Jim Meyering  <meyering@ascend.com>
86109
86110         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
86111         instead of "TZ=America/Vancouver".  From Paul Eggert.
86112
86113 1998-10-11  Jim Meyering  <meyering@ascend.com>
86114
86115         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
86116         This adds a test for a recently added compatibility fix for mktime.c.
86117         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
86118
86119 1998-09-27  Jim Meyering  <meyering@ascend.com>
86120
86121         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
86122
86123         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
86124         ../configure.in, including a change from Gordon Matzigkeit to allow
86125         cross-compiling for the Hurd.
86126
86127         * m4/glibc.m4: New file/macro to test for the GNU C Library
86128         versions 1 and 2.  From Gordon Matzigkeit.
86129         Indent.
86130
86131 1998-09-21  Jim Meyering  <meyering@ascend.com>
86132
86133         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
86134
86135 1998-08-18  Paul Eggert  <eggert@twinsun.com>
86136
86137         Port nanosecond-resolution times to UnixWare 2.1.2 and
86138         pedantic Solaris 2.6.
86139
86140         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
86141         AC_STRUCT_ST_MTIM.
86142         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
86143         Generate name of ns member, instead of just 1 or undef.
86144         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
86145
86146 1998-08-15  Jim Meyering  <meyering@ascend.com>
86147
86148         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
86149         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
86150         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
86151         instead of jm_TYPE_SSIZE_T.
86152
86153 1998-08-12  Jim Meyering  <meyering@ascend.com>
86154
86155         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
86156
86157 1998-08-02  Jim Meyering  <meyering@ascend.com>
86158
86159         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
86160         in acconfig.h manually.
86161
86162 1998-07-31  Paul Eggert  <eggert@twinsun.com>
86163
86164         * m4/st_mtim.m4: New file.
86165
86166 1998-07-28  Jim Meyering  <meyering@ascend.com>
86167
86168         * m4/utimes.m4: Undef stat.
86169
86170 1998-07-25  Jim Meyering  <meyering@ascend.com>
86171
86172         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
86173         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
86174
86175 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
86176
86177         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
86178         uid and gid actually remain unchanged.
86179
86180 1998-07-07  Jim Meyering  <meyering@ascend.com>
86181
86182         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
86183
86184 1998-07-04  Jim Meyering  <meyering@ascend.com>
86185
86186         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
86187         to prove that this macro can be used in packages without regex.c.
86188
86189 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
86190
86191         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
86192         is to be used.
86193
86194 1998-07-03  Jim Meyering  <meyering@ascend.com>
86195
86196         * m4/gettext.m4: Add -lintl if it's found to be necessary.
86197
86198         * m4/gettext.m4: New file -- from gettext-0.10.35.
86199         * m4/lcmessage.m4: Likewise.
86200         * m4/progtest.m4: Likewise.
86201
86202         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
86203         * m4/jm-macros.m4: Require the new macro.
86204
86205 1998-06-29  Jim Meyering  <meyering@ascend.com>
86206
86207         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
86208         for the definition of NGROUPS (used in a system header included
86209         by sys/mount.h).
86210
86211 1998-06-28  Jim Meyering  <meyering@ascend.com>
86212
86213         * m4/ls-mntd-fs.m4: New file.
86214         * m4/fstypename.m4: New file.
86215
86216         * m4/jm-macros.m4: Require the new macro.
86217         * m4/jm-glibc-io.m4: New file.
86218
86219 1998-05-19  Jim Meyering  <meyering@ascend.com>
86220
86221         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
86222         * m4/lchown.m4: New file.
86223
86224         * m4/Makefile.am.in: New file.
86225         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
86226
86227 1998-05-14  Jim Meyering  <meyering@ascend.com>
86228
86229         * m4/Makefile.am (EXTRA_DIST): Add them.
86230         * m4/jm-macros.m4: New file.
86231         * m4/utimbuf.m4: New file.
86232
86233 1998-05-12  Jim Meyering  <meyering@ascend.com>
86234
86235         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
86236
86237 1998-05-11  Jim Meyering  <meyering@ascend.com>
86238
86239         * m4/isc-posix.m4: New file.
86240
86241 1998-05-10  Jim Meyering  <meyering@ascend.com>
86242
86243         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
86244
86245 1998-05-09  Jim Meyering  <meyering@ascend.com>
86246
86247         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
86248         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
86249         with automake.
86250
86251         * m4/ssize_t.m4: New file.
86252         * m4/mktime.m4: Remove file -- the new automake has this now.
86253
86254 1998-04-26  Jim Meyering  <meyering@ascend.com>
86255
86256         * m4/assert.m4: New file.
86257         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
86258
86259 1998-04-05  Jim Meyering  <meyering@ascend.com>
86260
86261         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
86262         (jm_PREREQ): Use it here.
86263
86264 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
86265
86266         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
86267         in acconfig.h.
86268
86269 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
86270
86271         * m4/prereq.m4: New file.
86272         * m4/error.m4: New file.
86273         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
86274
86275 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
86276
86277         * m4/getline.m4: Don't set am_cv_func_working_getline before the
86278         cache-check for the same variable -- that defeated the purpose of
86279         the test; the test program was never run.  This was a problem only
86280         on systems with losing getline functions -- HP-UX 10.20 is one.
86281         Reported by Bjorn Helgaas.
86282
86283 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
86284
86285         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
86286
86287 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
86288
86289         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
86290
86291         * m4/const.m4: New file.  Use an initializer in this declaration
86292         typedef int charset[2]; const charset x;
86293         Reported by Bob Glickstein.
86294
86295 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
86296
86297         * m4/chown.m4: Fix reversed types on -1 args to chown.
86298         From Kaveh Ghazi.
86299
86300 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
86301
86302         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
86303         Add lseek and memchr.
86304
86305         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
86306         T.E.Dickey <dickey@clark.net> said that some older preprocessors
86307         have a 20-character limit on names.
86308
86309 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
86310
86311         * m4/inttypes_h.m4: New file.
86312         * m4/uintmax_t.m4: New file.
86313         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
86314
86315
86316         -----
86317
86318         Local Variables:
86319         coding: utf-8
86320         End:
86321
86322         Copyright (C) 1997-2011 Free Software Foundation, Inc.
86323
86324         Copying and distribution of this file, with or without
86325         modification, are permitted provided the copyright notice
86326         and this notice are preserved.